summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dnsmasq_domainoverride_edit.php
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-01 13:49:07 -0500
committersullrich <sullrich@pfsense.org>2009-12-01 13:49:32 -0500
commita149e9e09824be51d1efc3d0aa6ad28f564573fd (patch)
tree485de6d4f1af103f661b4b42a76a8b29a257afb1 /usr/local/www/services_dnsmasq_domainoverride_edit.php
parentf1c276a1627fffed4aaad1de80ad7e15c57e0653 (diff)
downloadpfsense-a149e9e09824be51d1efc3d0aa6ad28f564573fd.zip
pfsense-a149e9e09824be51d1efc3d0aa6ad28f564573fd.tar.gz
Reload dnsmasq after domain changes. Ticket #201
Diffstat (limited to 'usr/local/www/services_dnsmasq_domainoverride_edit.php')
-rwxr-xr-xusr/local/www/services_dnsmasq_domainoverride_edit.php25
1 files changed, 13 insertions, 12 deletions
diff --git a/usr/local/www/services_dnsmasq_domainoverride_edit.php b/usr/local/www/services_dnsmasq_domainoverride_edit.php
index ecc3e93..9e530e9 100755
--- a/usr/local/www/services_dnsmasq_domainoverride_edit.php
+++ b/usr/local/www/services_dnsmasq_domainoverride_edit.php
@@ -74,22 +74,23 @@ if ($_POST) {
}
if (!$input_errors) {
- $doment = array();
- $doment['domain'] = $_POST['domain'];
- $doment['ip'] = $_POST['ip'];
- $doment['descr'] = $_POST['descr'];
+ $doment = array();
+ $doment['domain'] = $_POST['domain'];
+ $doment['ip'] = $_POST['ip'];
+ $doment['descr'] = $_POST['descr'];
- if (isset($id) && $a_domainOverrides[$id])
- $a_domainOverrides[$id] = $doment;
- else
- $a_domainOverrides[] = $doment;
+ if (isset($id) && $a_domainOverrides[$id])
+ $a_domainOverrides[$id] = $doment;
+ else
+ $a_domainOverrides[] = $doment;
- mark_subsystem_dirty('dnsmasq');
+ $retval = services_dnsmasq_configure();
+ $savemsg = get_std_save_message($retval);
- write_config();
+ write_config();
- header("Location: services_dnsmasq.php");
- exit;
+ header("Location: services_dnsmasq.php");
+ exit;
}
}
OpenPOWER on IntegriCloud