ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
index.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
if
(!file_exists(
'../../ilias.ini.php'
)) {
22
die(
'The ILIAS setup is not completed. Please run the setup routine.'
);
23
}
24
25
require_once
'../../vendor/composer/vendor/autoload.php'
;
26
27
chdir(
'..'
);
28
29
$cookie_path
= dirname(
$_SERVER
[
'PHP_SELF'
], 2);
30
31
/* if ilias is called directly within the docroot $cookie_path
32
is set to '/' expecting on servers running under windows..
33
here it is set to '\'.
34
in both cases a further '/' won't be appended due to the following regex
35
*/
36
$cookie_path
.= (!preg_match(
"/[\/|\\\\]$/"
,
$cookie_path
)) ?
'/'
:
''
;
37
38
if
(isset(
$_GET
[
'client_id'
])) {
39
if
(
$cookie_path
===
"\\"
) {
40
$cookie_path
=
'/'
;
41
}
42
43
setcookie(
'ilClientId'
,
$_GET
[
'client_id'
], 0,
$cookie_path
,
''
);
44
$_COOKIE
[
'ilClientId'
] =
$_GET
[
'client_id'
];
45
}
46
47
define(
'IL_COOKIE_PATH'
,
$cookie_path
);
48
49
ilContext::init
(
ilContext::CONTEXT_APACHE_SSO
);
50
51
ilInitialisation::initILIAS
();
52
53
ilStartUpGUI::setForcedCommand
(
'doApacheAuthentication'
);
54
$ilCtrl->callBaseClass(ilStartUpGUI::class);
$_GET
$_GET["client_id"]
Definition:
webdav.php:30
ilStartUpGUI\setForcedCommand
static setForcedCommand(string $cmd)
Definition:
class.ilStartUpGUI.php:97
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1145
$_SERVER
$_SERVER['HTTP_HOST']
Definition:
raiseError.php:26
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
$_COOKIE
$_COOKIE[session_name()]
Definition:
xapitoken.php:54
$cookie_path
$cookie_path
Definition:
index.php:29
ilContext\CONTEXT_APACHE_SSO
const CONTEXT_APACHE_SSO
Definition:
class.ilContext.php:44
components
ILIAS
Init
resources
sso
index.php
Generated on Sun Apr 27 2025 23:03:07 for ILIAS by
1.8.13 (using
Doxyfile
)