From 066ceb39b23519debf5576c2d361e8c38a9e2fc9 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 9 Jul 2009 19:32:47 -0400 Subject: Save to correct location and nuke dirty stuff --- usr/local/www/system_advanced_notifications.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/system_advanced_notifications.php b/usr/local/www/system_advanced_notifications.php index 081926d..84875fe 100644 --- a/usr/local/www/system_advanced_notifications.php +++ b/usr/local/www/system_advanced_notifications.php @@ -61,21 +61,13 @@ if ($_POST) { $retval = 0; system_setup_sysctl(); $savemsg = get_std_save_message($retval); - clear_subsystem_dirty('notifications'); } if ($_POST['Submit'] == "Save") { $tunableent = array(); - $tunableent['ipaddress'] = $_POST['ipaddress']; - $tunableent['password'] = $_POST['password']; - - if (isset($id) && $a_tunable[$id]) - $a_tunable[$id] = $tunableent; - else - $a_tunable[] = $tunableent; - - mark_subsystem_dirty('notifications'); + $config['notifications']['ipaddress'] = $_POST['ipaddress']; + $config['notifications']['password'] = $_POST['password']; write_config(); @@ -99,8 +91,6 @@ include("head.inc"); print_input_errors($input_errors); if ($savemsg) print_info_box($savemsg); - if (is_subsystem_dirty('notifications') && ($act != "edit" )) - print_info_box_np("The firewall notifications have changed. You must apply the configuration to take affect."); ?> -- cgit v1.1