diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-01-12 09:33:20 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-01-12 09:33:20 +0100 |
commit | 7001542e3e454e66a36eaf300c4767a68cf3b4fb (patch) | |
tree | f1070cd4f2687fd856a1fc656d028b6530769331 /usr/local/www | |
parent | c9f04cd0558c8f95b4eb0030e37e4d382381d0c0 (diff) | |
download | pfsense-7001542e3e454e66a36eaf300c4767a68cf3b4fb.zip pfsense-7001542e3e454e66a36eaf300c4767a68cf3b4fb.tar.gz |
Fix typos and set needed variable
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/services_captiveportal_mac.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/services_captiveportal_mac.php b/usr/local/www/services_captiveportal_mac.php index c23a30f..f8de219 100644 --- a/usr/local/www/services_captiveportal_mac.php +++ b/usr/local/www/services_captiveportal_mac.php @@ -71,13 +71,14 @@ if ($_POST) { if ($_POST['apply']) { $retval = 0; + $cpzoneid = $a_cp[$cpzone]['cpzoneid']; $rules = captiveportal_passthrumac_configure(); - @file_put_contents("{$['tmp_path']}/passthrumac_gui", $rules); - mwexec("/sbin/ipfw -x {$cpzoneid} "{$['tmp_path']}/passthrumac_gui"); + @file_put_contents("{$g['tmp_path']}/passthrumac_gui", $rules); + mwexec("/sbin/ipfw -x {$cpzoneid} {$g['tmp_path']}/passthrumac_gui"); $savemsg = get_std_save_message($retval); if ($retval == 0) clear_subsystem_dirty('passthrumac'); - @unlink("{$['tmp_path']}/passthrumac_gui"); + @unlink("{$g['tmp_path']}/passthrumac_gui"); } if ($_POST['postafterlogin']) { |