"") { /* XXX: Huh, why are we killing php? */ mwexec("/usr/bin/killall -9 pfctl php"); exit; } if ($_POST['apply']) { write_config(); $retval = 0; /* Setup pf rules since the user may have changed the optimization value */ $retval = filter_configure(); $savemsg = get_std_save_message($retval); 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(); clear_subsystem_dirty('shaper'); } $pgtitle = array("Firewall", "Traffic Shaper", "Wizards"); $wizards = array("Single Lan multi Wan" => "traffic_shaper_wizard.xml", "Single Wan multi Lan" => "traffic_shaper_wizard_multi_lan.xml", "Multiple Lan/Wan" => "traffic_shaper_wizard_multi_all.xml", "Dedicated Links" => "traffic_shaper_wizard_dedicated.xml", ); include("head.inc"); ?>