4 require_once 
"./classes/class.ilObjectGUI.php";
 
   32                 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference, 
false);
 
   34                 $this->lng->loadLanguageModule(
"administration");
 
   41                 $next_class = $this->ctrl->getNextClass($this);
 
   45                         case 'ilpermissiongui':
 
   46                                         include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   48                                         $ret =& $this->ctrl->forwardCommand($perm_gui);
 
   53                                 $cmd = $this->ctrl->getCmd(
"view");
 
   77                 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
   79                         $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
 
   83                 $this->objectList = array();
 
   84                 $this->data[
"data"] = array();
 
   85                 $this->data[
"ctrl"] = array();
 
   86                 $this->data[
"cols"] = array(
"type", 
"title");
 
   88                 $childs = $this->tree->getChilds($this->object->getRefId(),
$_GET[
"order"],
$_GET[
"direction"]);
 
   90                 foreach ($childs as $key => $val)
 
   93                         if (!$rbacsystem->checkAccess(
"visible",$val[
"ref_id"]))
 
   99                         if ($this->objDefinition->getDevMode($val[
"type"]))
 
  105                         if ($val[
"ref_id"] == RECOVERY_FOLDER_ID and !$this->tree->getChilds(RECOVERY_FOLDER_ID))
 
  111                         $this->data[
"data"][] = array(
 
  112                                                                                 "type" => $val[
"type"],
 
  113                                                                                 "title" => $val[
"title"].
"#separator#".$val[
"desc"],
 
  114                                                                                 "ref_id" => $val[
"ref_id"]
 
  122                 $this->data[
"data"][] = array(
 
  124                                 "title" => $this->lng->txt(
"repository_admin").
"#separator#".
 
  125                                         $this->lng->txt(
"repository_admin_desc"),
 
  126                                 "ref_id" => ROOT_FOLDER_ID
 
  129                 $this->maxcount = count($this->data[
"data"]);
 
  132                 if (
$_GET[
"sort_by"] == 
"")
 
  134                         $_GET[
"sort_by"] = 
"title";
 
  139                 foreach ($this->data[
"data"] as $key => $val)
 
  141                         $this->data[
"ctrl"][$key] = array(
 
  142                                                                                         "type" => $val[
"type"],
 
  143                                                                                         "ref_id" => $val[
"ref_id"]
 
  146                         unset($this->data[
"data"][$key][
"ref_id"]);
 
  155                 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
  170                 include_once 
"./Services/Table/classes/class.ilTableGUI.php";
 
  173                 $this->tpl->addBlockfile(
"ADM_CONTENT", 
"adm_content", 
"tpl.table.html");
 
  175                 $this->tpl->addBlockfile(
"TBL_CONTENT", 
"tbl_content", 
"tpl.obj_tbl_rows.html");
 
  179                 if (!$this->call_by_reference)
 
  181                         $this->ctrl->setParameter($this, 
"obj_id", $this->obj_id);
 
  184                 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
 
  190                 $tbl->setTitle($this->lng->txt(
"obj_".$this->object->getType()),
"icon_".$this->object->getType().
".gif",$this->lng->txt(
"obj_".$this->object->getType()));
 
  199                 $header_names[] = 
"";
 
  200                 $header_names[] = $this->lng->txt(
"obj_cat");
 
  202                 $tbl->setHeaderNames($header_names);
 
  204                 $header_params = $this->ctrl->getParameterArray($this, 
"view");
 
  205                 $tbl->setHeaderVars($this->data[
"cols"],$header_params);
 
  206                 $tbl->setColumnWidth(array(
"15",
"99%"));
 
  209                 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
 
  210                 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
 
  213                 $tbl->setMaxCount($this->maxcount);
 
  216                 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
 
  217                 $tbl->disable(
"numinfo");
 
  222                 if (is_array($this->data[
"data"][0]))
 
  225                         for ($i=0; $i < count($this->data[
"data"]); $i++)
 
  227                                 $data = $this->data[
"data"][$i];
 
  228                                 $ctrl = $this->data[
"ctrl"][$i];
 
  233                                 $this->tpl->setCurrentBlock(
"table_cell");
 
  234                                 $this->tpl->setVariable(
"CELLSTYLE", 
"tblrow1");
 
  235                                 $this->tpl->parseCurrentBlock();
 
  237                                 if ($ctrl[
"ref_id"] != ROOT_FOLDER_ID)
 
  239                                         foreach (
$data as $key => $val)
 
  243                                                 $class_name = $this->objDefinition->getClassName($obj_type);
 
  244                                                 $class = strtolower(
"ilObj".$class_name.
"GUI");
 
  245                                                 $this->ctrl->setParameterByClass($class, 
"ref_id", $ctrl[
"ref_id"]);
 
  246                                                 $this->ctrl->setParameterByClass($class, 
"obj_id", $ctrl[
"ref_id"]);
 
  247                                                 $link = $this->ctrl->getLinkTargetByClass($class, 
"view");
 
  251                                                         $name_field = explode(
"#separator#",$val);
 
  254                                                 if ($key == 
"title" || $key == 
"type")
 
  256                                                         $this->tpl->setCurrentBlock(
"begin_link");
 
  257                                                         $this->tpl->setVariable(
"LINK_TARGET", $link);
 
  259                                                         $this->tpl->parseCurrentBlock();
 
  260                                                         $this->tpl->touchBlock(
"end_link");
 
  263                                                 $this->tpl->setCurrentBlock(
"text");
 
  272                                                         $this->tpl->setVariable(
"TEXT_CONTENT", $name_field[0]);
 
  274                                                         $this->tpl->setCurrentBlock(
"subtitle");
 
  275                                                         $this->tpl->setVariable(
"DESC", $name_field[1]);
 
  276                                                         $this->tpl->parseCurrentBlock();
 
  280                                                         $this->tpl->setVariable(
"TEXT_CONTENT", $val);
 
  283                                                 $this->tpl->parseCurrentBlock();
 
  284                                                 $this->tpl->setCurrentBlock(
"table_cell");
 
  285                                                 $this->tpl->parseCurrentBlock();
 
  296                                         $this->tpl->setCurrentBlock(
"text");
 
  297                                         $this->tpl->setVariable(
"TEXT_CONTENT", $val);
 
  298                                         $this->tpl->parseCurrentBlock();
 
  300                                         $this->tpl->setCurrentBlock(
"table_cell");
 
  301                                         $this->tpl->parseCurrentBlock();
 
  304                                         $this->tpl->setCurrentBlock(
"begin_link");
 
  305                                         $this->ctrl->setParameterByClass(
"iladministrationgui",
 
  306                                                 "admin_mode", 
"repository");
 
  307                                         $this->ctrl->setParameterByClass(
"iladministrationgui",
 
  308                                                 "ref_id", ROOT_FOLDER_ID);
 
  309                                         $this->tpl->setVariable(
"LINK_TARGET",
 
  310                                                 $this->ctrl->getLinkTargetByClass(
"iladministrationgui", 
"frameset"));
 
  311                                         $this->tpl->setVariable(
"FRAME_TARGET",
 
  313                                         $this->ctrl->clearParametersByClass(
"iladministrationgui");
 
  314                                         $this->tpl->parseCurrentBlock();
 
  315                                         $this->tpl->touchBlock(
"end_link");
 
  319                                         $name_field = explode(
"#separator#", 
$data[
"title"]);
 
  320                                         $this->tpl->setCurrentBlock(
"text");
 
  321                                         $this->tpl->setVariable(
"TEXT_CONTENT", $name_field[0]);
 
  322                                         $this->tpl->setCurrentBlock(
"subtitle");
 
  323                                         $this->tpl->setVariable(
"DESC", $name_field[1]);
 
  324                                         $this->tpl->parseCurrentBlock();
 
  326                                         $this->tpl->setCurrentBlock(
"table_cell");
 
  327                                         $this->tpl->parseCurrentBlock();
 
  331                                 $this->tpl->setCurrentBlock(
"tbl_content");
 
  332                                 $this->tpl->setVariable(
"CSS_ROW", $css_row);
 
  333                                 $this->tpl->parseCurrentBlock();
 
  339                         $this->tpl->setCurrentBlock(
"notfound");
 
  340                         $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
 
  341                         $this->tpl->setVariable(
"NUM_COLS", $num);
 
  342                         $this->tpl->parseCurrentBlock();
 
  350                 $settings = $this->ilias->getAllSettings();
 
  352                 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
  354                         $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
 
  379                 if (empty(
$_POST[
"admin_firstname"]) or empty(
$_POST[
"admin_lastname"])
 
  380                         or empty(
$_POST[
"admin_street"]) or empty(
$_POST[
"admin_zipcode"])
 
  381                         or empty(
$_POST[
"admin_country"]) or empty(
$_POST[
"admin_city"])
 
  382                         or empty(
$_POST[
"admin_phone"]) or empty(
$_POST[
"admin_email"]))
 
  392                         ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"feedback_recipient").
"'<br/>".$this->lng->txt(
"email_not_valid"));
 
  399                         ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"error_recipient").
"'<br/>".$this->lng->txt(
"email_not_valid"));
 
  406                         ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"email").
"'<br/>".$this->lng->txt(
"email_not_valid"));
 
  411                 foreach (
$_POST as $key => $val)
 
  425                         $settings[
"feedback_recipient"] = 
$_POST[
"feedback_recipient"];
 
  426                         $settings[
"error_recipient"] = 
$_POST[
"error_recipient"];
 
  429                         $settings[
"pub_section"] = 
$_POST[
"pub_section"];
 
  430                         $settings[
"open_google"] = 
$_POST[
"open_google"];
 
  431                         $settings[
"default_repository_view"] = 
$_POST[
"default_rep_view"];
 
  432                         $settings[
"password_assistance"] = 
$_POST[
"password_assistance"];
 
  433                         $settings[
'short_inst_title'] = 
$_POST[
'short_inst_title'];
 
  434                         $settings[
"passwd_auto_generate"] = 
$_POST[
"password_auto_generate"];
 
  436                         $settings[
"enable_trash"] = 
$_POST[
"enable_trash"];
 
  440                         $settings[
'session_reminder_enabled'] = (int)
$_POST[
'session_reminder_enabled'];
 
  446                         $settings[
"admin_firstname"] = 
$_POST[
"admin_firstname"];
 
  447                         $settings[
"admin_lastname"] = 
$_POST[
"admin_lastname"];
 
  448                         $settings[
"admin_title"] = 
$_POST[
"admin_title"];
 
  449                         $settings[
"admin_position"] = 
$_POST[
"admin_position"];
 
  450                         $settings[
"admin_institution"] = 
$_POST[
"admin_institution"];
 
  451                         $settings[
"admin_street"] = 
$_POST[
"admin_street"];
 
  452                         $settings[
"admin_zipcode"] = 
$_POST[
"admin_zipcode"];
 
  453                         $settings[
"admin_city"] = 
$_POST[
"admin_city"];
 
  454                         $settings[
"admin_country"] = 
$_POST[
"admin_country"];
 
  455                         $settings[
"admin_phone"] = 
$_POST[
"admin_phone"];
 
  456                         $settings[
"admin_email"] = 
$_POST[
"admin_email"];
 
  459                         $settings[
"cron_user_check"] = 
$_POST[
"cron_user_check"];
 
  460                         $settings[
"cron_link_check"] = 
$_POST[
"cron_link_check"];
 
  461                         $settings[
"cron_web_resource_check"] = 
$_POST[
"cron_web_resource_check"];
 
  462                         $settings[
"cron_lucene_index"] = 
$_POST[
"cron_lucene_index"];
 
  463                         $settings[
"forum_notification"] = 
$_POST[
"forum_notification"];
 
  464                         $settings[
"mail_notification"] = 
$_POST[
"mail_notification"];
 
  465                         $settings[
"mail_notification_message"] = 
$_POST[
"mail_notification_message"];
 
  468                         $settings[
'frm_store_new'] = 
$_POST[
'frm_store_new'];
 
  471                         $settings[
"soap_user_administration"] = 
$_POST[
"soap_user_administration"];
 
  476                         $settings[
"suffix_repl_additional"] = 
$_POST[
"suffix_repl_additional"];
 
  479                         $settings[
"links_dynamic"] = 
$_POST[
"links_dynamic"];
 
  488                         $this->ilias->setSetting(
"feedback_recipient",
$_POST[
"feedback_recipient"]);
 
  489                         $this->ilias->setSetting(
"error_recipient",
$_POST[
"error_recipient"]);
 
  517                         $this->ilias->setSetting(
"pub_section",
$_POST[
"pub_section"]);
 
  518                         $this->ilias->setSetting(
'open_google',
$_POST[
'open_google']);
 
  519                         $this->ilias->setSetting(
"default_repository_view",
$_POST[
"default_rep_view"]);
 
  521                         $this->ilias->setSetting(
'password_assistance',
$_POST[
'password_assistance']);
 
  522                         $this->ilias->setSetting(
'passwd_auto_generate',
$_POST[
'password_auto_generate']);
 
  525                         $this->ilias->setSetting(
'short_inst_name',
$_POST[
'short_inst_name']);
 
  526                         $this->ilias->setSetting(
'enable_trash',
$_POST[
'enable_trash']);
 
  529                         $this->ilias->setSetting(
'session_reminder_enabled', (
int)
$_POST[
'session_reminder_enabled']);
 
  532                         $this->ilias->setSetting(
"admin_firstname",$_POST[
"admin_firstname"]);
 
  533                         $this->ilias->setSetting(
"admin_lastname",$_POST[
"admin_lastname"]);
 
  534                         $this->ilias->setSetting(
"admin_title",$_POST[
"admin_title"]);
 
  535                         $this->ilias->setSetting(
"admin_position",$_POST[
"admin_position"]);
 
  536                         $this->ilias->setSetting(
"admin_institution",$_POST[
"admin_institution"]);
 
  537                         $this->ilias->setSetting(
"admin_street",$_POST[
"admin_street"]);
 
  538                         $this->ilias->setSetting(
"admin_zipcode",$_POST[
"admin_zipcode"]);
 
  539                         $this->ilias->setSetting(
"admin_city",$_POST[
"admin_city"]);
 
  540                         $this->ilias->setSetting(
"admin_country",$_POST[
"admin_country"]);
 
  541                         $this->ilias->setSetting(
"admin_phone",$_POST[
"admin_phone"]);
 
  542                         $this->ilias->setSetting(
"admin_email",$_POST[
"admin_email"]);
 
  545                         $this->ilias->setSetting(
"cron_user_check",$_POST[
"cron_user_check"]);
 
  546                         $this->ilias->setSetting(
"cron_link_check",$_POST[
"cron_link_check"]);
 
  547                         $this->ilias->setSetting(
"cron_web_resource_check",$_POST[
"cron_web_resource_check"]);
 
  548                         $this->ilias->setSetting(
"cron_lucene_index",$_POST[
"cron_lucene_index"]);
 
  549                         $this->ilias->setSetting(
"forum_notification",$_POST[
"forum_notification"]);
 
  550                         if ($_POST[
"forum_notification"] == 2)
 
  552                                 $this->ilias->setSetting(
"cron_forum_notification_last_date",date(
"Y-m-d H:i:s"));
 
  554                         $this->ilias->setSetting(
"mail_notification", $_POST[
"mail_notification"]);
 
  555                         $this->ilias->setSetting(
"mail_notification_message", $_POST[
"mail_notification_message"]);
 
  559                         $this->ilias->setSetting(
"soap_user_administration",$_POST[
"soap_user_administration"]);
 
  560                         $this->ilias->setSetting(
"rpc_server_host",trim($_POST[
"rpc_server_host"]));
 
  561                         $this->ilias->setSetting(
"rpc_server_port",trim($_POST[
"rpc_server_port"]));
 
  567                         $this->ilias->setSetting(
'frm_store_new',$_POST[
'frm_store_new']);
 
  570                         $this->ilias->ini->write();
 
  573                         $this->ilias->setSetting(
'links_dynamic',$_POST[
'links_dynamic']);
 
  575                         $this->ilias->setSetting(
"suffix_repl_additional",
 
  578                         $settings = $this->ilias->getAllSettings();
 
  581                         $feedback = $this->lng->txt(
"saved_successfully");
 
  582                         if (trim($_POST[
"rpc_server_host"]) != 
"" ||
 
  583                                 trim($_POST[
"rpc_server_port"]) != 
"")
 
  585                                 include_once 
'Services/WebServices/RPC/classes/class.ilRPCServerSettings.php';
 
  587                                 if(!$rpc_settings->pingServer())
 
  589                                         $feedback .= 
"<br />\n".$this->lng->txt(
'java_server_no_connection');
 
  595                 $ilCtrl->redirect($this, 
"view");
 
  601                 include_once(
"./Modules/Scorm2004/classes/class.ilScormEditorDBCreator.php");
 
  603                 $db_creator->createTables();
 
  616                 global $rbacsystem, 
$ilCtrl, $ilClientIniFile;
 
  618                 $this->tpl->addBlockFile(
"SYSTEMSETTINGS", 
"systemsettings", 
"tpl.adm_basicdata.html",
 
  619                         "Modules/SystemFolder");
 
  621                 $settings = $this->ilias->getAllSettings();
 
  624                 $this->tpl->setVariable(
"HREF_CREATE_WIKI_TABLE",
 
  625                         $ilCtrl->getLinkTarget($this, 
"createWikiTables"));
 
  629                 $this->tpl->setVariable(
"TXT_BASIC_DATA", $this->lng->txt(
"basic_data"));
 
  635                 $this->tpl->setVariable(
"TXT_ILIAS_VERSION", $this->lng->txt(
"ilias_version"));
 
  636                 $this->tpl->setVariable(
"TXT_DB_VERSION", $this->lng->txt(
"db_version"));
 
  637                 $this->tpl->setVariable(
"TXT_CLIENT_ID", $this->lng->txt(
"client_id"));
 
  638                 $this->tpl->setVariable(
"TXT_INST_ID", $this->lng->txt(
"inst_id"));
 
  639                 $this->tpl->setVariable(
"TXT_ACTIVATE_HTTPS",$this->lng->txt(
'activate_https'));
 
  640                 $this->tpl->setVariable(
"TXT_HOSTNAME", $this->lng->txt(
"host"));
 
  641                 $this->tpl->setVariable(
"TXT_IP_ADDRESS", $this->lng->txt(
"ip_address"));
 
  642                 $this->tpl->setVariable(
"TXT_SERVER_DATA", $this->lng->txt(
"server_data"));
 
  643                 $this->tpl->setVariable(
"TXT_SERVER_PORT", $this->lng->txt(
"port"));
 
  644                 $this->tpl->setVariable(
"TXT_SERVER_SOFTWARE", $this->lng->txt(
"server_software"));
 
  645                 $this->tpl->setVariable(
"TXT_HTTP_PATH", $this->lng->txt(
"http_path"));
 
  646                 $this->tpl->setVariable(
"TXT_ABSOLUTE_PATH", $this->lng->txt(
"absolute_path"));
 
  647                 $this->tpl->setVariable(
"TXT_INST_NAME", $this->lng->txt(
"inst_name"));
 
  648                 $this->tpl->setVariable(
"TXT_INST_INFO", $this->lng->txt(
"inst_info"));
 
  650                 $this->tpl->setVariable(
"TXT_FEEDBACK_RECIPIENT", $this->lng->txt(
"feedback_recipient"));
 
  651                 $this->tpl->setVariable(
"TXT_ERROR_RECIPIENT", $this->lng->txt(
"error_recipient"));
 
  652                 $this->tpl->setVariable(
"TXT_HEADER_TITLE", $this->lng->txt(
"header_title"));
 
  653                 $this->tpl->setVariable(
"TXT_SHORT_NAME", $this->lng->txt(
"short_inst_name"));
 
  654                 $this->tpl->setVariable(
"TXT_SHORT_NAME_INFO", $this->lng->txt(
"short_inst_name_info"));
 
  656                 $this->tpl->setVariable(
"VAL_SHORT_INST_NAME", $settings[
'short_inst_name']);
 
  657                 $this->tpl->setVariable(
"TXT_CHANGE", $this->lng->txt(
"change"));
 
  658                 $this->tpl->setVariable(
"LINK_HEADER_TITLE",
 
  659                         $this->ctrl->getLinkTarget($this, 
"changeHeaderTitle"));
 
  660                 $this->tpl->setVariable(
"VAL_HEADER_TITLE",
 
  663                 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
 
  664                 $dbupdate = 
new ilDBUpdate($this->ilias->db,
true);
 
  666                 if (!$dbupdate->getDBVersionStatus())
 
  668                         $this->tpl->setVariable(
"TXT_DB_UPDATE", 
" (<span class=\"warning\">".$this->lng->txt(
"db_need_update").
"</span>)");
 
  672                 $this->tpl->setVariable(
"TXT_PUB_SECTION", $this->lng->txt(
"pub_section"));
 
  675                 $this->tpl->setVariable(
'TXT_SEARCH_ENGINE',$this->lng->txt(
'search_engine'));
 
  676                 $this->tpl->setVariable(
'TXT_ENABLE_SEARCH_ENGINE',$this->lng->txt(
'enable_search_engine'));
 
  677                 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
 
  681                 if(!$robot_settings->checkModRewrite())
 
  684                         $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'disabled="disabled"');
 
  686                         $this->tpl->setCurrentBlock(
'search_engine_alert');
 
  688                         $this->tpl->setVariable(
'SE_ALT_ALERT',$this->lng->txt(
'alert'));
 
  689                         $this->tpl->setVariable(
'TXT_SE_ALERT',$this->lng->txt(
'mod_rewrite_disabled'));
 
  690                         $this->tpl->parseCurrentBlock();
 
  692                 elseif(!$robot_settings->checkRewrite())
 
  695                         $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'disabled="disabled"');
 
  697                         $this->tpl->setCurrentBlock(
'search_engine_alert');
 
  699                         $this->tpl->setVariable(
'SE_ALT_ALERT',$this->lng->txt(
'alert'));
 
  700                         $this->tpl->setVariable(
'TXT_SE_ALERT',$this->lng->txt(
'allow_override_alert'));
 
  701                         $this->tpl->parseCurrentBlock();
 
  703                 if($settings[
'open_google'] and !$error_se)
 
  705                         $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'checked="checked"');
 
  708                 $this->tpl->setVariable(
"TXT_DEFAULT_REPOSITORY_VIEW", $this->lng->txt(
"def_repository_view"));
 
  709                 $this->tpl->setVariable(
"TXT_FLAT", $this->lng->txt(
"flatview"));
 
  710                 $this->tpl->setVariable(
"TXT_TREE", $this->lng->txt(
"treeview"));
 
  712                 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_ASSISTANCE", $this->lng->txt(
"enable_password_assistance"));
 
  713                 $this->tpl->setVariable(
"TXT_PASSWORD_AUTO_GENERATE_INFO",$this->lng->txt(
'passwd_generation_info'));
 
  721                 $this->tpl->setVariable(
"TXT_PASSWORD_ASSISTANCE_INFO", $this->lng->txt(
"password_assistance_info"));
 
  723                 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_GENERATION",$this->lng->txt(
'passwd_generation'));
 
  726                 $this->tpl->setVariable(
"TXT_FILE_SUFFIX_REPL", $this->lng->txt(
"file_suffix_repl"));
 
  727                 $this->tpl->setVariable(
"INFO_FILE_SUFFIX_REPL",
 
  728                         $this->lng->txt(
"file_suffix_repl_info").
" ".SUFFIX_REPL_DEFAULT);
 
  730                 $this->tpl->setVariable(
"TXT_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic'));
 
  731                 $this->tpl->setVariable(
"INFO_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic_info'));
 
  733                 $this->tpl->setVariable(
"TXT_ENABLE_TRASH",$this->lng->txt(
'enable_trash'));
 
  734                 $this->tpl->setVariable(
"INFO_ENABLE_TRASH",$this->lng->txt(
'enable_trash_info'));
 
  736                 $this->tpl->setVariable(
'TXT_SESSION_REMINDER', $this->lng->txt(
'session_reminder'));
 
  737                 $this->tpl->setVariable(
'INFO_SESSION_REMINDER', $this->lng->txt(
'session_reminder_info'));
 
  738                 $expires = $ilClientIniFile->readVariable(
"session", 
"expire");
 
  740                 $this->tpl->setVariable(
'SESSION_REMINDER_SESSION_DURATION',
 
  741                         sprintf($this->lng->txt(
'session_reminder_session_duration'), $time));
 
  745                 $this->tpl->setVariable(
"TXT_SOFTWARE", $this->lng->txt(
"3rd_party_software"));
 
  746                 $this->tpl->setVariable(
"TXT_CONVERT_PATH", $this->lng->txt(
"path_to_convert"));
 
  747                 $this->tpl->setVariable(
"TXT_ZIP_PATH", $this->lng->txt(
"path_to_zip"));
 
  748                 $this->tpl->setVariable(
"TXT_UNZIP_PATH", $this->lng->txt(
"path_to_unzip"));
 
  749                 $this->tpl->setVariable(
"TXT_JAVA_PATH", $this->lng->txt(
"path_to_java"));
 
  750                 $this->tpl->setVariable(
"TXT_HTMLDOC_PATH", $this->lng->txt(
"path_to_htmldoc"));
 
  751                 $this->tpl->setVariable(
"TXT_MKISOFS_PATH", $this->lng->txt(
"path_to_mkisofs"));
 
  752                 $this->tpl->setVariable(
"TXT_LATEX_URL", $this->lng->txt(
"url_to_latex"));
 
  755                 $this->tpl->setVariable(
"TXT_CRON",$this->lng->txt(
'cron_jobs'));
 
  756                 $this->tpl->setVariable(
"TXT_CRON_DESC",$this->lng->txt(
'cron_jobs_desc'));
 
  757                 $this->tpl->setVariable(
"TXT_CRON_USER_ACCOUNTS",$this->lng->txt(
'check_user_accounts'));
 
  758                 $this->tpl->setVariable(
"CRON_USER_ACCOUNTS_DESC",$this->lng->txt(
'check_user_accounts_desc'));
 
  759                 $this->tpl->setVariable(
"TXT_CRON_LINK_CHECK",$this->lng->txt(
'check_link'));
 
  760                 $this->tpl->setVariable(
"CRON_LINK_CHECK_DESC",$this->lng->txt(
'check_link_desc'));
 
  761                 $this->tpl->setVariable(
"TXT_CRON_WEB_RESOURCE_CHECK",$this->lng->txt(
'check_web_resources'));
 
  762                 $this->tpl->setVariable(
"CRON_WEB_RESOURCE_CHECK_DESC",$this->lng->txt(
'check_web_resources_desc'));
 
  764                 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX",$this->lng->txt(
'cron_lucene_index'));
 
  765                 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX_INFO",$this->lng->txt(
'cron_lucene_index_info'));
 
  767                 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION",$this->lng->txt(
'cron_forum_notification'));
 
  768                 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_NEVER",$this->lng->txt(
'cron_forum_notification_never'));
 
  769                 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_DIRECTLY",$this->lng->txt(
'cron_forum_notification_directly'));
 
  770                 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_CRON",$this->lng->txt(
'cron_forum_notification_cron'));
 
  771                 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_DESC",$this->lng->txt(
'cron_forum_notification_desc'));
 
  773                 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION",$this->lng->txt(
'cron_mail_notification'));
 
  774                 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_NEVER",$this->lng->txt(
'cron_mail_notification_never'));
 
  775                 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_CRON",$this->lng->txt(
'cron_mail_notification_cron'));
 
  776                 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_DESC",$this->lng->txt(
'cron_mail_notification_desc'));
 
  778                 $this->tpl->setVariable(
"TXT_CRON_MAIL_MESSAGE_CHECK", $this->lng->txt(
'cron_mail_notification_message'));
 
  779                 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK", $this->lng->txt(
'cron_mail_notification_message_enabled'));
 
  780                 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK_DESC", $this->lng->txt(
'cron_mail_notification_message_desc'));
 
  782                 $this->tpl->setVariable(
"TXT_NEVER",$this->lng->txt(
'never'));
 
  783                 $this->tpl->setVariable(
"TXT_DAILY",$this->lng->txt(
'daily'));
 
  784                 $this->tpl->setVariable(
"TXT_WEEKLY",$this->lng->txt(
'weekly'));
 
  785                 $this->tpl->setVariable(
"TXT_MONTHLY",$this->lng->txt(
'monthly'));
 
  786                 $this->tpl->setVariable(
"TXT_QUARTERLY",$this->lng->txt(
'quarterly'));
 
  788                 $this->tpl->setVariable(
"TXT_WEBSERVICES",$this->lng->txt(
'webservices'));
 
  789                 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION",$this->lng->txt(
'soap_user_administration'));
 
  790                 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION_DESC",$this->lng->txt(
'soap_user_administration_desc'));
 
  792                 $this->tpl->setVariable(
"TXT_JAVA_SERVER",$this->lng->txt(
'java_server'));
 
  793                 $this->tpl->setVariable(
"TXT_JAVA_SERVER_HOST",$this->lng->txt(
'java_server_host'));
 
  794                 $this->tpl->setVariable(
"TXT_JAVA_SERVER_PORT",$this->lng->txt(
'java_server_port'));
 
  795                 $this->tpl->setVariable(
"TXT_JAVA_SERVER_INFO",$this->lng->txt(
'java_server_info'));
 
  796                 $this->tpl->setVariable(
"TXT_JAVA_SERVER_README",$this->lng->txt(
'java_server_readme'));
 
  804                 $this->tpl->setVariable(
"TXT_FORUMS",$this->lng->txt(
'obj_frm'));
 
  805                 $this->tpl->setVariable(
"TXT_STATUS_NEW",$this->lng->txt(
'frm_status_new'));
 
  806                 $this->tpl->setVariable(
"TXT_STATUS_NEW_DESC",$this->lng->txt(
'frm_status_new_desc'));
 
  808                 $this->tpl->setVariable(
"TXT_ONE_WEEK",
"1 ". $this->lng->txt(
'week'));
 
  809                 $this->tpl->setVariable(
"TXT_TWO_WEEKS",
"2 ". $this->lng->txt(
'weeks'));
 
  810                 $this->tpl->setVariable(
"TXT_FOUR_WEEKS",
"4 ". $this->lng->txt(
'weeks'));
 
  811                 $this->tpl->setVariable(
"TXT_EIGHT_WEEKS",
"8 ". $this->lng->txt(
'weeks'));
 
  814                 $this->tpl->setVariable(
"TXT_CONTACT_DATA", $this->lng->txt(
"contact_data"));
 
  815                 $this->tpl->setVariable(
"TXT_REQUIRED_FIELDS", $this->lng->txt(
"required_field"));
 
  816                 $this->tpl->setVariable(
"TXT_ADMIN", $this->lng->txt(
"administrator"));
 
  817                 $this->tpl->setVariable(
"TXT_FIRSTNAME", $this->lng->txt(
"firstname"));
 
  818                 $this->tpl->setVariable(
"TXT_LASTNAME", $this->lng->txt(
"lastname"));
 
  819                 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
 
  820                 $this->tpl->setVariable(
"TXT_POSITION", $this->lng->txt(
"position"));
 
  821                 $this->tpl->setVariable(
"TXT_INSTITUTION", $this->lng->txt(
"institution"));
 
  822                 $this->tpl->setVariable(
"TXT_STREET", $this->lng->txt(
"street"));
 
  823                 $this->tpl->setVariable(
"TXT_ZIPCODE", $this->lng->txt(
"zipcode"));
 
  824                 $this->tpl->setVariable(
"TXT_CITY", $this->lng->txt(
"city"));
 
  825                 $this->tpl->setVariable(
"TXT_COUNTRY", $this->lng->txt(
"country"));
 
  826                 $this->tpl->setVariable(
"TXT_PHONE", $this->lng->txt(
"phone"));
 
  827                 $this->tpl->setVariable(
"TXT_EMAIL", $this->lng->txt(
"email"));
 
  828                 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
 
  835                 $this->tpl->setVariable(
"FORMACTION_BASICDATA", $this->ctrl->getFormAction($this));
 
  836                 $this->tpl->setVariable(
"HTTP_PATH",ILIAS_HTTP_PATH);
 
  838                 $this->tpl->setVariable(
"HOSTNAME", $_SERVER[
"SERVER_NAME"]);
 
  839                 $this->tpl->setVariable(
"SERVER_PORT", $_SERVER[
"SERVER_PORT"]);
 
  840                 $this->tpl->setVariable(
"SERVER_ADMIN", $_SERVER[
"SERVER_ADMIN"]);      
 
  841                 $this->tpl->setVariable(
"SERVER_SOFTWARE", $_SERVER[
"SERVER_SOFTWARE"]);
 
  842                 $this->tpl->setVariable(
"IP_ADDRESS", $_SERVER[
"SERVER_ADDR"]);
 
  843                 $this->tpl->setVariable(
"DB_VERSION",$settings[
"db_version"]);
 
  844                 $this->tpl->setVariable(
"ILIAS_VERSION",$settings[
"ilias_version"]);
 
  845                 $this->tpl->setVariable(
"INST_ID",$settings[
"inst_id"]);
 
  846                 $this->tpl->setVariable(
"CLIENT_ID",CLIENT_ID);
 
  847                 $this->tpl->setVariable(
"INST_NAME",$this->ilias->ini->readVariable(
"client",
"name"));
 
  848                 $this->tpl->setVariable(
"INST_INFO",$this->ilias->ini->readVariable(
"client",
"description"));
 
  849                 $this->tpl->setVariable(
"FEEDBACK_RECIPIENT",$settings[
"feedback_recipient"]);
 
  850                 $this->tpl->setVariable(
"ERROR_RECIPIENT",$settings[
"error_recipient"]);
 
  852                 $this->tpl->setVariable(
"PHP_INFO_LINK",
 
  853                         $this->ctrl->getLinkTarget($this, 
"showPHPInfo"));
 
  856                 if ($settings[
"pub_section"])
 
  858                         $this->tpl->setVariable(
"PUB_SECTION",
"checked=\"checked\"");
 
  861                 if ($settings[
"default_repository_view"] == 
"tree")
 
  863                         $this->tpl->setVariable(
"TREESELECTED",
"selected=\"1\"");
 
  867                         $this->tpl->setVariable(
"FLATSELECTED",
"selected=\"1\"");
 
  870                 if($settings[
'password_assistance'])
 
  872                         $this->tpl->setVariable(
"PASSWORD_ASSISTANCE",
"checked=\"checked\"");
 
  874                 $this->tpl->setVariable(
"VAL_SHORT_NAME", $settings[
'short_inst_title']);
 
  875                 if($settings[
'passwd_auto_generate'])
 
  877                         $this->tpl->setVariable(
"PASSWORD_AUTO_GENERATE",
"checked=\"checked\"");
 
  889                 if($settings[
'links_dynamic'])
 
  891                         $this->tpl->setVariable(
"LINKS_DYNAMIC_CHECKED",
"checked=\"checked\"");
 
  894                 if($settings[
'enable_trash'])
 
  896                         $this->tpl->setVariable(
"ENABLE_TRASH_CHECKED",
"checked=\"checked\"");
 
  899                 if($settings[
'session_reminder_enabled'])
 
  901                         $this->tpl->setVariable(
'SESSION_REMINDER_ENABLED',
'checked=checked');
 
  904                 if ($settings[
"require_login"])
 
  906             $this->tpl->setVariable(
"REQUIRE_LOGIN",
"checked=\"checked\"");
 
  908         if ($settings[
"require_passwd"])
 
  910             $this->tpl->setVariable(
"REQUIRE_PASSWD",
"checked=\"checked\"");
 
  912         if ($settings[
"require_passwd2"])
 
  914             $this->tpl->setVariable(
"REQUIRE_PASSWD2",
"checked=\"checked\"");
 
  916         if ($settings[
"require_firstname"])
 
  918             $this->tpl->setVariable(
"REQUIRE_FIRSTNAME",
"checked=\"checked\"");
 
  920         if ($settings[
"require_gender"])
 
  922             $this->tpl->setVariable(
"REQUIRE_GENDER",
"checked=\"checked\"");
 
  924         if ($settings[
"require_lastname"])
 
  926             $this->tpl->setVariable(
"REQUIRE_LASTNAME",
"checked=\"checked\"");
 
  928         if ($settings[
"require_institution"])
 
  930             $this->tpl->setVariable(
"REQUIRE_INSTITUTION",
"checked=\"checked\"");
 
  932         if ($settings[
"require_department"])
 
  934             $this->tpl->setVariable(
"REQUIRE_DEPARTMENT",
"checked=\"checked\"");
 
  936         if ($settings[
"require_street"])
 
  938             $this->tpl->setVariable(
"REQUIRE_STREET",
"checked=\"checked\"");
 
  940         if ($settings[
"require_city"])
 
  942             $this->tpl->setVariable(
"REQUIRE_CITY",
"checked=\"checked\"");
 
  944         if ($settings[
"require_zipcode"])
 
  946             $this->tpl->setVariable(
"REQUIRE_ZIPCODE",
"checked=\"checked\"");
 
  948         if ($settings[
"require_country"])
 
  950             $this->tpl->setVariable(
"REQUIRE_COUNTRY",
"checked=\"checked\"");
 
  952         if ($settings[
"require_phone_office"])
 
  954             $this->tpl->setVariable(
"REQUIRE_PHONE_OFFICE",
"checked=\"checked\"");
 
  956         if ($settings[
"require_phone_home"])
 
  958             $this->tpl->setVariable(
"REQUIRE_PHONE_HOME",
"checked=\"checked\"");
 
  960         if ($settings[
"require_phone_mobile"])
 
  962             $this->tpl->setVariable(
"REQUIRE_PHONE_MOBILE",
"checked=\"checked\"");
 
  964         if ($settings[
"require_fax"])
 
  966             $this->tpl->setVariable(
"REQUIRE_FAX",
"checked=\"checked\"");
 
  968         if ($settings[
"require_email"])
 
  970             $this->tpl->setVariable(
"REQUIRE_EMAIL",
"checked=\"checked\"");
 
  972         if ($settings[
"require_hobby"])
 
  974             $this->tpl->setVariable(
"REQUIRE_HOBBY",
"checked=\"checked\"");
 
  976         if ($settings[
"require_default_role"])
 
  978             $this->tpl->setVariable(
"REQUIRE_DEFAULT_ROLE",
"checked=\"checked\"");
 
  980         if ($settings[
"require_referral_comment"])
 
  982             $this->tpl->setVariable(
"REQUIRE_REFERRAL_COMMENT",
"checked=\"checked\"");
 
  984         if ($settings[
"require_matriculation"])
 
  986             $this->tpl->setVariable(
"REQUIRE_MATRICULATION",
"checked=\"checked\"");
 
  988         if ($settings[
"cron_user_check"])
 
  990             $this->tpl->setVariable(
"CRON_USER_CHECK",
"checked=\"checked\"");
 
  992         if ($settings[
"cron_link_check"])
 
  994                         $this->tpl->setVariable(
"CRON_LINK_CHECK",
"checked=\"checked\"");
 
  996                 if($settings[
"cron_lucene_index"])
 
  998                         $this->tpl->setVariable(
"CRON_LUCENE_INDEX",
"checked=\"checked\"");
 
 1000         if ($settings[
"forum_notification"] == 0)
 
 1002                         $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_NEVER_SELECTED",
" selected");
 
 1004         else if ($settings[
"forum_notification"] == 1)
 
 1006                         $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_DIRECTLY_SELECTED",
" selected");
 
 1008         else if ($settings[
"forum_notification"] == 2)
 
 1010                         $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_CRON_SELECTED",
" selected");
 
 1012         if ($settings[
"mail_notification"] == 0)
 
 1014                         $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_NEVER_SELECTED",
" selected=\"selected\"");
 
 1016         else if ($settings[
"mail_notification"] == 1)
 
 1018                         $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_CRON_SELECTED",
" selected=\"selected\"");
 
 1019                         if($settings[
"mail_notification_message"] == 1)
 
 1021                                 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK",
"checked=\"checked\"");
 
 1025                                 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK_DISABLED",
"DISABLED");
 
 1028         if ($val = $settings[
"cron_web_resource_check"])
 
 1033                                         $this->tpl->setVariable(
"D_SELECT",
'selected="selected"');
 
 1036                                         $this->tpl->setVariable(
"W_SELECT",
'selected="selected"');
 
 1039                                         $this->tpl->setVariable(
"M_SELECT",
'selected="selected"');
 
 1042                                         $this->tpl->setVariable(
"Q_SELECT",
'selected="selected"');
 
 1047                 switch($settings[
'frm_store_new'])
 
 1050                                 $this->tpl->setVariable(
"ONE_SELECT",
'selected="selected"');
 
 1054                                 $this->tpl->setVariable(
"TWO_SELECT",
'selected="selected"');
 
 1058                                 $this->tpl->setVariable(
"FOUR_SELECT",
'selected="selected"');
 
 1063                                 $this->tpl->setVariable(
"EIGHT_SELECT",
'selected="selected"');
 
 1066         if ($settings[
"soap_user_administration"])
 
 1068             $this->tpl->setVariable(
"SOAP_USER_ADMINISTRATION_CHECK",
"checked=\"checked\"");
 
 1071         $this->tpl->setVariable(
"JAVA_SERVER_HOST",$settings[
"rpc_server_host"]);
 
 1072         $this->tpl->setVariable(
"JAVA_SERVER_PORT",$settings[
"rpc_server_port"]);
 
 1081                 $not_set = $this->lng->txt(
"path_not_set");
 
 1083                 $this->tpl->setVariable(
"CONVERT_PATH",(PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
 
 1084                 $this->tpl->setVariable(
"ZIP_PATH",(PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
 
 1085                 $this->tpl->setVariable(
"UNZIP_PATH",(PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
 
 1086                 $this->tpl->setVariable(
"JAVA_PATH",(PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
 
 1087                 $this->tpl->setVariable(
"HTMLDOC_PATH",(PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
 
 1088                 $this->tpl->setVariable(
"MKISOFS_PATH",(PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
 
 1089                 $this->tpl->setVariable(
"LATEX_URL",(URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
 
 1092                 $this->tpl->setVariable(
"ADMIN_FIRSTNAME",$settings[
"admin_firstname"]);
 
 1093                 $this->tpl->setVariable(
"ADMIN_LASTNAME",$settings[
"admin_lastname"]);
 
 1094                 $this->tpl->setVariable(
"ADMIN_TITLE",$settings[
"admin_title"]);
 
 1095                 $this->tpl->setVariable(
"ADMIN_POSITION",$settings[
"admin_position"]);
 
 1096                 $this->tpl->setVariable(
"ADMIN_INSTITUTION",$settings[
"admin_institution"]);
 
 1097                 $this->tpl->setVariable(
"ADMIN_STREET",$settings[
"admin_street"]);
 
 1098                 $this->tpl->setVariable(
"ADMIN_ZIPCODE",$settings[
"admin_zipcode"]);
 
 1099                 $this->tpl->setVariable(
"ADMIN_CITY",$settings[
"admin_city"]);
 
 1100                 $this->tpl->setVariable(
"ADMIN_COUNTRY",$settings[
"admin_country"]);
 
 1101                 $this->tpl->setVariable(
"ADMIN_PHONE",$settings[
"admin_phone"]);
 
 1102                 $this->tpl->setVariable(
"ADMIN_EMAIL",$settings[
"admin_email"]);
 
 1104                 $this->tpl->parseCurrentBlock();
 
 1121                 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
 1123                         $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
 
 1127                 if (
$_POST[
'count_limit'] !== null || 
$_POST[
'age_limit'] !== null || 
$_POST[
'type_limit'] !== null)
 
 1129                         $ilias->account->writePref(
'systemcheck_count_limit',
 
 1130                                 (is_numeric(
$_POST[
'count_limit']) && 
$_POST[
'count_limit'] > 0) ? 
$_POST[
'count_limit'] : 
'' 
 1132                         $ilias->account->writePref(
'systemcheck_age_limit',
 
 1133                                 (is_numeric(
$_POST[
'age_limit']) && 
$_POST[
'age_limit'] > 0) ? 
$_POST[
'age_limit'] : 
'');
 
 1134                         $ilias->account->writePref(
'systemcheck_type_limit', trim(
$_POST[
'type_limit']));
 
 1146                         include_once 
"classes/class.ilValidator.php";
 
 1148                         $hasScanLog = $validator->hasScanLog();
 
 1154                                 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_last_log"));
 
 1157                         $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
 
 1158                         $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"systemcheck"));
 
 1159                         $this->tpl->setVariable(
"COLSPAN", 3);
 
 1160                         $this->tpl->setVariable(
"TXT_ANALYZE_TITLE", $this->lng->txt(
"analyze_data"));
 
 1161                         $this->tpl->setVariable(
"TXT_ANALYSIS_OPTIONS", $this->lng->txt(
"analysis_options"));
 
 1162                         $this->tpl->setVariable(
"TXT_REPAIR_OPTIONS", $this->lng->txt(
"repair_options"));
 
 1163                         $this->tpl->setVariable(
"TXT_OUTPUT_OPTIONS", $this->lng->txt(
"output_options"));
 
 1164                         $this->tpl->setVariable(
"TXT_SCAN", $this->lng->txt(
"scan"));
 
 1165                         $this->tpl->setVariable(
"TXT_SCAN_DESC", $this->lng->txt(
"scan_desc"));
 
 1166                         $this->tpl->setVariable(
"TXT_DUMP_TREE", $this->lng->txt(
"dump_tree"));
 
 1167                         $this->tpl->setVariable(
"TXT_DUMP_TREE_DESC", $this->lng->txt(
"dump_tree_desc"));
 
 1168                         $this->tpl->setVariable(
"TXT_CLEAN", $this->lng->txt(
"clean"));
 
 1169                         $this->tpl->setVariable(
"TXT_CLEAN_DESC", $this->lng->txt(
"clean_desc"));
 
 1170                         $this->tpl->setVariable(
"TXT_RESTORE", $this->lng->txt(
"restore_missing"));
 
 1171                         $this->tpl->setVariable(
"TXT_RESTORE_DESC", $this->lng->txt(
"restore_missing_desc"));
 
 1172                         $this->tpl->setVariable(
"TXT_PURGE", $this->lng->txt(
"purge_missing"));
 
 1173                         $this->tpl->setVariable(
"TXT_PURGE_DESC", $this->lng->txt(
"purge_missing_desc"));
 
 1174                         $this->tpl->setVariable(
"TXT_RESTORE_TRASH", $this->lng->txt(
"restore_trash"));
 
 1175                         $this->tpl->setVariable(
"TXT_RESTORE_TRASH_DESC", $this->lng->txt(
"restore_trash_desc"));
 
 1176                         $this->tpl->setVariable(
"TXT_PURGE_TRASH", $this->lng->txt(
"purge_trash"));
 
 1177                         $this->tpl->setVariable(
"TXT_PURGE_TRASH_DESC", $this->lng->txt(
"purge_trash_desc"));
 
 1178                         $this->tpl->setVariable(
"TXT_COUNT_LIMIT", $this->lng->txt(
"purge_count_limit"));
 
 1179                         $this->tpl->setVariable(
"TXT_COUNT_LIMIT_DESC", $this->lng->txt(
"purge_count_limit_desc"));
 
 1180                         $this->tpl->setVariable(
"COUNT_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_count_limit"));
 
 1181                         $this->tpl->setVariable(
"TXT_AGE_LIMIT", $this->lng->txt(
"purge_age_limit"));
 
 1182                         $this->tpl->setVariable(
"TXT_AGE_LIMIT_DESC", $this->lng->txt(
"purge_age_limit_desc"));
 
 1183                         $this->tpl->setVariable(
"AGE_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_age_limit"));
 
 1184                         $this->tpl->setVariable(
"TXT_TYPE_LIMIT", $this->lng->txt(
"purge_type_limit"));
 
 1185                         $this->tpl->setVariable(
"TXT_TYPE_LIMIT_DESC", $this->lng->txt(
"purge_type_limit_desc"));
 
 1187                         if($ilias->account->getPref(
'systemcheck_mode_scan'))
 
 1188                                 $this->tpl->touchBlock(
'mode_scan_checked');
 
 1189                         if($ilias->account->getPref(
'systemcheck_mode_dump_tree'))
 
 1190                                 $this->tpl->touchBlock(
'mode_dump_tree_checked');
 
 1191                         if($ilias->account->getPref(
'systemcheck_mode_clean'))
 
 1192                                 $this->tpl->touchBlock(
'mode_clean_checked');
 
 1193                         if($ilias->account->getPref(
'systemcheck_mode_restore'))
 
 1195                                 $this->tpl->touchBlock(
'mode_restore_checked');
 
 1196                                 $this->tpl->touchBlock(
'mode_purge_disabled');
 
 1198                         elseif($ilias->account->getPref(
'systemcheck_mode_purge'))
 
 1200                                 $this->tpl->touchBlock(
'mode_purge_checked');
 
 1201                                 $this->tpl->touchBlock(
'mode_restore_disabled');
 
 1203                         if($ilias->account->getPref(
'systemcheck_mode_restore_trash'))
 
 1205                                 $this->tpl->touchBlock(
'mode_restore_trash_checked');
 
 1206                                 $this->tpl->touchBlock(
'mode_purge_trash_disabled');
 
 1208                         elseif($ilias->account->getPref(
'systemcheck_mode_purge_trash'))
 
 1210                                 $this->tpl->touchBlock(
'mode_purge_trash_checked');
 
 1211                                 $this->tpl->touchBlock(
'mode_restore_trash_disabled');
 
 1213                         if($ilias->account->getPref(
'systemcheck_log_scan'))
 
 1214                                 $this->tpl->touchBlock(
'log_scan_checked');
 
 1216                         $types = $objDefinition->getAllObjects();
 
 1217                         $ts = array(
"" => 
"");
 
 1218                         foreach ($types as 
$t)
 
 1220                                 if ($t != 
"" && !$objDefinition->isSystemObject($t) && $t != 
"root")
 
 1222                                         if ($objDefinition->isPlugin($t))
 
 1228                                                 $ts[
$t] = $this->lng->txt(
"obj_".$t);
 
 1232                         $this->tpl->setVariable(
"TYPE_LIMIT_CHOICE",
 
 1234                                         $ilias->account->getPref(
"systemcheck_type_limit"),
 
 1239                         $this->tpl->setVariable(
"TXT_LOG_SCAN", $this->lng->txt(
"log_scan"));
 
 1240                         $this->tpl->setVariable(
"TXT_LOG_SCAN_DESC", $this->lng->txt(
"log_scan_desc"));
 
 1241                         $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"start_scan"));
 
 1243                         $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save_params_for_cron"));
 
 1245                         include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1248                         $cron_form->setFormAction($this->ctrl->getFormAction($this));
 
 1249                         $cron_form->setTitle($this->lng->txt(
'systemcheck_cronform'));
 
 1252                                 $radio_group->
setValue( $ilSetting->get(
'systemcheck_cron') );
 
 1254                                         $radio_opt = 
new ilRadioOption($this->lng->txt(
'disabled'),0);
 
 1255                                 $radio_group->addOption($radio_opt);
 
 1257                                         $radio_opt = 
new ilRadioOption($this->lng->txt(
'enabled'),1);
 
 1258                                 $radio_group->addOption($radio_opt);
 
 1260                         $cron_form->addItem($radio_group);
 
 1262                         $cron_form->addCommandButton(
'saveCheckCron',$this->lng->txt(
'save'));
 
 1264                         $this->tpl->setVariable(
'CRON_FORM',$cron_form->getHTML());
 
 1277                 include_once 
"classes/class.ilValidator.php";
 
 1279                 $modes = $validator->getPossibleModes();
 
 1282                 foreach($modes as $mode)
 
 1284                         if( isset(
$_POST[
'mode'][$mode]) ) $value = (int)
$_POST[
'mode'][$mode];
 
 1286                         $prefs[ 
'systemcheck_mode_'.$mode ] = $value;
 
 1289                 if( isset(
$_POST[
'log_scan']) ) $value = (
int)
$_POST[
'log_scan'];
 
 1291                 $prefs[
'systemcheck_log_scan'] = $value;
 
 1294                 foreach($prefs as $key => $val)
 
 1296                         $ilUser->writePref($key,$val);
 
 1304                 $systemcheck_cron = (
$_POST[
'cronjob'] ? 1 : 0);
 
 1305                 $ilSetting->set(
'systemcheck_cron',$systemcheck_cron);
 
 1318                 global $rbacsystem, $styleDefinition;
 
 1320                 $this->tpl->addBlockFile(
"ADM_CONTENT", 
"adm_content", 
"tpl.header_title_edit.html");
 
 1327                         $_GET[
"mode"] = 
"session";
 
 1328                         $array_push = 
false;
 
 1332                 if ((
$_GET[
"mode"] != 
"session"))
 
 1334                         $data = $this->
object->getHeaderTitleTranslations();
 
 1336                         $array_push = 
false;
 
 1338                 elseif (
$_GET[
"entry"] != 0)
 
 1340                         array_splice(
$_SESSION[
"translation_post"][
"Fobject"],
$_GET[
"entry"],1,array());
 
 1342                         if (
$_GET[
"entry"] == 
$_SESSION[
"translation_post"][
"default_language"])
 
 1344                                 $_SESSION[
"translation_post"][
"default_language"] = 
"";
 
 1351                 if (!
$_GET[
"entry"] and $array_push)
 
 1353                         $count = array_push(
$data[
"Fobject"],array(
"title" => 
"",
"desc" => 
""));
 
 1357                         $count = count(
$data[
"Fobject"]);
 
 1361                 $strip = isset(
$_SESSION[
"translation_post"]) ? 
true : 
false;
 
 1363                 foreach (
$data[
"Fobject"] as $key => $val)
 
 1366                         if ($key == $count -1)
 
 1368                                 $this->tpl->setCurrentBlock(
"addTranslation");
 
 1369                                 $this->tpl->setVariable(
"TXT_ADD_TRANSLATION",$this->lng->txt(
"add_translation").
" >>");
 
 1370                                 $this->tpl->parseCurrentBlock();
 
 1376                                 $this->tpl->setCurrentBlock(
"removeTranslation");
 
 1377                                 $this->tpl->setVariable(
"TXT_REMOVE_TRANSLATION",$this->lng->txt(
"remove_translation"));
 
 1378                                 $this->ctrl->setParameter($this, 
"entry", $key);
 
 1379                                 $this->ctrl->setParameter($this, 
"mode", 
"edit");
 
 1380                                 $this->tpl->setVariable(
"LINK_REMOVE_TRANSLATION",
 
 1381                                         $this->ctrl->getLinkTarget($this, 
"removeTranslation"));
 
 1382                                 $this->tpl->parseCurrentBlock();
 
 1386                         $this->tpl->addBlockFile(
"SEL_LANGUAGE", 
"sel_language", 
"tpl.lang_selection.html", 
false);
 
 1387                         $this->tpl->setVariable(
"SEL_NAME", 
"Fobject[".$key.
"][lang]");
 
 1389                         include_once(
'Services/MetaData/classes/class.ilMDLanguageItem.php');
 
 1393                         foreach ($languages as $code => $language)
 
 1395                                 $this->tpl->setCurrentBlock(
"lg_option");
 
 1396                                 $this->tpl->setVariable(
"VAL_LG", $code);
 
 1397                                 $this->tpl->setVariable(
"TXT_LG", $language);
 
 1399                                 if ($code == $val[
"lang"])
 
 1401                                         $this->tpl->setVariable(
"SELECTED", 
"selected=\"selected\"");
 
 1404                                 $this->tpl->parseCurrentBlock();
 
 1408                         $this->tpl->setCurrentBlock(
"obj_form");
 
 1412                                 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"change_header_title"));
 
 1416                                 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"translation").
" ".$key);
 
 1419                         if ($key == 
$data[
"default_language"])
 
 1421                                 $this->tpl->setVariable(
"CHECKED", 
"checked=\"checked\"");
 
 1424                         $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
 
 1425                         $this->tpl->setVariable(
"TXT_DESC", $this->lng->txt(
"desc"));
 
 1426                         $this->tpl->setVariable(
"TXT_DEFAULT", $this->lng->txt(
"default"));
 
 1427                         $this->tpl->setVariable(
"TXT_LANGUAGE", $this->lng->txt(
"language"));
 
 1430                         $this->tpl->setVariable(
"NUM", $key);
 
 1431                         $this->tpl->parseCurrentBlock();
 
 1435                 $this->tpl->setCurrentBlock(
"adm_content");
 
 1437                 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
 
 1438                 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
 
 1439                 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
 
 1440                 $this->tpl->setVariable(
"CMD_SUBMIT", 
"saveHeaderTitle");
 
 1441                 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
 
 1452                 if (!isset(
$data[
"default_language"]))
 
 1454                         $this->ilias->raiseError($this->lng->txt(
"msg_no_default_language"),$this->ilias->error_obj->MESSAGE);
 
 1458                 foreach (
$data[
"Fobject"] as $key => $val)
 
 1460                         $langs[$key] = $val[
"lang"];
 
 1463                 $langs = array_count_values($langs);
 
 1466                 if (array_key_exists(
"",$langs))
 
 1468                         $this->ilias->raiseError($this->lng->txt(
"msg_no_language_selected"),$this->ilias->error_obj->MESSAGE);
 
 1472                 if (array_sum($langs) > count($langs))
 
 1474                         $this->ilias->raiseError($this->lng->txt(
"msg_multi_language_selected"),$this->ilias->error_obj->MESSAGE);
 
 1479                 $_POST[
"Fobject"][
"desc"] = $_POST[
"Fobject"][$_POST[
"default_language"]][
"desc"];
 
 1482                 $this->
object->removeHeaderTitleTranslations();
 
 1485                 foreach (
$data[
"Fobject"] as $key => $val)
 
 1487                         if ($key == 
$data[
"default_language"])
 
 1501                 $this->ctrl->redirect($this);
 
 1506                 $this->ctrl->redirect($this, 
"view");
 
 1518                 $this->ctrl->setParameter($this, 
"mode", 
"session");
 
 1519                 $this->ctrl->setParameter($this, 
"entry", 
"0");
 
 1520                 $this->ctrl->redirect($this, 
"changeHeaderTitle");
 
 1530                 $this->ctrl->setParameter($this, 
"entry", 
$_GET[
"entry"]);
 
 1531                 $this->ctrl->setParameter($this, 
"mode", 
"session");
 
 1532                 $this->ctrl->redirect($this, 
"changeHeaderTitle");
 
 1540                 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
 1542                         $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
 
 1545                 $logging = ($a_log) ? 
true : 
false;
 
 1546                 include_once 
"classes/class.ilValidator.php";
 
 1548                 $validator->setMode(
"all",
false);
 
 1551                 foreach ($a_mode as $mode => $value)
 
 1553                         $validator->setMode($mode,(
bool) $value);
 
 1554                         $modes[] = $mode.
'='.$value;
 
 1557                 $scan_log = $validator->validate();
 
 1559                 $mode = $this->lng->txt(
"scan_modes").
": ".implode(
', ',$modes);
 
 1564                 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
 
 1565                 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scanning_system"));
 
 1566                 $this->tpl->setVariable(
"COLSPAN", 3);
 
 1567                 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
 
 1568                 $this->tpl->setVariable(
"TXT_MODE", $mode);
 
 1570                 if ($logging === 
true)
 
 1572                         $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_log"));
 
 1575                 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
 
 1577                 $validator->writeScanLogLine($mode);
 
 1582                 include_once 
"classes/class.ilValidator.php";
 
 1583                 $validator = 
new IlValidator();
 
 1584                 $scan_log =& $validator->readScanLog();
 
 1586                 if (is_array($scan_log))
 
 1588                         $scan_log = 
'<pre>'.implode(
"",$scan_log).
'</pre>';
 
 1589                         $this->tpl->setVariable(
"ADM_CONTENT", $scan_log);
 
 1593                         $scan_log = 
"no scanlog found.";
 
 1598                 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scan_details"));
 
 1599                 $this->tpl->setVariable(
"COLSPAN", 3);
 
 1600                 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
 
 1601                 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
 
 1612                 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
 1614                         $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
 
 1619                 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1623                 $cb = 
new ilCheckboxInputGUI($lng->txt(
"adm_activate_db_benchmark"), 
"enable_db_bench");
 
 1624                 $cb->
setChecked($ilSetting->get(
"enable_db_bench"));
 
 1625                 $cb->setInfo($lng->txt(
"adm_activate_db_benchmark_desc"));
 
 1626                 $this->form->addItem($cb);
 
 1629                 $ti = 
new ilTextInputGUI($lng->txt(
"adm_db_benchmark_user"), 
"db_bench_user");
 
 1630                 $ti->
setValue($ilSetting->get(
"db_bench_user"));
 
 1631                 $ti->setInfo($lng->txt(
"adm_db_benchmark_user_desc"));
 
 1632                 $this->form->addItem($ti);
 
 1634                 $this->form->addCommandButton(
"saveBenchSettings", $lng->txt(
"save"));
 
 1636                 $this->form->setTitle($lng->txt(
"adm_db_benchmark"));
 
 1637                 $this->form->setFormAction($ilCtrl->getFormAction($this));
 
 1639                 $tpl->setContent($this->form->getHTML());
 
 1687                 $rec = $ilBench->getDbBenchRecords();
 
 1689                 include_once(
"./Modules/SystemFolder/classes/class.ilBenchmarkTableGUI.php");
 
 1691                 $tpl->setContent($table->getHTML());
 
 1704                 $ilTabs->addSubtab(
"settings",
 
 1705                         $lng->txt(
"settings"),
 
 1706                         $ilCtrl->getLinkTarget($this, 
"benchmark"));
 
 1708                 $rec = $ilBench->getDbBenchRecords();
 
 1709                 if (count($rec) > 0)
 
 1711                         $ilTabs->addSubtab(
"chronological",
 
 1712                                 $lng->txt(
"adm_db_bench_chronological"),
 
 1713                                 $ilCtrl->getLinkTarget($this, 
"showDbBenchChronological"));
 
 1714                         $ilTabs->addSubtab(
"slowest_first",
 
 1715                                 $lng->txt(
"adm_db_bench_slowest_first"),
 
 1716                                 $ilCtrl->getLinkTarget($this, 
"showDbBenchSlowestFirst"));
 
 1717                         $ilTabs->addSubtab(
"sorted_by_sql",
 
 1718                                 $lng->txt(
"adm_db_bench_sorted_by_sql"),
 
 1719                                 $ilCtrl->getLinkTarget($this, 
"showDbBenchSortedBySql"));
 
 1720                         $ilTabs->addSubtab(
"by_first_table",
 
 1721                                 $lng->txt(
"adm_db_bench_by_first_table"),
 
 1722                                 $ilCtrl->getLinkTarget($this, 
"showDbBenchByFirstTable"));
 
 1725                 $ilTabs->activateSubTab($a_current);
 
 1736                 if (
$_POST[
"enable_db_bench"])
 
 1742                         $ilBench->enableDbBench(
false);
 
 1747                 $this->ctrl->redirect($this, 
"benchmark");
 
 1758                 $this->ctrl->setParameter($this,
'cur_mod',
$_POST[
'module']);
 
 1759                 $this->ctrl->redirect($this, 
"benchmark");
 
 1770                 $ilBench->clearData();
 
 1780                 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
 
 1789                 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
 
 1791                         $tabs_gui->addTarget(
"server_data",
 
 1792                                 $this->ctrl->getLinkTarget($this, 
"showServerInfo"),
 
 1793                                 array(
"showServerInfo", 
"view"), get_class($this));
 
 1797                 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
 1799                         $tabs_gui->addTarget(
"general_settings",
 
 1800                                 $this->ctrl->getLinkTarget($this, 
"showBasicSettings"),
 
 1801                                 array(
"showBasicSettings", 
"saveBasicSettings"), get_class($this));
 
 1804                 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
 1809                         $tabs_gui->addTarget(
"system_check",
 
 1810                                 $this->ctrl->getLinkTarget($this, 
"check"), array(
"check",
"viewScanLog",
"saveCheckParams",
"saveCheckCron"), get_class($this));
 
 1812                         $tabs_gui->addTarget(
"benchmarks",
 
 1813                                 $this->ctrl->getLinkTarget($this, 
"benchmark"), 
"benchmark", get_class($this));
 
 1816                 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
 
 1818                         $tabs_gui->addTarget(
"perm_settings",
 
 1819                                 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'), 
"perm"), array(
"perm",
"info",
"owner"), 
'ilpermissiongui');
 
 1847                 $btpl = 
new ilTemplate(
"tpl.server_data.html", 
true, 
true, 
"Modules/SystemFolder");
 
 1848                 $btpl->setVariable(
"FORM", $this->form->getHTML());
 
 1849                 $btpl->setVariable(
"PHP_INFO_TARGET", $ilCtrl->getLinkTarget($this, 
"showPHPInfo"));
 
 1850                 $tpl->setContent($btpl->get());
 
 1862                 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1867                 $ne->
setValue($ilClientIniFile->readVariable(
"client",
"name"));
 
 1868                 $ne->setInfo($ilClientIniFile->readVariable(
"client",
"description"));
 
 1869                 $this->form->addItem($ne);
 
 1874                 $this->form->addItem($ne);
 
 1878                 $ne->
setValue($ilSetting->get(
"inst_id"));
 
 1879                 $this->form->addItem($ne);
 
 1883                 $ne->
setValue($ilSetting->get(
"db_version"));
 
 1884                                 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
 
 1885                 $dbupdate = 
new ilDBUpdate($this->ilias->db,
true);
 
 1886                 if (!$dbupdate->getDBVersionStatus())
 
 1890                 else if ($dbupdate->hotfixAvailable())
 
 1894                 $this->form->addItem($ne);
 
 1898                 $ne->
setValue($ilSetting->get(
"ilias_version"));
 
 1899                 $this->form->addItem($ne);
 
 1903                 $ne->
setValue($_SERVER[
"SERVER_NAME"]);
 
 1904                 $this->form->addItem($ne);
 
 1908                 $ne->
setValue($_SERVER[
"SERVER_ADDR"].
":".$_SERVER[
"SERVER_PORT"]);
 
 1909                 $this->form->addItem($ne);
 
 1913                 $ne->
setValue($_SERVER[
"SERVER_SOFTWARE"]);
 
 1914                 $this->form->addItem($ne);
 
 1919                 $this->form->addItem($ne);
 
 1924                 $this->form->addItem($ne);
 
 1926                 $not_set = $lng->txt(
"path_not_set");
 
 1930                 $ne->
setValue((PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
 
 1931                 $this->form->addItem($ne);
 
 1935                 $ne->
setValue((PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
 
 1936                 $this->form->addItem($ne);
 
 1940                 $ne->
setValue((PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
 
 1941                 $this->form->addItem($ne);
 
 1945                 $ne->
setValue((PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
 
 1946                 $this->form->addItem($ne);
 
 1950                 $ne->
setValue((PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
 
 1951                 $this->form->addItem($ne);
 
 1955                 $ne->
setValue((PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
 
 1956                 $this->form->addItem($ne);
 
 1960                 $ne->
setValue((URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
 
 1961                 $this->form->addItem($ne);
 
 1964                 $this->form->setTitle($lng->txt(
"server_data"));
 
 1965                 $this->form->setFormAction($this->ctrl->getFormAction($this));
 
 1982                 $ilTabs->addSubTabTarget(
"basic_settings", $ilCtrl->getLinkTarget($this, 
"showBasicSettings"));
 
 1983                 $ilTabs->addSubTabTarget(
"header_title", $ilCtrl->getLinkTarget($this, 
"showHeaderTitle"));
 
 1984                 $ilTabs->addSubTabTarget(
"cron_jobs", $ilCtrl->getLinkTarget($this, 
"showCronJobs"));
 
 1985                 $ilTabs->addSubTabTarget(
"contact_data", $ilCtrl->getLinkTarget($this, 
"showContactInformation"));
 
 1986                 $ilTabs->addSubTabTarget(
"webservices", $ilCtrl->getLinkTarget($this, 
"showWebServices"));
 
 1987                 $ilTabs->addSubTabTarget(
"java_server", $ilCtrl->getLinkTarget($this, 
"showJavaServer"));
 
 1988                 $ilTabs->addSubTabTarget(
"proxy", $ilCtrl->getLinkTarget($this, 
"showProxy"));
 
 1990                 $ilTabs->setSubTabActive($a_activate);
 
 1991                 $ilTabs->setTabActive(
"general_settings");
 
 2010                 $tpl->setContent($this->form->getHTML());
 
 2021                 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 2023                 $lng->loadLanguageModule(
"pd");
 
 2026                 $ti = 
new ilTextInputGUI($this->lng->txt(
"short_inst_name"), 
"short_inst_name");
 
 2029                 $ti->setValue($ilSetting->get(
"short_inst_name"));
 
 2030                 $ti->setInfo($this->lng->txt(
"short_inst_name_info"));
 
 2031                 $this->form->addItem($ti);
 
 2035                 $cb->
setInfo($lng->txt(
"pub_section_info"));
 
 2036                         if ($ilSetting->get(
"pub_section"))
 
 2038                                 $cb->setChecked(
true);
 
 2041                         include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
 
 2044                         $cb2->
setInfo($this->lng->txt(
"enable_search_engine"));
 
 2045                         $cb->addSubItem($cb2);
 
 2046                         if(!$robot_settings->checkModRewrite())
 
 2048                                 $cb2->setAlert($lng->txt(
"mod_rewrite_disabled"));
 
 2049                                 $cb2->setChecked(
false);
 
 2050                                 $cb2->setDisabled(
true);
 
 2052                         elseif(!$robot_settings->checkRewrite())
 
 2054                                 $cb2->setAlert($lng->txt(
"allow_override_alert"));
 
 2055                                 $cb2->setChecked(
false);
 
 2056                                 $cb2->setDisabled(
true);
 
 2060                                 if ($ilSetting->get(
"open_google"))
 
 2062                                         $cb2->setChecked(
true);
 
 2067                 $cb_prop = 
new ilCheckboxInputGUI($lng->txt(
'pd_enable_global_profiles'), 
'enable_global_profiles');
 
 2068                 $cb_prop->
setInfo($lng->txt(
'pd_enable_global_profiles_info'));
 
 2069                 $cb_prop->setChecked($ilSetting->get(
'enable_global_profiles'));
 
 2070                 $cb->addSubItem($cb_prop);
 
 2072                 $this->form->addItem($cb);
 
 2076                         "flat" => $lng->txt(
"flatview"),
 
 2077                         "tree" => $lng->txt(
"treeview")
 
 2079                 $si = 
new ilSelectInputGUI($this->lng->txt(
"def_repository_view"), 
"default_rep_view");
 
 2081                 $si->setInfo($this->lng->txt(
""));
 
 2082                 if ($ilSetting->get(
"default_repository_view") == 
"tree")
 
 2084                         $si->setValue(
"tree");
 
 2088                         $si->setValue(
"flat");
 
 2090                 $this->form->addItem($si);
 
 2094                         "" => $lng->txt(
"adm_rep_tree_only_container"),
 
 2095                         "tree" => $lng->txt(
"adm_all_resource_types")
 
 2100                 $radg->
setValue($ilSetting->get(
"repository_tree_pres"));
 
 2101                 $op1 = 
new ilRadioOption($lng->txt(
"adm_rep_tree_only_cntr"), 
"",
 
 2102                         $lng->txt(
"adm_rep_tree_only_cntr_info"));
 
 2103                 $radg->addOption($op1);
 
 2105                 $op2 = 
new ilRadioOption($lng->txt(
"adm_rep_tree_all_types"), 
"all_types",
 
 2106                         $lng->txt(
"adm_rep_tree_all_types_info"));
 
 2109                         $cb = 
new ilCheckboxInputGUI($lng->txt(
"adm_rep_tree_limit_grp_crs"), 
"rep_tree_limit_grp_crs");
 
 2110                         $cb->setChecked($ilSetting->get(
"rep_tree_limit_grp_crs"));
 
 2111                         $cb->
setInfo($lng->txt(
"adm_rep_tree_limit_grp_crs_info"));
 
 2112                         $op2->addSubItem($cb);
 
 2114                 $radg->addOption($op2);
 
 2116                 $this->form->addItem($radg);
 
 2119                 $cb = 
new ilCheckboxInputGUI($lng->txt(
"adm_synchronize_rep_tree"), 
"rep_tree_synchronize");
 
 2120                 $cb->
setInfo($lng->txt(
"adm_synchronize_rep_tree_info"));
 
 2121                 $cb->setChecked($ilSetting->get(
"rep_tree_synchronize"));
 
 2122                 $this->form->addItem($cb);
 
 2132                 $si = 
new ilSelectInputGUI($this->lng->txt(
"adm_repository_cache_time"), 
"rep_cache");
 
 2134                 $si->setValue($ilSetting->get(
"rep_cache"));
 
 2135                 $si->setInfo($this->lng->txt(
"adm_repository_cache_time_info").
" ".
 
 2136                         $this->lng->txt(
"adm_repository_cache_time_info2"));
 
 2137                 $this->form->addItem($si);
 
 2140                 $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"adm_item_cmd_asynch"), 
"item_cmd_asynch");
 
 2141                 $cb->
setInfo($this->lng->txt(
"adm_item_cmd_asynch_info"));
 
 2142                 $cb->setChecked($ilSetting->get(
"item_cmd_asynch"));
 
 2143                 $this->form->addItem($cb);
 
 2146                 $ti = 
new ilTextInputGUI($this->lng->txt(
"adm_locale"), 
"locale");
 
 2149                 $ti->setInfo($this->lng->txt(
"adm_locale_info"));
 
 2150                 $ti->setValue($ilSetting->get(
"locale"));
 
 2151                 $this->form->addItem($ti);
 
 2156                 $cb->
setInfo($this->lng->txt(
"enable_trash_info"));
 
 2157                 if ($ilSetting->get(
"enable_trash"))
 
 2159                         $cb->setChecked(
true);
 
 2161                 $this->form->addItem($cb);
 
 2166                 $ssettings->
setValue($ilSetting->get(
'session_handling_type', 0));
 
 2169                 $fixed = 
new ilRadioOption($this->lng->txt(
'sess_fixed_duration'), 0);
 
 2172                 $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"session_reminder"), 
"session_reminder_enabled");
 
 2173                 $expires = $ilClientIniFile->readVariable(
"session", 
"expire");
 
 2175                 $cb->
setInfo($this->lng->txt(
"session_reminder_info").
"<br />".
 
 2176                         sprintf($this->lng->txt(
'session_reminder_session_duration'), $time));
 
 2177                 if((
int)$ilSetting->get(
"session_reminder_enabled"))
 
 2179                         $cb->setChecked(
true);
 
 2184                 $ssettings->addOption($fixed);
 
 2187                 $ldsh = 
new ilRadioOption($this->lng->txt(
'sess_load_dependent_session_handling'), 1);
 
 2192                 require_once(
'Services/Authentication/classes/class.ilSessionControl.php');
 
 2197                         $ti->
setValue(sprintf($this->lng->txt(
'session_config_maintenance_enabled'), CLIENT_ID));
 
 2203                         $ti->
setValue($this->lng->txt(
'session_config_maintenance_disabled'));
 
 2205         $ldsh->addSubItem($ti);
 
 2209                 $sub_ti = 
new ilTextInputGUI($this->lng->txt(
'session_max_count'), 
'session_max_count');
 
 2211                 $sub_ti->setSize(5);
 
 2212                 $sub_ti->setInfo($this->lng->txt(
'session_max_count_info'));
 
 2213                 $sub_ti->setValue($ilSetting->get(
 
 2217                         $sub_ti->setDisabled(
true);
 
 2218                 $ldsh->addSubItem($sub_ti);
 
 2223                 $sub_ti = 
new ilTextInputGUI($this->lng->txt(
'session_min_idle'), 
'session_min_idle');
 
 2225                 $sub_ti->setSize(5);
 
 2226                 $sub_ti->setInfo($this->lng->txt(
'session_min_idle_info'));
 
 2227                 $sub_ti->setValue($ilSetting->get(
 
 2231                         $sub_ti->setDisabled(
true);
 
 2232                 $ldsh->addSubItem($sub_ti);
 
 2237                 $sub_ti = 
new ilTextInputGUI($this->lng->txt(
'session_max_idle'), 
'session_max_idle');
 
 2239                 $sub_ti->setSize(5);
 
 2240                 $sub_ti->setInfo($this->lng->txt(
'session_max_idle_info'));
 
 2241                 $sub_ti->setValue($ilSetting->get(
 
 2245                         $sub_ti->setDisabled(
true);
 
 2246                 $ldsh->addSubItem($sub_ti);
 
 2251                         $this->lng->txt(
'session_max_idle_after_first_request'),
 
 2252                         'session_max_idle_after_first_request' 
 2255                 $sub_ti->setSize(5);
 
 2256                 $sub_ti->setInfo($this->lng->txt(
'session_max_idle_after_first_request_info'));
 
 2257                 $sub_ti->setValue($ilSetting->get(
 
 2258                         "session_max_idle_after_first_request",
 
 2262                         $sub_ti->setDisabled(
true);
 
 2263                 $ldsh->addSubItem($sub_ti);
 
 2266                 $ssettings->addOption($ldsh);
 
 2269                 $this->form->addItem($ssettings);
 
 2273                 $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"enable_password_assistance"), 
"password_assistance");
 
 2274                 if ($ilSetting->get(
"password_assistance"))
 
 2276                         $cb->setChecked(
true);
 
 2278                 $cb->
setInfo($this->lng->txt(
"password_assistance_info"));
 
 2279                 $this->form->addItem($cb);
 
 2282                 $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"passwd_generation"), 
"passwd_auto_generate");
 
 2283                 if ($ilSetting->get(
"passwd_auto_generate"))
 
 2285                         $cb->setChecked(
true);
 
 2287                 $cb->
setInfo($this->lng->txt(
"passwd_generation_info"));
 
 2288                 $this->form->addItem($cb);
 
 2292                 $cb->
setInfo($this->lng->txt(
"links_dynamic_info"));
 
 2293                 if ($ilSetting->get(
"links_dynamic"))
 
 2295                         $cb->setChecked(
true);
 
 2297                 $this->form->addItem($cb);
 
 2302                 $pl->setInfo($this->lng->txt(
'preview_learner_info'));
 
 2303                 $pl->setChecked($ilSetting->get(
'preview_learner'));
 
 2304                 $this->form->addItem($pl);
 
 2307                 $this->form->addCommandButton(
"saveBasicSettings", $lng->txt(
"save"));
 
 2309                 $this->form->setTitle($lng->txt(
"basic_settings"));
 
 2310                 $this->form->setFormAction($this->ctrl->getFormAction($this));
 
 2322                 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
 2324                         $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
 
 2328                 if ($this->form->checkInput())
 
 2330                         $ilSetting->set(
"short_inst_name", 
$_POST[
"short_inst_name"]);
 
 2331                         $ilSetting->set(
"pub_section", 
$_POST[
"pub_section"]);
 
 2332                         $ilSetting->set(
"open_google", 
$_POST[
"open_google"]);
 
 2333                         $ilSetting->set(
"default_repository_view", 
$_POST[
"default_rep_view"]);
 
 2334                         $ilSetting->set(
"links_dynamic", 
$_POST[
"links_dynamic"]);
 
 2335                         $ilSetting->set(
"enable_trash", 
$_POST[
"enable_trash"]);                        
 
 2336                         $ilSetting->set(
"password_assistance", 
$_POST[
"password_assistance"]);
 
 2337                         $ilSetting->set(
"passwd_auto_generate", 
$_POST[
"passwd_auto_generate"]);
 
 2338                         $ilSetting->set(
"locale", 
$_POST[
"locale"]);
 
 2339                         $ilSetting->set(
'preview_learner',(
int) 
$_POST[
'preview_learner']);
 
 2340                         $ilSetting->set(
'rep_cache',(
int) $_POST[
'rep_cache']);
 
 2341                         $ilSetting->set(
'item_cmd_asynch',(
int) $_POST[
'item_cmd_asynch']);
 
 2342                         $ilSetting->set(
"repository_tree_pres", $_POST[
"tree_pres"]);
 
 2343                         if ($_POST[
"tree_pres"] == 
"")
 
 2345                                 $_POST[
"rep_tree_limit_grp_crs"] = 
"";
 
 2347                         if ($_POST[
"rep_tree_limit_grp_crs"] && !$ilSetting->get(
"rep_tree_limit_grp_crs"))
 
 2349                                 $_POST[
"rep_tree_synchronize"] = 
true;
 
 2351                         else if (!$_POST[
"rep_tree_synchronize"] && $ilSetting->get(
"rep_tree_synchronize"))
 
 2353                                 $_POST[
"rep_tree_limit_grp_crs"] = 
false;
 
 2356                         $ilSetting->set(
"rep_tree_limit_grp_crs", $_POST[
"rep_tree_limit_grp_crs"]);
 
 2357                         $ilSetting->set(
"rep_tree_synchronize", $_POST[
"rep_tree_synchronize"]);
 
 2360                         $ilSetting->set(
'session_handling_type',
 
 2361                                 (
int)$this->form->getInput(
'session_handling_type'));                   
 
 2363                         if( $this->form->getInput(
'session_handling_type') == 0 )
 
 2365                                 $ilSetting->set(
'session_reminder_enabled',
 
 2366                                         $this->form->getInput(
'session_reminder_enabled'));     
 
 2368                         else if( $this->form->getInput(
'session_handling_type') == 1 )
 
 2370                                 require_once 
'Services/Authentication/classes/class.ilSessionControl.php';
 
 2372                                         $ilSetting->get(
'session_allow_client_maintenance',
 
 2376                                         $ilSetting->set(
'session_max_count',
 
 2377                                                 (
int)$this->form->getInput(
'session_max_count'));
 
 2378                                         $ilSetting->set(
'session_min_idle',
 
 2379                                                 (
int)$this->form->getInput(
'session_min_idle'));
 
 2380                                         $ilSetting->set(
'session_max_idle',
 
 2381                                                 (
int)$this->form->getInput(
'session_max_idle'));
 
 2382                                         $ilSetting->set(
'session_max_idle_after_first_request',
 
 2383                                                 (
int)$this->form->getInput(
'session_max_idle_after_first_request'));
 
 2388                         $global_profiles = ($_POST[
"pub_section"])
 
 2389                                 ? (
int)$_POST[
'enable_global_profiles']
 
 2392                         $ilSetting->set(
'enable_global_profiles', $global_profiles);
 
 2395                         $ilCtrl->redirect($this, 
"showBasicSettings");
 
 2398                 $this->form->setValuesByPost();
 
 2399                 $tpl->setContent($this->form->getHtml());
 
 2416                 include_once(
"./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
 
 2418                 if ($a_get_post_values)
 
 2421                         foreach(
$_POST[
"title"] as $k => $v)
 
 2423                                 $vals[] = array(
"title" => $v,
 
 2424                                         "desc" => 
$_POST[
"desc"][$k],
 
 2425                                         "lang" => 
$_POST[
"lang"][$k],
 
 2426                                         "default" => (
$_POST[
"default"] == $k));
 
 2428                         $table->setData($vals);
 
 2432                         $data = $this->
object->getHeaderTitleTranslations();
 
 2433                         if (is_array(
$data[
"Fobject"]))
 
 2435                                 foreach(
$data[
"Fobject"] as $k => $v)
 
 2437                                         if ($k == 
$data[
"default_language"])
 
 2439                                                 $data[
"Fobject"][$k][
"default"] = 
true;
 
 2443                                                 $data[
"Fobject"][$k][
"default"] = 
false;
 
 2449                                 $data[
"Fobject"] = array();
 
 2451                         $table->setData(
$data[
"Fobject"]);
 
 2453                 $tpl->setContent($table->getHTML());
 
 2463                 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
 2465                         $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
 
 2471                 if (!isset(
$_POST[
"default"]) && count(
$_POST[
"lang"]) > 0)
 
 2478                 if (array_key_exists(
"",
$_POST[
"lang"]))
 
 2485                 if (count(array_unique(
$_POST[
"lang"])) < count(
$_POST[
"lang"]))
 
 2492                 $this->
object->removeHeaderTitleTranslations();
 
 2493                 foreach(
$_POST[
"title"] as $k => $v)
 
 2495                         $this->
object->addHeaderTitleTranslation(
 
 2499                                 (
$_POST[
"default"] == $k));
 
 2503                 $ilCtrl->redirect($this, 
"showHeaderTitle");
 
 2513                 if (is_array(
$_POST[
"title"]))
 
 2515                         foreach(
$_POST[
"title"] as $k => $v) {}
 
 2518                 $_POST[
"title"][$k] = 
"";
 
 2529                 foreach(
$_POST[
"title"] as $k => $v)
 
 2533                                 unset(
$_POST[
"title"][$k]);
 
 2534                                 unset(
$_POST[
"desc"][$k]);
 
 2535                                 unset(
$_POST[
"lang"][$k]);
 
 2536                                 if ($k == 
$_POST[
"default"])
 
 2538                                         unset(
$_POST[
"default"]);
 
 2561                 $tpl->setContent($this->form->getHTML());
 
 2571                 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 2575                 if($ilSetting->get(
'last_cronjob_start_ts'))
 
 2577                         include_once(
'./Services/Calendar/classes/class.ilDatePresentation.php');
 
 2582                         $cls->setInfo($this->lng->txt(
'cronjob_last_start_unknown'));
 
 2585                 $this->form->addItem($cls);
 
 2588                 $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"check_user_accounts"), 
"cron_user_check");
 
 2589                 $cb->
setInfo($this->lng->txt(
"check_user_accounts_desc"));
 
 2590                 if ($ilSetting->get(
"cron_user_check"))
 
 2592                         $cb->setChecked(
true);
 
 2594                 $this->form->addItem($cb);
 
 2598                 require_once(
'Services/User/classes/class.ilCronDeleteInactiveUserAccounts.php');
 
 2599                 $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"delete_inactive_user_accounts"), 
"cron_inactive_user_delete");
 
 2600                 $cb->
setInfo($this->lng->txt(
"delete_inactive_user_accounts_desc"));
 
 2601                 if($ilSetting->get(
"cron_inactive_user_delete", 
false)) $cb->setChecked(
true);
 
 2604                                         $this->lng->txt(
'delete_inactive_user_accounts_interval'),
 
 2605                                         'cron_inactive_user_delete_interval' 
 2607                                 $sub_list->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_interval_desc'));
 
 2608                                 $sub_list->setOptions(
 
 2611                                 $sub_list->setValue($ilSetting->get(
 
 2612                                         'cron_inactive_user_delete_interval',
 
 2615                 $cb->addSubItem($sub_list);
 
 2617                                 include_once(
'Services/Form/classes/class.ilMultiSelectInputGUI.php');
 
 2619                                         $this->lng->txt(
'delete_inactive_user_accounts_include_roles'),
 
 2620                                         'cron_inactive_user_delete_include_roles' 
 2622                                 $sub_mlist->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_include_roles_desc'));
 
 2624                                 foreach($rbacreview->getGlobalRoles() as $role_id)
 
 2626                                         if( $role_id != ANONYMOUS_ROLE_ID )
 
 2627                                                 $roles[$role_id] = $ilObjDataCache->lookupTitle($role_id);
 
 2629                                 $sub_mlist->setOptions($roles);
 
 2630                                 $setting = $ilSetting->get(
'cron_inactive_user_delete_include_roles', null);
 
 2631                                 if($setting === null) $setting = array();
 
 2632                                 else $setting = explode(
',', $setting);
 
 2633                                 $sub_mlist->setValue($setting);
 
 2634                                 $sub_mlist->setWidth(300);
 
 2635                                 #$sub_mlist->setHeight(100); 
 2636                 $cb->addSubItem($sub_mlist);
 
 2640                                         $this->lng->txt(
'delete_inactive_user_accounts_period'),
 
 2641                                         'cron_inactive_user_delete_period' 
 2643                                 $sub_text->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_period_desc'));
 
 2644                                 $sub_text->setValue($ilSetting->get(
"cron_inactive_user_delete_period", $default_setting));
 
 2645                                 $sub_text->setSize(2);
 
 2646                                 $sub_text->setMaxLength(3);
 
 2647                 $cb->addSubItem($sub_text);
 
 2657                 $this->form->addItem($cb);
 
 2662                 $cb->
setInfo($this->lng->txt(
"check_link_desc"));
 
 2663                 if ($ilSetting->get(
"cron_link_check"))
 
 2665                         $cb->setChecked(
true);
 
 2667                 $this->form->addItem($cb);
 
 2671                         "0" => $lng->txt(
"never"),
 
 2672                         "1" => $lng->txt(
"daily"),
 
 2673                         "2" => $lng->txt(
"weekly"),
 
 2674                         "3" => $lng->txt(
"monthly"),
 
 2675                         "4" => $lng->txt(
"quarterly")
 
 2677                 $si = 
new ilSelectInputGUI($this->lng->txt(
"check_web_resources"), 
"cron_web_resource_check");
 
 2679                 $si->setInfo($this->lng->txt(
"check_web_resources_desc"));
 
 2680                 $si->setValue($ilSetting->get(
"cron_web_resource_check"));
 
 2681                 $this->form->addItem($si);
 
 2684                 $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"cron_lucene_index"), 
"cron_lucene_index");
 
 2685                 $cb->
setInfo($this->lng->txt(
"cron_lucene_index_info"));
 
 2686                 if ($ilSetting->get(
"cron_lucene_index"))
 
 2688                         $cb->setChecked(
true);
 
 2690                 $this->form->addItem($cb);
 
 2694                         "0" => $lng->txt(
"cron_forum_notification_never"),
 
 2695                         "1" => $lng->txt(
"cron_forum_notification_directly"),
 
 2696                         "2" => $lng->txt(
"cron_forum_notification_cron"),
 
 2698                 $si = 
new ilSelectInputGUI($this->lng->txt(
"cron_forum_notification"), 
"forum_notification");
 
 2700                 $si->setInfo($this->lng->txt(
"cron_forum_notification_desc"));
 
 2701                 $si->setValue($ilSetting->get(
"forum_notification"));
 
 2702                 $this->form->addItem($si);
 
 2706                         "0" => $lng->txt(
"cron_mail_notification_never"),
 
 2707                         "1" => $lng->txt(
"cron_mail_notification_cron")
 
 2709                 $si = 
new ilSelectInputGUI($this->lng->txt(
"cron_mail_notification"), 
"mail_notification");
 
 2711                 $si->setInfo($this->lng->txt(
"cron_mail_notification_desc"));
 
 2712                 $si->setValue($ilSetting->get(
"mail_notification"));
 
 2713                 $this->form->addItem($si);
 
 2715                 if($ilSetting->get(
"mail_notification") == 
'1')
 
 2717                         $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"cron_mail_notification_message"), 
"mail_notification_message");
 
 2718                         $cb->
setInfo($this->lng->txt(
"cron_mail_notification_message_info"));
 
 2719                         if ($ilSetting->get(
"mail_notification_message"))
 
 2721                                 $cb->setChecked(
true);
 
 2723                         $this->form->addItem($cb);
 
 2727                 $dq_settings = 
new ilSetting(
'disk_quota');
 
 2728                 $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"enable_disk_quota"), 
"enable_disk_quota");
 
 2729                 $cb->
setInfo($this->lng->txt(
"enable_disk_quota_info"));
 
 2730                 if ($dq_settings->get(
'enabled'))
 
 2732                         $cb->setChecked(
true);
 
 2734                 $this->form->addItem($cb);
 
 2736                 $cb_reminder = 
new ilCheckboxInputGUI($this->lng->txt(
"enable_disk_quota_reminder_mail"), 
"enable_disk_quota_reminder_mail");
 
 2737                 $cb_reminder->
setInfo($this->lng->txt(
"disk_quota_reminder_mail_desc"));
 
 2738                 if ($dq_settings->get(
'reminder_mail_enabled'))
 
 2740                         $cb_reminder->setChecked(
true);
 
 2742                 $cb->addSubItem($cb_reminder);
 
 2745                 $cb_prop_summary= 
new ilCheckboxInputGUI($lng->txt(
"enable_disk_quota_summary_mail"), 
"enable_disk_quota_summary_mail");
 
 2747                 $cb_prop_summary->setChecked((
int)$dq_settings->get(
'summary_mail_enabled', 0) == 1);
 
 2748                 $cb_prop_summary->setInfo($lng->txt(
'enable_disk_quota_summary_mail_desc'));
 
 2749                 $cb->addSubItem($cb_prop_summary);
 
 2752                 $summary_rcpt = 
new ilTextInputGUI($lng->txt(
"disk_quota_summary_rctp"), 
"disk_quota_summary_rctp");
 
 2753                 $summary_rcpt->
setValue($dq_settings->get(
'summary_rcpt', 
''));
 
 2754                 $summary_rcpt->setInfo($lng->txt(
'disk_quota_summary_rctp_desc'));
 
 2755                 $cb_prop_summary->addSubItem($summary_rcpt);
 
 2757                 $this->form->addCommandButton(
"saveCronJobs", $lng->txt(
"save"));
 
 2759                 $this->form->setTitle($lng->txt(
"cron_jobs"));
 
 2760                 $this->form->setDescription($lng->txt(
"cron_jobs_desc"));
 
 2761                 $this->form->setFormAction($this->ctrl->getFormAction($this));
 
 2773                 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
 2775                         $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
 
 2779                 if ($this->form->checkInput())
 
 2781                         $ilSetting->set(
"cron_user_check", 
$_POST[
"cron_user_check"]);
 
 2782                         $ilSetting->set(
"cron_link_check", 
$_POST[
"cron_link_check"]);
 
 2783                         $ilSetting->set(
"cron_web_resource_check", 
$_POST[
"cron_web_resource_check"]);
 
 2784                         $ilSetting->set(
"cron_lucene_index", 
$_POST[
"cron_lucene_index"]);
 
 2785                         $ilSetting->set(
"forum_notification", 
$_POST[
"forum_notification"]);
 
 2786                         $ilSetting->set(
"mail_notification", 
$_POST[
"mail_notification"]);
 
 2787                         $ilSetting->set(
'mail_notification_message', 
$_POST[
'mail_notification_message'] ? 1 : 0);
 
 2789                         $ilSetting->set(
'cron_inactive_user_delete', 
$_POST[
'cron_inactive_user_delete']);
 
 2790                         $ilSetting->set(
'cron_inactive_user_delete_interval', 
$_POST[
'cron_inactive_user_delete_interval']);
 
 2791                         $setting = implode(
',', 
$_POST[
'cron_inactive_user_delete_include_roles']);
 
 2792                         if( !strlen($setting) ) $setting = null;
 
 2793                         $ilSetting->set(
'cron_inactive_user_delete_include_roles', $setting);
 
 2794                         $ilSetting->set(
'cron_inactive_user_delete_period', 
$_POST[
'cron_inactive_user_delete_period']);
 
 2797                         $dq_settings = 
new ilSetting(
'disk_quota');
 
 2798                         $dq_settings->set(
'enabled', 
$_POST[
'enable_disk_quota'] ? 1 : 0);
 
 2799                         $dq_settings->set(
'reminder_mail_enabled', 
$_POST[
'enable_disk_quota_reminder_mail'] ? 1 : 0);
 
 2802                         $dq_settings->set(
'summary_mail_enabled', 
$_POST[
'enable_disk_quota_summary_mail'] ? 1 : 0);
 
 2806                         $ilCtrl->redirect($this, 
"showCronJobs");
 
 2811                         $this->form->setValuesByPost();
 
 2812                         $tpl->setContent($this->form->getHtml());
 
 2831                 $tpl->setContent($this->form->getHTML());
 
 2841                 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 2845                 $ti = 
new ilTextInputGUI($this->lng->txt(
"firstname"), 
"admin_firstname");
 
 2848                 $ti->setRequired(
true);
 
 2849                 $ti->setValue($ilSetting->get(
"admin_firstname"));
 
 2850                 $this->form->addItem($ti);
 
 2853                 $ti = 
new ilTextInputGUI($this->lng->txt(
"lastname"), 
"admin_lastname");
 
 2856                 $ti->setRequired(
true);
 
 2857                 $ti->setValue($ilSetting->get(
"admin_lastname"));
 
 2858                 $this->form->addItem($ti);
 
 2861                 $ti = 
new ilTextInputGUI($this->lng->txt(
"title"), 
"admin_title");
 
 2864                 $ti->setValue($ilSetting->get(
"admin_title"));
 
 2865                 $this->form->addItem($ti);
 
 2868                 $ti = 
new ilTextInputGUI($this->lng->txt(
"position"), 
"admin_position");
 
 2871                 $ti->setValue($ilSetting->get(
"admin_position"));
 
 2872                 $this->form->addItem($ti);
 
 2875                 $ti = 
new ilTextInputGUI($this->lng->txt(
"institution"), 
"admin_institution");
 
 2878                 $ti->setValue($ilSetting->get(
"admin_institution"));
 
 2879                 $this->form->addItem($ti);
 
 2882                 $ti = 
new ilTextInputGUI($this->lng->txt(
"street"), 
"admin_street");
 
 2886                 $ti->setValue($ilSetting->get(
"admin_street"));
 
 2887                 $this->form->addItem($ti);
 
 2890                 $ti = 
new ilTextInputGUI($this->lng->txt(
"zipcode"), 
"admin_zipcode");
 
 2894                 $ti->setValue($ilSetting->get(
"admin_zipcode"));
 
 2895                 $this->form->addItem($ti);
 
 2902                 $ti->setValue($ilSetting->get(
"admin_city"));
 
 2903                 $this->form->addItem($ti);
 
 2906                 $ti = 
new ilTextInputGUI($this->lng->txt(
"country"), 
"admin_country");
 
 2910                 $ti->setValue($ilSetting->get(
"admin_country"));
 
 2911                 $this->form->addItem($ti);
 
 2914                 $ti = 
new ilTextInputGUI($this->lng->txt(
"phone"), 
"admin_phone");
 
 2918                 $ti->setValue($ilSetting->get(
"admin_phone"));
 
 2919                 $this->form->addItem($ti);
 
 2922                 $ti = 
new ilTextInputGUI($this->lng->txt(
"email"), 
"admin_email");
 
 2925                 $ti->setRequired(
true);
 
 2926                 $ti->setValue($ilSetting->get(
"admin_email"));
 
 2927                 $this->form->addItem($ti);
 
 2930                 $ti = 
new ilEmailInputGUI($this->lng->txt(
"feedback_recipient"), 
"feedback_recipient");
 
 2931                 $ti->setValue($ilSetting->get(
"feedback_recipient"));
 
 2932                 $this->form->addItem($ti);
 
 2935                 $ti = 
new ilEmailInputGUI($this->lng->txt(
"error_recipient"), 
"error_recipient");
 
 2936                 $ti->setValue($ilSetting->get(
"error_recipient"));
 
 2937                 $this->form->addItem($ti);
 
 2939                 $this->form->addCommandButton(
"saveContactInformation", $lng->txt(
"save"));
 
 2941                 $this->form->setTitle($lng->txt(
"contact_data"));
 
 2942                 $this->form->setFormAction($this->ctrl->getFormAction($this));
 
 2954                 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
 2956                         $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
 
 2960                 if ($this->form->checkInput())
 
 2962                         $fs = array(
"admin_firstname", 
"admin_lastname", 
"admin_title", 
"admin_position", 
 
 2963                                 "admin_institution", 
"admin_street", 
"admin_zipcode", 
"admin_city", 
 
 2964                                 "admin_country", 
"admin_phone", 
"admin_email",
 
 2965                                 "feedback_recipient", 
"error_recipient");
 
 2968                                 $ilSetting->set($f, 
$_POST[$f]);
 
 2971                         $ilCtrl->redirect($this, 
"showContactInformation");
 
 2976                         $this->form->setValuesByPost();
 
 2977                         $tpl->setContent($this->form->getHtml());
 
 2996                 $tpl->setContent($this->form->getHTML());
 
 3006                 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 3010                 $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"soap_user_administration"), 
"soap_user_administration");
 
 3011                 $cb->
setInfo($this->lng->txt(
"soap_user_administration_desc"));
 
 3012                 if ($ilSetting->get(
"soap_user_administration"))
 
 3014                         $cb->setChecked(
true);
 
 3016                 $this->form->addItem($cb);
 
 3019                 $wsdl = 
new ilTextInputGUI($this->lng->txt(
'soap_wsdl_path'), 
'soap_wsdl_path');
 
 3020                 $wsdl->
setInfo(sprintf($this->lng->txt(
'soap_wsdl_path_info'), 
"<br />'".ILIAS_HTTP_PATH.
"/webservice/soap/server.php?wsdl'"));
 
 3021                 $wsdl->setValue((
string)$ilSetting->get(
'soap_wsdl_path'));
 
 3023                 $wsdl->setMaxLength(255);
 
 3024                 $this->form->addItem($wsdl);
 
 3026                 $this->form->addCommandButton(
"saveWebServices", $lng->txt(
"save"));
 
 3028                 $this->form->setTitle($lng->txt(
"webservices"));
 
 3029                 $this->form->setFormAction($this->ctrl->getFormAction($this));
 
 3041                 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
 3043                         $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
 
 3047                 if ($this->form->checkInput())
 
 3049                         $ilSetting->set(
'soap_user_administration', $this->form->getInput(
'soap_user_administration'));
 
 3050                         $ilSetting->set(
'soap_wsdl_path', trim($this->form->getInput(
'soap_wsdl_path')));       
 
 3053                         $ilCtrl->redirect($this, 
'showWebServices');
 
 3058                         $this->form->setValuesByPost();
 
 3059                         $tpl->setContent($this->form->getHtml());
 
 3076                 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.java_settings.html',
'Modules/SystemFolder');
 
 3078                 $GLOBALS[
'lng']->loadLanguageModule(
'search');
 
 3080                 include_once 
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
 
 3082                 $toolbar->addButton($this->lng->txt(
'lucene_create_ini'),
 
 3083                         $this->ctrl->getLinkTarget($this,
'createJavaServerIni'));
 
 3084                 $tpl->setVariable(
'ACTION_BUTTONS',$toolbar->getHTML());
 
 3088                 $tpl->setVariable(
'SETTINGS_TABLE',$this->form->getHTML());
 
 3097                 #include_once './Services/WebServices/RPC/classes/classs.ilRPCServerSettings.php'; 
 3098                 #$ini = ilRPCServerSettings::createServerIni(); 
 3099                 #ilUtil::deliverData($ini, 'ilServer.ini','text/plain'); 
 3103                 $this->tpl->setContent($this->form->getHTML());
 
 3108                 include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
 3112                 $GLOBALS[
'lng']->loadLanguageModule(
'search');
 
 3114                 $this->form->setTitle($this->lng->txt(
'lucene_tbl_create_ini'));
 
 3115                 $this->form->setFormAction($this->ctrl->getFormAction($this,
'createJavaServerIni'));
 
 3116                 $this->form->addCommandButton(
'downloadJavaServerIni',$this->lng->txt(
'lucene_download_ini'));
 
 3117                 $this->form->addCommandButton(
'showJavaServer', $this->lng->txt(
'cancel'));
 
 3121                 $ip->
setInfo($this->lng->txt(
'lucene_host_info'));
 
 3122                 $ip->setMaxLength(128);
 
 3124                 $ip->setRequired(
true);
 
 3125                 $this->form->addItem($ip);
 
 3130                 $port->setMinValue(1);
 
 3131                 $port->setMaxValue(65535);
 
 3132                 $port->setRequired(
true);
 
 3133                 $this->form->addItem($port);
 
 3138                 $path->setMaxLength(1024);
 
 3139                 $path->setInfo($this->lng->txt(
'lucene_index_path_info'));
 
 3140                 $path->setRequired(
true);
 
 3141                 $this->form->addItem(
$path);
 
 3146                 $log->setMaxLength(1024);
 
 3147                 $log->setInfo($this->lng->txt(
'lucene_log_info'));
 
 3148                 $log->setRequired(
true);
 
 3149                 $this->form->addItem(
$log);
 
 3158                         'FATAL'         => 
'FATAL'));
 
 3159                 $lev->setValue(
'INFO');
 
 3160                 $lev->setRequired(
true);
 
 3161                 $this->form->addItem($lev);
 
 3167                 $cpu->setMaxLength(2);
 
 3168                 $cpu->setMinValue(1);
 
 3169                 $cpu->setRequired(
true);
 
 3170                 $this->form->addItem($cpu);
 
 3174                 $fs->
setInfo($this->lng->txt(
'lucene_max_fs_info'));
 
 3177                 $fs->setMaxLength(4);
 
 3178                 $fs->setMinValue(1);
 
 3179                 $fs->setRequired(
true);
 
 3180                 $this->form->addItem($fs);
 
 3192                 if($this->form->checkInput())
 
 3194                         include_once 
'./Services/WebServices/RPC/classes/class.ilRpcIniFileWriter.php';
 
 3196                         $ini->setHost($this->form->getInput(
'ho'));
 
 3197                         $ini->setPort($this->form->getInput(
'po'));
 
 3198                         $ini->setIndexPath($this->form->getInput(
'in'));
 
 3199                         $ini->setLogPath($this->form->getInput(
'lo'));
 
 3200                         $ini->setLogLevel($this->form->getInput(
'le'));
 
 3201                         $ini->setNumThreads($this->form->getInput(
'cp'));
 
 3202                         $ini->setMaxFileSize($this->form->getInput(
'fs'));
 
 3209                 $this->form->setValuesByPost();
 
 3212                 $this->tpl->setContent($this->form->getHTML());
 
 3223                 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 3227                 $ti = 
new ilTextInputGUI($this->lng->txt(
"java_server_host"), 
"rpc_server_host");
 
 3230                 $ti->setValue($ilSetting->get(
"rpc_server_host"));
 
 3231                 $this->form->addItem($ti);
 
 3234                 $ti = 
new ilNumberInputGUI($this->lng->txt(
"java_server_port"), 
"rpc_server_port");
 
 3237                 $ti->setValue($ilSetting->get(
"rpc_server_port"));
 
 3238                 $this->form->addItem($ti);
 
 3242                 $this->form->addCommandButton(
"saveJavaServer", $lng->txt(
"save"));
 
 3244                 $this->form->setTitle($lng->txt(
"java_server"));
 
 3245                 $this->form->setDescription($lng->txt(
"java_server_info").
 
 3246                         '<br /><a href="Services/WebServices/RPC/lib/README.txt" target="_blank">'.
 
 3247                         $lng->txt(
"java_server_readme").
'</a>');
 
 3248                 $this->form->setFormAction($this->ctrl->getFormAction($this));
 
 3260                 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
 
 3262                         $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
 
 3266                 if ($this->form->checkInput())
 
 3268                         $ilSetting->set(
"rpc_server_host", trim(
$_POST[
"rpc_server_host"]));
 
 3269                         $ilSetting->set(
"rpc_server_port", trim(
$_POST[
"rpc_server_port"]));
 
 3271                         $ilCtrl->redirect($this, 
"showJavaServer");
 
 3278                         $this->form->setValuesByPost();
 
 3279                         $tpl->setContent($this->form->getHtml());
 
 3294                 if(!$ilAccess->checkAccess(
'write', 
'', $this->object->getRefId()))
 
 3296                         $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
 
 3299                 require_once 
'classes/class.ilProxySettings.php';
 
 3302                 $this->form->setValuesByArray(array(
 
 3312                 $tpl->setContent($this->form->getHTML());
 
 3327                         $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
 
 3329                                 $this->lng->txt(
'proxy_connectable')
 
 3334                         $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
 
 3336                                 $this->lng->txt(
'proxy_not_connectable')
 
 3338                         ilUtil::sendFailure($this->lng->txt(
'proxy_pear_net_socket_error').
': '.$e->getMessage());
 
 3353                 if(!$ilAccess->checkAccess(
'write', 
'', $this->object->getRefId()))
 
 3355                         $this->ilias->raiseError($lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
 
 3358                 require_once 
'classes/class.ilProxySettings.php';
 
 3361                 $isFormValid = $this->form->checkInput();
 
 3363                                                                            ->setHost(trim($this->form->getInput(
'proxy_host')))
 
 3364                                                                                 ->setPort(trim($this->form->getInput(
'proxy_port')));
 
 3371                                         $isFormValid = 
false;
 
 3372                                         $this->form->getItemByPostVar(
'proxy_host')->setAlert($lng->txt(
'msg_input_is_required'));
 
 3376                                         $isFormValid = 
false;
 
 3377                                         $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'msg_input_is_required'));
 
 3383                                         $isFormValid = 
false;
 
 3384                                         $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'proxy_port_numeric'));
 
 3403                 $this->form->setValuesByPost();         
 
 3404                 $tpl->setContent($this->form->getHTML());
 
 3420                 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
 
 3422                 $this->form->setFormAction($ilCtrl->getFormAction($this, 
'saveProxy'));
 
 3426                 $proxs->
setInfo($lng->txt(
'proxy_status_info'));
 
 3427                 $proxs->setValue(1);
 
 3428                 $this->form->addItem($proxs);
 
 3432                 $proxs->addSubItem($proxa);
 
 3435                 $prox = 
new ilTextInputGUI($lng->txt(
'proxy_host'), 
'proxy_host');
 
 3436                 $prox->
setInfo($lng->txt(
'proxy_host_info'));
 
 3437                 $proxs->addSubItem($prox);
 
 3440                 $proxp = 
new ilTextInputGUI($lng->txt(
'proxy_port'), 
'proxy_port');
 
 3441                 $proxp->
setInfo($lng->txt(
'proxy_port_info'));
 
 3442                 $proxp->setSize(10);
 
 3443                 $proxp->setMaxLength(10);
 
 3444                 $proxs->addSubItem($proxp);
 
 3447                 $this->form->addCommandButton(
'saveProxy', $lng->txt(
'save'));
 
 3457                 $a_target = SYSTEM_FOLDER_ID;
 
 3459                 if ($ilAccess->checkAccess(
"read", 
"", $a_target))
 
 3466                         if ($ilAccess->checkAccess(
"read", 
"", ROOT_FOLDER_ID))
 
 3468                                 $_GET[
"cmd"] = 
"frameset";
 
 3469                                 $_GET[
"target"] = 
"";
 
 3470                                 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
 
 3473                                 include(
"repository.php");
 
 3477                 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);