5 require_once
"./Services/Object/classes/class.ilObject2GUI.php";
6 include_once(
'./Modules/WebResource/classes/class.ilParameterAppender.php');
7 require_once
'Services/LinkChecker/interfaces/interface.ilLinkCheckerGUIRowHandling.php';
42 if(
$_GET[
"baseClass"] ==
'ilLinkResourceHandlerGUI')
45 $ilCtrl->saveParameter($this,
'view_mode');
49 $this->lng->loadLanguageModule(
"webr");
51 $next_class = $this->ctrl->getNextClass($this);
52 $cmd = $this->ctrl->getCmd();
56 case "ilinfoscreengui":
61 if(!$ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
63 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
67 $ilTabs->activateTab(
'id_meta_data');
68 include_once
'Services/MetaData/classes/class.ilMDEditorGUI.php';
69 $md_gui =&
new ilMDEditorGUI($this->object->getId(), 0, $this->
object->getType());
70 $md_gui->
addObserver($this->
object,
'MDUpdateListener',
'General');
71 $this->ctrl->forwardCommand($md_gui);
74 case 'ilpermissiongui':
76 $ilTabs->activateTab(
'id_permissions');
77 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
79 $ret =& $this->ctrl->forwardCommand($perm_gui);
82 case 'ilobjectcopygui':
84 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
87 $this->ctrl->forwardCommand($cp);
92 $this->tabs_gui->setTabActive(
'export');
93 include_once
'./Services/Export/classes/class.ilExportGUI.php';
95 $exp->addFormat(
'xml');
96 $this->ctrl->forwardCommand($exp);
99 case "ilcommonactiondispatchergui":
100 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
102 $this->ctrl->forwardCommand($gui);
108 $this->ctrl->setCmd(
"view");
116 include_once(
'Services/MetaData/classes/class.ilMDUtils.php');
150 $this->form->setValuesByPost();
151 $this->tpl->setContent($this->form->getHTML());
158 $this->link->setLinkResourceId($a_new_object->
getId());
159 $link_id = $this->link->add();
164 $this->dynamic->setObjId($a_new_object->
getId());
165 $this->dynamic->add($link_id);
171 if($this->id_type == self::WORKSPACE_NODE_ID)
173 $this->ctrl->redirect($this,
"editLinks");
179 $a_new_object->
getRefId().
"&cmd=view");
193 $ilTabs->activateTab(
'id_settings');
196 $this->tpl->setContent($this->form->getHTML());
208 $ilTabs->activateTab(
'id_settings');
211 if($this->form->checkInput())
213 $this->
object->setTitle($this->form->getInput(
'tit'));
214 $this->
object->setDescription($this->form->getInput(
'des'));
215 $this->
object->update();
217 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
223 $this->ctrl->redirect($this,
'settings');
226 $this->form->setValuesByPost();
228 $this->tpl->setContent($this->form->getHTML());
238 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
240 $this->form->setFormAction($this->ctrl->getFormAction($this,
'saveSettings'));
241 $this->form->setTitle($this->lng->txt(
'webr_edit_settings'));
244 $tit =
new ilTextInputGUI($this->lng->txt(
'webr_list_title'),
'tit');
245 $tit->
setValue($this->object->getTitle());
246 $tit->setRequired(
true);
248 $tit->setMaxLength(127);
249 $this->form->addItem($tit);
253 $des->
setValue($this->object->getDescription());
256 $this->form->addItem($des);
259 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
260 include_once
'./Services/Container/classes/class.ilContainer.php';
264 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
268 $this->lng->txt(
'webr_sort_title'),
271 $sor->addOption($opt);
274 $this->lng->txt(
'webr_sort_manual'),
277 $sor->addOption($opm);
278 $this->form->addItem($sor);
280 $this->form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
281 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
296 if(!(
int)
$_GET[
'link_id'])
299 $ilCtrl->redirect($this,
'view');
304 $this->tpl->setContent($this->form->getHTML());
318 $this->link->setLinkId((
int)
$_REQUEST[
'link_id']);
319 $this->link->update();
322 $this->dynamic->add((
int) $_REQUEST[
'link_id']);
327 $this->
object->setTitle($this->form->getInput(
'tit'));
328 $this->
object->setDescription($this->form->getInput(
'des'));
329 $this->
object->update();
333 $ilCtrl->redirect($this,
'view');
336 $this->form->setValuesByPost();
337 $this->tpl->setContent($this->form->getHTML());
350 $this->tpl->setContent($this->form->getHTML());
364 if($this->
checkLinkInput(self::LINK_MOD_ADD,$this->object->getId(),0))
369 $this->
object->setTitle($this->form->getInput(
'lti'));
370 $this->
object->setDescription($this->form->getInput(
'tde'));
371 $this->
object->update();
375 $link_id = $this->link->add();
380 $this->dynamic->add($link_id);
383 $ilCtrl->redirect($this,
'view');
387 $this->form->setValuesByPost();
390 $this->tpl->setContent($this->form->getHTML());
403 $this->ctrl->setParameter($this,
'link_id',(
int)
$_GET[
'link_id']);
405 if(!isset($_GET[
'param_id']))
408 $ilCtrl->redirect($this,
'view');
411 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
413 $param->
delete((
int) $_GET[
'param_id']);
416 $ilCtrl->redirect($this,
'editLink');
425 if(!isset(
$_GET[
'param_id']))
428 $ilCtrl->redirect($this,
'view');
431 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
436 $ilCtrl->redirect($this,
'view');
452 if(!is_array(
$_POST[
'ids']))
455 $ilCtrl->redirect($this,
'view');
460 foreach(
$_POST[
'ids'] as $link_id)
464 if(!strlen(
$data[
'tit']))
466 $invalid[] = $link_id;
469 if(!strlen(
$data[
'tar']))
471 $invalid[] = $link_id;
476 $invalid[] = $link_id;
481 $invalid[] = $link_id;
489 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
491 include_once
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
493 $table->setInvalidLinks($invalid);
494 $table->parseSelectedLinks(
$_POST[
'ids']);
495 $table->updateFromPost();
496 $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML());
500 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
504 foreach(
$_POST[
'ids'] as $link_id)
508 $links->setLinkId($link_id);
512 $links->setActiveStatus((
int)
$data[
'act']);
513 $links->setDisableCheckStatus((
int) $data[
'che']);
514 $links->setValidStatus((
int) $data[
'vali']);
517 if(strlen($data[
'nam']) and $data[
'val'])
521 $param->setValue((
int) $data[
'val']);
522 $param->add($link_id);
529 $this->
object->update();
536 $ilCtrl->redirect($this,
'view');
546 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
549 $values = $link->
getItem($a_link_id);
555 $this->form->setValuesByArray(
557 'tit' => $values[
'title'],
558 'tar' => $values[
'target'],
559 'des' => $values[
'description'],
560 'act' => (
int) $values[
'active'],
561 'che' => (
int) $values[
'disable_check'],
562 'vali' => (
int) $values[
'valid']
577 $valid = $this->form->checkInput();
579 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
581 $this->link->setTarget($this->form->getInput(
'tar'));
582 $this->link->setTitle($this->form->getInput(
'tit'));
583 $this->link->setDescription($this->form->getInput(
'des'));
584 $this->link->setDisableCheckStatus($this->form->getInput(
'che'));
585 $this->link->setActiveStatus($this->form->getInput(
'act'));
587 if($a_mode == self::LINK_MOD_EDIT)
589 $this->link->setValidStatus($this->form->getInput(
'val'));
598 $this->dynamic->setName($this->form->getInput(
'nam'));
599 $this->dynamic->setValue($this->form->getInput(
'val'));
600 if(!$this->dynamic->validate())
602 switch($this->dynamic->getErrorCode())
605 $this->form->getItemByPostVar(
'nam')->setAlert($this->lng->txt(
'links_no_name_given'));
609 $this->form->getItemByPostVar(
'val')->setAlert($this->lng->txt(
'links_no_value_given'));
616 $this->dynamic = null;
631 $ilTabs->activateTab(
"id_content");
633 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
638 case self::LINK_MOD_CREATE:
640 $this->ctrl->setParameter($this,
'new_type',
'webr');
641 $this->form->setTitle($this->lng->txt(
'webr_new_link'));
642 $this->form->setTableWidth(
'600px');
645 $this->form->addCommandButton(
'save', $this->lng->txt(
'webr_add'));
646 $this->form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
649 case self::LINK_MOD_ADD:
651 $this->form->setTitle($this->lng->txt(
'webr_new_link'));
654 $this->form->addCommandButton(
'saveAddLink', $this->lng->txt(
'webr_add'));
655 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
658 case self::LINK_MOD_EDIT:
660 $this->ctrl->setParameter($this,
'link_id',(
int)
$_REQUEST[
'link_id']);
661 $this->form->setTitle($this->lng->txt(
'webr_edit'));
664 $this->form->addCommandButton(
'updateLink', $this->lng->txt(
'save'));
665 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
670 $this->form->setFormAction($this->ctrl->getFormAction($this));
677 $this->form->setTitle($this->lng->txt(
'webr_edit_list'));
681 $title->setRequired(
true);
683 $title->setMaxLength(127);
684 $this->form->addItem(
$title);
690 $this->form->addItem($desc);
694 $sect->setTitle($this->lng->txt(
'webr_add'));
695 $this->form->addItem($sect);
699 $tar =
new ilTextInputGUI($this->lng->txt(
'webr_link_target'),
'tar');
701 $tar->setRequired(
true);
703 $tar->setMaxLength(500);
704 $this->form->addItem($tar);
707 $tit =
new ilTextInputGUI($this->lng->txt(
'webr_link_title'),
'tit');
710 $tit->setMaxLength(127);
711 $this->form->addItem($tit);
717 $this->form->addItem($des);
723 $this->form->addItem($act);
728 $this->form->addItem($che);
731 if($a_mode == self::LINK_MOD_EDIT)
734 $this->form->addItem($val);
740 $dyn->
setInfo($this->lng->txt(
'links_dynamic_info'));
748 foreach($links as $id => $link)
752 $ptpl =
new ilTemplate(
'tpl.link_dyn_param_edit.html',
true,
true,
'Modules/WebResource');
754 $this->ctrl->setParameter($this,
'param_id',$id);
755 $ptpl->setVariable(
'LINK_DEL',$this->ctrl->getLinkTarget($this,
'deleteParameterForm'));
756 $ptpl->setVariable(
'LINK_TXT',$this->lng->txt(
'delete'));
757 $p->setHtml($ptpl->get());
758 $dyn->addSubItem($p);
765 if($a_mode == self::LINK_MOD_EDIT)
767 #$new = new ilCustomInputGUI($this->lng->txt('links_add_param'),'');
768 #$dyn->addSubItem($new);
774 $nam->setMaxLength(128);
775 $dyn->addSubItem($nam);
781 $dyn->addSubItem($val);
783 $this->form->addItem($dyn);
794 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
829 $ilTabs->activateTab(
"id_content");
833 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
842 case self::VIEW_MODE_MANAGE:
846 case self::VIEW_MODE_SORT:
867 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
870 include_once
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
874 $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML());
886 include_once
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
890 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
892 $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
904 include_once
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
908 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
910 $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
921 include_once
'./Services/Container/classes/class.ilContainerSorting.php';
923 $sort->savePost((array)
$_POST[
'position']);
942 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
944 $tool->setFormAction($this->ctrl->getFormAction($this));
946 $this->lng->txt(
'webr_add'),
947 $this->ctrl->getLinkTarget($this,
'addLink')
950 $this->tpl->setVariable($a_tpl_var,$tool->getHTML());
963 $link_ids = is_array(
$_POST[
'link_ids']) ?
965 array(
$_GET[
'link_id']);
974 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
977 include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
979 $confirm->setFormAction($this->ctrl->getFormAction($this,
'view'));
980 $confirm->setHeaderText($this->lng->txt(
'webr_sure_delete_items'));
981 $confirm->setConfirm($this->lng->txt(
'delete'),
'deleteLinks');
982 $confirm->setCancel($this->lng->txt(
'cancel'),
'view');
984 foreach($link_ids as $link_id)
986 $link = $links->getItem($link_id);
987 $confirm->addItem(
'link_ids[]', $link_id,$link[
'title']);
989 $this->tpl->setContent($confirm->getHTML());
1002 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1005 foreach(
$_POST[
'link_ids'] as $link_id)
1007 $links->
delete($link_id);
1010 $ilCtrl->redirect($this,
'view');
1023 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1026 if(!
$_GET[
'link_id'])
1029 $ilCtrl->redirect($this,
'view');
1032 $links->setLinkId((
int)
$_GET[
'link_id']);
1033 $links->updateActive(
false);
1036 $ilCtrl->redirect($this,
'view');
1047 $this->ctrl->setCmd(
"showSummary");
1048 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1060 $ilTabs->activateTab(
'id_info');
1062 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1065 $info->enablePrivateNotes();
1068 $info->addMetaDataSections($this->object->getId(),0, $this->
object->getType());
1070 if($this->id_type == self::WORKSPACE_NODE_ID)
1076 $this->ctrl->forwardCommand($info);
1085 $ilTabs->activateTab(
'id_history');
1087 include_once(
"classes/class.ilHistoryGUI.php");
1093 "cmdClass" =>
$_GET[
"cmdClass"],
1094 "cmdNode" =>
$_GET[
"cmdNode"]));
1096 $this->tpl->setVariable(
"ADM_CONTENT", $hist_html);
1109 $this->
object->items_obj->readItem($row[
'page_id']);
1110 $row[
'title'] = $this->
object->items_obj->getTitle();
1112 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
1114 $actions->setSelectionHeaderClass(
'small');
1115 $actions->setItemLinkClass(
'xsmall');
1116 $actions->setListTitle($this->lng->txt(
'actions'));
1118 $this->ctrl->setParameter($this,
'link_id', $row[
'page_id']);
1120 $this->lng->txt(
'edit'),
1122 $this->ctrl->getLinkTarget($this,
'editLink')
1124 $this->ctrl->clearParameters($this);
1125 $row[
'action_html'] =
$actions->getHTML();
1139 $ilTabs->activateTab(
'id_link_check');
1142 $this->
object->initLinkResourceItemsObject();
1144 require_once
'Services/LinkChecker/classes/class.ilLinkCheckerTableGUI.php';
1148 if((
bool)$ilias->getSetting(
'cron_web_resource_check'))
1150 include_once
'classes/class.ilLinkCheckNotify.php';
1151 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
1153 $chb =
new ilCheckboxInputGUI($this->lng->txt(
'link_check_message_a'),
'link_check_message');
1156 $chb->setOptionTitle($this->lng->txt(
'link_check_message_b'));
1158 $toolbar->addInputItem($chb);
1159 $toolbar->addFormButton($this->lng->txt(
'save'),
'saveLinkCheck');
1160 $toolbar->setFormAction($this->ctrl->getLinkTarget($this,
'saveLinkCheck'));
1164 $tgui->setLinkChecker($this->link_checker_obj)
1165 ->setRowHandler($this)
1166 ->setRefreshButton($this->lng->txt(
'refresh'),
'refreshLinkCheck');
1168 return $tpl->setContent($tgui->prepareHTML()->getHTML().$toolbar->getHTML());
1173 global
$ilDB,$ilUser;
1175 include_once
'./classes/class.ilLinkCheckNotify.php';
1178 $link_check_notify->setUserId($ilUser->getId());
1179 $link_check_notify->setObjId($this->object->getId());
1181 if(
$_POST[
'link_check_message'])
1184 $link_check_notify->addNotifier();
1189 $link_check_notify->deleteNotifier();
1202 if(!$this->link_checker_obj->checkPear())
1211 $this->
object->initLinkResourceItemsObject();
1214 $this->
object->items_obj->updateValidByCheck();
1216 foreach($this->link_checker_obj->checkWebResourceLinks() as $invalid)
1218 $this->
object->items_obj->readItem($invalid[
'page_id']);
1219 $this->
object->items_obj->setActiveStatus(
false);
1220 $this->
object->items_obj->setValidStatus(
false);
1221 $this->
object->items_obj->update(
false);
1224 $this->
object->items_obj->updateLastCheck();
1236 include_once
'./classes/class.ilLinkChecker.php';
1239 $this->link_checker_obj->setObjId($this->object->getId());
1255 switch($a_active_tab)
1260 $this->lng->loadLanguageModule(
'cntr');
1262 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_VIEW);
1263 $ilTabs->addSubTab(
'id_content_view',
1265 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1267 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_MANAGE);
1268 $ilTabs->addSubTab(
'id_content_manage',
1269 $lng->txt(
'cntr_manage'),
1270 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1272 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1273 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
1274 include_once
'./Services/Container/classes/class.ilContainer.php';
1278 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_SORT);
1279 $ilTabs->addSubTab(
'id_content_ordering',
1280 $this->lng->txt(
'cntr_ordering'),
1281 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1285 $ilCtrl->clearParameters($this);
1286 $ilTabs->activateSubTab($a_active_subtab);
1290 $ilTabs->activateTab(
'id_content');
1300 global $ilTabs,
$lng;
1304 $ilTabs->addTab(
"id_content",
1305 $lng->txt(
"content"),
1306 $this->ctrl->getLinkTarget($this,
"view"));
1311 $ilTabs->addTab(
"id_info",
1312 $lng->txt(
"info_short"),
1313 $this->ctrl->getLinkTarget($this,
"infoScreen"));
1318 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1321 $ilTabs->addTab(
"id_settings",
1322 $lng->txt(
"settings"),
1323 $this->ctrl->getLinkTarget($this,
"settings"));
1330 $ilTabs->addTab(
"id_history",
1331 $lng->txt(
"history"),
1332 $this->ctrl->getLinkTarget($this,
"history"));
1338 if(@include_once(
'HTTP/Request.php'))
1340 $ilTabs->addTab(
"id_link_check",
1341 $lng->txt(
"link_check"),
1342 $this->ctrl->getLinkTarget($this,
"linkChecker"));
1348 $ilTabs->addTab(
"id_meta_data",
1349 $lng->txt(
"meta_data"),
1350 $this->ctrl->getLinkTargetByClass(
'ilmdeditorgui',
'listSection'));
1357 $this->lng->txt(
'export'),
1358 $this->ctrl->getLinkTargetByClass(
'ilexportgui',
'')
1370 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
1371 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
1389 global $ilias_locator,
$lng;
1391 $this->tpl->addBlockFile(
"LOCATOR",
"locator",
"tpl.locator.html",
"Services/Locator");
1398 foreach ($tree->getPathFull($this->object->getRefId()) as $key =>
$row)
1408 $this->tpl->touchBlock(
'locator_separator_prefix');
1411 if (
$row[
"child"] > 0)
1413 $this->tpl->setCurrentBlock(
"locator_img");
1414 $this->tpl->setVariable(
"IMG_SRC",
1416 $this->tpl->setVariable(
"IMG_ALT",
1417 $lng->txt(
"obj_".$type));
1418 $this->tpl->parseCurrentBlock();
1421 $this->tpl->setCurrentBlock(
"locator_item");
1423 if(
$row[
"type"] ==
'webr')
1425 $this->tpl->setVariable(
"ITEM",$this->object->getTitle());
1426 $this->tpl->setVariable(
"LINK_ITEM",$this->ctrl->getLinkTarget($this));
1428 elseif (
$row[
"child"] != $tree->getRootId())
1430 $this->tpl->setVariable(
"ITEM",
$row[
"title"]);
1431 $this->tpl->setVariable(
"LINK_ITEM",
"./repository.php?ref_id=".
$row[
"child"]);
1435 $this->tpl->setVariable(
"ITEM", $this->lng->txt(
"repository"));
1436 $this->tpl->setVariable(
"LINK_ITEM",
"./repository.php?ref_id=".
$row[
"child"]);
1439 $this->tpl->parseCurrentBlock();
1442 $this->tpl->setVariable(
"TXT_LOCATOR",$this->lng->txt(
"locator"));
1443 $this->tpl->parseCurrentBlock();
1448 $obj_id = $this->
object->getId();
1450 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1455 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
1469 $obj_id = $this->
object->getId();
1471 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1473 $item = $items->getItem(
$_REQUEST[
"link_id"]);
1476 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
1492 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
1500 function _goto($a_target, $a_additional = null)
1504 if($a_additional && substr($a_additional, -3) ==
"wsp")
1506 $_GET[
"baseClass"] =
"ilsharedresourceGUI";
1507 $_GET[
"wsp_id"] = $a_target;
1508 include(
"ilias.php");
1513 if ($ilAccess->checkAccess(
"read",
"", $a_target))
1515 ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=$a_target");
1520 if ($ilAccess->checkAccess(
"visible",
"", $a_target))
1522 ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=".$a_target.
"&cmd=infoScreen");
1526 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
1528 $_GET[
"cmd"] =
"frameset";
1529 $_GET[
"target"] =
"";
1530 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
1533 include(
"repository.php");
1539 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);