From a149e9e09824be51d1efc3d0aa6ad28f564573fd Mon Sep 17 00:00:00 2001 From: sullrich Date: Tue, 1 Dec 2009 13:49:07 -0500 Subject: Reload dnsmasq after domain changes. Ticket #201 --- .../www/services_dnsmasq_domainoverride_edit.php | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'usr/local/www') 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; } } -- cgit v1.1