ILIAS
Release_3_10_x_branch Revision 61812
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
studip_referrer.php
Go to the documentation of this file.
1
<?php
2
/*
3
+-----------------------------------------------------------------------------+
4
| ILIAS open source |
5
+-----------------------------------------------------------------------------+
6
| Copyright (c) 2005 ILIAS open source, University of Cologne |
7
| |
8
| This program is free software; you can redistribute it and/or |
9
| modify it under the terms of the GNU General Public License |
10
| as published by the Free Software Foundation; either version 2 |
11
| of the License, or (at your option) any later version. |
12
| |
13
| This program is distributed in the hope that it will be useful, |
14
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16
| GNU General Public License for more details. |
17
| |
18
| You should have received a copy of the GNU General Public License |
19
| along with this program; if not, write to the Free Software |
20
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21
+-----------------------------------------------------------------------------+
22
*/
23
24
32
/* ILIAS Version 3.7.0stable */
33
34
$jump_to
=
'index.php'
;
35
36
// redirect to specified page
37
$redirect
=
false
;
38
switch
(
$_GET
[
'target'
])
39
{
40
case
'start'
:
41
switch
(
$_GET
[
'type'
])
42
{
43
case
'lm'
:
44
$_GET
[
'baseClass'
] =
'ilLMPresentationGUI'
;
45
$jump_to
=
'ilias.php'
;
46
break
;
47
case
'tst'
:
48
$_GET
[
'cmd'
] =
'infoScreen'
;
49
$_GET
[
'baseClass'
] =
'ilObjTestGUI'
;
50
$jump_to
=
'ilias.php'
;
51
break
;
52
case
'sahs'
:
53
$_GET
[
'baseClass'
] =
'ilSAHSPresentationGUI'
;
54
$jump_to
=
'ilias.php'
;
55
break
;
56
case
'htlm'
:
57
$_GET
[
'baseClass'
] =
'ilHTLMPresentationGUI'
;
58
$jump_to
=
'ilias.php'
;
59
break
;
60
default
:
61
unset(
$jump_to
);
62
}
63
break
;
64
case
'new'
:
65
$_POST[
'new_type'
] =
$_GET
[
'type'
];
66
$_POST[
'cmd'
][
'create'
] =
'add'
;
67
$_GET
[
'cmd'
] =
'post'
;
68
$jump_to
=
'repository.php'
;
69
break
;
70
case
'edit'
:
71
switch
(
$_GET
[
'type'
])
72
{
73
case
'lm'
:
74
$_GET
[
'baseClass'
] =
'ilLMEditorGUI'
;
75
$jump_to
=
'ilias.php'
;
76
break
;
77
case
'tst'
:
78
$_GET
[
'cmd'
] =
''
;
79
$_GET
[
'baseClass'
] =
'ilObjTestGUI'
;
80
$jump_to
=
'ilias.php'
;
81
break
;
82
case
'sahs'
:
83
$_GET
[
'baseClass'
] =
'ilSAHSEditGUI'
;
84
$jump_to
=
'ilias.php'
;
85
break
;
86
case
'htlm'
:
87
$_GET
[
'baseClass'
] =
'ilHTLMEditorGUI'
;
88
$jump_to
=
'ilias.php'
;
89
break
;
90
default
:
91
unset(
$jump_to
);
92
}
93
break
;
94
case
'login'
:
95
break
;
96
default
:
97
unset(
$jump_to
);
98
}
99
100
if
(isset(
$_GET
[
'sess_id'
]))
101
{
102
setcookie(
'PHPSESSID'
,
$_GET
[
'sess_id'
]);
103
$_COOKIE
[
'PHPSESSID'
] =
$_GET
[
'sess_id'
];
104
}
else
{
105
unset(
$jump_to
);
106
}
107
108
if
(isset(
$_GET
[
'client_id'
]))
109
{
110
setcookie(
'ilClientId'
,
$_GET
[
'client_id'
]);
111
$_COOKIE
[
'ilClientId'
] =
$_GET
[
'client_id'
];
112
}
else
{
113
unset(
$jump_to
);
114
}
115
116
if
(
$redirect
)
117
{
118
header(
"Location: "
.
$jump_to
);
119
exit
();
120
}
121
elseif(isset(
$jump_to
))
122
include(
$jump_to
);
123
?>
studip_referrer.php
Generated on Tue Apr 26 2016 19:00:53 for ILIAS by
1.8.1.2 (using
Doxyfile
)