summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dyndns.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-16 23:16:58 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-16 23:16:58 +0545
commit6e3488e958f8f1e548962a7f07cca8f45f106a46 (patch)
treefaa73d19c44557e5de589a0384f3f9e64af948ab /src/usr/local/www/services_dyndns.php
parente84865c8c5d72b44000aee8c1c3cf97c22686f9d (diff)
downloadpfsense-6e3488e958f8f1e548962a7f07cca8f45f106a46.zip
pfsense-6e3488e958f8f1e548962a7f07cca8f45f106a46.tar.gz
Code style services dhcp dnsmasq dyndns
Diffstat (limited to 'src/usr/local/www/services_dyndns.php')
-rw-r--r--src/usr/local/www/services_dyndns.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/usr/local/www/services_dyndns.php b/src/usr/local/www/services_dyndns.php
index 39ba9b9..0b42b8e 100644
--- a/src/usr/local/www/services_dyndns.php
+++ b/src/usr/local/www/services_dyndns.php
@@ -78,8 +78,7 @@ if ($_GET['act'] == "del") {
header("Location: services_dyndns.php");
exit;
-}
-else if ($_GET['act'] == "toggle") {
+} else if ($_GET['act'] == "toggle") {
if ($a_dyndns[$_GET['id']]) {
if (isset($a_dyndns[$_GET['id']]['enable'])) {
unset($a_dyndns[$_GET['id']]['enable']);
@@ -96,8 +95,9 @@ else if ($_GET['act'] == "toggle") {
$pgtitle = array(gettext("Services"), gettext("Dynamic DNS"), gettext("Dynamic DNS Clients"));
include("head.inc");
-if ($input_errors)
+if ($input_errors) {
print_input_errors($input_errors);
+}
$tab_array = array();
$tab_array[] = array(gettext("Dynamic DNS"), true, "services_dyndns.php");
@@ -171,10 +171,11 @@ foreach ($a_dyndns as $dyndns):
$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>');
@@ -183,10 +184,11 @@ foreach ($a_dyndns as $dyndns):
$cached_ipv6_s = explode("|", file_get_contents($filename_v6));
$cached_ipv6 = $cached_ipv6_s[0];
- if ($ipv6addr != $cached_ipv6)
+ if ($ipv6addr != $cached_ipv6) {
print('<span class="text-danger">');
- else
+ } else {
print('<span class="text-success">');
+ }
print(htmlspecialchars($cached_ipv6));
print('</span>');
OpenPOWER on IntegriCloud