diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-26 19:09:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-26 19:09:53 +0000 |
commit | e4e8c30f582a34bcdbef89903bc5581bec89940b (patch) | |
tree | e2045cae9f4298823bfd919d811620110d89feca /usr | |
parent | 789e0b9d4dc5d41fee83ae87075df13cadc2c838 (diff) | |
download | pfsense-e4e8c30f582a34bcdbef89903bc5581bec89940b.zip pfsense-e4e8c30f582a34bcdbef89903bc5581bec89940b.tar.gz |
Move reload pieces to end of page, call filter_configure() afterwards
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces.php | 17 | ||||
-rwxr-xr-x | usr/local/www/interfaces_lan.php | 5 | ||||
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 17 | ||||
-rwxr-xr-x | usr/local/www/interfaces_wan.php | 17 |
4 files changed, 46 insertions, 10 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 4bf5e2e..7f70ab0 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -268,8 +268,6 @@ if ($_POST) { $retval = 0; - interfaces_opt_configure(); - $savemsg = get_std_save_message($retval); } } @@ -693,3 +691,18 @@ type_change(); <?php include("fend.inc"); ?> </body> </html> + + +<?php + +if ($_POST) { + + if (!$input_errors) { + interfaces_wan_configure(); + + /* sync filter configuration */ + filter_configure(); + } +} + +?>
\ No newline at end of file diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php index 6a9ad88..4209752 100755 --- a/usr/local/www/interfaces_lan.php +++ b/usr/local/www/interfaces_lan.php @@ -257,7 +257,10 @@ function enable_change(enable_over) { if ($_POST['apply'] <> "") { interfaces_lan_configure(); - + + /* sync filter configuration */ + filter_configure(); + if(file_exists($d_landirty_path)) unlink($d_landirty_path); diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index 85baf10..b100a27 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -197,11 +197,6 @@ if ($_POST) { write_config(); - interfaces_optional_configure_if($index); - - /* sync filter configuration */ - filter_configure(); - $savemsg = get_std_save_message($retval); } } @@ -422,3 +417,15 @@ enable_change(false); <?php include("fend.inc"); ?> </body> </html> + +<?php +if ($_POST) { + + if (!$input_errors) { + interfaces_optional_configure_if($index); + + /* sync filter configuration */ + filter_configure(); + } +} +?>
\ No newline at end of file diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php index 4bf5e2e..7f70ab0 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.php @@ -268,8 +268,6 @@ if ($_POST) { $retval = 0; - interfaces_opt_configure(); - $savemsg = get_std_save_message($retval); } } @@ -693,3 +691,18 @@ type_change(); <?php include("fend.inc"); ?> </body> </html> + + +<?php + +if ($_POST) { + + if (!$input_errors) { + interfaces_wan_configure(); + + /* sync filter configuration */ + filter_configure(); + } +} + +?>
\ No newline at end of file |