summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_unbound.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-11-03 10:54:21 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-11-03 10:54:21 -0200
commitfe9d4894a250ae569aa4c717e8c473c77dc9187c (patch)
tree49e1406cf0353e9d91b6007b0371e4510a6732e5 /usr/local/www/services_unbound.php
parent2783e408c429e8c2028704aba5054118cd5163a4 (diff)
downloadpfsense-fe9d4894a250ae569aa4c717e8c473c77dc9187c.zip
pfsense-fe9d4894a250ae569aa4c717e8c473c77dc9187c.tar.gz
Fix indent
Diffstat (limited to 'usr/local/www/services_unbound.php')
-rw-r--r--usr/local/www/services_unbound.php58
1 files changed, 29 insertions, 29 deletions
diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php
index b23cb4d..80f9eaf 100644
--- a/usr/local/www/services_unbound.php
+++ b/usr/local/www/services_unbound.php
@@ -60,22 +60,22 @@ if (!is_array($config['unbound']['domainoverrides'])) {
$a_domainOverrides = &$config['unbound']['domainoverrides'];
if (isset($config['unbound']['enable'])) {
- $pconfig['enable'] = true;
+ $pconfig['enable'] = true;
}
if (isset($config['unbound']['dnssec'])) {
- $pconfig['dnssec'] = true;
+ $pconfig['dnssec'] = true;
}
if (isset($config['unbound']['forwarding'])) {
- $pconfig['forwarding'] = true;
+ $pconfig['forwarding'] = true;
}
if (isset($config['unbound']['regdhcp'])) {
- $pconfig['regdhcp'] = true;
+ $pconfig['regdhcp'] = true;
}
if (isset($config['unbound']['regdhcpstatic'])) {
- $pconfig['regdhcpstatic'] = true;
+ $pconfig['regdhcpstatic'] = true;
}
if (isset($config['unbound']['txtsupport'])) {
- $pconfig['txtsupport'] = true;
+ $pconfig['txtsupport'] = true;
}
$pconfig['port'] = $config['unbound']['port'];
@@ -101,69 +101,69 @@ if ($_POST) {
$savemsg = get_std_save_message($retval);
if ($retval == 0) {
clear_subsystem_dirty('unbound');
- }
+ }
/* Update resolv.conf in case the interface bindings exclude localhost. */
system_resolvconf_generate();
} else {
if (isset($_POST['enable']) && isset($config['dnsmasq']['enable'])) {
$input_errors[] = "The system dns-forwarder is still active. Disable it before enabling the DNS Resolver.";
- }
+ }
if (empty($_POST['active_interface'])) {
$input_errors[] = "A single network interface needs to be selected for the DNS Resolver to bind to.";
- }
+ }
if (empty($_POST['outgoing_interface'])) {
$input_errors[] = "A single outgoing network interface needs to be selected for the DNS Resolver to use for outgoing DNS requests.";
- }
+ }
if ($_POST['port']) {
if (is_port($_POST['port'])) {
$a_unboundcfg['port'] = $_POST['port'];
- } else {
+ } else {
$input_errors[] = gettext("You must specify a valid port number.");
- }
- } else if (isset($config['unbound']['port'])) {
+ }
+ } else if (isset($config['unbound']['port'])) {
unset($config['unbound']['port']);
- }
+ }
if (isset($_POST['enable'])) {
$a_unboundcfg['enable'] = true;
- } else {
+ } else {
unset($a_unboundcfg['enable']);
- }
+ }
if (isset($_POST['dnssec'])) {
$a_unboundcfg['dnssec'] = true;
- } else {
+ } else {
unset($a_unboundcfg['dnssec']);
- }
+ }
if (isset($_POST['forwarding'])) {
$a_unboundcfg['forwarding'] = true;
- } else {
+ } else {
unset($a_unboundcfg['forwarding']);
- }
- if (isset($_POST['regdhcp'])) {
+ }
+ if (isset($_POST['regdhcp'])) {
$a_unboundcfg['regdhcp'] = true;
- } else {
+ } else {
unset($a_unboundcfg['regdhcp']);
- }
+ }
if (isset($_POST['regdhcpstatic'])) {
$a_unboundcfg['regdhcpstatic'] = true;
- } else {
+ } else {
unset($a_unboundcfg['regdhcpstatic']);
- }
+ }
if (isset($_POST['txtsupport'])) {
$a_unboundcfg['txtsupport'] = true;
- } else {
+ } else {
unset($a_unboundcfg['txtsupport']);
- }
+ }
if (is_array($_POST['active_interface']) && !empty($_POST['active_interface'])) {
$a_unboundcfg['active_interface'] = implode(",", $_POST['active_interface']);
- }
+ }
if (is_array($_POST['outgoing_interface']) && !empty($_POST['outgoing_interface'])) {
$a_unboundcfg['outgoing_interface'] = implode(",", $_POST['outgoing_interface']);
- }
+ }
$a_unboundcfg['custom_options'] = str_replace("\r\n", "\n", $_POST['custom_options']);
OpenPOWER on IntegriCloud