diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-10 18:30:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-10 18:30:35 +0000 |
commit | 03e6d007a9fda63009d6cf8b6532dee9ddc89f2c (patch) | |
tree | b9f3c723274d24952e9809e14bc90eb597b4c9ea /usr/local | |
parent | 3e44d22a4a1fab03e4acb0734ba828e36a5cf9eb (diff) | |
download | pfsense-03e6d007a9fda63009d6cf8b6532dee9ddc89f2c.zip pfsense-03e6d007a9fda63009d6cf8b6532dee9ddc89f2c.tar.gz |
* Add lan dirty flag
* Do not change settings until user clicks Apply
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/interfaces_lan.php | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php index 13e022a..633dd25 100755 --- a/usr/local/www/interfaces_lan.php +++ b/usr/local/www/interfaces_lan.php @@ -124,22 +124,14 @@ if ($_POST) { unset($lancfg['bandwidthtype']); } - $dhcpd_was_enabled = 0; - if (isset($config['dhcpd']['enable'])) { - unset($config['dhcpd']['enable']); - $dhcpd_was_enabled = 1; - $changedesc .= " DHCP disabled"; - } - 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 " . - "and enable it again prior to rebooting."; - else + touch($d_landirty_path); + + if ($_POST['enable']) { $savemsg = "The changes have been applied. You may need to correct the web browsers ip address."; + } + } } @@ -171,6 +163,9 @@ function enable_change(enable_over) { <?php include("fbegin.inc"); ?> <p class="pgtitle"><?=$pgtitle?></p> <?php if ($input_errors) print_input_errors($input_errors); ?> +<?php if (file_exists($d_landirty_path)): ?><p> +<?php print_info_box_np("The LAN configuration has been changed.<br>You must apply the changes in order for them to take effect. Don't forget to adjust the DHCP Server range if needed before applying.");?><br> +<?php endif; ?> <?php if ($savemsg) print_info_box($savemsg); ?> <form action="interfaces_lan.php" method="post" name="iform" id="iform"> <table width="100%" border="0" cellpadding="6" cellspacing="0"> @@ -267,7 +262,7 @@ function enable_change(enable_over) { <?php -if ($_POST) { +if ($_POST['enable']) { /* Change these items late in the script * so the script will fully complete to @@ -283,7 +278,9 @@ if ($_POST) { interfaces_carp_configure(); /* bring up carp interfaces */ - interfaces_carp_bringup(); + interfaces_carp_bringup(); + + unlink($d_landirty_path); } |