Revision 09eafb8b
Added by Scott Ullrich over 19 years ago
usr/local/www/firewall_shaper.php | ||
---|---|---|
34 | 34 |
|
35 | 35 |
require("guiconfig.inc"); |
36 | 36 |
|
37 |
/* redirect to wizard if shaper isn't already configured */ |
|
38 |
if(isset($config['shaper']['enable'])) { |
|
39 |
$pconfig['enable'] = TRUE; |
|
40 |
} else { |
|
41 |
if(!is_array($config['shaper']['queue'])) |
|
42 |
Header("Location: wizard.php?xml=traffic_shaper_wizard.xml"); |
|
43 |
} |
|
44 |
|
|
37 | 45 |
if (!is_array($config['shaper']['rule'])) { |
38 | 46 |
$config['shaper']['rule'] = array(); |
39 | 47 |
} |
48 |
|
|
40 | 49 |
if (!is_array($config['shaper']['queue'])) { |
41 | 50 |
$config['shaper']['queue'] = array(); |
42 | 51 |
} |
52 |
|
|
43 | 53 |
$a_shaper = &$config['shaper']['rule']; |
44 | 54 |
$a_queue = &$config['shaper']['queue']; |
45 | 55 |
|
46 |
/* redirect to wizard if shaper isn't already configured */ |
|
47 |
if(isset($config['shaper']['enable'])) { |
|
48 |
$pconfig['enable'] = TRUE; |
|
49 |
} else { |
|
50 |
Header("Location: wizard.php?xml=traffic_shaper_wizard.xml"); |
|
51 |
} |
|
52 |
|
|
53 | 56 |
function wipe_magic () { |
54 | 57 |
global $config; |
55 | 58 |
|
Also available in: Unified diff
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.