488,7 → 488,7 |
<title><?= $l_loggingin ?></title> |
<script type="text/javascript"> |
function doOnLoad(result, userurl, redirurl, adminurl, timeleft) { |
if ((result === 1) || (result === 4)) { //success or already |
if ((result === 1) || (result === 4)) { // success or already |
var url; |
if (adminurl !== '') { |
url = adminurl; |
499,16 → 499,18 |
} |
|
if (typeof url !== 'undefined') { |
var win = window.open(url, '_blank'); |
if (win !== null) { |
win.focus(); |
var win = window.open('<?= $statuspath ?>', '_blank'); |
|
if (win === null) { // Pop-up blocked |
window.location = '<?= $statuspath ?>'; |
} else { |
window.location = url; |
} |
} else { |
window.location = '<?= $statuspath ?>'; |
} |
|
// Redirect to status page |
window.location = '<?= $statuspath ?>'; |
} |
if ((result === 2) || (result === 3) || result === 5) { //failed or logoff or notyet |
if ((result === 2) || (result === 3) || result === 5) { // failed or logoff or notyet |
document.form1.UserName.focus(); |
} |
} |
518,13 → 520,13 |
<body onLoad="javascript:doOnLoad(<?= $result ?>,'<?= $userurl ?>','<?= $redirurl ?>','<?= $adminurl ?>','<?= $timeleft ?>')"> |
<center> |
|
<?php if ($result === 2 || $result === 3 || $result === 5): //failed or logoff or notyet ?> |
<?php if ($result === 2 || $result === 3 || $result === 5): // failed or logoff or notyet ?> |
<div id="logon"> |
<h1><?= $organisme ?></h1> |
<h2><?= $l_loggedcont ?></h2> |
<?php if ($result === 2): //failed ?> |
<?php if ($result === 2): // failed ?> |
<h3><?= $l_loginfailed ?></h3> |
<?php if ($reply): //traitement du reply ... ?> |
<?php if ($reply): // traitement du reply ... ?> |
<center><?= $reply ?><br><br></center> |
<?php endif; ?> |
<?php endif; |