diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-03-19 00:00:52 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-03-19 00:00:52 +0000 |
commit | 96b777d6f18223618d1814bacc9552549cf60f30 (patch) | |
tree | b2d56d96647344d5e29318f2b1f8a092c95acb89 /usr/local/www/firewall_shaper_wizards.php | |
parent | 87bdd838333187b70891c7dd9aad8b5462f66ab4 (diff) | |
download | pfsense-96b777d6f18223618d1814bacc9552549cf60f30.zip pfsense-96b777d6f18223618d1814bacc9552549cf60f30.tar.gz |
Remove rrd files every time the wizard changes(for now).
Diffstat (limited to 'usr/local/www/firewall_shaper_wizards.php')
-rwxr-xr-x | usr/local/www/firewall_shaper_wizards.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/usr/local/www/firewall_shaper_wizards.php b/usr/local/www/firewall_shaper_wizards.php index 45b7171..ed10eef 100755 --- a/usr/local/www/firewall_shaper_wizards.php +++ b/usr/local/www/firewall_shaper_wizards.php @@ -35,6 +35,29 @@ if($_GET['reset'] <> "") { exit; } +if ($_POST['apply']) { + write_config(); + + $retval = 0; + $savemsg = get_std_save_message($retval); + /* Setup pf rules since the user may have changed the optimization value */ + + config_lock(); + $retval = filter_configure(); + config_unlock(); + if (stristr($retval, "error") <> true) + $savemsg = get_std_save_message($retval); + else + $savemsg = $retval; + + /* reset rrd queues */ + system("rm -f /var/db/rrd/*queuedrops.rrd"); + system("rm -f /var/db/rrd/*queues.rrd"); + enable_rrd_graphing(); + + unlink($d_shaperconfdirty_path); +} + $pgtitle = array("Firewall", "Traffic Shaper", "Wizards"); $wizards = array("Single Lan multi Wan" => "traffic_shaper_wizard.xml", |