From e8731417fc2f3af4c9607fd3e4de123383cced49 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 8 Feb 2005 18:25:50 +0000 Subject: If the user is applying the traffic shaper rules enable the service first. --- usr/local/www/firewall_shaper_queues.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'usr/local/www/firewall_shaper_queues.php') diff --git a/usr/local/www/firewall_shaper_queues.php b/usr/local/www/firewall_shaper_queues.php index 94169d5..df35c81 100755 --- a/usr/local/www/firewall_shaper_queues.php +++ b/usr/local/www/firewall_shaper_queues.php @@ -48,6 +48,25 @@ for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { $iflist['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; } +if ($_POST['apply'] || $_POST['submit']) { + $config['shaper']['enable'] = true; + 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; + + if(file_exists($d_shaperconfdirty_path)) + unlink($d_shaperconfdirty_path); +} + if ($_GET['act'] == "del") { if ($a_queues[$_GET['id']]) { /* check that no rule references this queue */ -- cgit v1.1