66,8 → 66,8 |
|
# Our own path |
$loginpath = $_SERVER['PHP_SELF']; |
$alcasarpath = "http://alcasar.".trim($conf["DOMAIN"]); |
$statuspath = $alcasarpath."/status.php"; |
$alcasarpath = "http://alcasar.".trim($conf["DOMAIN"]); |
$statuspath = $alcasarpath."/status.php"; |
$debug = false; |
|
# Choice of language |
389,44 → 389,36 |
<html> |
<head> |
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> |
<title>$l_loggingin</title> |
<meta http-equiv=\"Cache-control\" content=\"no-cache\"> |
<meta http-equiv=\"Pragma\" content=\"no-cache\"> |
<script type=\"text/javascript\" language=\"JavaScript\"> |
var blur = 0; // not un use |
var mytimeleft = 0; // not un use |
<title>$l_loggingin</title> |
<meta http-equiv=\"Cache-control\" content=\"no-cache\"> |
<meta http-equiv=\"Pragma\" content=\"no-cache\"> |
<script type=\"text/javascript\" language=\"JavaScript\"> |
alcasar_popup = null; |
|
function popUp(URL) { |
if (self.name != \"alcasar_popup\") { |
alcasar_popup = window.open(URL, 'alcasar_popup', 'width=500,height=460,directories=no,resizable=no,scrollbars=yes,location=no,toolbar=no,statusbar=no,menubar=no'); |
} |
} |
|
function doOnLoad(result, userurl, redirurl, adminurl, timeleft) { |
if (timeleft) { // not in use |
mytimeleft = timeleft; |
} |
if ((result == 1)||(result == 4)) { //success or already |
//window.location = userurl; |
if (alcasar_popup != null) alcasar_popup.focus(); |
|
if (adminurl != ''){ |
window.location = adminurl; |
} else if (redirurl != '') { |
window.location = redirurl; |
} else if (userurl != '') { |
window.location = userurl; |
} else { |
window.home(); |
} |
} |
if ((result == 2) || (result == 3) || result == 5) { //failed or logoff or notyet |
if (alcasar_popup != null) alcasar_popup.close(); |
function popUp(URL) { |
if (self.name != \"alcasar_popup\") { |
alcasar_popup = window.open(URL, 'alcasar_popup', 'width=500,height=460,directories=no,resizable=no,scrollbars=yes,location=no,toolbar=no,statusbar=no,menubar=no'); |
} |
} |
function doOnLoad(result, userurl, redirurl, adminurl, timeleft) { |
if ((result == 1)||(result == 4)) { //success or already |
//window.location = userurl; |
if (alcasar_popup != null) alcasar_popup.focus(); |
if (adminurl != ''){ |
window.location = adminurl; |
} else if (redirurl != '') { |
window.location = redirurl; |
} else if (userurl != '') { |
window.location = userurl; |
} else { |
window.home(); |
} |
} |
if ((result == 2) || (result == 3) || result == 5) { //failed or logoff or notyet |
if (alcasar_popup != null) alcasar_popup.close(); |
document.form1.UserName.focus(); |
} |
} |
</script> |
} |
} |
</script> |
<link rel=\"stylesheet\" href=\"/css/style_intercept.css\" type=\"text/css\"> |
</head> |
<body onLoad=\"javascript:doOnLoad($result,'$userurl','$redirurl','$adminurl','$timeleft')\"> |
444,6 → 436,7 |
echo "<center> $reply <br /><br /></center>"; |
} |
} |
if ($userurl == "http://logout/") $userurl="http://www.qwant.com"; //avoid cyclic logout |
echo " |
<img id=\"logo-alcasar\" src=\"/images/logo-alcasar.png\"> |
<form name=\"form1\" method=\"post\" action=\"$loginpath\"> |