diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-17 08:56:27 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-17 08:56:27 +0545 |
commit | 20db3e1adb437d8e094077e33e402ff805122a82 (patch) | |
tree | f6804fef026b9cae9c7391d897f220a84cf203e4 /src/usr/local/www/services_rfc2136.php | |
parent | 8152403354e59b40c518414523383c11fdc1a155 (diff) | |
download | pfsense-20db3e1adb437d8e094077e33e402ff805122a82.zip pfsense-20db3e1adb437d8e094077e33e402ff805122a82.tar.gz |
Code style services
Diffstat (limited to 'src/usr/local/www/services_rfc2136.php')
-rw-r--r-- | src/usr/local/www/services_rfc2136.php | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/usr/local/www/services_rfc2136.php b/src/usr/local/www/services_rfc2136.php index 59416de..0649abd 100644 --- a/src/usr/local/www/services_rfc2136.php +++ b/src/usr/local/www/services_rfc2136.php @@ -75,8 +75,7 @@ if ($_GET['act'] == "del") { header("Location: services_rfc2136.php"); exit; -} -else if ($_GET['act'] == "toggle") { +} else if ($_GET['act'] == "toggle") { if ($a_rfc2136[$_GET['id']]) { if (isset($a_rfc2136[$_GET['id']]['enable'])) { unset($a_rfc2136[$_GET['id']]['enable']); @@ -98,8 +97,9 @@ $tab_array[] = array(gettext("Dynamic DNS"), false, "services_dyndns.php"); $tab_array[] = array(gettext("RFC 2136"), true, "services_rfc2136.php"); display_top_tabs($tab_array); -if ($input_errors) +if ($input_errors) { print_input_errors($input_errors); +} ?> <form action="services_rfc2136.php" method="post" name="iform" id="iform"> @@ -147,18 +147,20 @@ foreach ($a_rfc2136 as $rfc2136): if (file_exists($filename)) { print('IPv4: '); - if (isset($rfc2136['usepublicip'])) + if (isset($rfc2136['usepublicip'])) { $ipaddr = dyndnsCheckIP($rfc2136['interface']); - else + } else { $ipaddr = get_interface_ip($rfc2136['interface']); + } $cached_ip_s = explode("|", file_get_contents($filename)); $cached_ip = $cached_ip_s[0]; - if ($ipaddr != $cached_ip) + if ($ipaddr != $cached_ip) { print('<span class="text-danger">'); - else + } else { print('<span class="text-success">'); + } print(htmlspecialchars($cached_ip)); print('</span>'); @@ -174,10 +176,11 @@ foreach ($a_rfc2136 as $rfc2136): $cached_ip_s = explode("|", file_get_contents("{$filename}.ipv6")); $cached_ip = $cached_ip_s[0]; - if ($ipaddr != $cached_ip) + if ($ipaddr != $cached_ip) { print('<span class="text-danger">'); - else + } else { print('<span class="text-success">'); + } print(htmlspecialchars($cached_ip)); print('</span>'); |