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(
"Services/Init/classes/class.ilInitialisation.php");
46 require_once
"./Services/Navigation/classes/class.ilNavigationHistoryGUI.php";
54 if (is_object($ilPluginAdmin))
57 $pl_names = $ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"UIComponent",
"uihk");
60 foreach ($pl_names as $pl)
63 $gui_class = $ui_plugin->getUIClassInstance();
64 $gui_class->gotoHook();
68 if(IS_PAYMENT_ENABLED)
70 if(strpos(
$_GET[
'target'],
'purchasetypedemo') !==
false)
72 $_GET[
'purchasetype'] =
'demo';
73 $_GET[
'cmd'] =
'showDemoVersion';
74 $_GET[
'target'] = str_replace(
'purchasetypedemo',
'',
$_GET[
'target']);
76 else if(strpos(
$_GET[
'target'],
'purchasetypebuy') !==
false)
78 $_GET[
'purchasetype'] =
'buy';
79 $_GET[
'cmd'] =
'showDetails';
80 $_GET[
'target'] = str_replace(
'purchasetypebuy',
'',
$_GET[
'target']);
91 if(IS_PAYMENT_ENABLED)
93 include_once
'./Services/Payment/classes/class.ilShopLinkBuilder.php';
103 $additional_param .=
"&cmd=".$additional;
107 $additional_param =
'';
110 $link =
'ilias.php?baseClass='.ilShopLinkBuilder::$linkArray[strtolower($class)][
'baseClass']
125 include_once(
"Services/Init/classes/class.ilStartUpGUI.php");
129 if(
$ilUser->getId() == ANONYMOUS_USER_ID)
136 $tarr = explode(
"_",
$_GET[
"target"]);
137 if ($tarr[0] !=
"pg" && $tarr[0] !=
"st" && $tarr[1] > 0)
159 require_once(
"./Modules/LearningModule/classes/class.ilLMPageObjectGUI.php");
165 require_once(
"./Modules/LearningModule/classes/class.ilStructureObjectGUI.php");
171 require_once(
"./Modules/Glossary/classes/class.ilGlossaryTermGUI.php");
178 require_once(
"./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
185 require_once(
"./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php");
191 require_once(
"./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMGUI.php");
197 require_once(
"./Modules/Forum/classes/class.ilObjForumGUI.php");
200 ilObjForumGUI::_goto(
$target_id, $target_thread, $target_posting);
205 require_once(
"./Modules/Exercise/classes/class.ilObjExerciseGUI.php");
211 require_once(
"./Modules/Test/classes/class.ilObjTestGUI.php");
217 require_once(
"./Modules/TestQuestionPool/classes/class.ilObjQuestionPoolGUI.php");
223 require_once(
"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPoolGUI.php");
229 require_once(
"./Modules/Survey/classes/class.ilObjSurveyGUI.php");
230 if (array_key_exists(
"accesscode",
$_GET))
242 require_once(
"./Modules/WebResource/classes/class.ilObjLinkResourceGUI.php");
248 require_once(
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleGUI.php");
254 require_once(
"./Modules/Category/classes/class.ilObjCategoryGUI.php");
260 require_once(
"Modules/Course/classes/class.ilObjCourseGUI.php");
266 require_once(
"./Modules/Group/classes/class.ilObjGroupGUI.php");
272 require_once(
"./Modules/Folder/classes/class.ilObjFolderGUI.php");
278 require_once(
"./Modules/File/classes/class.ilObjFileGUI.php");
284 require_once(
"./Modules/MediaCast/classes/class.ilObjMediaCastGUI.php");
290 require_once
'Modules/ILinc/classes/class.ilObjiLincCourseGUI.php';
296 require_once(
'./Modules/RootFolder/classes/class.ilObjRootFolderGUI.php');
302 require_once(
'./Services/Certificate/classes/class.ilCertificate.php');
312 $class_name =
"ilObj".$objDefinition->getClassName(
$target_type).
"GUI";
314 if (is_file(
$location.
"/class.".$class_name.
".php"))
316 include_once(
$location.
"/class.".$class_name.
".php");
317 call_user_func(array($class_name,
"_goto"),
$rest);
322 $class_name =
"ilObj".$objDefinition->getClassName(
$target_type).
"GUI";
324 if (is_file(
$location.
"/class.".$class_name.
".php"))
326 include_once(
$location.
"/class.".$class_name.
".php");
327 call_user_func(array($class_name,
"_goto"), array(
$rest, $class_name));