Revision ae52d165
Added by Renato Botelho over 10 years ago
etc/inc/captiveportal.inc | ||
---|---|---|
656 | 656 |
|
657 | 657 |
/* Is there any job to do? */ |
658 | 658 |
if (!$timeout && !$idletimeout && !isset($cpcfg['reauthenticate']) && |
659 |
!isset($cpcfg['radiussession_timeout']) && !isset($vcpcfg['enable'])) {
|
|
659 |
!isset($cpcfg['radiussession_timeout']) && !isset($vcpcfg['enable'])) {
|
|
660 | 660 |
return; |
661 | 661 |
} |
662 | 662 |
|
... | ... | |
1232 | 1232 |
global $config, $g, $cpzone; |
1233 | 1233 |
|
1234 | 1234 |
/* generate radius server database */ |
1235 |
if ($config['captiveportal'][$cpzone]['radiusip'] && (!isset($config['captiveportal'][$cpzone]['auth_method']) ||
|
|
1236 |
($config['captiveportal'][$cpzone]['auth_method'] == "radius"))) {
|
|
1235 |
if ($config['captiveportal'][$cpzone]['radiusip'] && |
|
1236 |
(!isset($config['captiveportal'][$cpzone]['auth_method']) || $config['captiveportal'][$cpzone]['auth_method'] == "radius")) {
|
|
1237 | 1237 |
$radiusip = $config['captiveportal'][$cpzone]['radiusip']; |
1238 | 1238 |
$radiusip2 = ($config['captiveportal'][$cpzone]['radiusip2']) ? $config['captiveportal'][$cpzone]['radiusip2'] : null; |
1239 | 1239 |
$radiusip3 = ($config['captiveportal'][$cpzone]['radiusip3']) ? $config['captiveportal'][$cpzone]['radiusip3'] : null; |
... | ... | |
2316 | 2316 |
|
2317 | 2317 |
foreach ($config['captiveportal'][$cpzone]['passthrumac'] as $passthrumac) { |
2318 | 2318 |
if (($passthrumac['action'] == 'block') && |
2319 |
($passthrumac['mac'] == strtolower($mac))) {
|
|
2319 |
($passthrumac['mac'] == strtolower($mac))) {
|
|
2320 | 2320 |
return true; |
2321 | 2321 |
} |
2322 | 2322 |
} |
Also available in: Unified diff
Fix indent and remove some unecessary ()