summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_interfaces.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-09-23 04:35:05 +0000
committerBill Marquette <billm@pfsense.org>2005-09-23 04:35:05 +0000
commitb99895fe1f5439511a872cf5dd729fcf40e44239 (patch)
tree5fe65fce8e93ac00cec11dbb192e55a5d17236dd /usr/local/www/status_interfaces.php
parentafb3b079ee2d02565f3499b3ef3726a658c4d1e2 (diff)
downloadpfsense-b99895fe1f5439511a872cf5dd729fcf40e44239.zip
pfsense-b99895fe1f5439511a872cf5dd729fcf40e44239.tar.gz
merge of 4a2307663574844423b70c8193ffcfae2153e83f
and 6749b0913f26fcda7e1809e160df59f3e7fc7157 ------------------- (#545) Allow optional interfaces to be "released" and "renewed" ------------------- We can now take down the right interface still working on bringing it back online correctly
Diffstat (limited to 'usr/local/www/status_interfaces.php')
-rwxr-xr-xusr/local/www/status_interfaces.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php
index 47696fa..f305a97 100755
--- a/usr/local/www/status_interfaces.php
+++ b/usr/local/www/status_interfaces.php
@@ -38,22 +38,22 @@ require_once("guiconfig.inc");
$wancfg = &$config['interfaces']['wan'];
if ($_POST) {
+ $interface = $_POST['interface'];
+ $ifcfg = &$config['interfaces'][$interface];
if ($_POST['submit'] == "Disconnect" || $_POST['submit'] == "Release") {
- $interface = $_POST['interface'];
- if ($wancfg['ipaddr'] == "dhcp")
+ if ($ifcfg['ipaddr'] == "dhcp")
interfaces_dhcp_down($interface);
- else if ($wancfg['ipaddr'] == "pppoe")
- interfaces_wan_pppoe_down();
- else if ($wancfg['ipaddr'] == "pptp")
- interfaces_wan_pptp_down();
+ else if ($ifcfg['ipaddr'] == "pppoe")
+ interfaces_wan_pppoe_down(); // FIXME: when we support multi-pppoe
+ else if ($ifcfg['ipaddr'] == "pptp")
+ interfaces_wan_pptp_down(); // FIXME: when we support multi-pptp
} else if ($_POST['submit'] == "Connect" || $_POST['submit'] == "Renew") {
- $interface = $_POST['interface'];
- if ($wancfg['ipaddr'] == "dhcp")
+ if ($ifcfg['ipaddr'] == "dhcp")
interfaces_dhcp_up($interface);
- else if ($wancfg['ipaddr'] == "pppoe")
- interfaces_wan_pppoe_up();
- else if ($wancfg['ipaddr'] == "pptp")
- interfaces_wan_pptp_up();
+ else if ($ifcfg['ipaddr'] == "pppoe")
+ interfaces_wan_pppoe_up(); // FIXME: when we support multi-pppoe
+ else if ($ifcfg['ipaddr'] == "pptp")
+ interfaces_wan_pptp_up(); // FIXME: when we support multi-pptp
} else {
header("Location: index.php");
exit;
OpenPOWER on IntegriCloud