diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-01 13:49:07 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-01 13:49:32 -0500 |
commit | a149e9e09824be51d1efc3d0aa6ad28f564573fd (patch) | |
tree | 485de6d4f1af103f661b4b42a76a8b29a257afb1 /usr | |
parent | f1c276a1627fffed4aaad1de80ad7e15c57e0653 (diff) | |
download | pfsense-a149e9e09824be51d1efc3d0aa6ad28f564573fd.zip pfsense-a149e9e09824be51d1efc3d0aa6ad28f564573fd.tar.gz |
Reload dnsmasq after domain changes. Ticket #201
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_dnsmasq_domainoverride_edit.php | 25 |
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; } } |