summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_interfaces.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-24 22:28:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-24 22:28:27 +0000
commita8826fb4eeeea6671667e561727af268b3e15a8b (patch)
tree6e77e71cb099fb0ee00162c15691173f732148a2 /usr/local/www/status_interfaces.php
parent84cec030dddc3daaf7f6b2c60d285f713f5fd866 (diff)
downloadpfsense-a8826fb4eeeea6671667e561727af268b3e15a8b.zip
pfsense-a8826fb4eeeea6671667e561727af268b3e15a8b.tar.gz
More fixes from databeestje
Diffstat (limited to 'usr/local/www/status_interfaces.php')
-rwxr-xr-xusr/local/www/status_interfaces.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php
index 834e17c..0165d3a 100755
--- a/usr/local/www/status_interfaces.php
+++ b/usr/local/www/status_interfaces.php
@@ -38,15 +38,17 @@ $wancfg = &$config['interfaces']['wan'];
if ($_POST) {
if ($_POST['submit'] == "Disconnect" || $_POST['submit'] == "Release") {
+ $interface = $_POST['interface'];
if ($wancfg['ipaddr'] == "dhcp")
- interfaces_dhcp_down($_POST['interface']);
+ interfaces_dhcp_down($interface);
else if ($wancfg['ipaddr'] == "pppoe")
interfaces_wan_pppoe_down();
else if ($wancfg['ipaddr'] == "pptp")
interfaces_wan_pptp_down();
} else if ($_POST['submit'] == "Connect" || $_POST['submit'] == "Renew") {
+ $interface = $_POST['interface'];
if ($wancfg['ipaddr'] == "dhcp")
- interfaces_dhcp_up($_POST['interface']);
+ interfaces_dhcp_up($interface);
else if ($wancfg['ipaddr'] == "pppoe")
interfaces_wan_pppoe_up();
else if ($wancfg['ipaddr'] == "pptp")
@@ -292,7 +294,9 @@ include("head.inc");
<td width="78%" class="listr">
<?=htmlspecialchars($ifinfo['macaddr']);?>
</td>
- </tr><?php endif; if ($ifinfo['status'] != "down"): ?>
+ </tr>
+ </form>
+ <?php endif; if ($ifinfo['status'] != "down"): ?>
<?php if ($ifinfo['dhcplink'] != "down" && $ifinfo['pppoelink'] != "down" && $ifinfo['pptplink'] != "down"): ?>
<?php if ($ifinfo['ipaddr']): ?>
<tr>
@@ -360,11 +364,9 @@ include("head.inc");
<?=htmlspecialchars($ifinfo['collisions']);?>
</td>
</tr><?php endif; ?>
- </form>
<?php endif; ?>
<?php $i++; endforeach; ?>
</table>
-</form>
<br>
<strong class="red">Note:<br>
</strong>Using dial-on-demand will bring the connection up again if any packet
OpenPOWER on IntegriCloud