summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_unbound.php
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-04-28 20:37:59 +0200
committerWarren Baker <warren@decoy.co.za>2014-04-28 20:37:59 +0200
commitf2bc186f3133c506104f8629001357063066a86e (patch)
tree5bd827a815d133201fa62bef960a27ce4cb7fce3 /usr/local/www/services_unbound.php
parent02d674e08c2435b2c5594ff11d04726a0b8ce9f0 (diff)
downloadpfsense-f2bc186f3133c506104f8629001357063066a86e.zip
pfsense-f2bc186f3133c506104f8629001357063066a86e.tar.gz
Make sure domain+host overrides are deleted
Diffstat (limited to 'usr/local/www/services_unbound.php')
-rw-r--r--usr/local/www/services_unbound.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php
index ee913f4..7a3f62a 100644
--- a/usr/local/www/services_unbound.php
+++ b/usr/local/www/services_unbound.php
@@ -115,6 +115,26 @@ if ($_POST) {
}
}
+if ($_GET['act'] == "del") {
+ if ($_GET['type'] == 'host') {
+ if ($a_hosts[$_GET['id']]) {
+ unset($a_hosts[$_GET['id']]);
+ write_config();
+ mark_subsystem_dirty('unbound');
+ header("Location: services_unbound.php");
+ exit;
+ }
+ } elseif ($_GET['type'] == 'doverride') {
+ if ($a_domainOverrides[$_GET['id']]) {
+ unset($a_domainOverrides[$_GET['id']]);
+ write_config();
+ mark_subsystem_dirty('unbound');
+ header("Location: services_unbound.php");
+ exit;
+ }
+ }
+}
+
$closehead = false;
$pgtitle = array(gettext("Services"),gettext("DNS Resolver"));
include_once("head.inc");
OpenPOWER on IntegriCloud