diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-24 20:11:41 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-24 20:11:41 +0000 |
commit | 51caa77a36b95723a90ac93f0bcedcb057e8a87a (patch) | |
tree | 0c7244598b1106b5c036e0c38e8bc0437aec9164 | |
parent | 7d2e441ef8a616bbcb311747291adb5972c04e4f (diff) | |
download | pfsense-51caa77a36b95723a90ac93f0bcedcb057e8a87a.zip pfsense-51caa77a36b95723a90ac93f0bcedcb057e8a87a.tar.gz |
Do not check if status
-rwxr-xr-x | usr/local/www/status_interfaces.php | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php index 4b9e794..3eeef53 100755 --- a/usr/local/www/status_interfaces.php +++ b/usr/local/www/status_interfaces.php @@ -30,7 +30,8 @@ */ $pgtitle = array("Status", "Interfaces"); -require("guiconfig.inc"); + +require_once("guiconfig.inc"); $wancfg = &$config['interfaces']['wan']; @@ -97,7 +98,7 @@ function get_interface_info($ifdescr) { /* DHCP? -> see if dhclient is up */ if (($ifdescr == "wan") && ($config['interfaces']['wan']['ipaddr'] == "dhcp")) { /* see if dhclient is up */ - if ($ifinfo['status'] == "up" && is_process_running("dhclient") == true) + if (is_process_running("dhclient") == true) $ifinfo['dhcplink'] = "up"; else $ifinfo['dhcplink'] = "down"; @@ -222,18 +223,18 @@ function get_interface_info($ifdescr) { <table width="100%" border="0" cellspacing="0" cellpadding="0"> <?php $i = 0; $ifdescrs = array('wan' => 'WAN', 'lan' => 'LAN'); - for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) { - $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr']; - } + for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) { + $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr']; + } - foreach ($ifdescrs as $ifdescr => $ifname): - $ifinfo = get_interface_info($ifdescr); - ?> + foreach ($ifdescrs as $ifdescr => $ifname): + $ifinfo = get_interface_info($ifdescr); + ?> <?php if ($i): ?> <tr> - <td colspan="8" class="list" height="12"></td> - </tr> - <?php endif; ?> + <td colspan="8" class="list" height="12"></td> + </tr> + <?php endif; ?> <tr> <td colspan="2" class="listtopic"> <?=htmlspecialchars($ifname);?> |