5 if(!file_exists(getcwd().
'/ilias.ini.php'))
7 header(
'Location: ./setup/setup.php');
11 require_once
'Services/Init/classes/class.ilInitialisation.php';
13 $ilInit->returnBeforeAuth(
true);
17 include_once
'Services/JSON/classes/class.ilJsonUtil.php';
23 SELECT data, last_remind_ts FROM usr_session
24 WHERE session_id = %s ORDER BY expires DESC',
26 array(
$_GET[
'session_id']));
37 $pattern =
"idle\";i:";
38 if(($lft_pos = strpos(
$data, $pattern)) !==
false)
40 $substr = substr(
$data, $lft_pos + strlen($pattern));
42 if(($rgt_pos = strpos($substr, $pattern)) !==
false)
44 $expiresTime = (int)substr($substr, 0, $rgt_pos);
48 if($expiresTime === null)
55 $leadTime =
$_GET[
'lead_time'];
56 $expiresTime += $ilClientIniFile->readVariable(
'session',
'expire');
61 include_once
'Services/Calendar/classes/class.ilDate.php';
66 UPDATE usr_session SET last_remind_ts = %s WHERE session_id = %s',
67 array(
'integer',
'text'),
73 'currentTime' => $currentTimeTxt,