summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-05-19 22:02:30 +0000
committerErmal <eri@pfsense.org>2010-05-19 22:03:32 +0000
commit091cb5e9ee8ec06fce9fd787fa109fd24ed75b19 (patch)
tree31da94c10b25c446216ee89b1d9e4e81bf0cb5a9
parentcd25a2b2eee21ded884a184f8b4f8f0ffeaafefe (diff)
downloadpfsense-091cb5e9ee8ec06fce9fd787fa109fd24ed75b19.zip
pfsense-091cb5e9ee8ec06fce9fd787fa109fd24ed75b19.tar.gz
Add a global declaration.
-rwxr-xr-xusr/local/captiveportal/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index c100ecf..56cddc0 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -234,7 +234,7 @@ function portal_mac_radius($clientmac,$clientip) {
function portal_allow($clientip,$clientmac,$username,$password = null, $attributes = null, $ruleno = null) {
- global $redirurl, $g, $config, $url_redirection, $type;
+ global $redirurl, $g, $config, $url_redirection, $type, $passthrumac;
/* See if a ruleno is passed, if not start locking the sessions because this means there isn't one atm */
$captiveshouldunlock = false;
@@ -402,7 +402,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
else
$my_redirurl = $redirurl;
- if(isset($config['captiveportal']['logoutwin_enable']) && !isset($config['captiveportal']['passthrumacadd'])) {
+ if(isset($config['captiveportal']['logoutwin_enable']) && !$passthrumac) {
if (isset($config['captiveportal']['httpslogin']))
$logouturl = "https://{$config['captiveportal']['httpsname']}:8001/";
OpenPOWER on IntegriCloud