53 foreach(
$_GET as $k => $v)
57 $_GET[$k] = str_replace(array(
"\x00",
"\n",
"\r",
"\\",
"'",
'"',
"\x1a"),
"", $v);
73 require_once(
"include/inc.get_pear.php");
74 require_once(
"include/inc.check_pear.php");
77 require_once
"./Services/Utilities/classes/class.ilUtil.php";
78 require_once
"classes/class.ilBenchmark.php";
84 $ilBench->start(
"Core",
"ElapsedTimeUntilFooter");
87 $ilBench->start(
"Core",
"HeaderInclude");
92 $ilBench->start(
"Core",
"HeaderInclude_IncludeFiles");
95 require_once
"PEAR.php";
97 require_once
"Auth/Auth.php";
112 @include_once
"HTML/Template/ITX.php";
113 if (class_exists(
"HTML_Template_ITX"))
115 include_once
"classes/class.ilTemplateHTMLITX.php";
119 include_once
"HTML/ITX.php";
120 include_once
"classes/class.ilTemplateITX.php";
123 require_once
"classes/class.ilTemplate.php";
126 require_once
"include/inc.db_session_handler.php";
127 require_once
"classes/class.ilDBx.php";
128 require_once
"./Services/AuthShibboleth/classes/class.ilShibboleth.php";
129 require_once
"classes/class.ilias.php";
130 require_once
'./Services/User/classes/class.ilObjUser.php';
131 require_once
"classes/class.ilFormat.php";
132 require_once
"./Services/Calendar/classes/class.ilDatePresentation.php";
133 require_once
"classes/class.ilSaxParser.php";
134 require_once
"./Services/Object/classes/class.ilObjectDefinition.php";
135 require_once
"./Services/Style/classes/class.ilStyleDefinition.php";
136 require_once
"./Services/Tree/classes/class.ilTree.php";
137 require_once
"./Services/Language/classes/class.ilLanguage.php";
138 require_once
"./Services/Logging/classes/class.ilLog.php";
139 require_once
"Services/Mail/classes/class.ilMailbox.php";
140 require_once
"classes/class.ilCtrl.php";
141 require_once
"classes/class.ilConditionHandler.php";
142 require_once
"classes/class.ilBrowser.php";
143 require_once
"classes/class.ilFrameTargetInfo.php";
144 require_once
"Services/Navigation/classes/class.ilNavigationHistory.php";
145 require_once
"Services/Help/classes/class.ilHelp.php";
146 require_once
"include/inc.ilias_version.php";
149 require_once
"./Services/AccessControl/classes/class.ilAccessHandler.php";
150 require_once
"./Services/AccessControl/classes/class.ilRbacAdmin.php";
151 require_once
"./Services/AccessControl/classes/class.ilRbacSystem.php";
152 require_once
"./Services/AccessControl/classes/class.ilRbacReview.php";
155 require_once
"classes/class.ilObjectDataCache.php";
156 require_once
'Services/Tracking/classes/class.ilOnlineTracking.php';
160 require_once
"classes/class.ilLocatorGUI.php";
163 require_once
"classes/class.ilErrorHandling.php";
166 if (version_compare(PHP_VERSION,
'5',
'>='))
168 require_once(
"include/inc.xml5compliance.php");
171 require_once(
"include/inc.xsl5compliance.php");
172 require_once(
"include/inc.php4compliance.php");
176 require_once(
"include/inc.php5compliance.php");
179 $ilBench->stop(
"Core",
"HeaderInclude_IncludeFiles");
193 require_once(
"classes/class.ilIniFile.php");
194 $ilIliasIniFile =
new ilIniFile(
"./ilias.ini.php");
196 $ilIliasIniFile->read();
199 define(
"ILIAS_DATA_DIR",$ilIliasIniFile->readVariable(
"clients",
"datadir"));
200 define(
"ILIAS_WEB_DIR",$ilIliasIniFile->readVariable(
"clients",
"path"));
201 define(
"ILIAS_ABSOLUTE_PATH",$ilIliasIniFile->readVariable(
'server',
'absolute_path'));
204 define (
"ILIAS_LOG_DIR",$ilIliasIniFile->readVariable(
"log",
"path"));
205 define (
"ILIAS_LOG_FILE",$ilIliasIniFile->readVariable(
"log",
"file"));
206 define (
"ILIAS_LOG_ENABLED",$ilIliasIniFile->readVariable(
"log",
"enabled"));
207 define (
"ILIAS_LOG_LEVEL",$ilIliasIniFile->readVariable(
"log",
"level"));
210 define (
"PATH_TO_CONVERT",$ilIliasIniFile->readVariable(
"tools",
"convert"));
211 define (
"PATH_TO_ZIP",$ilIliasIniFile->readVariable(
"tools",
"zip"));
212 define (
"PATH_TO_UNZIP",$ilIliasIniFile->readVariable(
"tools",
"unzip"));
213 define (
"PATH_TO_JAVA",$ilIliasIniFile->readVariable(
"tools",
"java"));
214 define (
"PATH_TO_HTMLDOC",$ilIliasIniFile->readVariable(
"tools",
"htmldoc"));
215 define (
"URL_TO_LATEX",$ilIliasIniFile->readVariable(
"tools",
"latex"));
216 define (
"PATH_TO_FOP",$ilIliasIniFile->readVariable(
"tools",
"fop"));
219 switch ($ilIliasIniFile->readVariable(
"tools",
"vscantype"))
222 define(
"IL_VIRUS_SCANNER",
"Sophos");
223 define(
"IL_VIRUS_SCAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"scancommand"));
224 define(
"IL_VIRUS_CLEAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"cleancommand"));
228 define(
"IL_VIRUS_SCANNER",
"AntiVir");
229 define(
"IL_VIRUS_SCAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"scancommand"));
230 define(
"IL_VIRUS_CLEAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"cleancommand"));
234 define(
"IL_VIRUS_SCANNER",
"ClamAV");
235 define(
"IL_VIRUS_SCAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"scancommand"));
236 define(
"IL_VIRUS_CLEAN_COMMAND", $ilIliasIniFile->readVariable(
"tools",
"cleancommand"));
240 define(
"IL_VIRUS_SCANNER",
"None");
255 include_once
'classes/class.ilHTTPS.php';
258 if($https->isDetected())
260 $protocol =
'https://';
264 $protocol =
'http://';
266 $host = $_SERVER[
'HTTP_HOST'];
268 $rq_uri = $_SERVER[
'REQUEST_URI'];
272 if (is_int($pos = strpos($rq_uri,
"?")))
274 $rq_uri = substr($rq_uri, 0, $pos);
277 if(!defined(
'ILIAS_MODULE'))
279 $path = pathinfo($rq_uri);
280 if(!$path[
'extension'])
286 $uri = dirname($rq_uri);
292 $path = dirname($rq_uri);
298 $dirs = explode(
'/',$module);
302 $uri = dirname($uri);
319 if (!is_object($ilIliasIniFile))
321 die (
"Fatal Error: ilInitialisation::determineClient called without initialisation of ILIAS ini file object.");
325 if (
$_GET[
"client_id"] !=
"")
327 setcookie(
"ilClientId",
$_GET[
"client_id"]);
333 $client_id = $ilIliasIniFile->readVariable(
"clients",
"default");
339 define (
"CLIENT_ID",
$_COOKIE[
"ilClientId"]);
356 global $ilClientIniFile;
361 die (
"Fatal Error: ilInitialisation::initClientIniFile called without ILIAS_WEB_DIR.");
367 die (
"Fatal Error: ilInitialisation::initClientIniFile called without CLIENT_ID.");
370 $ini_file =
"./".ILIAS_WEB_DIR.
"/".CLIENT_ID.
"/client.ini.php";
373 require_once(
"classes/class.ilIniFile.php");
374 $ilClientIniFile =
new ilIniFile($ini_file);
375 $GLOBALS[
'ilClientIniFile'] =& $ilClientIniFile;
376 $ilClientIniFile->read();
379 if ($ilClientIniFile->ERROR !=
"")
385 define (
"DEBUG",$ilClientIniFile->readVariable(
"system",
"DEBUG"));
386 define (
"DEVMODE",$ilClientIniFile->readVariable(
"system",
"DEVMODE"));
387 define (
"ROOT_FOLDER_ID",$ilClientIniFile->readVariable(
'system',
'ROOT_FOLDER_ID'));
388 define (
"SYSTEM_FOLDER_ID",$ilClientIniFile->readVariable(
'system',
'SYSTEM_FOLDER_ID'));
389 define (
"ROLE_FOLDER_ID",$ilClientIniFile->readVariable(
'system',
'ROLE_FOLDER_ID'));
390 define (
"MAIL_SETTINGS_ID",$ilClientIniFile->readVariable(
'system',
'MAIL_SETTINGS_ID'));
392 define (
"SYSTEM_MAIL_ADDRESS",$ilClientIniFile->readVariable(
'system',
'MAIL_SENT_ADDRESS'));
393 define (
"MAIL_REPLY_WARNING",$ilClientIniFile->readVariable(
'system',
'MAIL_REPLY_WARNING'));
395 define (
"MAXLENGTH_OBJ_TITLE",125);#$ilClientIniFile->readVariable(
'system',
'MAXLENGTH_OBJ_TITLE'));
396 define (
"MAXLENGTH_OBJ_DESC",$ilClientIniFile->readVariable(
'system',
'MAXLENGTH_OBJ_DESC'));
398 define (
"CLIENT_DATA_DIR",ILIAS_DATA_DIR.
"/".CLIENT_ID);
400 define (
"CLIENT_NAME",$ilClientIniFile->readVariable(
'client',
'name'));
403 define (
"IL_DSN", $ilClientIniFile->readVariable(
"db",
"type").
404 "://".$ilClientIniFile->readVariable(
"db",
"user").
405 ":".$ilClientIniFile->readVariable(
"db",
"pass").
406 "@".$ilClientIniFile->readVariable(
"db",
"host").
407 "/".$ilClientIniFile->readVariable(
"db",
"name"));
417 global $ilClientIniFile;
419 if (!$ilClientIniFile->readVariable(
"client",
"access"))
421 if (is_file(
"./maintenance.html"))
428 die(
'<br /><p style="text-align:center;">The server is not '.
429 'available due to maintenance. We apologise for any inconvenience.</p>');
446 die (
"Fatal Error: ilInitialisation::initDatabase called without IL_DSN.");
450 require_once(
"classes/class.ilDBx.php");
451 $ilDB =
new ilDBx(IL_DSN);
460 global $ilAppEventHandler;
463 require_once(
"./Services/EventHandling/classes/class.ilAppEventHandler.php");
465 $GLOBALS[
'ilAppEventHandler'] =& $ilAppEventHandler;
476 if(ini_get(
'session.save_handler') !=
'user')
478 ini_set(
"session.save_handler",
"user");
482 die(
"Please turn off Safe mode OR set session.save_handler to \"user\" in your php.ini");
494 require_once(
"Services/Administration/classes/class.ilSetting.php");
499 define (
"ANONYMOUS_USER_ID", $ilSetting->get(
"anonymous_user_id"));
500 define (
"ANONYMOUS_ROLE_ID", $ilSetting->get(
"anonymous_role_id"));
501 define (
"SYSTEM_USER_ID", $ilSetting->get(
"system_user_id"));
502 define (
"SYSTEM_ROLE_ID", $ilSetting->get(
"system_role_id"));
505 define (
"RECOVERY_FOLDER_ID", $ilSetting->get(
"recovery_folder_id"));
508 define (
"IL_INST_ID", $ilSetting->get(
"inst_id",0));
511 define (
"SUFFIX_REPL_DEFAULT",
"php,php3,php4,inc,lang,phtml,htaccess");
512 define (
"SUFFIX_REPL_ADDITIONAL", $ilSetting->get(
"suffix_repl_additional"));
523 $this->script = substr(strrchr($_SERVER[
"PHP_SELF"],
"/"),1);
524 $dirname = dirname($_SERVER[
"PHP_SELF"]);
525 $ilurl = @parse_url(ILIAS_HTTP_PATH);
528 $ilurl[
"path"] =
"/";
530 $subdir = substr(strstr($dirname,$ilurl[
"path"]),strlen($ilurl[
"path"]));
535 $num_subdirs = substr_count($subdir,
"/");
537 for ($i=1;$i<=$num_subdirs;$i++)
542 $this->updir = $updir;
553 $ilBench->start(
"Core",
"HeaderInclude_getStyleDefinitions");
555 $GLOBALS[
'styleDefinition'] =& $styleDefinition;
556 $styleDefinition->startParsing();
557 $ilBench->stop(
"Core",
"HeaderInclude_getStyleDefinitions");
566 global $styleDefinition;
570 include_once(
"./Services/Style/classes/class.ilObjStyleSettings.php");
571 if ($styleDefinition->styleExists(
$_GET[
'skin'],
$_GET[
'style']) &&
580 include_once(
"./Services/Style/classes/class.ilObjStyleSettings.php");
584 $ilias->account->skin =
$_SESSION[
'skin'];
585 $ilias->account->prefs[
'style'] =
$_SESSION[
'style'];
597 $_SESSION[
"AccountId"] = $ilUser->checkUserId();
601 #$rbacreview = new ilRbacReview();
602 #$GLOBALS['rbacreview'] =& $rbacreview;
603 #$_SESSION["RoleId"] = $rbacreview->assignedRoles($_SESSION["AccountId"]);
620 $clientip = $ilUser->getClientIP();
621 if (trim($clientip) !=
"")
623 $clientip = preg_replace(
"/[^0-9.?*,:]+/",
"",$clientip);
624 $clientip = str_replace(
".",
"\\.",$clientip);
625 $clientip = str_replace(Array(
"?",
"*",
","), Array(
"[0-9]",
"[0-9]*",
"|"), $clientip);
626 if (!preg_match(
"/^".$clientip.
"$/", $_SERVER[
"REMOTE_ADDR"]))
629 $ilias->account->getLogin().
":".$_SERVER[
"REMOTE_ADDR"].
":".$message);
642 $in_user_agreement =
false;
643 if (strtolower(
$_GET[
"cmdClass"]) ==
"ilstartupgui" &&
644 (strtolower(
$_GET[
"cmd"]) ==
"getacceptance" ||
645 (is_array($_POST[
"cmd"]) &&
646 key($_POST[
"cmd"]) ==
"getAcceptance")))
648 $in_user_agreement =
true;
653 if (!$ilUser->hasAcceptedUserAgreement() &&
654 $ilAuth->getAuth() &&
655 !$in_user_agreement &&
656 $ilUser->getId() != ANONYMOUS_USER_ID)
658 ilUtil::redirect(
"ilias.php?baseClass=ilStartUpGUI&cmdClass=ilstartupgui&target=".
$_GET[
"target"].
"&cmd=getAcceptance");
678 $_POST[
"username"] =
"anonymous";
679 $_POST[
"password"] =
"anonymous";
683 if (ANONYMOUS_USER_ID ==
"")
685 die (
"Public Section enabled, but no Anonymous user found.");
687 if (!$ilAuth->getAuth())
689 die(
"ANONYMOUS user with the object_id ".ANONYMOUS_USER_ID.
" not found!");
708 if (
$_GET[
"target"] !=
"")
713 include_once(
"Services/Init/classes/class.ilStartUpGUI.php");
727 #ilUtil::redirect(ILIAS_HTTP_PATH.
728 # "/goto.php?target=".$_GET["target"].$survey_parameter);
736 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
738 $_GET[
"cmd"] =
"frameset";
739 $jump_script =
"repository.php";
741 $script = $this->updir.$jump_script.
"?reloadpublic=1&cmd=".
$_GET[
"cmd"].
"&ref_id=".
$_GET[
"ref_id"];
745 echo
"<script language=\"Javascript\">\ntop.location.href = \"".$script.
"\";\n</script>\n".
746 'Please click <a href="'.$script.
'">here</a> if you are not redirected automatically.';
762 if (
$_GET[
"soap_pw"] !=
"")
764 $add =
"&soap_pw=".$_GET[
"soap_pw"].
"&ext_uid=".
$_GET[
"ext_uid"];
767 $script = $this->updir.
"login.php?target=".
$_GET[
"target"].
"&client_id=".
$_COOKIE[
"ilClientId"].
768 "&auth_stat=".$a_auth_stat.$add;
776 if (is_int(strpos($PHP_SELF,
"goto.php")) &&
$_GET[
"soap_pw"] ==
"" &&
777 $_GET[
"reloadpublic"] !=
"1")
779 $script = $this->updir.
"goto.php?target=".
$_GET[
"target"].
"&client_id=".CLIENT_ID.
783 echo
"<script language=\"Javascript\">\ntop.location.href = \"".$script.
"\";\n</script>\n".
784 'Please click <a href="'.$script.
'">here</a> if you are not redirected automatically.';
798 $ilBench->start(
"Core",
"HeaderInclude_initLanguage");
808 if (is_object($ilUser))
810 $_GET[
"lang"] = $ilUser->getPref(
"language");
815 if ($_POST[
'change_lang_to'] !=
"")
824 if (is_object($ilUser) && $ilUser->getId() != ANONYMOUS_USER_ID && $ilUser->getId() > 0)
826 $_SESSION[
'lang'] = $ilUser->getPref(
"language");
831 if (!in_array(
$_SESSION[
'lang'], $langs))
833 if (is_object($ilSetting) && $ilSetting->get(
"language") !=
"")
835 $_SESSION[
'lang'] = $ilSetting->get(
"language");
846 $ilBench->stop(
"Core",
"HeaderInclude_initLanguage");
855 global
$ilBench, $rbacsystem, $rbacadmin, $rbacreview;
857 $ilBench->start(
"Core",
"HeaderInclude_initRBAC");
859 $GLOBALS[
'rbacsystem'] =& $rbacsystem;
861 $GLOBALS[
'rbacadmin'] =& $rbacadmin;
863 $GLOBALS[
'rbacreview'] =& $rbacreview;
866 $ilBench->stop(
"Core",
"HeaderInclude_initRBAC");
879 $ilTabs, $ilMainMenu, $rbacsystem, $ilNavigationHistory;
886 if (version_compare(PHP_VERSION,
'5.3.0',
'>='))
888 error_reporting((ini_get(
"error_reporting") & ~E_NOTICE) & ~E_DEPRECATED);
892 error_reporting(ini_get(
'error_reporting') & ~E_NOTICE);
900 $ilBench->start(
"Core",
"HeaderInclude_GetErrorHandler");
903 $ilErr->setErrorHandling(PEAR_ERROR_CALLBACK,array($ilErr,
'errorHandler'));
904 $ilBench->stop(
"Core",
"HeaderInclude_GetErrorHandler");
925 setcookie(
"ilClientId", $ilIliasIniFile->readVariable(
"clients",
"default"));
926 $_COOKIE[
"ilClientId"] = $ilIliasIniFile->readVariable(
"clients",
"default");
927 if (CLIENT_ID !=
"" && CLIENT_ID != $ilIliasIniFile->readVariable(
"clients",
"default"))
929 ilUtil::redirect(
"index.php?client_id=".$ilIliasIniFile->readVariable(
"clients",
"default"));
933 echo (
"Client $c does not exist. ".
'Please <a href="./index.php">click here</a> to return to the default client.');
948 include_once(
"./Services/Component/classes/class.ilPluginAdmin.php");
950 $GLOBALS[
'ilPluginAdmin'] = $ilPluginAdmin;
963 require_once
'./classes/class.ilHTTPS.php';
966 $https->enableSecureCookies();
970 include_once(
"./Services/Authentication/classes/class.ilAuthUtils.php");
975 if (
$_GET[
"PHPSESSID"] !=
"")
977 $_GET[
"PHPSESSID"] ==
"";
978 session_regenerate_id();
983 $ilBench->start(
"Core",
"HeaderInclude_GetILIASObject");
984 $ilias =
new ILIAS();
986 $ilBench->stop(
"Core",
"HeaderInclude_GetILIASObject");
991 if (function_exists(
"xdebug_start_trace"))
999 $GLOBALS[
'ilObjDataCache'] =& $ilObjDataCache;
1009 require_once
"include/inc.debug.php";
1013 $ilBench->start(
"Core",
"HeaderInclude_getObjectDefinitions");
1015 $GLOBALS[
'objDefinition'] =& $objDefinition;
1017 $ilBench->stop(
"Core",
"HeaderInclude_getObjectDefinitions");
1023 $tree =
new ilTree(ROOT_FOLDER_ID);
1027 PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($ilErr,
"errorHandler"));
1028 $ilBench->start(
"Core",
"HeaderInclude_Authentication");
1035 $ilias->setAuthError($ilErr->getLastError());
1036 $ilBench->stop(
"Core",
"HeaderInclude_Authentication");
1039 if (
$_GET[
"cmd"] ==
"force_login" || $this->script ==
"login.php")
1045 $ilias->setAuthError($ilErr->getLastError());
1049 if (!$ilias->getSetting(
"setup_ok"))
1051 die(
"Setup is not completed. Please run setup routine again.");
1055 $ilBench->start(
"Core",
"HeaderInclude_getCurrentUser");
1057 $ilias->account =& $ilUser;
1059 $ilBench->stop(
"Core",
"HeaderInclude_getCurrentUser");
1072 if (in_array($this->script,
1073 array(
"login.php",
"register.php",
"view_usr_agreement.php"))
1074 ||
$_GET[
"baseClass"] ==
"ilStartUpGUI")
1084 if (AUTH_CURRENT ==
AUTH_LOCAL && !$ilAuth->getAuth() && $this->script ==
"login.php" && $_POST[
"username"] !=
"")
1093 $ilias->setAuthError($ilErr->getLastError());
1105 if ($ilAuth->getAuth() && $ilias->account->isCurrentUserActive())
1108 $ilBench->start(
"Core",
"HeaderInclude_getCurrentUserAccountData");
1120 if ($this->script ==
"login.php" ||
1121 $_GET[
"baseClass"] ==
"ilStartUpGUI")
1126 require_once(
'Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
1128 if( $security_settings->isPasswordChangeOnFirstLoginEnabled() &&
1129 '0000-00-00 00:00:00' == (string)$ilUser->getLastLogin() &&
1130 '0000-00-00 00:00:00' == (string)$ilUser->getApproveDate() )
1132 $ilUser->resetLastPasswordChange();
1135 $ilUser->refreshLogin();
1139 require_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
1141 if( $security_settings->getAccountSecurityMode() ==
1149 $_GET[
'limit'] =
$_SESSION[
'tbl_limit'] = (int) $ilUser->getPref(
'hits_per_page');
1157 if (
$_GET[
'offset'] !=
"")
1162 $ilBench->stop(
"Core",
"HeaderInclude_getCurrentUserAccountData");
1165 $this->script !=
"login.php"
1166 and $this->script !=
"shib_login.php"
1167 and $this->script !=
"error.php"
1168 and $this->script !=
"index.php"
1169 and $this->script !=
"view_usr_agreement.php"
1170 and $this->script !=
"register.php"
1171 and $this->script !=
"chat.php"
1172 and $this->script !=
"pwassist.php"
1181 if ($context ==
"webdav")
1193 if ($ilAuth->getAuth() && !$ilUser->isCurrentUserActive())
1202 if (
$_GET[
"baseClass"] !=
"ilStartUpGUI")
1207 if ($ilSetting->get(
"pub_section") &&
1208 ($ilAuth->getStatus() ==
"" || $ilAuth->getStatus() ==
AUTH_EXPIRED ||
1210 $_GET[
"reloadpublic"] !=
"1")
1216 if ($context ==
"web")
1231 else if(!$ilAuth->getAuth())
1233 require_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
1236 if( $security->getAccountSecurityMode() ==
1239 if($_POST[
'username'] && $ilUser->getId() == 0)
1244 if( $usr_id != ANONYMOUS_USER_ID )
1249 $max_attempts = $security->getLoginMaxAttempts();
1251 if( $login_attempts >= $max_attempts &&
1252 $usr_id != SYSTEM_USER_ID &&
1279 if ( !isset(
$_SESSION[
"locator_level"]) )
1287 $GLOBALS[
'ilias_locator'] =& $ilias_locator;
1288 $GLOBALS[
'ilLocator'] =& $ilLocator;
1291 $ilBench->start(
"Core",
"HeaderInclude_getStyleDefinitions");
1293 $GLOBALS[
'styleDefinition'] =& $styleDefinition;
1294 $styleDefinition->startParsing();
1295 $ilBench->stop(
"Core",
"HeaderInclude_getStyleDefinitions");
1299 $tpl->setVariable(
"LOCATION_STYLESHEET",$location_stylesheet);
1303 $GLOBALS[
'ilNavigationHistory'] =& $ilNavigationHistory;
1309 $GLOBALS[
'ilBrowser'] =& $ilBrowser;
1316 include_once
'classes/class.ilTabsGUI.php';
1321 include_once
'classes/class.ilMainMenuGUI.php';
1323 $GLOBALS[
'ilMainMenu'] =& $ilMainMenu;
1329 include_once(
'./Services/WebServices/ECS/classes/class.ilECSTaskScheduler.php');
1331 $scheduler->start();
1333 $ilBench->stop(
"Core",
"HeaderInclude");
1346 $ilTabs, $ilMainMenu, $rbacsystem, $ilNavigationHistory;
1359 $ilBench->start(
"Core",
"HeaderInclude_GetErrorHandler");
1362 $ilErr->setErrorHandling(PEAR_ERROR_CALLBACK,array($ilErr,
'errorHandler'));
1363 $ilBench->stop(
"Core",
"HeaderInclude_GetErrorHandler");
1378 setcookie(
"ilClientId", $ilIliasIniFile->readVariable(
"clients",
"default"));
1379 $_COOKIE[
"ilClientId"] = $ilIliasIniFile->readVariable(
"clients",
"default");
1380 echo (
"Client $c does not exist. Please reload this page to return to the default client.");
1391 include_once(
"./Services/Component/classes/class.ilPluginAdmin.php");
1393 $GLOBALS[
'ilPluginAdmin'] = $ilPluginAdmin;
1397 $GLOBALS[
'ilObjDataCache'] =& $ilObjDataCache;
1403 $tree =
new ilTree(ROOT_FOLDER_ID);
1407 $lng =
new ilLanguage($ilClientIniFile->readVariable(
"language",
"default"));
1414 $log =
new ilLog(ILIAS_LOG_DIR,ILIAS_LOG_FILE,CLIENT_ID,ILIAS_LOG_ENABLED,ILIAS_LOG_LEVEL);
1422 $ilBench->start(
"Core",
"HeaderInclude_GetILIASObject");
1423 $ilias =
new ILIAS();
1425 $ilBench->stop(
"Core",
"HeaderInclude_GetILIASObject");