Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2200 → Rev 2201

/web/intercept.php
497,28 → 497,28
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<script type="text/javascript">
var 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 ((result === 1) || (result === 4)) { //success or already
//window.location = userurl;
if (alcasar_popup !== null) alcasar_popup.focus();
var url;
if (adminurl !== '') {
window.location = adminurl;
url = adminurl;
} else if (redirurl !== '') {
window.location = redirurl;
} else if (userurl !== '') {
window.location = userurl;
} else {
window.home();
url = redirurl;
} else if (userurl !== '') {
url = userurl;
}
 
if (typeof url !== 'undefined') {
var win = window.open(url, '_blank');
if (win !== null) {
win.focus();
}
}
 
// Redirect to status page
window.location = '<?= $statuspath ?>';
}
if ((result === 2) || (result === 3) || result === 5) { //failed or logoff or notyet
if (alcasar_popup !== null) alcasar_popup.close();
document.form1.UserName.focus();
}
}
557,7 → 557,7
<td align="left"><input maxLength="32" type="password" name="Password" autocomplete="off"></td>
</tr>
<tr>
<td height="23" align="left"><input value="<?= $l_boutonO ?>" type="submit" name="button" onclick="window.open('<?= $statuspath ?>', '_blank');"></td>
<td height="23" align="left"><input value="<?= $l_boutonO ?>" type="submit" name="button"></td>
<?php
$service_SMS_status = false;
if ($service_SMS_status): ?>