ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
login.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
15
// jump to setup if ILIAS3 is not installed
16
if
(!file_exists(getcwd().
"/ilias.ini.php"
))
17
{
18
header(
"Location: ./setup/setup.php"
);
19
exit
();
20
}
21
22
// start correct client
23
// if no client_id is given, default client is loaded (in class.ilias.php)
24
if
(isset(
$_GET
[
"client_id"
]))
25
{
26
$cookie_domain = $_SERVER[
'SERVER_NAME'
];
27
$cookie_path = dirname( $_SERVER[
'PHP_SELF'
] );
28
29
/* if ilias is called directly within the docroot $cookie_path
30
is set to '/' expecting on servers running under windows..
31
here it is set to '\'.
32
in both cases a further '/' won't be appended due to the following regex
33
*/
34
$cookie_path .= (!preg_match(
"/[\/|\\\\]$/"
, $cookie_path)) ?
"/"
:
""
;
35
36
if
($cookie_path ==
"\\"
) $cookie_path =
'/'
;
37
38
$cookie_domain =
''
;
// Temporary Fix
39
40
setcookie(
"ilClientId"
,
$_GET
[
"client_id"
], 0, $cookie_path, $cookie_domain);
41
42
$_COOKIE
[
"ilClientId"
] =
$_GET
[
"client_id"
];
43
}
44
45
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
46
ilInitialisation::initILIAS
();
47
48
$ilCtrl
->initBaseClass(
"ilStartUpGUI"
);
49
$ilCtrl
->setCmd(
"showLogin"
);
50
$ilCtrl
->setTargetScript(
"ilias.php"
);
51
$ilCtrl
->callBaseClass();
52
$ilBench
->save();
53
54
exit
;
55
?>
exit
exit
Definition:
login.php:54
$_GET
$_GET["client_id"]
Definition:
cfg.phpunit.template.php:12
$_COOKIE
$_COOKIE["ilClientId"]
Definition:
cron.php:11
$ilCtrl
global $ilCtrl
Definition:
ilias.php:18
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:912
$ilBench
global $ilBench
Definition:
ilias.php:18
login.php
Generated on Mon Aug 25 2025 19:00:31 for ILIAS by
1.8.13 (using
Doxyfile
)