summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper_queues.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-02-23 02:22:30 +0000
committerErmal Luçi <eri@pfsense.org>2008-02-23 02:22:30 +0000
commit21a0464c1a66792acd91e852c47d7838c49df303 (patch)
treed8d106d0dab053c921ab41a2a142faff0202648e /usr/local/www/firewall_shaper_queues.php
parent8e2a7e8a28d893c287afc69538e7fdb30002ba86 (diff)
downloadpfsense-21a0464c1a66792acd91e852c47d7838c49df303.zip
pfsense-21a0464c1a66792acd91e852c47d7838c49df303.tar.gz
* Unbreak rrd graphs for queues and make them multiinterface aware
* Add a new tab for queuedrops with multiinterface there is no way to have them in the same tab * Remove $GLOBAL where used and use proper accessor functions * Remove Manuel from copyright this file has been rewritten * Some bugs fixes in general
Diffstat (limited to 'usr/local/www/firewall_shaper_queues.php')
-rwxr-xr-xusr/local/www/firewall_shaper_queues.php20
1 files changed, 5 insertions, 15 deletions
diff --git a/usr/local/www/firewall_shaper_queues.php b/usr/local/www/firewall_shaper_queues.php
index f65e61b..7b67df3 100755
--- a/usr/local/www/firewall_shaper_queues.php
+++ b/usr/local/www/firewall_shaper_queues.php
@@ -6,10 +6,6 @@
Copyright (C) 2008 Ermal Luçi
All rights reserved.
- Originally part of m0n0wall (http://m0n0.ch/wall)
- Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
- All rights reserved.
-
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
@@ -39,20 +35,14 @@ if($_GET['reset'] <> "") {
exit;
}
-if (!is_array($config['shaper']['queue'])) {
- $config['shaper']['queue'] = array();
-}
-
-/* on HEAD it has to use vc_* api on variable_cache.inc */
-if (!is_array($GLOBALS['allqueue_list'])) {
- $GLOBALS['allqueue_list'] = array();
-}
-
-/* XXX: NOTE: When dummynet is implemented these will be moved from here */
read_altq_config();
+$qlist =& get_unique_queue_list();
+
+if (!is_array($qlist))
+ $qlist = array();
$tree = "<ul class=\"tree\" >";
-foreach ($GLOBALS['allqueue_list'] as $queue) {
+foreach ($qlist as $queue => $qkey) {
$tree .= "<li><a href=\"firewall_shaper_queues.php?queue={$queue}&action=show\" >{$queue}</a></li>";
}
$tree .= "</ul>";
OpenPOWER on IntegriCloud