33 error_reporting((ini_get(
"error_reporting") & ~E_NOTICE) & ~E_DEPRECATED);
35 require_once __DIR__ .
"/../../libs/composer/vendor/autoload.php";
37 $DIC = new \ILIAS\DI\Container();
39 define(
"DEBUG",
false);
42 require_once
"./setup/classes/class.ilTemplate.php";
43 require_once
"./setup/classes/class.ilLanguage.php";
44 require_once
"./Services/Logging/classes/class.ilLog.php";
45 require_once
"./Services/Authentication/classes/class.ilSession.php";
46 require_once
"./Services/Utilities/classes/class.ilUtil.php";
47 require_once
"./Services/Init/classes/class.ilIniFile.php";
48 require_once
"./setup/classes/class.ilSetupGUI.php";
49 require_once
"./setup/classes/class.Session.php";
50 require_once
"./setup/classes/class.ilClientList.php";
51 require_once
"./setup/classes/class.ilClient.php";
52 require_once
"./Services/FileSystem/classes/class.ilFile.php";
53 require_once
"./setup/classes/class.ilCtrlStructureReader.php";
54 require_once
"./Services/Xml/classes/class.ilSaxParser.php";
55 require_once
"./include/inc.ilias_version.php";
56 include_once
'./Services/Logging/classes/public/class.ilLogLevel.php';
59 require_once
"./setup/classes/class.ilSetupErrorHandling.php";
63 $DIC[
"ilErr"] =
function ($c) {
69 define(
"ILIAS_HTTP_PATH", substr(
"https://" .
$_SERVER[
"HTTP_HOST"] . dirname(
$_SERVER[
"REQUEST_URI"]), 0, -6));
71 define(
"ILIAS_HTTP_PATH", substr(
"http://" .
$_SERVER[
"HTTP_HOST"] . dirname(
$_SERVER[
"REQUEST_URI"]), 0, -6));
77 if (
$_SERVER[
"PATH_TRANSLATED"] !=
"") {
78 define(
"ILIAS_ABSOLUTE_PATH", substr(dirname(
$_SERVER[
"PATH_TRANSLATED"]), 0, -6));
80 define(
"ILIAS_ABSOLUTE_PATH", substr(dirname(
$_SERVER[
"SCRIPT_FILENAME"]), 0, -6));
82 } elseif (
$_SERVER[
"SCRIPT_FILENAME"] !=
"") {
83 define(
"ILIAS_ABSOLUTE_PATH", substr(dirname(
$_SERVER[
"SCRIPT_FILENAME"]), 0, -6));
86 define(
'ILIAS_ABSOLUTE_PATH', str_replace(
"/setup/include",
"", dirname(__FILE__)));
90 include_once
'./Services/Calendar/classes/class.ilTimeZone.php';
91 include_once
'./Services/Init/classes/class.ilIniFile.php';
94 $DIC[
"ini"] =
function ($c) {
99 define(
'IL_TIMEZONE',
$tz);
104 define(
"TPLPATH",
"./templates/blueshadow");
122 include_once
'./Services/Logging/classes/class.ilLoggingSetupSettings.php';
126 include_once
'./Services/Logging/classes/public/class.ilLoggerFactory.php';
130 $DIC[
"ilLog"] =
function ($c) {
146 $DIC[
"ilCtrlStructureReader"] =
function ($c) {
147 return $GLOBALS[
"ilCtrlStructureReader"];
150 require_once
"./Services/Utilities/classes/class.ilBenchmark.php";
153 $DIC[
"ilBench"] =
function ($c) {
157 include_once(
"./Services/Database/classes/class.ilDBAnalyzer.php");
158 include_once(
"./Services/Database/classes/class.ilMySQLAbstraction.php");
159 include_once(
"./Services/Database/classes/class.ilDBGenerator.php");
162 $DIC[
'http.request_factory'] =
function ($c) {
163 return new \ILIAS\HTTP\Request\RequestFactoryImpl();
166 $DIC[
'http.response_factory'] =
function ($c) {
167 return new \ILIAS\HTTP\Response\ResponseFactoryImpl();
170 $DIC[
'http.cookie_jar_factory'] =
function ($c) {
171 return new \ILIAS\HTTP\Cookies\CookieJarFactoryImpl();
174 $DIC[
'http.response_sender_strategy'] =
function ($c) {
175 return new \ILIAS\HTTP\Response\Sender\DefaultResponseSenderStrategy();
178 return new \ILIAS\DI\HTTPServices(
179 $c[
'http.response_sender_strategy'],
180 $c[
'http.cookie_jar_factory'],
181 $c[
'http.request_factory'],
182 $c[
'http.response_factory']
This class provides processing control methods.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
const PEAR_ERROR_CALLBACK
static newInstance(ilLoggingSettings $settings)
get new instance
static initDefaultTimeZone(ilIniFile $ini)
Initialize default timezone from system settings.
Class ilCtrlStructureReader.
Logger settings for setup.
special template class to simplify handling of ITX/PEAR
Create styles array
The data for the language used.
"Manueller" Session-Fallback mit PHP4
performance measurement class