4 include_once
'Services/Authentication/classes/class.ilSessionReminder.php';
29 public function getHtml()
41 require_once
'Services/jQuery/classes/class.iljQueryUtil.php';
44 require_once
'Services/YUI/classes/class.ilYuiUtil.php';
45 ilYuiUtil::initCookie();
47 $tpl->addJavaScript(
'./Services/Authentication/js/session_reminder.js');
49 $reminder_tpl =
new ilTemplate(
'tpl.session_reminder.html',
true,
true,
'Services/Authentication');
50 $reminder_tpl->setVariable(
'DEBUG', defined(
'DEVMODE') && DEVMODE ? 1 : 0);
51 $reminder_tpl->setVariable(
'CLIENT_ID', CLIENT_ID);
52 $reminder_tpl->setVariable(
'FREQUENCY', 60);
53 $reminder_tpl->setVariable(
'SESSION_ID_HASH', md5(session_id()));
54 $reminder_tpl->setVariable(
56 './sessioncheck.php?client_id=' . CLIENT_ID .
57 '&lang=' .
$lng->getLangKey()
60 return $reminder_tpl->get();
special template class to simplify handling of ITX/PEAR
setSessionReminder($session_reminder)
__construct(ilSessionReminder $session_reminder)
static initjQuery($a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template