24 include_once(
"./Services/Table/classes/class.ilTableGUI.php");
 
   25 include_once(
"classes/class.ilTabsGUI.php");
 
   79                 $this->lng->loadLanguageModule(
'administration');
 
   84                 $this->objDefinition =& $objDefinition;
 
   87                 $ilMainMenu->setActive(
"administration");
 
   89                 $this->creation_mode = 
false;
 
   91                 $this->ctrl->saveParameter($this, array(
"ref_id", 
"admin_mode"));
 
   93                 if ($_GET[
"admin_mode"] != 
"repository")
 
   95                         $_GET[
"admin_mode"] = 
"settings";
 
   99                         $this->ctrl->setReturn($this,
"");
 
  102                 if (!empty($_GET[
"ref_id"]) && $tree->isInTree($_GET[
"ref_id"]))
 
  104                         $this->cur_ref_id = $_GET[
"ref_id"];
 
  123                 include_once 
'./Services/MainMenu/classes/class.ilMainMenuGUI.php';
 
  126                         $ilias->raiseError(
"You are not entitled to access this page!",$ilias->error_obj->WARNING);
 
  130                 $new_type = 
$_POST[
"new_type"]
 
  133                 if ($new_type != 
"" && $this->ctrl->getCmd() == 
"create")
 
  135                         $this->creation_mode = 
true;
 
  139                 if ($this->creation_mode)
 
  141                         $obj_type = $new_type;
 
  142                         $class_name = $this->objDefinition->getClassName($obj_type);
 
  143                         $next_class = strtolower(
"ilObj".$class_name.
"GUI");
 
  144                         $this->ctrl->setCmdClass($next_class);
 
  148                 elseif ($this->ctrl->getCmdClass() == 
"ilobjlanguageextgui")
 
  150                         $next_class = 
"ilobjlanguageextgui";
 
  154                         $next_class = $this->ctrl->getNextClass($this);
 
  158                 if (($next_class == 
"iladministrationgui" || $next_class == 
"" 
  159                         ) && ($this->ctrl->getCmd() == 
"return"))
 
  163                         $class_name = $this->objDefinition->getClassName($obj_type);
 
  164                         $next_class = strtolower(
"ilObj".$class_name.
"GUI");
 
  165                         $this->ctrl->setCmdClass($next_class);
 
  166                         $this->ctrl->setCmd(
"view");
 
  169                 $cmd = $this->ctrl->getCmd(
"frameset");
 
  213                                 if ($next_class != 
"" && $next_class != 
"iladministrationgui")
 
  215                                         $class_path = $this->ctrl->lookupClassPath($next_class);
 
  217                                         include_once($class_path);
 
  218                                         $class_name = $this->ctrl->getClassForClasspath($class_path);
 
  219                                         if (($next_class == 
"ilobjrolegui" || $next_class == 
"ilobjusergui" 
  220                                                 || $next_class == 
"ilobjroletemplategui" 
  221                                                 || $next_class == 
"ilobjstylesheetgui"))
 
  223                                                 if (
$_GET[
"obj_id"] != 
"")
 
  225                                                         $this->gui_obj = 
new $class_name(
"", 
$_GET[
"obj_id"], 
false, 
false);
 
  226                                                         $this->gui_obj->setCreationMode(
false);
 
  230                                                         $this->gui_obj = 
new $class_name(
"", $this->cur_ref_id, 
true, 
false);
 
  231                                                         $this->gui_obj->setCreationMode(
true);
 
  238                                                         $this->gui_obj = 
new $class_name($this->cur_ref_id);
 
  242                                                         $this->gui_obj = 
new $class_name(
"", $this->cur_ref_id, 
true, 
false);
 
  244                                                 $this->gui_obj->setCreationMode($this->creation_mode);
 
  246                                         $tabs_out = ($new_type == 
"")
 
  250                                         $this->ctrl->setReturn($this, 
"return");                                        
 
  251                                         $ret =& $this->ctrl->forwardCommand($this->gui_obj);
 
  252                                         $html = $this->gui_obj->getHTML();
 
  256                                                 $this->tpl->setVariable(
"OBJECTS", $html);
 
  262                                         $cmd = $this->ctrl->getCmd(
"frameset");
 
  276                 include_once(
"Services/Frameset/classes/class.ilFramesetGUI.php");
 
  279                 $fs_gui->setMainFrameName(
"content");
 
  280                 $fs_gui->setSideFrameName(
"tree");
 
  281                 $fs_gui->setFrameSetTitle($this->lng->txt(
"administration"));
 
  283                 if (
$_GET[
"admin_mode"] != 
"repository")        
 
  288                                 $this->ctrl->setParameterByClass(
"iladministrationgui", 
"admin_mode", 
"settings");
 
  291                                         $this->ctrl->setParameterByClass(
"ilobjuserfoldergui", 
"jmpToUser",
 
  292                                                 (
int)$_GET[
"jmpToUser"]);
 
  293                                         $fs_gui->setMainFrameSource(
 
  294                                                 $this->ctrl->getLinkTargetByClass(
"ilobjuserfoldergui", 
"jumpToUser"));
 
  298                                         $fs_gui->setMainFrameSource(
 
  299                                                 $this->ctrl->getLinkTargetByClass(
"ilobjuserfoldergui", 
"view"));
 
  304                                 $this->ctrl->setParameter($this, 
"ref_id", SYSTEM_FOLDER_ID);
 
  305                                 $this->ctrl->setParameterByClass(
"iladministrationgui", 
"admin_mode", 
"settings");
 
  310                         $url_parts = parse_url(base64_decode(rawurldecode(
$_GET[
'fr'])));
 
  311                         if($url_parts[
'http'] || $url_parts[
'host'])
 
  315                                 $ilias->raiseError($this->lng->txt(
'permission_denied'), $ilias->error_obj->MESSAGE);
 
  318                     $fs_gui->setMainFrameSource(
 
  319                         base64_decode(rawurldecode(
$_GET[
'fr'])));
 
  323                     $fs_gui->setMainFrameSource(
 
  324                         $this->ctrl->getLinkTargetByClass(
"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");