summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-20 04:47:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-20 04:47:31 +0000
commit664c2cb5e02e133c93a65c377a57cfa4fc738494 (patch)
tree3ed13681092ea54d704a931d498dc6bdeb99c9c1 /usr
parente65a287f12d889997245190669237cffbb601de9 (diff)
downloadpfsense-664c2cb5e02e133c93a65c377a57cfa4fc738494.zip
pfsense-664c2cb5e02e133c93a65c377a57cfa4fc738494.tar.gz
During traffic shaper wizard rewire the logo to remove shaper rules to basically abort the incremental shaper process
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_shaper.php2
-rwxr-xr-xusr/local/www/wizard.php5
2 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php
index 5ee634e..6c14c8f 100755
--- a/usr/local/www/firewall_shaper.php
+++ b/usr/local/www/firewall_shaper.php
@@ -62,7 +62,7 @@ function wipe_magic () {
filter_configure();
}
-if ($_POST['remove']) {
+if ($_POST['remove'] or $_GET['remove']) {
wipe_magic();
$savemsg = '<p><span class="red"><strong>Note: The traffic shaper has been disabled.</strong></span><strong><br>';
touch($d_shaperconfdirty_path);
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php
index 50e8154..ebfb02a 100755
--- a/usr/local/www/wizard.php
+++ b/usr/local/www/wizard.php
@@ -209,6 +209,11 @@ function enablechange() {
else
$ip = "/";
+if($_GET['xml'] == "traffic_shaper_wizard.xml" or
+ $_POST['xml'] == "traffic_shaper_wizard.xml") {
+ $ip .= "firewall_shaper.php?remove=true";
+}
+
?>
<a href="<?php echo $ip; ?>"><img border="0" src="./themes/<?= $g['theme']; ?>/images/logo.gif"></a>
OpenPOWER on IntegriCloud