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']
116 $link .=
'&'.$target_arr[3];
131 include_once(
"Services/Init/classes/class.ilStartUpGUI.php");
135 if(
$ilUser->getId() == ANONYMOUS_USER_ID)
142 $tarr = explode(
"_",
$_GET[
"target"]);
143 if ($tarr[0] !=
"pg" && $tarr[0] !=
"st" && $tarr[1] > 0)
165 require_once(
"./Modules/LearningModule/classes/class.ilLMPageObjectGUI.php");
171 require_once(
"./Modules/LearningModule/classes/class.ilStructureObjectGUI.php");
177 require_once(
"./Modules/Glossary/classes/class.ilGlossaryTermGUI.php");
184 require_once(
"./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
191 require_once(
"./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php");
197 require_once(
"./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMGUI.php");
203 require_once(
"./Modules/Forum/classes/class.ilObjForumGUI.php");
206 ilObjForumGUI::_goto(
$target_id, $target_thread, $target_posting);
211 require_once(
"./Modules/Exercise/classes/class.ilObjExerciseGUI.php");
217 require_once(
"./Modules/Test/classes/class.ilObjTestGUI.php");
223 require_once(
"./Modules/TestQuestionPool/classes/class.ilObjQuestionPoolGUI.php");
229 require_once(
"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPoolGUI.php");
235 require_once(
"./Modules/Survey/classes/class.ilObjSurveyGUI.php");
236 if (array_key_exists(
"accesscode",
$_GET))
248 require_once(
"./Modules/WebResource/classes/class.ilObjLinkResourceGUI.php");
254 require_once(
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleGUI.php");
260 require_once(
"./Modules/Category/classes/class.ilObjCategoryGUI.php");
266 require_once(
"Modules/Course/classes/class.ilObjCourseGUI.php");
272 require_once(
"./Modules/Group/classes/class.ilObjGroupGUI.php");
278 require_once(
"./Modules/Folder/classes/class.ilObjFolderGUI.php");
284 require_once(
"./Modules/File/classes/class.ilObjFileGUI.php");
290 require_once(
"./Modules/MediaCast/classes/class.ilObjMediaCastGUI.php");
296 require_once
'Modules/ILinc/classes/class.ilObjiLincCourseGUI.php';
302 require_once(
'./Modules/RootFolder/classes/class.ilObjRootFolderGUI.php');
308 require_once(
'./Services/Certificate/classes/class.ilCertificate.php');
318 $class_name =
"ilObj".$objDefinition->getClassName(
$target_type).
"GUI";
320 if (is_file(
$location.
"/class.".$class_name.
".php"))
322 include_once(
$location.
"/class.".$class_name.
".php");
323 call_user_func(array($class_name,
"_goto"),
$rest);
328 $class_name =
"ilObj".$objDefinition->getClassName(
$target_type).
"GUI";
330 if (is_file(
$location.
"/class.".$class_name.
".php"))
332 include_once(
$location.
"/class.".$class_name.
".php");
333 call_user_func(array($class_name,
"_goto"), array(
$rest, $class_name));