summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.homeunix.net>2009-07-09 19:32:47 -0400
committerScott Ullrich <sullrich@pfsense.homeunix.net>2009-07-09 19:32:47 -0400
commit066ceb39b23519debf5576c2d361e8c38a9e2fc9 (patch)
tree78d9f5577e5697e5d26385066dac4ffc1869eed0 /usr
parentd0e705e1feb4da09f4351596370b62dd26fe5153 (diff)
downloadpfsense-066ceb39b23519debf5576c2d361e8c38a9e2fc9.zip
pfsense-066ceb39b23519debf5576c2d361e8c38a9e2fc9.tar.gz
Save to correct location and nuke dirty stuff
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/system_advanced_notifications.php14
1 files changed, 2 insertions, 12 deletions
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.");
?>
</form>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
OpenPOWER on IntegriCloud