summaryrefslogtreecommitdiffstats
path: root/usr/local/www/m0n0/firewall_shaper.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/m0n0/firewall_shaper.php')
-rwxr-xr-xusr/local/www/m0n0/firewall_shaper.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/m0n0/firewall_shaper.php b/usr/local/www/m0n0/firewall_shaper.php
index 3d93b0a..f4380dd 100755
--- a/usr/local/www/m0n0/firewall_shaper.php
+++ b/usr/local/www/m0n0/firewall_shaper.php
@@ -166,9 +166,8 @@ include("head.inc");
} else {
$textss = $textse = "";
}
- $iflabels = array('lan' => 'LAN', 'wan' => 'WAN', 'pptp' => 'PPTP');
- for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++)
- $iflabels['opt' . $j] = $config['interfaces']['opt' . $j]['descr'];
+ $iflabels = get_configured_interface_with_descr();
+
echo $textss . htmlspecialchars($iflabels[$shaperent['interface']]);
echo "<br>";
echo "<a href=\"?act=toggle&id={$i}\">";
OpenPOWER on IntegriCloud