diff options
-rwxr-xr-x | usr/local/www/firewall_shaper.php | 2 | ||||
-rwxr-xr-x | usr/local/www/firewall_shaper_queues.php | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php index c0e5d27..8cf3461 100755 --- a/usr/local/www/firewall_shaper.php +++ b/usr/local/www/firewall_shaper.php @@ -56,6 +56,8 @@ if ($_POST) { } 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 */ 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 */ |