diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces.php | 4 | ||||
-rwxr-xr-x | usr/local/www/status_graph.php | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index cd9efd3..b58aa96 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -54,10 +54,12 @@ require_once("rrd.inc"); require_once("vpn.inc"); require_once("xmlparse_attr.inc"); +// Get configured interface list +$ifdescrs = get_configured_interface_list(); + if ($_REQUEST['if']) { $if = $_REQUEST['if']; $found = false; - $ifdescrs = get_configured_interface_list(); foreach($ifdescrs as $descr => $ifdescr) if($descr == $if) $found = true; diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php index 21c7fba..4347da8 100755 --- a/usr/local/www/status_graph.php +++ b/usr/local/www/status_graph.php @@ -54,10 +54,12 @@ if ($_POST['height']) else $height = "200"; +// Get configured interface list +$ifdescrs = get_configured_interface_list(); + if ($_GET['if']) { $curif = $_GET['if']; $found = false; - $ifdescrs = get_configured_interface_list(); foreach($ifdescrs as $descr => $ifdescr) if($descr == $curif) $found = true; if(!$found) { |