From e766bd84c3c2cbb87c1a84e826cf7eb49560861b Mon Sep 17 00:00:00 2001 From: bcyrill Date: Sat, 2 Feb 2013 14:24:14 +0100 Subject: [PATCH 1/2] Whitespaces --- usr/local/www/services_rfc2136.php | 105 +++++++++++++++-------------- 1 file changed, 55 insertions(+), 50 deletions(-) diff --git a/usr/local/www/services_rfc2136.php b/usr/local/www/services_rfc2136.php index 563ee26ae4..efb1e116c5 100644 --- a/usr/local/www/services_rfc2136.php +++ b/usr/local/www/services_rfc2136.php @@ -44,17 +44,16 @@ if (!is_array($config['dnsupdates']['dnsupdate'])) $a_rfc2136 = &$config['dnsupdates']['dnsupdate']; if ($_GET['act'] == "del") { - unset($a_rfc2136[$_GET['id']]); + unset($a_rfc2136[$_GET['id']]); - write_config(); + write_config(); - header("Location: services_rfc2136.php"); - exit; + header("Location: services_rfc2136.php"); + exit; } $pgtitle = array(gettext("Services"), gettext("RFC 2136 clients")); include("head.inc"); - ?> @@ -62,61 +61,67 @@ include("head.inc");
- + + + -
+
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- $ifdesc): - if ($rfc2136['interface'] == $if): ?> - - - - - -   - -  ')">
 

-
-
- -

 
-
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ $ifdesc) { + if ($rfc2136['interface'] == $if) { + echo $ifdesc; + break; + } + } + ?> + + + +   + + +  ')"> +
 
+


+
 
+
- + \ No newline at end of file From e5da6830ae8d060c094b1994a0f6138fc1edfac1 Mon Sep 17 00:00:00 2001 From: bcyrill Date: Sat, 2 Feb 2013 14:29:30 +0100 Subject: [PATCH 2/2] Gray-out disabled RFC2136 entries --- usr/local/www/services_rfc2136.php | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/usr/local/www/services_rfc2136.php b/usr/local/www/services_rfc2136.php index efb1e116c5..3763182b88 100644 --- a/usr/local/www/services_rfc2136.php +++ b/usr/local/www/services_rfc2136.php @@ -88,21 +88,34 @@ include("head.inc"); $iflist = get_configured_interface_with_descr(); foreach ($iflist as $if => $ifdesc) { if ($rfc2136['interface'] == $if) { - echo $ifdesc; + if (!isset($rfc2136['enable'])) + echo "{$ifdesc}"; + else + echo "{$ifdesc}"; break; } } ?> - + ".htmlspecialchars($rfc2136['host']).""; + else + echo htmlspecialchars($rfc2136['host']); + ?> -   + ".htmlspecialchars($rfc2136['descr']).""; + else + echo htmlspecialchars($rfc2136['descr']); + ?> -  ')"> +  ')">