summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-10-09 15:07:06 -0400
committerjim-p <jimp@pfsense.org>2012-10-09 15:17:00 -0400
commit3a343d7384fbf78f987e8c4c2d9f307d22c8a072 (patch)
tree4b07c4c6d174a70520ec4ca578ecfe3e94048589 /usr/local/www/firewall_rules.php
parentc9ba2f8a92b0e18b891af2049436d4a3a505f9d9 (diff)
downloadpfsense-3a343d7384fbf78f987e8c4c2d9f307d22c8a072.zip
pfsense-3a343d7384fbf78f987e8c4c2d9f307d22c8a072.tar.gz
Refine saving/applying on more pages - don't show apply or take an action unless the user is allowed to do that.
Diffstat (limited to 'usr/local/www/firewall_rules.php')
-rwxr-xr-xusr/local/www/firewall_rules.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php
index ea5dfe7..85e4eff 100755
--- a/usr/local/www/firewall_rules.php
+++ b/usr/local/www/firewall_rules.php
@@ -210,8 +210,7 @@ if ($_GET['act'] == "del") {
delete_nat_association($a_filter[$_GET['id']]['associated-rule-id']);
}
unset($a_filter[$_GET['id']]);
- $retval = write_config();
- if ($retval)
+ if (write_config())
mark_subsystem_dirty('filter');
header("Location: firewall_rules.php?if={$if}");
exit;
@@ -229,8 +228,7 @@ if (isset($_POST['del_x'])) {
delete_nat_association($a_filter[$rulei]['associated-rule-id']);
unset($a_filter[$rulei]);
}
- $retval = write_config();
- if ($retval)
+ if (write_config())
mark_subsystem_dirty('filter');
header("Location: firewall_rules.php?if={$if}");
exit;
@@ -241,8 +239,7 @@ if (isset($_POST['del_x'])) {
unset($a_filter[$_GET['id']]['disabled']);
else
$a_filter[$_GET['id']]['disabled'] = true;
- $retval = write_config();
- if ($retval)
+ if (write_config())
mark_subsystem_dirty('filter');
header("Location: firewall_rules.php?if={$if}");
exit;
@@ -286,8 +283,7 @@ if (isset($_POST['del_x'])) {
}
$a_filter = $a_filter_new;
- $retval = write_config();
- if ($retval)
+ if (write_config())
mark_subsystem_dirty('filter');
header("Location: firewall_rules.php?if={$if}");
exit;
OpenPOWER on IntegriCloud