diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-23 18:56:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-23 18:56:37 +0000 |
commit | b3e7dc67ede432b344538544eb2fa0f1d4174dba (patch) | |
tree | 6fe4f5db881ea7e02f4756b12f5faf64279c6a93 /usr/local/www/firewall_shaper_queues.php | |
parent | c2b6723a3ad65a7e07d7bc9da4c78f952fba789c (diff) | |
download | pfsense-b3e7dc67ede432b344538544eb2fa0f1d4174dba.zip pfsense-b3e7dc67ede432b344538544eb2fa0f1d4174dba.tar.gz |
MFC 7079
Force users to use wizard if shaper isn't enabled as wizard is currently the ONLY supported path to use the shaper.
Diffstat (limited to 'usr/local/www/firewall_shaper_queues.php')
-rwxr-xr-x | usr/local/www/firewall_shaper_queues.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/firewall_shaper_queues.php b/usr/local/www/firewall_shaper_queues.php index a07538c..cc2c86f 100755 --- a/usr/local/www/firewall_shaper_queues.php +++ b/usr/local/www/firewall_shaper_queues.php @@ -44,6 +44,14 @@ if (!is_array($config['shaper']['queue'])) { } $a_queues = &$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"); +} + + $iflist = array("lan" => "LAN", "wan" => "WAN"); for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { |