Project

General

Profile

« Previous | Next » 

Revision f88a634b

Added by Scott Ullrich almost 20 years ago

  • Move form up to cover apply
  • unlink the lan dirty file after apply

View differences:

usr/local/www/interfaces_lan.php
125 125

  
126 126
		touch($d_landirty_path);
127 127

  
128
		if ($_POST['enable']) {
128
		if ($_POST['apply'] <> "") {
129
			unlink($d_landirty_path);
129 130
			$savemsg = "The changes have been applied.  You may need to correct the web browsers ip address.";
130 131
		}
131 132

  
......
157 158

  
158 159

  
159 160
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
161
<form action="interfaces_lan.php" method="post" name="iform" id="iform">
160 162
<?php include("fbegin.inc"); ?>
161 163
<p class="pgtitle"><?=$pgtitle?></p>
162 164
<?php if ($input_errors) print_input_errors($input_errors); ?>
......
164 166
<?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>
165 167
<?php endif; ?>
166 168
<?php if ($savemsg) print_info_box($savemsg); ?>
167
            <form action="interfaces_lan.php" method="post" name="iform" id="iform">
168 169
              <table width="100%" border="0" cellpadding="6" cellspacing="0">
169 170
		<tr>
170 171
                  <td colspan="2" valign="top" class="listtopic">IP configuration</td>
......
259 260

  
260 261
<?php
261 262

  
262
if ($_POST['enable']) {
263
if ($_POST['apply'] <> "") {
263 264

  
264 265
	/*   Change these items late in the script
265 266
	 *   so the script will fully complete to

Also available in: Unified diff