diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-07 18:18:39 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-07 18:18:39 +0000 |
commit | 57b89461c5c3630736757db1da457e3bd64a00ab (patch) | |
tree | a8e00022d55f3e026a186b3bbc63e5c95c04be01 | |
parent | 602d946642e8d7be1adb78ceed75c1b8513eed42 (diff) | |
download | pfsense-57b89461c5c3630736757db1da457e3bd64a00ab.zip pfsense-57b89461c5c3630736757db1da457e3bd64a00ab.tar.gz |
Add Remove Wizard button
This should zap Ticket #137 to outter space.
-rwxr-xr-x | usr/local/www/firewall_shaper.php | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php index ee86994..b36c64f 100755 --- a/usr/local/www/firewall_shaper.php +++ b/usr/local/www/firewall_shaper.php @@ -45,6 +45,23 @@ $a_queue = &$config['shaper']['queue']; $pconfig['enable'] = isset($config['shaper']['enable']); +function wipe_magic () { + global $config; + + /* wipe previous */ + unset($config['shaper']['queue']); + unset($config['shaper']['rule']); + $config['shaper']['enable'] = FALSE; +} + +if ($_POST['remove']) { + wipe_magic(); + $savemsg = '<p><span class="red"><strong>Note: The traffic shaper has been disabled.</strong></span><strong><br>'; + touch($d_shaperconfdirty_path); + unset($config['shaper']['enable']); + write_config(); +} + if ($_POST) { if ($_POST['submit']) { @@ -191,8 +208,11 @@ if ($_GET['act'] == "del") { </strong></p></td> </tr> <tr> - <td> <input name="submit" type="submit" class="formbtn" value="Save"> + <td> + <input name="submit" type="submit" class="formbtn" value="Save"> + <input name="remove" type="submit" class="formbtn" id="remove" value="Remove Wizard"> </td> + </tr> </table> <br> |