summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_graph.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-11-06 14:00:11 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-11-06 14:00:11 -0400
commitd815d5faecddfdf1d7064b0143df9fbe017af5d5 (patch)
treef9baabf6a709dfed7d760b1ea7bacabdb5953657 /usr/local/www/status_graph.php
parent98bcf1f8b57478833f65e3309d0cc98ba4933c0a (diff)
downloadpfsense-d815d5faecddfdf1d7064b0143df9fbe017af5d5.zip
pfsense-d815d5faecddfdf1d7064b0143df9fbe017af5d5.tar.gz
Use get_configured_interface_list() so Ermal does not yell at me :)
Diffstat (limited to 'usr/local/www/status_graph.php')
-rwxr-xr-xusr/local/www/status_graph.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php
index 6397d75..21c7fba 100755
--- a/usr/local/www/status_graph.php
+++ b/usr/local/www/status_graph.php
@@ -54,16 +54,10 @@ if ($_POST['height'])
else
$height = "200";
-$ifdescrs = array('wan' => gettext('WAN'), 'lan' => gettext('LAN'));
-
-for($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
- if(isset($config['interfaces']['opt' . $j]['enable']))
- $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr'];
-}
-
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) {
OpenPOWER on IntegriCloud