ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
studip_referrer.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
/* ILIAS Version 4.0.2 */
12
13
if
(file_exists(
"./ilias.ini.php"
)) {
14
require_once(
"./Services/Init/classes/class.ilIniFile.php"
);
15
$ilIliasIniFile
=
new
ilIniFile
(
"./ilias.ini.php"
);
16
$ilIliasIniFile
->read();
17
$serverSettings =
$ilIliasIniFile
->readGroup(
"server"
);
18
if
($serverSettings[
"studip"
] != 1) {
19
echo
'Option "studip" in ilias.ini.php is not enabled. You need to add studip = "1" to the server section.'
;
20
exit
();
21
}
22
23
if
(isset(
$_GET
[
'sess_id'
])) {
24
setcookie(
'PHPSESSID'
,
$_GET
[
'sess_id'
]);
25
$_COOKIE
[
'PHPSESSID'
] =
$_GET
[
'sess_id'
];
26
}
27
28
if
(isset(
$_GET
[
'client_id'
])) {
29
setcookie(
'ilClientId'
,
$_GET
[
'client_id'
]);
30
$_COOKIE
[
'ilClientId'
] =
$_GET
[
'client_id'
];
31
}
32
33
require_once
"./include/inc.header.php"
;
34
35
$jump_to =
'index.php'
;
36
37
// redirect to specified page
38
$redirect =
false
;
39
switch
(
$_GET
[
'target'
]) {
40
case
'start'
:
41
switch
(
$_GET
[
'type'
]) {
42
case
'lm'
:
43
$_GET
[
'baseClass'
] =
'ilLMPresentationGUI'
;
44
$jump_to =
'ilias.php'
;
45
break
;
46
case
'tst'
:
47
$_GET
[
'cmd'
] =
'infoScreen'
;
48
$_GET
[
'baseClass'
] =
'ilObjTestGUI'
;
49
$jump_to =
'ilias.php'
;
50
break
;
51
case
'sahs'
:
52
$jump_to =
'ilias.php?baseClass=ilSAHSPresentationGUI&ref_id='
.
$_GET
[
'ref_id'
];
53
$redirect =
true
;
54
break
;
55
case
'htlm'
:
56
$_GET
[
'baseClass'
] =
'ilHTLMPresentationGUI'
;
57
$jump_to =
'ilias.php'
;
58
break
;
59
case
'glo'
:
60
$_GET
[
'baseClass'
] =
'ilGlossaryPresentationGUI'
;
61
$jump_to =
'ilias.php'
;
62
break
;
63
default
:
64
unset($jump_to);
65
}
66
break
;
67
case
'new'
:
68
$_POST
[
'new_type'
] =
$_GET
[
'type'
];
69
$_POST
[
'cmd'
][
'create'
] =
'add'
;
70
$_GET
[
'cmd'
] =
'post'
;
71
$_GET
[
ilCtrl::IL_RTOKEN_NAME
] =
$ilCtrl
->getRequestToken();
72
$_GET
[
'baseClass'
] =
'ilRepositoryGUI'
;
73
$jump_to =
'ilias.php'
;
74
break
;
75
case
'edit'
:
76
switch
(
$_GET
[
'type'
]) {
77
case
'lm'
:
78
$_GET
[
'baseClass'
] =
'ilLMEditorGUI'
;
79
$jump_to =
'ilias.php'
;
80
break
;
81
case
'tst'
:
82
$_GET
[
'cmd'
] =
''
;
83
$_GET
[
'baseClass'
] =
'ilObjTestGUI'
;
84
$jump_to =
'ilias.php'
;
85
break
;
86
case
'sahs'
:
87
$_GET
[
'baseClass'
] =
'ilSAHSEditGUI'
;
88
$jump_to =
'ilias.php'
;
89
break
;
90
case
'htlm'
:
91
$_GET
[
'baseClass'
] =
'ilHTLMEditorGUI'
;
92
$jump_to =
'ilias.php'
;
93
break
;
94
case
'glo'
:
95
$_GET
[
'baseClass'
] =
'ilGlossaryEditorGUI'
;
96
$jump_to =
'ilias.php'
;
97
break
;
98
default
:
99
unset($jump_to);
100
}
101
break
;
102
case
'login'
:
103
break
;
104
default
:
105
unset($jump_to);
106
}
107
if
($redirect) {
108
header
(
"Location: "
. $jump_to);
109
exit
();
110
} elseif (isset($jump_to)) {
111
include($jump_to);
112
}
113
}
$_COOKIE
$_COOKIE['client_id']
Definition:
server.php:9
$_GET
$_GET["client_id"]
Definition:
cfg.phpunit.template.php:12
$ilCtrl
global $ilCtrl
Definition:
ilias.php:18
ilCtrl\IL_RTOKEN_NAME
const IL_RTOKEN_NAME
Definition:
class.ilCtrl.php:24
header
Add a drawing to the header
Definition:
04printing.php:69
$ilIliasIniFile
$ilIliasIniFile
Definition:
imagemanager.php:34
$_POST
$_POST["username"]
Definition:
cfg.phpunit.template.php:11
ilIniFile
INIFile Parser.
Definition:
class.ilIniFile.php:37
exit
exit
Definition:
old-extract-schema.php:8
studip_referrer.php
Generated on Tue Feb 25 2025 19:01:55 for ILIAS by
1.8.13 (using
Doxyfile
)