summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_lan.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-10 19:12:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-10 19:12:31 +0000
commitf88a634bc5b43f46026a2ae19b13acd3351fd885 (patch)
tree7f886e0a9367d94e7770fc35a805a6865783d0b2 /usr/local/www/interfaces_lan.php
parentdc6283a397505f077a871741f2b4e6430ee97821 (diff)
downloadpfsense-f88a634bc5b43f46026a2ae19b13acd3351fd885.zip
pfsense-f88a634bc5b43f46026a2ae19b13acd3351fd885.tar.gz
* Move form up to cover apply
* unlink the lan dirty file after apply
Diffstat (limited to 'usr/local/www/interfaces_lan.php')
-rwxr-xr-xusr/local/www/interfaces_lan.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php
index c51907a..0c99211 100755
--- a/usr/local/www/interfaces_lan.php
+++ b/usr/local/www/interfaces_lan.php
@@ -125,7 +125,8 @@ if ($_POST) {
touch($d_landirty_path);
- if ($_POST['enable']) {
+ if ($_POST['apply'] <> "") {
+ unlink($d_landirty_path);
$savemsg = "The changes have been applied. You may need to correct the web browsers ip address.";
}
@@ -157,6 +158,7 @@ function enable_change(enable_over) {
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
+<form action="interfaces_lan.php" method="post" name="iform" id="iform">
<?php include("fbegin.inc"); ?>
<p class="pgtitle"><?=$pgtitle?></p>
<?php if ($input_errors) print_input_errors($input_errors); ?>
@@ -164,7 +166,6 @@ function enable_change(enable_over) {
<?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">
<tr>
<td colspan="2" valign="top" class="listtopic">IP configuration</td>
@@ -259,7 +260,7 @@ function enable_change(enable_over) {
<?php
-if ($_POST['enable']) {
+if ($_POST['apply'] <> "") {
/* Change these items late in the script
* so the script will fully complete to
OpenPOWER on IntegriCloud