390,6 → 390,14 |
if (isset($_GET['timeleft'])) $timeleft = htmlspecialchars($_GET['timeleft']); |
if (isset($_GET['redirurl'])) $redirurl = htmlspecialchars($_GET['redirurl']); |
|
// Get required parameters from CoovaChilli config file if missing |
if (empty($uamip)) { |
$uamip = trim(exec('grep uamlisten /etc/chilli.conf | sed -e "s/uamlisten//"')); |
} |
if (empty($uamport)) { |
$uamport = trim(exec('grep uamport /etc/chilli.conf | sed -e "s/uamport//"')); |
} |
|
# translation of radius replies |
if (isset($reply)) { |
switch (trim($reply)) { |
426,7 → 434,7 |
header('Cache-Control: post-check=0, pre-check=0', false); |
header('Pragma: no-cache'); |
|
header('Location: http://$uamip:$uamport/logon?username=$username&password=$pappassword&userurl=$userurl'); |
header("Location: http://$uamip:$uamport/logon?username=$username&password=$pappassword&userurl=$userurl"); |
?> |
<!DOCTYPE html> |
<html> |
489,7 → 497,7 |
header('Cache-Control: post-check=0, pre-check=0', false); |
header('Pragma: no-cache'); |
|
header('Location: http://$uamip:$uamport/prelogin'); |
header("Location: http://$uamip:$uamport/prelogin"); |
?> |
<!DOCTYPE html> |
<html> |