Project

General

Profile

Bug #15026 ยป 2005-10-17_bugfix_1570_3.patch

Administrator Admin, 2005-10-25 09:51

View differences:

TYPO3core/typo3/alt_main.php 2005-10-25 09:48:47.000000000 +0200
this.openRefreshWindow = busy_OpenRefreshWindow;
this.busyloadTime=0;
this.openRefreshW=0;
this.reloginCancelled=0;
}
function busy_loginRefreshed() { //
var date = new Date();
......
function busy_checkLoginTimeout() { //
var date = new Date();
var theTime = Math.floor(date.getTime()/1000);
if (theTime > this.busyloadTime+'.intval($BE_USER->auth_timeout_field).'-10) {
if (theTime > this.busyloadTime+'.intval($BE_USER->auth_timeout_field).'-30) {
return true;
}
}
......
this.openRefreshW=1;
}
function busy_checkLoginTimeout_timer() { //
if (busy.checkLoginTimeout()) {
if (!busy.openRefreshW && confirm('.$GLOBALS['LANG']->JScharCode($LANG->sL('LLL:EXT:lang/locallang_core.php:mess.refresh_login')).')) {
if (busy.checkLoginTimeout() && !busy.reloginCancelled && !busy.openRefreshW) {
if(confirm('.$GLOBALS['LANG']->JScharCode($LANG->sL('LLL:EXT:lang/locallang_core.php:mess.refresh_login')).')) {
busy.openRefreshWindow();
} else {
busy.reloginCancelled = 1;
}
}
window.setTimeout("busy_checkLoginTimeout_timer();",2*1000); // Each 2nd second is enough for checking. The popup will be triggered 10 seconds before the login expires (see above, busy_checkLoginTimeout())
    (1-1/1)