From b3e7dc67ede432b344538544eb2fa0f1d4174dba Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 23 Oct 2005 18:56:37 +0000 Subject: MFC 7079 Force users to use wizard if shaper isn't enabled as wizard is currently the ONLY supported path to use the shaper. --- usr/local/www/firewall_shaper.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usr/local/www/firewall_shaper.php') diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php index 40133fd..b1e397a 100755 --- a/usr/local/www/firewall_shaper.php +++ b/usr/local/www/firewall_shaper.php @@ -43,7 +43,12 @@ if (!is_array($config['shaper']['queue'])) { $a_shaper = &$config['shaper']['rule']; $a_queue = &$config['shaper']['queue']; -$pconfig['enable'] = isset($config['shaper']['enable']); +/* 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; -- cgit v1.1