summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-07 18:18:39 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-07 18:18:39 +0000
commit57b89461c5c3630736757db1da457e3bd64a00ab (patch)
treea8e00022d55f3e026a186b3bbc63e5c95c04be01 /usr/local/www/firewall_shaper.php
parent602d946642e8d7be1adb78ceed75c1b8513eed42 (diff)
downloadpfsense-57b89461c5c3630736757db1da457e3bd64a00ab.zip
pfsense-57b89461c5c3630736757db1da457e3bd64a00ab.tar.gz
Add Remove Wizard button
This should zap Ticket #137 to outter space.
Diffstat (limited to 'usr/local/www/firewall_shaper.php')
-rwxr-xr-xusr/local/www/firewall_shaper.php22
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>
&nbsp;<br>
OpenPOWER on IntegriCloud