5 include_once(
"./Services/Table/classes/class.ilTableGUI.php");
6 include_once(
"classes/class.ilTabsGUI.php");
60 $this->lng->loadLanguageModule(
'administration');
65 $this->objDefinition =& $objDefinition;
68 $ilMainMenu->setActive(
"administration");
70 $this->creation_mode =
false;
72 $this->ctrl->saveParameter($this, array(
"ref_id",
"admin_mode"));
74 if ($_GET[
"admin_mode"] !=
"repository")
76 $_GET[
"admin_mode"] =
"settings";
80 $this->ctrl->setReturn($this,
"");
83 if (!empty($_GET[
"ref_id"]) && $tree->isInTree($_GET[
"ref_id"]))
85 $this->cur_ref_id = $_GET[
"ref_id"];
91 if ($_GET[
"cmd"] !=
"getDropDown")
107 include_once
'./Services/MainMenu/classes/class.ilMainMenuGUI.php';
110 $ilias->raiseError(
"You are not entitled to access this page!",$ilias->error_obj->WARNING);
115 $new_type =
$_POST[
"new_type"]
118 if ($new_type !=
"" && $this->ctrl->getCmd() ==
"create")
120 $this->creation_mode =
true;
124 if ($this->creation_mode)
126 $obj_type = $new_type;
127 $class_name = $this->objDefinition->getClassName($obj_type);
128 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
129 $this->ctrl->setCmdClass($next_class);
133 elseif ($this->ctrl->getCmdClass() ==
"ilobjlanguageextgui")
135 $next_class =
"ilobjlanguageextgui";
139 $next_class = $this->ctrl->getNextClass($this);
143 if (($next_class ==
"iladministrationgui" || $next_class ==
""
144 ) && ($this->ctrl->getCmd() ==
"return"))
148 $class_name = $this->objDefinition->getClassName($obj_type);
149 $next_class = strtolower(
"ilObj".$class_name.
"GUI");
150 $this->ctrl->setCmdClass($next_class);
151 $this->ctrl->setCmd(
"view");
154 $cmd = $this->ctrl->getCmd(
"frameset");
198 if ($next_class !=
"" && $next_class !=
"iladministrationgui")
201 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
202 $dbupdate =
new ilDBUpdate($this->ilias->db,
true);
203 if (!$dbupdate->getDBVersionStatus())
207 else if ($dbupdate->hotfixAvailable())
212 $class_path = $this->ctrl->lookupClassPath($next_class);
214 include_once($class_path);
215 $class_name = $this->ctrl->getClassForClasspath($class_path);
216 if (($next_class ==
"ilobjrolegui" || $next_class ==
"ilobjusergui"
217 || $next_class ==
"ilobjroletemplategui"
218 || $next_class ==
"ilobjstylesheetgui"))
220 if (
$_GET[
"obj_id"] !=
"")
222 $this->gui_obj =
new $class_name(
"",
$_GET[
"obj_id"],
false,
false);
223 $this->gui_obj->setCreationMode(
false);
227 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
228 $this->gui_obj->setCreationMode(
true);
235 $this->gui_obj =
new $class_name($this->cur_ref_id);
239 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
241 $this->gui_obj->setCreationMode($this->creation_mode);
243 $tabs_out = ($new_type ==
"")
247 $this->ctrl->setReturn($this,
"return");
248 $ret =& $this->ctrl->forwardCommand($this->gui_obj);
249 $html = $this->gui_obj->getHTML();
253 $this->tpl->setVariable(
"OBJECTS", $html);
259 $cmd = $this->ctrl->getCmd(
"frameset");
273 include_once(
"Services/Frameset/classes/class.ilFramesetGUI.php");
276 $fs_gui->setMainFrameName(
"content");
277 $fs_gui->setSideFrameName(
"tree");
278 $fs_gui->setFrameSetTitle($this->lng->txt(
"administration"));
280 if (
$_GET[
"admin_mode"] !=
"repository")
285 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
288 $this->ctrl->setParameterByClass(
"ilobjuserfoldergui",
"jmpToUser",
289 (
int)$_GET[
"jmpToUser"]);
290 $fs_gui->setMainFrameSource(
291 $this->ctrl->getLinkTargetByClass(
"ilobjuserfoldergui",
"jumpToUser"));
295 $fs_gui->setMainFrameSource(
296 $this->ctrl->getLinkTargetByClass(
"ilobjuserfoldergui",
"view"));
298 $this->ctrl->redirectByClass(
"ilobjuserfoldergui",
"view");
302 $this->ctrl->setParameter($this,
"ref_id", SYSTEM_FOLDER_ID);
303 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"settings");
308 $url_parts = parse_url(base64_decode(rawurldecode(
$_GET[
'fr'])));
309 if($url_parts[
'http'] || $url_parts[
'host'])
313 $ilias->raiseError($this->lng->txt(
'permission_denied'), $ilias->error_obj->MESSAGE);
316 $fs_gui->setMainFrameSource(
317 base64_decode(rawurldecode(
$_GET[
'fr'])));
322 $fs_gui->setMainFrameSource(
323 $this->ctrl->getLinkTargetByClass(
"ilobjsystemfoldergui",
"view"));
324 $this->ctrl->redirectByClass(
"ilobjsystemfoldergui",
"view");
327 $this->ctrl->setParameter($this,
"expand",
"1");
328 $fs_gui->setSideFrameSource(
329 $this->ctrl->getLinkTarget($this,
"showTree"));
333 $this->ctrl->setParameter($this,
"ref_id", ROOT_FOLDER_ID);
334 $this->ctrl->setParameterByClass(
"iladministrationgui",
"admin_mode",
"repository");
335 $fs_gui->setMainFrameSource(
336 $this->ctrl->getLinkTargetByClass(
"ilobjrootfoldergui",
"view"));
337 $this->ctrl->setParameter($this,
"expand",
"1");
338 $fs_gui->setSideFrameSource(
339 $this->ctrl->getLinkTarget($this,
"showTree"));
353 require_once
"./Services/Administration/classes/class.ilAdministrationExplorer.php";
356 $explorer->setExpand(
$_GET[
"expand"]);
357 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
"showTree"));
358 $explorer->setUseStandardFrame(
true);
361 if (!$tree->getChilds(RECOVERY_FOLDER_ID))
363 $explorer->addFilter(
"recf");
367 if (
$_GET[
"admin_mode"] ==
"settings")
369 $explorer->addFilter(
"cat");
370 $explorer->addFilter(
"catr");
374 $explorer->addFilter(
"adm");
391 $explorer->setOutput(0);
392 $output = $explorer->getOutput();
393 $this->ctrl->setParameter($this,
"expand",
$_GET[
"expand"]);
404 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"ctype",
$_GET[
"ctype"]);
405 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"cname",
$_GET[
"cname"]);
406 $ilCtrl->setParameterByClass(
"ilobjcomponentsettingsgui",
"slot_id",
$_GET[
"slot_id"]);
407 $ilCtrl->redirectByClass(
"ilobjcomponentsettingsgui",
"showPluginSlot");
418 $tpl =
new ilTemplate(
"tpl.admin_drop_down.html",
true,
true,
"Services/Administration");
420 $objects = $tree->getChilds(SYSTEM_FOLDER_ID);
422 foreach($objects as $object)
424 $new_objects[$object[
"title"].
":".$object[
"child"]]
430 $new_objects[$lng->txt(
"repository_admin").
":".ROOT_FOLDER_ID] =
433 "child" => ROOT_FOLDER_ID,
434 "ref_id" => ROOT_FOLDER_ID,
437 "title" => $lng->txt(
"repository_admin"),
438 "description" => $lng->txt(
"repository_admin_desc"),
439 "desc" => $lng->txt(
"repository_admin_desc"),
444 $new_objects[$lng->txt(
"general_settings").
":".SYSTEM_FOLDER_ID] =
447 "child" => SYSTEM_FOLDER_ID,
448 "ref_id" => SYSTEM_FOLDER_ID,
451 "title" => $lng->txt(
"general_settings"),
457 foreach ($new_objects as $c)
460 if ($tree->getParentId($c[
"ref_id"]) == ROOT_FOLDER_ID && $c[
"type"] !=
"adm" &&
461 $_GET[
"admin_mode"] !=
"repository")
467 if ($c[
"type"] ==
"" || $c[
"type"] ==
"objf" ||
472 $accessible = $rbacsystem->checkAccess(
'visible,read', $c[
"ref_id"]);
477 if ($c[
"ref_id"] == ROOT_FOLDER_ID &&
478 !$rbacsystem->checkAccess(
'write', $c[
"ref_id"]))
482 if ($c[
"type"] ==
"rolf" && $c[
"ref_id"] != ROLE_FOLDER_ID)
491 foreach ($items as $i)
493 $titems[$i[
"type"]] = $i;
500 array(
"adm",
"stys",
"adve",
"lngf",
"cmps",
"accs",
"trac"),
502 array(
"usrf",
"rolf",
"auth",
"ps")
506 array(
"pdts",
"nwss",
"tags",
"prfa",
"skmg",
"cals",
"mail",
"---",
"seas",
507 "mds",
"cert",
"pays",
"extt")
511 array(
"blga",
"chta",
"facs",
"frma",
"lrss",
"mcts",
"mobs",
"svyf",
"assf",
"---",
512 'otpl',
"root",
"recf")
518 for ($i = 1; $i <= 3; $i++)
520 $groups[$i] = array();
521 foreach ($layout[$i] as $group => $entries)
523 $groups[$i][$group] = array();
524 $entries_since_last_sep =
false;
525 foreach ($entries as $e)
527 if ($e ==
"---" || $titems[$e][
"type"] !=
"")
529 if ($e ==
"---" && $entries_since_last_sep)
531 $groups[$i][$group][] = $e;
532 $entries_since_last_sep =
false;
534 else if ($e !=
"---")
536 $groups[$i][$group][] = $e;
537 $entries_since_last_sep =
true;
544 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
547 for ($i = 1; $i <= 3; $i++)
553 foreach ($groups[$i] as $group => $entries)
555 if (count($entries) > 0)
557 $gl->addGroupHeader($lng->txt(
"adm_".$group));
559 foreach ($entries as $e)
568 $icon = (
$path !=
"")
572 if (
$_GET[
"admin_mode"] ==
"settings" && $titems[$e][
"ref_id"] == ROOT_FOLDER_ID)
574 $gl->addEntry($icon.$titems[$e][
"title"],
575 "ilias.php?baseClass=ilAdministrationGUI&ref_id=".
576 $titems[$e][
"ref_id"].
"&admin_mode=repository",
581 $gl->addEntry($icon.$titems[$e][
"title"],
582 "ilias.php?baseClass=ilAdministrationGUI&ref_id=".
583 $titems[$e][
"ref_id"].
"&cmd=jump",
603 global
$ilCtrl, $objDefinition;
608 $class_name = $objDefinition->getClassName($obj_type);
609 $class = strtolower(
"ilObj".$class_name.
"GUI");
610 $ilCtrl->setParameterByClass($class,
"ref_id",
$ref_id);
611 $ilCtrl->redirectByClass($class,
"view");