summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-07-22 20:09:38 -0400
committerScott Ullrich <sullrich@gmail.com>2011-07-22 20:09:50 -0400
commit1a700ea631c14d43b056221e38b7f88d889aa976 (patch)
treedb97fcca3bb5dd5dd97e6c41c48c3413da41cbf8 /usr
parent1ee5815c75aa282f05a8f6b9cc581969358557a7 (diff)
downloadpfsense-1a700ea631c14d43b056221e38b7f88d889aa976.zip
pfsense-1a700ea631c14d43b056221e38b7f88d889aa976.tar.gz
Adding apply hooks
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_nat.php2
-rwxr-xr-xusr/local/www/firewall_rules.php2
2 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php
index ac67291..d2a9caa 100755
--- a/usr/local/www/firewall_nat.php
+++ b/usr/local/www/firewall_nat.php
@@ -70,6 +70,8 @@ if ($_POST) {
$retval |= filter_configure();
$savemsg = get_std_save_message($retval);
+ pfSense_handle_custom_code("/usr/local/pkg/firewall_nat/apply");
+
if ($retval == 0) {
clear_subsystem_dirty('natconf');
clear_subsystem_dirty('filter');
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php
index cf44453..4cee5dd 100755
--- a/usr/local/www/firewall_rules.php
+++ b/usr/local/www/firewall_rules.php
@@ -194,6 +194,8 @@ if ($_POST) {
clear_subsystem_dirty('filter');
+ pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/apply");
+
$savemsg = sprintf(gettext("The settings have been applied. The firewall rules are now reloading in the background.<br/>You can also %s monitor %s the reload progress"),"<a href='status_filter_reload.php'>","</a>");
}
}
OpenPOWER on IntegriCloud