ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
index.php
Go to the documentation of this file.
1
<?
php
2
3
chdir (
'..'
);
4
5
6
$cookie_path
= dirname(dirname(
$_SERVER
[
'PHP_SELF'
]));
7
8
/* if ilias is called directly within the docroot $cookie_path
9
is set to '/' expecting on servers running under windows..
10
here it is set to '\'.
11
in both cases a further '/' won't be appended due to the following regex
12
*/
13
$cookie_path
.= (!preg_match(
"/[\/|\\\\]$/"
,
$cookie_path
)) ?
"/"
:
""
;
14
15
if
(isset(
$_GET
[
"client_id"
]))
16
{
17
if
(
$cookie_path
==
"\\"
)
18
{
19
$cookie_path
=
'/'
;
20
}
21
22
setcookie(
"ilClientId"
,
$_GET
[
"client_id"
], 0,
$cookie_path
,
''
);
23
$_COOKIE
[
"ilClientId"
] =
$_GET
[
"client_id"
];
24
}
25
26
define(
'IL_COOKIE_PATH'
,
$cookie_path
);
27
28
include_once
'./Services/Context/classes/class.ilContext.php'
;
29
ilContext::init
(
ilContext::CONTEXT_APACHE_SSO
);
30
31
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
32
ilInitialisation::initILIAS
();
33
34
$ilCtrl
->initBaseClass(
"ilStartUpGUI"
);
35
$ilCtrl
->setCmd(
'doApacheAuthentication'
);
36
$ilCtrl
->setTargetScript(
"ilias.php"
);
37
$ilCtrl
->callBaseClass();
$_SERVER
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Definition:
tcpdf_autoconfig.php:54
$_GET
$_GET["client_id"]
Definition:
cfg.phpunit.template.php:12
$ilCtrl
global $ilCtrl
Definition:
ilias.php:18
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:839
ilContext\init
static init($a_type)
Init context by type.
Definition:
class.ilContext.php:42
$_COOKIE
$_COOKIE['ilClientId']
Definition:
BPMN2Parser.php:15
php
$cookie_path
$cookie_path
Definition:
index.php:6
ilContext\CONTEXT_APACHE_SSO
const CONTEXT_APACHE_SSO
Definition:
class.ilContext.php:32
sso
index.php
Generated on Fri Jan 17 2025 19:00:49 for ILIAS by
1.8.13 (using
Doxyfile
)