diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-09 22:44:28 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-09 22:44:28 +0000 |
commit | 824edb6c68ff7745db37baf7facf463eae75e433 (patch) | |
tree | ac347bd0685be681b0923ee434004888c0756daa /usr/local/www | |
parent | 87a86bf757f166bd41d3f012234868fa933dd65e (diff) | |
download | pfsense-824edb6c68ff7745db37baf7facf463eae75e433.zip pfsense-824edb6c68ff7745db37baf7facf463eae75e433.tar.gz |
Eliminate reboots and correct messages
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/interfaces.php | 2 | ||||
-rwxr-xr-x | usr/local/www/interfaces_lan.php | 1 | ||||
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 2 | ||||
-rwxr-xr-x | usr/local/www/interfaces_wan.php | 2 | ||||
-rwxr-xr-x | usr/local/www/services_dhcp.php | 13 |
5 files changed, 7 insertions, 13 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 4482680..3bcb47e 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -262,7 +262,7 @@ if ($_POST) { /* bring up carp interfaces */ interfaces_carp_bringup(); - $savemsg = "The changes have been applied."; + $savemsg = get_std_save_message($retval); } } diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php index ce99047..0f99a6c 100755 --- a/usr/local/www/interfaces_lan.php +++ b/usr/local/www/interfaces_lan.php @@ -128,6 +128,7 @@ if ($_POST) { write_config($changedesc); + $savemsg = get_std_save_message($retval); if ($dhcpd_was_enabled) $savemsg .= "<br>Note that the DHCP server has been disabled.<br>Please review its configuration " . diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index 458f7ef..cf4755e 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -190,7 +190,7 @@ if ($_POST) { /* sync filter configuration */ filter_configure(); - $savemsg = "The changes have been applied."; + $savemsg = get_std_save_message($retval); } } diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php index 4482680..3bcb47e 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.php @@ -262,7 +262,7 @@ if ($_POST) { /* bring up carp interfaces */ interfaces_carp_bringup(); - $savemsg = "The changes have been applied."; + $savemsg = get_std_save_message($retval); } } diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 85b5e33..e0d01ce 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -145,17 +145,10 @@ if ($_POST) { interfaces_staticarp_configure($if); $retval = 0; - if (!file_exists($d_sysrebootreqd_path)) { - config_lock(); - $retval = services_dhcpd_configure(); - config_unlock(); - } + config_lock(); + $retval = services_dhcpd_configure(); + config_unlock(); $savemsg = get_std_save_message($retval); - - if ($retval == 0) { - if (file_exists($d_staticmapsdirty_path)) - unlink($d_staticmapsdirty_path); - } } } |