diff options
author | Scott Ullrich <sullrich@gmail.com> | 2011-07-22 20:09:38 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2011-07-22 20:09:50 -0400 |
commit | 1a700ea631c14d43b056221e38b7f88d889aa976 (patch) | |
tree | db97fcca3bb5dd5dd97e6c41c48c3413da41cbf8 /usr | |
parent | 1ee5815c75aa282f05a8f6b9cc581969358557a7 (diff) | |
download | pfsense-1a700ea631c14d43b056221e38b7f88d889aa976.zip pfsense-1a700ea631c14d43b056221e38b7f88d889aa976.tar.gz |
Adding apply hooks
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_nat.php | 2 | ||||
-rwxr-xr-x | usr/local/www/firewall_rules.php | 2 |
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>"); } } |