Move reload pieces to end of page, call filter_configure() afterwards

This commit is contained in:
Scott Ullrich 2006-03-26 19:09:53 +00:00
parent 789e0b9d4d
commit e4e8c30f58
4 changed files with 46 additions and 10 deletions

View File

@ -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();
}
}
?>

View File

@ -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);

View File

@ -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();
}
}
?>

View File

@ -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();
}
}
?>