Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2239 → Rev 2238

/web/intercept.php
390,14 → 390,6
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)) {
434,7 → 426,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>
497,7 → 489,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>