diff options
Diffstat (limited to 'usr/local/www/firewall_shaper_edit.php')
-rwxr-xr-x | usr/local/www/firewall_shaper_edit.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/firewall_shaper_edit.php b/usr/local/www/firewall_shaper_edit.php index f547369..52cfca6 100755 --- a/usr/local/www/firewall_shaper_edit.php +++ b/usr/local/www/firewall_shaper_edit.php @@ -37,6 +37,13 @@ if (!is_array($config['shaper']['rule'])) { } $a_shaper = &$config['shaper']['rule']; +/* 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"); +} + $specialsrcdst = explode(" ", "any lan pptp"); $id = $_GET['id']; |