diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-15 03:33:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-15 03:33:18 +0000 |
commit | 767a716ecd96105621e239633c04651a02bd8fb8 (patch) | |
tree | a9455173dba67b71599f611cb3eebb6aaa584745 /usr/local/www/status_interfaces.php | |
parent | 3e789a8b1385cbd0ccc952b7eac5e1e01ff1a478 (diff) | |
download | pfsense-767a716ecd96105621e239633c04651a02bd8fb8.zip pfsense-767a716ecd96105621e239633c04651a02bd8fb8.tar.gz |
Correct warnings and errors found eclipse
Diffstat (limited to 'usr/local/www/status_interfaces.php')
-rwxr-xr-x | usr/local/www/status_interfaces.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php index cf37e26..5dcd57b 100755 --- a/usr/local/www/status_interfaces.php +++ b/usr/local/www/status_interfaces.php @@ -62,7 +62,7 @@ if ($_POST) { function get_interface_info($ifdescr) { - global $config; + global $config, $linkinfo, $netstatrninfo; $ifinfo = array(); @@ -74,6 +74,7 @@ function get_interface_info($ifdescr) { $ifinfo['if'] = $ifinfo['hwif']; /* run netstat to determine link info */ + unset($linkinfo); exec("/usr/bin/netstat -I " . $ifinfo['hwif'] . " -nWb -f link", $linkinfo); $linkinfo = preg_split("/\s+/", $linkinfo[1]); @@ -128,6 +129,7 @@ function get_interface_info($ifdescr) { $ifinfo['pppoelink'] = "down"; } else { /* get PPPoE link status for dial on demand */ + $ifconfiginfo = ""; unset($ifconfiginfo); exec("/sbin/ifconfig " . $ifinfo['if'], $ifconfiginfo); @@ -165,7 +167,7 @@ function get_interface_info($ifdescr) { /* try to determine media with ifconfig */ unset($ifconfiginfo); exec("/sbin/ifconfig " . $ifinfo['hwif'], $ifconfiginfo); - + $matches = ""; foreach ($ifconfiginfo as $ici) { if (!isset($config['interfaces'][$ifdescr]['wireless'])) { /* don't list media/speed for wireless cards, as it always |