diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-26 19:59:58 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-26 19:59:58 +0000 |
commit | 09eafb8b026c9a38311806656711e2b7cb5648fc (patch) | |
tree | e27558a8d7bd959fe777166f3820269f04be8cd8 /usr/local/www | |
parent | deb0fc8182afe42d94a84cecd302d19b251ce80d (diff) | |
download | pfsense-09eafb8b026c9a38311806656711e2b7cb5648fc.zip pfsense-09eafb8b026c9a38311806656711e2b7cb5648fc.tar.gz |
MFC 8044
Do not redirect to traffic shaper wizard on the shaper enabled status, only redirect if shaper is disabled AND there are no queues defined.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_shaper.php | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php index 9538c86..7f56142 100755 --- a/usr/local/www/firewall_shaper.php +++ b/usr/local/www/firewall_shaper.php @@ -34,22 +34,25 @@ require("guiconfig.inc"); +/* redirect to wizard if shaper isn't already configured */ +if(isset($config['shaper']['enable'])) { + $pconfig['enable'] = TRUE; +} else { + if(!is_array($config['shaper']['queue'])) + Header("Location: wizard.php?xml=traffic_shaper_wizard.xml"); +} + if (!is_array($config['shaper']['rule'])) { $config['shaper']['rule'] = array(); } + if (!is_array($config['shaper']['queue'])) { $config['shaper']['queue'] = array(); } + $a_shaper = &$config['shaper']['rule']; $a_queue = &$config['shaper']['queue']; -/* redirect to wizard if shaper isn't already configured */ -if(isset($config['shaper']['enable'])) { - $pconfig['enable'] = TRUE; -} else { - Header("Location: wizard.php?xml=traffic_shaper_wizard.xml"); -} - function wipe_magic () { global $config; |