Project

General

Profile

« Previous | Next » 

Revision 091cb5e9

Added by Ermal LUÇI over 15 years ago

Add a global declaration.

View differences:

usr/local/captiveportal/index.php
234 234

  
235 235
function portal_allow($clientip,$clientmac,$username,$password = null, $attributes = null, $ruleno = null)  {
236 236

  
237
	global $redirurl, $g, $config, $url_redirection, $type;
237
	global $redirurl, $g, $config, $url_redirection, $type, $passthrumac;
238 238

  
239 239
	/* See if a ruleno is passed, if not start locking the sessions because this means there isn't one atm */
240 240
	$captiveshouldunlock = false;
......
402 402
	else
403 403
		$my_redirurl = $redirurl;
404 404

  
405
	if(isset($config['captiveportal']['logoutwin_enable']) && !isset($config['captiveportal']['passthrumacadd'])) {
405
	if(isset($config['captiveportal']['logoutwin_enable']) && !$passthrumac) {
406 406

  
407 407
		if (isset($config['captiveportal']['httpslogin']))
408 408
			$logouturl = "https://{$config['captiveportal']['httpsname']}:8001/";

Also available in: Unified diff