diff --git a/src/www/javascript/row_helper.js b/src/www/javascript/row_helper.js index f86df9bb8..9df2aec33 100644 --- a/src/www/javascript/row_helper.js +++ b/src/www/javascript/row_helper.js @@ -28,9 +28,9 @@ var addRowTo = (function() { if(typeof(rowtype[i]) == 'function') { td.innerHTML="" + rowtype[i](rowname[i], rowsize[i], totalrows) + " "; } else if(rowtype[i] == 'textbox') { - td.innerHTML=" "; + td.innerHTML=" "; } else if(rowtype[i] == 'textbox,ipv4v6') { - td.innerHTML=" "; + td.innerHTML=" "; } else if(rowtype[i] == 'password') { td.innerHTML=" "; } else if(rowtype[i] == 'select') { diff --git a/src/www/services_dnsmasq.php b/src/www/services_dnsmasq.php index 6fe19ee06..6da489322 100644 --- a/src/www/services_dnsmasq.php +++ b/src/www/services_dnsmasq.php @@ -134,7 +134,7 @@ if ($_GET['act'] == "del") { $closehead = false; $pgtitle = array(gettext("Services"),gettext("DNS forwarder")); -$shortcut_section = "resolver"; +$shortcut_section = "forwarder"; include("head.inc"); ?> diff --git a/src/www/services_unbound.php b/src/www/services_unbound.php index 4aa0a6a3f..db9bfe1f0 100644 --- a/src/www/services_unbound.php +++ b/src/www/services_unbound.php @@ -67,17 +67,18 @@ else $pconfig['outgoing_interface'] = explode(",", $config['unbound']['outgoing_interface']); if ($_POST) { - $pconfig = $_POST; unset($input_errors); if ($_POST['apply']) { $retval = services_unbound_configure(); $savemsg = get_std_save_message($retval); - if ($retval == 0) + if ($retval == 0) { clear_subsystem_dirty('unbound'); + } /* Update resolv.conf in case the interface bindings exclude localhost. */ system_resolvconf_generate(); } else { + $pconfig = $_POST; if (isset($_POST['enable']) && isset($config['dnsmasq']['enable'])) $input_errors[] = "The system dns-forwarder is still active. Disable it before enabling the DNS Resolver."; @@ -156,6 +157,7 @@ if ($_GET['act'] == "del") { $closehead = false; $pgtitle = array(gettext("Services"),gettext("DNS Resolver")); +$shortcut_section = "resolver"; include_once("head.inc"); ?> @@ -236,7 +238,7 @@ function show_advanced_dns() { ?>

-

-
> - " /> - + " /> -
>
diff --git a/src/www/services_unbound_acls.php b/src/www/services_unbound_acls.php index 00f4e92c1..4133b090e 100644 --- a/src/www/services_unbound_acls.php +++ b/src/www/services_unbound_acls.php @@ -136,6 +136,8 @@ include("head.inc"); ?> + + @@ -154,10 +156,6 @@ include("head.inc"); rowsize[2] = "40"; //]]> - - - -
@@ -191,153 +189,134 @@ include("head.inc"); ?>
- -
- -
- - - - - - - - - - -
- -
- -
- -
- + + + + + + + + + + + - - - - + +
+ +
+ +
+ +
+
Deny: This action stops queries from hosts within the netblock defined below.");?>
Refuse: This action also stops queries from hosts within the netblock defined below, but sends a DNS rcode REFUSED error message back to the client.");?>
Allow: This action allows queries from hosts within the netblock defined below.");?>
Allow Snoop: This action allows recursive and nonrecursive access from hosts within the netblock defined below. Used for cache snooping and ideally should only be configured for your administrative host.");?>
-
-
- - + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + - -
+ + - - - - - - - - - + ?> + + + + + + -
- - - - - - - -
+ + + + + + + +
+ + + + +
- -
- -
 
  +
+ +
+ +
   
  " /> " onclick="window.location.href=''" /> -
- - +
-
- +
- - + + + - - + @@ -348,28 +327,23 @@ include("head.inc"); - - - - - -
 
  - - - - - -
 
+
+
+ + + - - - - - -
')" class="btn btn-default btn-xs">
+
+ + ')" class="btn btn-default btn-xs">
-
- diff --git a/src/www/services_unbound_advanced.php b/src/www/services_unbound_advanced.php index 78a4e7836..01fb674e9 100644 --- a/src/www/services_unbound_advanced.php +++ b/src/www/services_unbound_advanced.php @@ -201,7 +201,7 @@ include_once("head.inc");

- @@ -220,7 +220,7 @@ include_once("head.inc");

- @@ -239,7 +239,7 @@ include_once("head.inc");

- @@ -258,7 +258,7 @@ include_once("head.inc");

- @@ -277,7 +277,7 @@ include_once("head.inc");

- @@ -296,7 +296,7 @@ include_once("head.inc");

- @@ -333,7 +333,7 @@ include_once("head.inc");

- @@ -348,7 +348,7 @@ include_once("head.inc");

- @@ -363,7 +363,7 @@ include_once("head.inc");

- @@ -378,7 +378,7 @@ include_once("head.inc");

- @@ -394,7 +394,7 @@ include_once("head.inc");

- diff --git a/src/www/shortcuts.inc b/src/www/shortcuts.inc index e3c1b34ed..e73936eb2 100644 --- a/src/www/shortcuts.inc +++ b/src/www/shortcuts.inc @@ -223,10 +223,15 @@ $shortcuts['trafficshaper-limiters'] = array(); $shortcuts['trafficshaper-limiters']['main'] = "firewall_shaper_vinterface.php"; $shortcuts['trafficshaper-limiters']['status'] = "diag_limiter_info.php"; +$shortcuts['forwarder'] = array(); +$shortcuts['forwarder']['main'] = "services_dnsmasq.php"; +$shortcuts['forwarder']['log'] = "diag_logs_resolver.php"; +$shortcuts['forwarder']['service'] = "dnsmasq"; + $shortcuts['resolver'] = array(); -$shortcuts['resolver']['main'] = "services_dnsmasq.php"; +$shortcuts['resolver']['main'] = "services_unbound.php"; $shortcuts['resolver']['log'] = "diag_logs_resolver.php"; -$shortcuts['resolver']['service'] = "dnsmasq"; +$shortcuts['resolver']['service'] = "unbound"; $shortcuts['wireless'] = array(); $shortcuts['wireless']['main'] = "interfaces_wireless.php";