echo"An error occurred. Please check the system logs for more information.";
log_error("Zone: {$cpzone} - Captive portal could not determine client's MAC address. Disable MAC address filtering in captive portal if you do not need this functionality.");
ob_flush();
return;
}
$clientmac=$tmpres;
unset($tmpres);
$tmpres=ip_to_mac($clientip);
if(!$tmpres){
/* unable to find MAC address - shouldn't happen! - bail out */
echo"An error occurred. Please check the system logs for more information.";
log_error("Zone: {$cpzone} - Captive portal could not determine client's MAC address. Disable MAC address filtering in captive portal if you do not need this functionality.");
ob_flush();
return;
}
$clientmac=$tmpres;
unset($tmpres);
}
/* find out if we need RADIUS + RADIUSMAC or not */