23 $cookie_domain = $_SERVER[
'SERVER_NAME'];
24 $cookie_path = dirname( $_SERVER[
'PHP_SELF'] );
31 $cookie_path .= (!preg_match(
"/[\/|\\\\]$/", $cookie_path)) ?
"/" :
"";
33 if($cookie_path ==
"\\") $cookie_path =
'/';
37 setcookie(
"ilClientId",
$_GET[
"client_id"], 0, $cookie_path, $cookie_domain);
42 require_once
"./include/inc.header.php";
45 require_once
"./Services/Navigation/classes/class.ilNavigationHistoryGUI.php";
49 if(strpos(
$_GET[
'target'],
'purchasetypedemo') !==
false)
51 $_GET[
'purchasetype'] =
'demo';
52 $_GET[
'cmd'] =
'showDemoVersion';
53 $_GET[
'target'] = str_replace(
'purchasetypedemo',
'',
$_GET[
'target']);
55 else if(strpos(
$_GET[
'target'],
'purchasetypebuy') !==
false)
57 $_GET[
'purchasetype'] =
'buy';
58 $_GET[
'cmd'] =
'showDetails';
59 $_GET[
'target'] = str_replace(
'purchasetypebuy',
'',
$_GET[
'target']);
72 include_once(
"Services/Init/classes/class.ilStartUpGUI.php");
75 ilUtil::redirect(
"login.php?target=".
$_GET[
"target"].
"&cmd=force_login&lang=".$ilUser->getCurrentLanguage());
89 require_once(
"./Modules/LearningModule/classes/class.ilLMPageObjectGUI.php");
95 require_once(
"./Modules/LearningModule/classes/class.ilStructureObjectGUI.php");
101 require_once(
"./Modules/Glossary/classes/class.ilGlossaryTermGUI.php");
108 require_once(
"./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
115 require_once(
"./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php");
121 require_once(
"./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMGUI.php");
127 require_once(
"./Modules/Forum/classes/class.ilObjForumGUI.php");
135 require_once(
"./Modules/Exercise/classes/class.ilObjExerciseGUI.php");
141 require_once(
"./Modules/Test/classes/class.ilObjTestGUI.php");
147 require_once(
"./Modules/TestQuestionPool/classes/class.ilObjQuestionPoolGUI.php");
153 require_once(
"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPoolGUI.php");
159 require_once(
"./Modules/Survey/classes/class.ilObjSurveyGUI.php");
160 if (array_key_exists(
"accesscode",
$_GET))
172 require_once(
"./Modules/WebResource/classes/class.ilObjLinkResourceGUI.php");
178 require_once(
"./Modules/Chat/classes/class.ilObjChatGUI.php");
184 require_once(
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleGUI.php");
190 require_once(
"./Modules/Category/classes/class.ilObjCategoryGUI.php");
196 require_once(
"Modules/Course/classes/class.ilObjCourseGUI.php");
202 require_once(
"./Modules/Group/classes/class.ilObjGroupGUI.php");
208 require_once(
"./Modules/Folder/classes/class.ilObjFolderGUI.php");
214 require_once(
"./Modules/File/classes/class.ilObjFileGUI.php");
220 require_once(
"./Modules/MediaCast/classes/class.ilObjMediaCastGUI.php");
226 require_once
'Modules/ILinc/classes/class.ilObjiLincCourseGUI.php';
232 require_once(
'./Modules/RootFolder/classes/class.ilObjRootFolderGUI.php');
238 require_once(
'./Services/Certificate/classes/class.ilCertificate.php');
248 $class_name =
"ilObj".$objDefinition->getClassName(
$target_type).
"GUI";
250 if (is_file(
$location.
"/class.".$class_name.
".php"))
252 include_once(
$location.
"/class.".$class_name.
".php");
253 call_user_func(array($class_name,
"_goto"),
$rest);
258 $class_name =
"ilObj".$objDefinition->getClassName(
$target_type).
"GUI";
260 if (is_file(
$location.
"/class.".$class_name.
".php"))
262 include_once(
$location.
"/class.".$class_name.
".php");
263 call_user_func(array($class_name,
"_goto"), array(
$rest, $class_name));