34 foreach(
$_GET as $k => $v)
38 $_GET[$k] = str_replace(array(
"\x00",
"\n",
"\r",
"\\",
"'",
'"',
"\x1a"),
"", $v);
53 $this->return_before_auth = $a_flag;
65 require_once(
"include/inc.get_pear.php");
66 require_once(
"include/inc.check_pear.php");
69 require_once
"./Services/Utilities/classes/class.ilUtil.php";
70 require_once
"classes/class.ilBenchmark.php";
76 $ilBench->start(
"Core",
"ElapsedTimeUntilFooter");
79 $ilBench->start(
"Core",
"HeaderInclude");
84 $ilBench->start(
"Core",
"HeaderInclude_IncludeFiles");
87 require_once
"PEAR.php";
89 require_once
"Auth/Auth.php";
104 @include_once
"HTML/Template/ITX.php";
105 if (class_exists(
"HTML_Template_ITX"))
107 include_once
"classes/class.ilTemplateHTMLITX.php";
111 include_once
"HTML/ITX.php";
112 include_once
"classes/class.ilTemplateITX.php";
115 require_once
"classes/class.ilTemplate.php";
118 require_once
"include/inc.db_session_handler.php";
119 require_once
"./Services/Database/classes/class.ilDB.php";
120 require_once
"./Services/AuthShibboleth/classes/class.ilShibboleth.php";
121 require_once
"classes/class.ilias.php";
122 require_once
'./Services/User/classes/class.ilObjUser.php';
123 require_once
"classes/class.ilFormat.php";
124 require_once
"./Services/Calendar/classes/class.ilDatePresentation.php";
125 require_once
"classes/class.ilSaxParser.php";
126 require_once
"./Services/Object/classes/class.ilObjectDefinition.php";
127 require_once
"./Services/Style/classes/class.ilStyleDefinition.php";
128 require_once
"./Services/Tree/classes/class.ilTree.php";
129 require_once
"./Services/Language/classes/class.ilLanguage.php";
130 require_once
"./Services/Logging/classes/class.ilLog.php";
131 require_once
"Services/Mail/classes/class.ilMailbox.php";
132 require_once
"classes/class.ilCtrl2.php";
133 require_once
"classes/class.ilConditionHandler.php";
134 require_once
"classes/class.ilBrowser.php";
135 require_once
"classes/class.ilFrameTargetInfo.php";
136 require_once
"Services/Navigation/classes/class.ilNavigationHistory.php";
137 require_once
"Services/Help/classes/class.ilHelp.php";
138 require_once
"include/inc.ilias_version.php";
141 require_once
"./Services/AccessControl/classes/class.ilAccessHandler.php";
142 require_once
"./Services/AccessControl/classes/class.ilRbacAdmin.php";
143 require_once
"./Services/AccessControl/classes/class.ilRbacSystem.php";
144 require_once
"./Services/AccessControl/classes/class.ilRbacReview.php";
147 require_once
"classes/class.ilObjectDataCache.php";
148 require_once
'Services/Tracking/classes/class.ilOnlineTracking.php';
151 require_once
"./Services/Locator/classes/class.ilLocatorGUI.php";
154 require_once
"classes/class.ilErrorHandling.php";
156 $ilBench->stop(
"Core",
"HeaderInclude_IncludeFiles");
167 if (version_compare(PHP_VERSION,
'5',
'>='))
171 require_once(
"include/inc.xml5compliance.php");
173 require_once(
"include/inc.xsl5compliance.php");
174 require_once(
"include/inc.php4compliance.php");
178 require_once(
"include/inc.php5compliance.php");
195 require_once(
"classes/class.ilIniFile.php");
196 $ilIliasIniFile =
new ilIniFile(
"./ilias.ini.php");
198 $ilIliasIniFile->read();
201 define(
"ILIAS_DATA_DIR",$ilIliasIniFile->readVariable(
"clients",
"datadir"));
202 define(
"ILIAS_WEB_DIR",$ilIliasIniFile->readVariable(
"clients",
"path"));
203 define(
"ILIAS_ABSOLUTE_PATH",$ilIliasIniFile->readVariable(
'server',
'absolute_path'));
206 define (
"ILIAS_LOG_DIR",$ilIliasIniFile->readVariable(
"log",
"path"));
207 define (
"ILIAS_LOG_FILE",$ilIliasIniFile->readVariable(
"log",
"file"));
208 define (
"ILIAS_LOG_ENABLED",$ilIliasIniFile->readVariable(
"log",
"enabled"));
209 define (
"ILIAS_LOG_LEVEL",$ilIliasIniFile->readVariable(
"log",
"level"));
212 define (
"PATH_TO_CONVERT",$ilIliasIniFile->readVariable(
"tools",
"convert"));
213 define (
"PATH_TO_ZIP",$ilIliasIniFile->readVariable(
"tools",
"zip"));
214 define (
"PATH_TO_MKISOFS",$ilIliasIniFile->readVariable(
"tools",
"mkisofs"));
215 define (
"PATH_TO_UNZIP",$ilIliasIniFile->readVariable(
"tools",
"unzip"));
216 define (
"PATH_TO_JAVA",$ilIliasIniFile->readVariable(
"tools",
"java"));
217 define (
"PATH_TO_HTMLDOC",$ilIliasIniFile->readVariable(
"tools",
"htmldoc"));
218 define (
"URL_TO_LATEX",$ilIliasIniFile->readVariable(
"tools",
"latex"));
219 define (
"PATH_TO_FOP",$ilIliasIniFile->readVariable(
"tools",
"fop"));
222 switch ($ilIliasIniFile->readVariable(
"tools",
"vscantype"))
225 define(
"IL_VIRUS_SCANNER",
"Sophos");
226 define(
"IL_VIRUS_SCAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"scancommand"));
227 define(
"IL_VIRUS_CLEAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"cleancommand"));
231 define(
"IL_VIRUS_SCANNER",
"AntiVir");
232 define(
"IL_VIRUS_SCAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"scancommand"));
233 define(
"IL_VIRUS_CLEAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"cleancommand"));
237 define(
"IL_VIRUS_SCANNER",
"ClamAV");
238 define(
"IL_VIRUS_SCAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"scancommand"));
239 define(
"IL_VIRUS_CLEAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"cleancommand"));
243 define(
"IL_VIRUS_SCANNER",
"None");
247 $tz = $ilIliasIniFile->readVariable(
"server",
"timezone");
250 if (function_exists(
'date_default_timezone_set'))
252 date_default_timezone_set($tz);
255 define (
"IL_TIMEZONE", $ilIliasIniFile->readVariable(
"server",
"timezone"));
268 include_once
'classes/class.ilHTTPS.php';
271 if($https->isDetected())
273 $protocol =
'https://';
277 $protocol =
'http://';
279 $host = $_SERVER[
'HTTP_HOST'];
281 $rq_uri = $_SERVER[
'REQUEST_URI'];
285 if (is_int($pos = strpos($rq_uri,
"?")))
287 $rq_uri = substr($rq_uri, 0, $pos);
290 if(!defined(
'ILIAS_MODULE'))
292 $path = pathinfo($rq_uri);
293 if(!$path[
'extension'])
299 $uri = dirname($rq_uri);
305 $path = dirname($rq_uri);
311 $dirs = explode(
'/',$module);
315 $uri = dirname($uri);
332 if (!is_object($ilIliasIniFile))
334 die (
"Fatal Error: ilInitialisation::determineClient called without initialisation of ILIAS ini file object.");
338 if (
$_GET[
"client_id"] !=
"")
340 if (!defined(
"IL_PHPUNIT_TEST"))
348 $client_id = $ilIliasIniFile->readVariable(
"clients",
"default");
353 if (!defined(
"IL_PHPUNIT_TEST"))
355 define (
"CLIENT_ID",
$_COOKIE[
"ilClientId"]);
359 define (
"CLIENT_ID",
$_GET[
"client_id"]);
377 global $ilClientIniFile;
382 die (
"Fatal Error: ilInitialisation::initClientIniFile called without ILIAS_WEB_DIR.");
388 die (
"Fatal Error: ilInitialisation::initClientIniFile called without CLIENT_ID.");
391 $ini_file =
"./".ILIAS_WEB_DIR.
"/".CLIENT_ID.
"/client.ini.php";
394 require_once(
"classes/class.ilIniFile.php");
395 $ilClientIniFile =
new ilIniFile($ini_file);
396 $GLOBALS[
'ilClientIniFile'] =& $ilClientIniFile;
397 $ilClientIniFile->read();
400 if ($ilClientIniFile->ERROR !=
"")
406 define (
"SESSION_REMINDER_LEADTIME", 30);
407 define (
"DEBUG",$ilClientIniFile->readVariable(
"system",
"DEBUG"));
408 define (
"DEVMODE",$ilClientIniFile->readVariable(
"system",
"DEVMODE"));
409 define (
"ROOT_FOLDER_ID",$ilClientIniFile->readVariable(
'system',
'ROOT_FOLDER_ID'));
410 define (
"SYSTEM_FOLDER_ID",$ilClientIniFile->readVariable(
'system',
'SYSTEM_FOLDER_ID'));
411 define (
"ROLE_FOLDER_ID",$ilClientIniFile->readVariable(
'system',
'ROLE_FOLDER_ID'));
412 define (
"MAIL_SETTINGS_ID",$ilClientIniFile->readVariable(
'system',
'MAIL_SETTINGS_ID'));
414 define (
"SYSTEM_MAIL_ADDRESS",$ilClientIniFile->readVariable(
'system',
'MAIL_SENT_ADDRESS'));
415 define (
"MAIL_REPLY_WARNING",$ilClientIniFile->readVariable(
'system',
'MAIL_REPLY_WARNING'));
417 define (
"MAXLENGTH_OBJ_TITLE",125);#$ilClientIniFile->readVariable(
'system',
'MAXLENGTH_OBJ_TITLE'));
418 define (
"MAXLENGTH_OBJ_DESC",$ilClientIniFile->readVariable(
'system',
'MAXLENGTH_OBJ_DESC'));
420 define (
"CLIENT_DATA_DIR",ILIAS_DATA_DIR.
"/".CLIENT_ID);
422 define (
"CLIENT_NAME",$ilClientIniFile->readVariable(
'client',
'name'));
424 $val = $ilClientIniFile->readVariable(
"db",
"type");
427 define (
"IL_DB_TYPE",
"mysql");
431 define (
"IL_DB_TYPE", $val);
441 global $ilClientIniFile;
443 if (!$ilClientIniFile->readVariable(
"client",
"access"))
445 if (is_file(
"./maintenance.html"))
452 die(
'<br /><p style="text-align:center;">The server is not '.
453 'available due to maintenance. We apologise for any inconvenience.</p>');
464 global
$ilDB, $ilClientIniFile;
467 require_once(
"./Services/Database/classes/class.ilDBWrapperFactory.php");
469 $ilDB->initFromIniFile();
480 global $ilAppEventHandler;
483 require_once(
"./Services/EventHandling/classes/class.ilAppEventHandler.php");
485 $GLOBALS[
'ilAppEventHandler'] =& $ilAppEventHandler;
496 if(ini_get(
'session.save_handler') !=
'user')
498 ini_set(
"session.save_handler",
"user");
502 die(
"Please turn off Safe mode OR set session.save_handler to \"user\" in your php.ini");
511 if($context ==
'webdav')
517 $cookie_path = dirname( $_SERVER[
'PHP_SELF'] );
525 $cookie_path .= (!preg_match(
"/[\/|\\\\]$/", $cookie_path)) ?
"/" :
"";
527 if($cookie_path ==
"\\") $cookie_path =
'/';
529 $cookie_domain = $_SERVER[
'SERVER_NAME'];
531 define(
'IL_COOKIE_EXPIRE',0);
532 define(
'IL_COOKIE_PATH',$cookie_path);
533 define(
'IL_COOKIE_DOMAIN',
'');
534 define(
'IL_COOKIE_SECURE',
false);
538 if( version_compare(PHP_VERSION,
'5.2.0',
'>=') )
541 define(
'IL_COOKIE_HTTPONLY',
false);
542 session_set_cookie_params(
543 IL_COOKIE_EXPIRE, IL_COOKIE_PATH, IL_COOKIE_DOMAIN, IL_COOKIE_SECURE, IL_COOKIE_HTTPONLY
549 session_set_cookie_params(
550 IL_COOKIE_EXPIRE, IL_COOKIE_PATH, IL_COOKIE_DOMAIN, IL_COOKIE_SECURE
562 require_once(
"Services/Administration/classes/class.ilSetting.php");
567 define (
"ANONYMOUS_USER_ID", $ilSetting->get(
"anonymous_user_id"));
568 define (
"ANONYMOUS_ROLE_ID", $ilSetting->get(
"anonymous_role_id"));
569 define (
"SYSTEM_USER_ID", $ilSetting->get(
"system_user_id"));
570 define (
"SYSTEM_ROLE_ID", $ilSetting->get(
"system_role_id"));
571 define (
"USER_FOLDER_ID", 7);
574 define (
"RECOVERY_FOLDER_ID", $ilSetting->get(
"recovery_folder_id"));
577 define (
"IL_INST_ID", $ilSetting->get(
"inst_id",0));
580 define (
"SUFFIX_REPL_DEFAULT",
"php,php3,php4,inc,lang,phtml,htaccess");
581 define (
"SUFFIX_REPL_ADDITIONAL", $ilSetting->get(
"suffix_repl_additional"));
592 $this->script = substr(strrchr($_SERVER[
"PHP_SELF"],
"/"),1);
593 $dirname = dirname($_SERVER[
"PHP_SELF"]);
594 $ilurl = @parse_url(ILIAS_HTTP_PATH);
597 $ilurl[
"path"] =
"/";
599 $subdir = substr(strstr($dirname,$ilurl[
"path"]),strlen($ilurl[
"path"]));
604 $num_subdirs = substr_count($subdir,
"/");
606 for ($i=1;$i<=$num_subdirs;$i++)
611 $this->updir = $updir;
622 $ilBench->start(
"Core",
"HeaderInclude_getStyleDefinitions");
624 $GLOBALS[
'styleDefinition'] =& $styleDefinition;
625 $styleDefinition->startParsing();
626 $ilBench->stop(
"Core",
"HeaderInclude_getStyleDefinitions");
635 global $styleDefinition;
639 include_once(
"./Services/Style/classes/class.ilObjStyleSettings.php");
640 if ($styleDefinition->styleExists(
$_GET[
'skin'],
$_GET[
'style']) &&
649 include_once(
"./Services/Style/classes/class.ilObjStyleSettings.php");
653 $ilias->account->skin =
$_SESSION[
'skin'];
654 $ilias->account->prefs[
'style'] =
$_SESSION[
'style'];
666 $uid = $ilUser->checkUserId();
670 $ilUser->setId($uid);
674 #$rbacreview = new ilRbacReview();
675 #$GLOBALS['rbacreview'] =& $rbacreview;
676 #$_SESSION["RoleId"] = $rbacreview->assignedRoles($_SESSION["AccountId"]);
695 if (trim($ilSetting->get(
"locale") !=
""))
697 $larr = explode(
",", trim($ilSetting->get(
"locale")));
700 foreach ($larr as
$l)
709 setlocale(LC_ALL, $ls);
710 if (class_exists(
"Collator"))
712 $GLOBALS[
"ilCollator"] =
new Collator($first);
724 $clientip = $ilUser->getClientIP();
725 if (trim($clientip) !=
"")
727 $clientip = preg_replace(
"/[^0-9.?*,:]+/",
"",$clientip);
728 $clientip = str_replace(
".",
"\\.",$clientip);
729 $clientip = str_replace(Array(
"?",
"*",
","), Array(
"[0-9]",
"[0-9]*",
"|"), $clientip);
730 if (!preg_match(
"/^".$clientip.
"$/", $_SERVER[
"REMOTE_ADDR"]))
733 $ilias->account->getLogin().
":".$_SERVER[
"REMOTE_ADDR"].
":".$message);
746 $in_user_agreement =
false;
747 if (strtolower(
$_GET[
"cmdClass"]) ==
"ilstartupgui" &&
748 (strtolower(
$_GET[
"cmd"]) ==
"getacceptance" ||
749 (is_array(
$_POST[
"cmd"]) &&
750 key(
$_POST[
"cmd"]) ==
"getAcceptance")))
752 $in_user_agreement =
true;
757 if (!$ilUser->hasAcceptedUserAgreement() &&
758 $ilAuth->getAuth() &&
759 !$in_user_agreement &&
760 $ilUser->getId() != ANONYMOUS_USER_ID)
762 if($ilAuth->supportsRedirects())
764 ilUtil::redirect(
"ilias.php?baseClass=ilStartUpGUI&cmdClass=ilstartupgui&target=".
$_GET[
"target"].
"&cmd=getAcceptance");
785 $_POST[
"username"] =
"anonymous";
786 $_POST[
"password"] =
"anonymous";
790 if (ANONYMOUS_USER_ID ==
"")
792 die (
"Public Section enabled, but no Anonymous user found.");
794 if (!$ilAuth->getAuth())
796 die(
"ANONYMOUS user with the object_id ".ANONYMOUS_USER_ID.
" not found!");
800 if (
$_GET[
"target"] !=
"")
805 include_once(
"Services/Init/classes/class.ilStartUpGUI.php");
819 #ilUtil::redirect(ILIAS_HTTP_PATH.
820 # "/goto.php?target=".$_GET["target"].$survey_parameter);
828 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
830 $_GET[
"cmd"] =
"frameset";
831 $jump_script =
"repository.php";
833 $script = $this->updir.$jump_script.
"?reloadpublic=1&cmd=".
$_GET[
"cmd"].
"&ref_id=".
$_GET[
"ref_id"];
837 echo
"<script language=\"Javascript\">\ntop.location.href = \"".$script.
"\";\n</script>\n".
838 'Please click <a href="'.$script.
'">here</a> if you are not redirected automatically.';
854 if (
$_GET[
"soap_pw"] !=
"")
856 $add =
"&soap_pw=".$_GET[
"soap_pw"].
"&ext_uid=".
$_GET[
"ext_uid"];
859 $script = $this->updir.
"login.php?target=".
$_GET[
"target"].
"&client_id=".
$_COOKIE[
"ilClientId"].
860 "&auth_stat=".$a_auth_stat.$add;
868 if (is_int(strpos($PHP_SELF,
"goto.php")) &&
$_GET[
"soap_pw"] ==
"" &&
869 $_GET[
"reloadpublic"] !=
"1")
871 $script = $this->updir.
"goto.php?target=".
$_GET[
"target"].
"&client_id=".CLIENT_ID.
875 echo
"<script language=\"Javascript\">\ntop.location.href = \"".$script.
"\";\n</script>\n".
876 'Please click <a href="'.$script.
'">here</a> if you are not redirected automatically.';
890 $ilBench->start(
"Core",
"HeaderInclude_initLanguage");
900 if (is_object($ilUser))
902 $_GET[
"lang"] = $ilUser->getPref(
"language");
907 if (
$_POST[
'change_lang_to'] !=
"")
916 if (is_object($ilUser) && $ilUser->getId() != ANONYMOUS_USER_ID && $ilUser->getId() > 0)
918 $_SESSION[
'lang'] = $ilUser->getPref(
"language");
923 if (!in_array(
$_SESSION[
'lang'], $langs))
925 if (is_object($ilSetting) && $ilSetting->get(
"language") !=
"")
927 $_SESSION[
'lang'] = $ilSetting->get(
"language");
938 $ilBench->stop(
"Core",
"HeaderInclude_initLanguage");
942 if(is_object($rbacsystem))
944 $rbacsystem->initMemberView();
954 global
$ilBench, $rbacsystem, $rbacadmin, $rbacreview;
956 $ilBench->start(
"Core",
"HeaderInclude_initRBAC");
958 $GLOBALS[
'rbacreview'] =& $rbacreview;
961 $GLOBALS[
'rbacsystem'] =& $rbacsystem;
964 $GLOBALS[
'rbacadmin'] =& $rbacadmin;
968 $ilBench->stop(
"Core",
"HeaderInclude_initRBAC");
981 $ilTabs, $ilMainMenu, $rbacsystem, $ilNavigationHistory;
988 if (version_compare(PHP_VERSION,
'5.3.0',
'>='))
990 error_reporting((ini_get(
"error_reporting") & ~E_NOTICE) & ~E_DEPRECATED);
994 error_reporting(ini_get(
'error_reporting') & ~E_NOTICE);
1003 $ilBench->start(
"Core",
"HeaderInclude_GetErrorHandler");
1007 $ilBench->stop(
"Core",
"HeaderInclude_GetErrorHandler");
1030 ilUtil::setCookie(
"ilClientId", $ilIliasIniFile->readVariable(
"clients",
"default"));
1031 if (CLIENT_ID !=
"" && CLIENT_ID != $ilIliasIniFile->readVariable(
"clients",
"default"))
1033 ilUtil::redirect(
"index.php?client_id=".$ilIliasIniFile->readVariable(
"clients",
"default"));
1037 echo (
"Client $c does not exist. ".
'Please <a href="./index.php">click here</a> to return to the default client.');
1047 && isset(
$_GET[
'username']) && strlen(
$_GET[
'username'])
1048 && isset(
$_GET[
'password']) && strlen(
$_GET[
'password'])
1061 include_once(
"./Services/Component/classes/class.ilPluginAdmin.php");
1063 $GLOBALS[
'ilPluginAdmin'] = $ilPluginAdmin;
1076 require_once
'./classes/class.ilHTTPS.php';
1079 $https->enableSecureCookies();
1080 $https->checkPort();
1085 include_once(
"./Services/Authentication/classes/class.ilAuthUtils.php");
1098 session_regenerate_id();
1103 $ilBench->start(
"Core",
"HeaderInclude_GetILIASObject");
1104 $ilias =
new ILIAS();
1106 $ilBench->stop(
"Core",
"HeaderInclude_GetILIASObject");
1111 if (function_exists(
"xdebug_start_trace"))
1119 $GLOBALS[
'ilObjDataCache'] =& $ilObjDataCache;
1129 require_once
"include/inc.debug.php";
1133 $ilBench->start(
"Core",
"HeaderInclude_getObjectDefinitions");
1135 $GLOBALS[
'objDefinition'] =& $objDefinition;
1137 $ilBench->stop(
"Core",
"HeaderInclude_getObjectDefinitions");
1140 $tree =
new ilTree(ROOT_FOLDER_ID);
1148 $ilBench->start(
"Core",
"HeaderInclude_Authentication");
1154 if (!defined(
"IL_PHPUNIT_TEST"))
1160 $ilias->setAuthError($ilErr->getLastError());
1161 $ilBench->stop(
"Core",
"HeaderInclude_Authentication");
1164 if (
$_GET[
"cmd"] ==
"force_login" || $this->script ==
"login.php")
1167 if(!isset(
$_GET[
'forceShoppingCartRedirect']))
1171 $ilias->setAuthError($ilErr->getLastError());
1175 if (!$ilias->getSetting(
"setup_ok"))
1177 die(
"Setup is not completed. Please run setup routine again.");
1181 $ilBench->start(
"Core",
"HeaderInclude_getCurrentUser");
1183 $ilias->account =& $ilUser;
1185 $ilBench->stop(
"Core",
"HeaderInclude_getCurrentUser");
1198 if (in_array($this->script,
1199 array(
"login.php",
"register.php",
"view_usr_agreement.php"))
1200 ||
$_GET[
"baseClass"] ==
"ilStartUpGUI")
1212 if (AUTH_CURRENT ==
AUTH_LOCAL && !$ilAuth->getAuth() && $this->script ==
"login.php" &&
$_POST[
"username"] !=
"")
1221 $ilias->setAuthError($ilErr->getLastError());
1237 #if (($ilAuth->getAuth() && $ilias->account->isCurrentUserActive()) ||
1238 # (defined("IL_PHPUNIT_TEST") && DEVMODE))
1240 if($ilAuth->getStatus() ==
'' &&
1241 $ilias->account->isCurrentUserActive() ||
1242 (defined(
"IL_PHPUNIT_TEST") && DEVMODE))
1245 $ilBench->start(
"Core",
"HeaderInclude_getCurrentUserAccountData");
1258 if ($this->script ==
"login.php" ||
1259 $_GET[
"baseClass"] ==
"ilStartUpGUI")
1265 require_once(
'Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
1267 if( $security_settings->isPasswordChangeOnFirstLoginEnabled() &&
1268 null == $ilUser->getLastLogin() &&
1269 null == $ilUser->getApproveDate() )
1271 $ilUser->resetLastPasswordChange();
1274 $ilUser->refreshLogin();
1278 require_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
1280 if( $security_settings->getAccountSecurityMode() ==
1288 $_GET[
'limit'] =
$_SESSION[
'tbl_limit'] = (int) $ilUser->getPref(
'hits_per_page');
1296 if (
$_GET[
'offset'] !=
"")
1301 $ilBench->stop(
"Core",
"HeaderInclude_getCurrentUserAccountData");
1304 $this->script !=
"login.php"
1305 and $this->script !=
"shib_login.php"
1306 and $this->script !=
"shib_logout.php"
1307 and $this->script !=
"error.php"
1308 and $this->script !=
"index.php"
1309 and $this->script !=
"view_usr_agreement.php"
1310 and $this->script !=
"register.php"
1311 and $this->script !=
"chat.php"
1312 and $this->script !=
"pwassist.php"
1313 and $this->script !=
"confirmReg.php"
1322 if ($context ==
"webdav")
1324 $ilLog->write(__METHOD__.
': Current Auth Class: '. get_class($ilAuth));
1334 if ($ilAuth->getAuth() && !$ilUser->isCurrentUserActive())
1343 if (
$_GET[
"baseClass"] !=
"ilStartUpGUI")
1349 if(!$ilAuth->supportsRedirects())
1354 if ($ilSetting->get(
"pub_section") &&
1355 ($ilAuth->getStatus() ==
"" ||
1358 $_GET[
"reloadpublic"] !=
"1")
1364 if ($context ==
"web")
1381 else if(!$ilAuth->getAuth())
1383 require_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
1386 if( $security->getAccountSecurityMode() ==
1389 if(
$_POST[
'username'] && $ilUser->getId() == 0)
1394 if(
$usr_id != ANONYMOUS_USER_ID )
1399 $max_attempts = $security->getLoginMaxAttempts();
1401 if( $login_attempts >= $max_attempts &&
1428 if ( !isset(
$_SESSION[
"locator_level"]) )
1436 $GLOBALS[
'ilias_locator'] =& $ilias_locator;
1437 $GLOBALS[
'ilLocator'] =& $ilLocator;
1440 $ilBench->start(
"Core",
"HeaderInclude_getStyleDefinitions");
1442 $GLOBALS[
'styleDefinition'] =& $styleDefinition;
1443 $styleDefinition->startParsing();
1444 $ilBench->stop(
"Core",
"HeaderInclude_getStyleDefinitions");
1448 $tpl->setVariable(
"LOCATION_STYLESHEET",$location_stylesheet);
1452 $GLOBALS[
'ilNavigationHistory'] =& $ilNavigationHistory;
1458 $GLOBALS[
'ilBrowser'] =& $ilBrowser;
1465 include_once
'classes/class.ilTabsGUI.php';
1470 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
1472 $GLOBALS[
'ilToolbar'] =& $ilToolbar;
1475 include_once
'./Services/MainMenu/classes/class.ilMainMenuGUI.php';
1477 $GLOBALS[
'ilMainMenu'] =& $ilMainMenu;
1483 include_once(
'./Services/WebServices/ECS/classes/class.ilECSTaskScheduler.php');
1485 $scheduler->start();
1487 $ilBench->stop(
"Core",
"HeaderInclude");
1500 $ilTabs, $ilMainMenu, $rbacsystem, $ilNavigationHistory;
1513 $ilBench->start(
"Core",
"HeaderInclude_GetErrorHandler");
1517 $ilBench->stop(
"Core",
"HeaderInclude_GetErrorHandler");
1532 ilUtil::setCookie(
"ilClientId", $ilIliasIniFile->readVariable(
"clients",
"default"));
1533 echo (
"Client $c does not exist. Please reload this page to return to the default client.");
1544 include_once(
"./Services/Component/classes/class.ilPluginAdmin.php");
1546 $GLOBALS[
'ilPluginAdmin'] = $ilPluginAdmin;
1550 $GLOBALS[
'ilObjDataCache'] =& $ilObjDataCache;
1556 $tree =
new ilTree(ROOT_FOLDER_ID);
1560 $lng =
new ilLanguage($ilClientIniFile->readVariable(
"language",
"default"));
1567 $log =
new ilLog(ILIAS_LOG_DIR,ILIAS_LOG_FILE,CLIENT_ID,ILIAS_LOG_ENABLED,ILIAS_LOG_LEVEL);
1575 $ilBench->start(
"Core",
"HeaderInclude_GetILIASObject");
1576 $ilias =
new ILIAS();
1578 $ilBench->stop(
"Core",
"HeaderInclude_GetILIASObject");