ILIAS
release_4-4 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
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
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Files
File List
+
Globals
+
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
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
confirmReg.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
11
// jump to setup if ILIAS is not installed
12
if
(!file_exists(getcwd().
'/ilias.ini.php'
))
13
{
14
header(
'Location: ./setup/setup.php'
);
15
exit
();
16
}
17
18
// start correct client
19
// if no client_id is given, default client is loaded (in class.ilias.php)
20
if
(isset(
$_GET
[
"client_id"
]))
21
{
22
$cookie_domain = $_SERVER[
'SERVER_NAME'
];
23
$cookie_path = dirname( $_SERVER[
'PHP_SELF'
] );
24
25
/* if ilias is called directly within the docroot $cookie_path
26
is set to '/' expecting on servers running under windows..
27
here it is set to '\'.
28
in both cases a further '/' won't be appended due to the following regex
29
*/
30
$cookie_path .= (!preg_match(
"/[\/|\\\\]$/"
, $cookie_path)) ?
"/"
:
""
;
31
32
if
($cookie_path ==
"\\"
) $cookie_path =
'/'
;
33
34
$cookie_domain =
''
;
// Temporary Fix
35
36
setcookie(
"ilClientId"
,
$_GET
[
"client_id"
], 0, $cookie_path, $cookie_domain);
37
38
$_COOKIE
[
"ilClientId"
] =
$_GET
[
"client_id"
];
39
}
40
41
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
42
ilInitialisation::initILIAS
();
43
44
$ilCtrl
->initBaseClass(
'ilStartUpGUI'
);
45
$ilCtrl
->setCmd(
'confirmRegistration'
);
46
$ilCtrl
->setTargetScript(
'ilias.php'
);
47
$ilCtrl
->callBaseClass();
48
49
exit
();
50
?>
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:905
confirmReg.php
Generated on Mon Dec 21 2020 19:00:59 for ILIAS by
1.8.13 (using
Doxyfile
)