diff options
Diffstat (limited to 'usr/local/www/services_captiveportal_mac.php')
-rw-r--r-- | usr/local/www/services_captiveportal_mac.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal_mac.php b/usr/local/www/services_captiveportal_mac.php index c0e73e5..c23a30f 100644 --- a/usr/local/www/services_captiveportal_mac.php +++ b/usr/local/www/services_captiveportal_mac.php @@ -72,9 +72,12 @@ if ($_POST) { $retval = 0; $rules = captiveportal_passthrumac_configure(); + @file_put_contents("{$['tmp_path']}/passthrumac_gui", $rules); + mwexec("/sbin/ipfw -x {$cpzoneid} "{$['tmp_path']}/passthrumac_gui"); $savemsg = get_std_save_message($retval); if ($retval == 0) clear_subsystem_dirty('passthrumac'); + @unlink("{$['tmp_path']}/passthrumac_gui"); } if ($_POST['postafterlogin']) { |