5 include_once(
"./Services/Table/classes/class.ilTableGUI.php");
61 $this->lng->loadLanguageModule(
'administration');
66 $this->objDefinition =& $objDefinition;
69 $ilMainMenu->setActive(
"administration");
71 $this->creation_mode =
false;
73 $this->ctrl->saveParameter($this, array(
"ref_id",
"admin_mode"));
75 if ($_GET[
"admin_mode"] !=
"repository")
77 $_GET[
"admin_mode"] =
"settings";
81 $this->ctrl->setReturn($this,
"");
84 if (!empty($_GET[
"ref_id"]) && $tree->isInTree($_GET[
"ref_id"]))
86 $this->cur_ref_id = $_GET[
"ref_id"];
92 if ($_GET[
"cmd"] !=
"getDropDown")
108 include_once
'./Services/MainMenu/classes/class.ilMainMenuGUI.php';
111 $ilias->raiseError(
"You are not entitled to access this page!",$ilias->error_obj->WARNING);
116 $new_type =
$_POST[
"new_type"]
119 if ($new_type !=
"" && $this->ctrl->getCmd() ==
"create")
121 $this->creation_mode =
true;
125 if ($this->creation_mode)
127 $obj_type = $new_type;
128 $class_name = $this->objDefinition->getClassName($obj_type);
129 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
130 $this->ctrl->setCmdClass($next_class);
134 elseif ($this->ctrl->getCmdClass() ==
"ilobjlanguageextgui")
136 $next_class =
"ilobjlanguageextgui";
140 $next_class = $this->ctrl->getNextClass($this);
144 if (($next_class ==
"iladministrationgui" || $next_class ==
""
145 ) && ($this->ctrl->getCmd() ==
"return"))
149 $class_name = $this->objDefinition->getClassName($obj_type);
150 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
151 $this->ctrl->setCmdClass($next_class);
152 $this->ctrl->setCmd(
"view");
155 $cmd = $this->ctrl->getCmd(
"frameset");
199 if ($next_class !=
"" && $next_class !=
"iladministrationgui")
202 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
203 $dbupdate =
new ilDBUpdate($this->ilias->db,
true);
204 if (!$dbupdate->getDBVersionStatus())
208 else if ($dbupdate->hotfixAvailable())
213 $class_path = $this->ctrl->lookupClassPath($next_class);
215 include_once($class_path);
216 $class_name = $this->ctrl->getClassForClasspath($class_path);
217 if (($next_class ==
"ilobjrolegui" || $next_class ==
"ilobjusergui"
218 || $next_class ==
"ilobjroletemplategui"
219 || $next_class ==
"ilobjstylesheetgui"))
221 if (
$_GET[
"obj_id"] !=
"")
223 $this->gui_obj =
new $class_name(
"",
$_GET[
"obj_id"],
false,
false);
224 $this->gui_obj->setCreationMode(
false);
228 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
229 $this->gui_obj->setCreationMode(
true);
236 $this->gui_obj =
new $class_name($this->cur_ref_id);
240 if(is_subclass_of($class_name,
"ilObject2GUI"))
246 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
249 $this->gui_obj->setCreationMode($this->creation_mode);
251 $tabs_out = ($new_type ==
"")
262 $this->ctrl->setReturn($this,
"return");
263 $ret =& $this->ctrl->forwardCommand($this->gui_obj);
264 $html = $this->gui_obj->getHTML();
268 $this->tpl->setVariable(
"OBJECTS", $html);
274 $cmd = $this->ctrl->getCmd(
"frameset");
288 include_once(
"Services/Frameset/classes/class.ilFramesetGUI.php");
291 $fs_gui->setMainFrameName(
"content");
292 $fs_gui->setSideFrameName(
"tree");
293 $fs_gui->setFrameSetTitle($this->lng->txt(
"administration"));
295 if (
$_GET[
"admin_mode"] !=
"repository")
300 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
303 $this->ctrl->setParameterByClass(
"ilobjuserfoldergui",
"jmpToUser",
304 (
int)$_GET[
"jmpToUser"]);
305 $fs_gui->setMainFrameSource(
306 $this->ctrl->getLinkTargetByClass(
"ilobjuserfoldergui",
"jumpToUser"));
310 $fs_gui->setMainFrameSource(
311 $this->ctrl->getLinkTargetByClass(
"ilobjuserfoldergui",
"view"));
313 $this->ctrl->redirectByClass(
"ilobjuserfoldergui",
"view");
317 $this->ctrl->setParameter($this,
"ref_id", SYSTEM_FOLDER_ID);
318 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
323 $url_parts = parse_url(base64_decode(rawurldecode(
$_GET[
'fr'])));
324 if($url_parts[
'http'] || $url_parts[
'host'])
328 $ilias->raiseError($this->lng->txt(
'permission_denied'), $ilias->error_obj->MESSAGE);
331 $fs_gui->setMainFrameSource(
332 base64_decode(rawurldecode(
$_GET[
'fr'])));
337 $fs_gui->setMainFrameSource(
338 $this->ctrl->getLinkTargetByClass(
"ilobjsystemfoldergui",
"view"));
339 $this->ctrl->redirectByClass(
"ilobjsystemfoldergui",
"view");
342 $this->ctrl->setParameter($this,
"expand",
"1");
343 $fs_gui->setSideFrameSource(
344 $this->ctrl->getLinkTarget($this,
"showTree"));
348 $this->ctrl->setParameter($this,
"ref_id", ROOT_FOLDER_ID);
349 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
350 $fs_gui->setMainFrameSource(
351 $this->ctrl->getLinkTargetByClass(
"ilobjrootfoldergui",
"view"));
352 $this->ctrl->setParameter($this,
"expand",
"1");
353 $fs_gui->setSideFrameSource(
354 $this->ctrl->getLinkTarget($this,
"showTree"));
368 require_once
"./Services/Administration/classes/class.ilAdministrationExplorer.php";
371 $explorer->setExpand(
$_GET[
"expand"]);
372 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
"showTree"));
373 $explorer->setUseStandardFrame(
true);
376 if (!$tree->getChilds(RECOVERY_FOLDER_ID))
378 $explorer->addFilter(
"recf");
382 if (
$_GET[
"admin_mode"] ==
"settings")
384 $explorer->addFilter(
"cat");
385 $explorer->addFilter(
"catr");
389 $explorer->addFilter(
"adm");
406 $explorer->setOutput(0);
407 $output = $explorer->getOutput();
408 $this->ctrl->setParameter($this,
"expand",
$_GET[
"expand"]);
419 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"ctype",
$_GET[
"ctype"]);
420 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"cname",
$_GET[
"cname"]);
421 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"slot_id",
$_GET[
"slot_id"]);
422 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"showPluginSlot");
433 $tpl =
new ilTemplate(
"tpl.admin_drop_down.html",
true,
true,
"Services/Administration");
435 $objects = $tree->getChilds(SYSTEM_FOLDER_ID);
437 foreach($objects as $object)
439 $new_objects[$object[
"title"].
":".$object[
"child"]]
445 $new_objects[$lng->txt(
"repository_admin").
":".ROOT_FOLDER_ID] =
448 "child" => ROOT_FOLDER_ID,
449 "ref_id" => ROOT_FOLDER_ID,
452 "title" => $lng->txt(
"repository_admin"),
453 "description" => $lng->txt(
"repository_admin_desc"),
454 "desc" => $lng->txt(
"repository_admin_desc"),
459 $new_objects[$lng->txt(
"general_settings").
":".SYSTEM_FOLDER_ID] =
462 "child" => SYSTEM_FOLDER_ID,
463 "ref_id" => SYSTEM_FOLDER_ID,
466 "title" => $lng->txt(
"general_settings"),
472 foreach ($new_objects as $c)
475 if ($tree->getParentId($c[
"ref_id"]) == ROOT_FOLDER_ID && $c[
"type"] !=
"adm" &&
476 $_GET[
"admin_mode"] !=
"repository")
482 if ($c[
"type"] ==
"" || $c[
"type"] ==
"objf" ||
487 $accessible = $rbacsystem->checkAccess(
'visible,read', $c[
"ref_id"]);
492 if ($c[
"ref_id"] == ROOT_FOLDER_ID &&
493 !$rbacsystem->checkAccess(
'write', $c[
"ref_id"]))
497 if ($c[
"type"] ==
"rolf" && $c[
"ref_id"] != ROLE_FOLDER_ID)
506 foreach ($items as $i)
508 $titems[$i[
"type"]] = $i;
515 array(
"adm",
"stys",
"adve",
"lngf",
"cmps",
"accs",
"hlps",
"trac"),
517 array(
"usrf",
"rolf",
"auth",
"ps")
521 array(
"pdts",
"nwss",
"tags",
"prfa",
"skmg",
"cals",
"mail",
"---",
"seas",
522 "mds",
"cert",
'ecss',
"pays",
"extt")
526 array(
"blga",
"chta",
"facs",
"frma",
"lrss",
"mcts",
"mobs",
"svyf",
"assf",
"---",
527 'otpl',
"root",
"recf")
533 for ($i = 1; $i <= 3; $i++)
535 $groups[$i] = array();
536 foreach ($layout[$i] as $group => $entries)
538 $groups[$i][$group] = array();
539 $entries_since_last_sep =
false;
540 foreach ($entries as $e)
542 if ($e ==
"---" || $titems[$e][
"type"] !=
"")
544 if ($e ==
"---" && $entries_since_last_sep)
546 $groups[$i][$group][] = $e;
547 $entries_since_last_sep =
false;
549 else if ($e !=
"---")
551 $groups[$i][$group][] = $e;
552 $entries_since_last_sep =
true;
559 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
562 for ($i = 1; $i <= 3; $i++)
568 foreach ($groups[$i] as $group => $entries)
570 if (count($entries) > 0)
572 $gl->addGroupHeader($lng->txt(
"adm_".$group));
574 foreach ($entries as $e)
583 $icon = (
$path !=
"")
587 if (
$_GET[
"admin_mode"] ==
"settings" && $titems[$e][
"ref_id"] == ROOT_FOLDER_ID)
589 $gl->addEntry($icon.$titems[$e][
"title"],
590 "ilias.php?baseClass=ilAdministrationGUI&ref_id=".
591 $titems[$e][
"ref_id"].
"&admin_mode=repository",
592 "_top",
"",
"",
"mm_adm_rep",
594 "bottom center",
"top center",
false);
598 $gl->addEntry($icon.$titems[$e][
"title"],
599 "ilias.php?baseClass=ilAdministrationGUI&ref_id=".
600 $titems[$e][
"ref_id"].
"&cmd=jump",
601 "_top",
"",
"",
"mm_adm_".$titems[$e][
"type"],
603 "bottom center",
"top center",
false);
622 global
$ilCtrl, $objDefinition;
627 $class_name = $objDefinition->getClassName($obj_type);
628 $class = strtolower(
"ilObj".$class_name.
"GUI");
629 $ilCtrl->setParameterByClass($class,
"ref_id",
$ref_id);
630 $ilCtrl->redirectByClass($class,
"view");