Project

General

Profile

Download (629 Bytes) Statistics
| Branch: | Tag: | Revision:
1
require("config.inc");
2
require_once("functions.inc");
3
require_once("filter.inc");
4
require_once("shaper.inc");
5
require_once("rrd.inc");
6

    
7
/* Much of this borrowed from firewall_shaper.php */
8

    
9
echo gettext("Removing shaper settings...\n");
10

    
11
unset($config['shaper']['queue']);
12
unset($queue);
13
unset($altq);
14

    
15
foreach ($config['filter']['rule'] as $key => $rule) {
16
	if (isset($rule['wizard']) && $rule['wizard'] == "yes") {
17
		unset($config['filter']['rule'][$key]);
18
	}
19
}
20
if (write_config()) {
21
	echo gettext("Shaper Successfully Removed.\n");
22
} else {
23
	echo gettext("Unable to write config.xml (Access Denied?)\n");
24
}
25
filter_configure();
(14-14/18)