summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_mac.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-12 09:33:20 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-12 09:33:30 +0100
commitf3f885aa910a47680d753e65e18c6fc68722d70e (patch)
tree82e711e9e0e45dd3157506d783a849edb7ccadc2 /usr/local/www/services_captiveportal_mac.php
parent330591f5f58913cf1f93107c00fe50706e529099 (diff)
downloadpfsense-f3f885aa910a47680d753e65e18c6fc68722d70e.zip
pfsense-f3f885aa910a47680d753e65e18c6fc68722d70e.tar.gz
Fix typos and set needed variable
Diffstat (limited to 'usr/local/www/services_captiveportal_mac.php')
-rw-r--r--usr/local/www/services_captiveportal_mac.php7
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']) {
OpenPOWER on IntegriCloud