From c597d50fe9f00cb4c1cda5a3fd106ed17eca5a61 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 26 Mar 2006 04:53:39 +0000 Subject: Do not use reload_* until we can fix the console bug --- usr/local/www/interfaces.php | 2 +- usr/local/www/interfaces_lan.php | 9 ++++----- usr/local/www/interfaces_opt.php | 2 +- usr/local/www/interfaces_wan.php | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) (limited to 'usr') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 9c96c63..4bf5e2e 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -268,7 +268,7 @@ if ($_POST) { $retval = 0; - touch("/tmp/reload_interfaces"); + interfaces_opt_configure(); $savemsg = get_std_save_message($retval); } diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php index 119ff9e..9a32a17 100755 --- a/usr/local/www/interfaces_lan.php +++ b/usr/local/www/interfaces_lan.php @@ -83,7 +83,6 @@ if ($_POST) { do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); - if (($_POST['ipaddr'] && !is_ipaddr($_POST['ipaddr']))) { $input_errors[] = "A valid IP address must be specified."; } @@ -128,14 +127,15 @@ if ($_POST) { touch($d_landirty_path); if ($_POST['apply'] <> "") { + interfaces_opt_configure(); + unlink($d_landirty_path); + $savemsg = "The changes have been applied. You may need to correct the web browsers ip address."; } - } } - $pgtitle = "Interfaces: LAN"; include("head.inc"); @@ -256,9 +256,8 @@ function enable_change(enable_over) { if ($_POST['apply'] <> "") { - touch("/tmp/reload_interfaces"); if(file_exists($d_landirty_path)) - unlink($d_landirty_path); + unlink($d_landirty_path); } diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index 7934224..3ebd9ac 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -197,7 +197,7 @@ if ($_POST) { write_config(); - touch("/tmp/reload_interfaces"); + interfaces_opt_configure(); /* sync filter configuration */ filter_configure(); diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php index 9c96c63..4bf5e2e 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.php @@ -268,7 +268,7 @@ if ($_POST) { $retval = 0; - touch("/tmp/reload_interfaces"); + interfaces_opt_configure(); $savemsg = get_std_save_message($retval); } -- cgit v1.1