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)
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"));
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'];
443 $settings[
"admin_firstname"] =
$_POST[
"admin_firstname"];
444 $settings[
"admin_lastname"] =
$_POST[
"admin_lastname"];
445 $settings[
"admin_title"] =
$_POST[
"admin_title"];
446 $settings[
"admin_position"] =
$_POST[
"admin_position"];
447 $settings[
"admin_institution"] =
$_POST[
"admin_institution"];
448 $settings[
"admin_street"] =
$_POST[
"admin_street"];
449 $settings[
"admin_zipcode"] =
$_POST[
"admin_zipcode"];
450 $settings[
"admin_city"] =
$_POST[
"admin_city"];
451 $settings[
"admin_country"] =
$_POST[
"admin_country"];
452 $settings[
"admin_phone"] =
$_POST[
"admin_phone"];
453 $settings[
"admin_email"] =
$_POST[
"admin_email"];
456 $settings[
"cron_user_check"] =
$_POST[
"cron_user_check"];
457 $settings[
"cron_link_check"] =
$_POST[
"cron_link_check"];
458 $settings[
"cron_web_resource_check"] =
$_POST[
"cron_web_resource_check"];
459 $settings[
"cron_lucene_index"] =
$_POST[
"cron_lucene_index"];
460 $settings[
"forum_notification"] =
$_POST[
"forum_notification"];
461 $settings[
"mail_notification"] =
$_POST[
"mail_notification"];
464 $settings[
'frm_store_new'] =
$_POST[
'frm_store_new'];
467 $settings[
"soap_user_administration"] =
$_POST[
"soap_user_administration"];
472 $settings[
"suffix_repl_additional"] =
$_POST[
"suffix_repl_additional"];
475 $settings[
"links_dynamic"] =
$_POST[
"links_dynamic"];
484 $this->ilias->setSetting(
"feedback_recipient",
$_POST[
"feedback_recipient"]);
485 $this->ilias->setSetting(
"error_recipient",
$_POST[
"error_recipient"]);
513 $this->ilias->setSetting(
"pub_section",
$_POST[
"pub_section"]);
514 $this->ilias->setSetting(
'open_google',
$_POST[
'open_google']);
515 $this->ilias->setSetting(
"default_repository_view",
$_POST[
"default_rep_view"]);
517 $this->ilias->setSetting(
'password_assistance',
$_POST[
'password_assistance']);
518 $this->ilias->setSetting(
'passwd_auto_generate',
$_POST[
'password_auto_generate']);
521 $this->ilias->setSetting(
'short_inst_name',
$_POST[
'short_inst_name']);
522 $this->ilias->setSetting(
'enable_trash',
$_POST[
'enable_trash']);
525 $this->ilias->setSetting(
'session_reminder_enabled', (
int)
$_POST[
'session_reminder_enabled']);
528 $this->ilias->setSetting(
"admin_firstname",$_POST[
"admin_firstname"]);
529 $this->ilias->setSetting(
"admin_lastname",$_POST[
"admin_lastname"]);
530 $this->ilias->setSetting(
"admin_title",$_POST[
"admin_title"]);
531 $this->ilias->setSetting(
"admin_position",$_POST[
"admin_position"]);
532 $this->ilias->setSetting(
"admin_institution",$_POST[
"admin_institution"]);
533 $this->ilias->setSetting(
"admin_street",$_POST[
"admin_street"]);
534 $this->ilias->setSetting(
"admin_zipcode",$_POST[
"admin_zipcode"]);
535 $this->ilias->setSetting(
"admin_city",$_POST[
"admin_city"]);
536 $this->ilias->setSetting(
"admin_country",$_POST[
"admin_country"]);
537 $this->ilias->setSetting(
"admin_phone",$_POST[
"admin_phone"]);
538 $this->ilias->setSetting(
"admin_email",$_POST[
"admin_email"]);
541 $this->ilias->setSetting(
"cron_user_check",$_POST[
"cron_user_check"]);
542 $this->ilias->setSetting(
"cron_link_check",$_POST[
"cron_link_check"]);
543 $this->ilias->setSetting(
"cron_web_resource_check",$_POST[
"cron_web_resource_check"]);
544 $this->ilias->setSetting(
"cron_lucene_index",$_POST[
"cron_lucene_index"]);
545 $this->ilias->setSetting(
"forum_notification",$_POST[
"forum_notification"]);
546 if ($_POST[
"forum_notification"] == 2)
548 $this->ilias->setSetting(
"cron_forum_notification_last_date",date(
"Y-m-d H:i:s"));
550 $this->ilias->setSetting(
"mail_notification", $_POST[
"mail_notification"]);
554 $this->ilias->setSetting(
"soap_user_administration",$_POST[
"soap_user_administration"]);
555 $this->ilias->setSetting(
"rpc_server_host",trim($_POST[
"rpc_server_host"]));
556 $this->ilias->setSetting(
"rpc_server_port",trim($_POST[
"rpc_server_port"]));
562 $this->ilias->setSetting(
'frm_store_new',$_POST[
'frm_store_new']);
565 $this->ilias->ini->write();
568 $this->ilias->setSetting(
'links_dynamic',$_POST[
'links_dynamic']);
570 $this->ilias->setSetting(
"suffix_repl_additional",
573 $settings = $this->ilias->getAllSettings();
576 $feedback = $this->lng->txt(
"saved_successfully");
577 if (trim($_POST[
"rpc_server_host"]) !=
"" ||
578 trim($_POST[
"rpc_server_port"]) !=
"")
580 include_once
'Services/WebServices/RPC/classes/class.ilRPCServerSettings.php';
582 if(!$rpc_settings->pingServer())
584 $feedback .=
"<br />\n".$this->lng->txt(
'java_server_no_connection');
590 $ilCtrl->redirect($this,
"view");
596 include_once(
"./Modules/Wiki/classes/class.ilWikiDBCreator.php");
608 global $rbacsystem,
$ilCtrl, $ilClientIniFile;
610 $this->tpl->addBlockFile(
"SYSTEMSETTINGS",
"systemsettings",
"tpl.adm_basicdata.html",
611 "Modules/SystemFolder");
613 $settings = $this->ilias->getAllSettings();
616 $this->tpl->setVariable(
"HREF_CREATE_WIKI_TABLE",
617 $ilCtrl->getLinkTarget($this,
"createWikiTables"));
621 $this->tpl->setVariable(
"TXT_BASIC_DATA", $this->lng->txt(
"basic_data"));
627 $this->tpl->setVariable(
"TXT_ILIAS_VERSION", $this->lng->txt(
"ilias_version"));
628 $this->tpl->setVariable(
"TXT_DB_VERSION", $this->lng->txt(
"db_version"));
629 $this->tpl->setVariable(
"TXT_CLIENT_ID", $this->lng->txt(
"client_id"));
630 $this->tpl->setVariable(
"TXT_INST_ID", $this->lng->txt(
"inst_id"));
631 $this->tpl->setVariable(
"TXT_ACTIVATE_HTTPS",$this->lng->txt(
'activate_https'));
632 $this->tpl->setVariable(
"TXT_HOSTNAME", $this->lng->txt(
"host"));
633 $this->tpl->setVariable(
"TXT_IP_ADDRESS", $this->lng->txt(
"ip_address"));
634 $this->tpl->setVariable(
"TXT_SERVER_DATA", $this->lng->txt(
"server_data"));
635 $this->tpl->setVariable(
"TXT_SERVER_PORT", $this->lng->txt(
"port"));
636 $this->tpl->setVariable(
"TXT_SERVER_SOFTWARE", $this->lng->txt(
"server_software"));
637 $this->tpl->setVariable(
"TXT_HTTP_PATH", $this->lng->txt(
"http_path"));
638 $this->tpl->setVariable(
"TXT_ABSOLUTE_PATH", $this->lng->txt(
"absolute_path"));
639 $this->tpl->setVariable(
"TXT_INST_NAME", $this->lng->txt(
"inst_name"));
640 $this->tpl->setVariable(
"TXT_INST_INFO", $this->lng->txt(
"inst_info"));
642 $this->tpl->setVariable(
"TXT_FEEDBACK_RECIPIENT", $this->lng->txt(
"feedback_recipient"));
643 $this->tpl->setVariable(
"TXT_ERROR_RECIPIENT", $this->lng->txt(
"error_recipient"));
644 $this->tpl->setVariable(
"TXT_HEADER_TITLE", $this->lng->txt(
"header_title"));
645 $this->tpl->setVariable(
"TXT_SHORT_NAME", $this->lng->txt(
"short_inst_name"));
646 $this->tpl->setVariable(
"TXT_SHORT_NAME_INFO", $this->lng->txt(
"short_inst_name_info"));
648 $this->tpl->setVariable(
"VAL_SHORT_INST_NAME", $settings[
'short_inst_name']);
649 $this->tpl->setVariable(
"TXT_CHANGE", $this->lng->txt(
"change"));
650 $this->tpl->setVariable(
"LINK_HEADER_TITLE",
651 $this->ctrl->getLinkTarget($this,
"changeHeaderTitle"));
652 $this->tpl->setVariable(
"VAL_HEADER_TITLE",
655 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
656 $dbupdate =
new ilDBUpdate($this->ilias->db,
true);
658 if (!$dbupdate->getDBVersionStatus())
660 $this->tpl->setVariable(
"TXT_DB_UPDATE",
" (<span class=\"warning\">".$this->lng->txt(
"db_need_update").
"</span>)");
664 $this->tpl->setVariable(
"TXT_PUB_SECTION", $this->lng->txt(
"pub_section"));
667 $this->tpl->setVariable(
'TXT_SEARCH_ENGINE',$this->lng->txt(
'search_engine'));
668 $this->tpl->setVariable(
'TXT_ENABLE_SEARCH_ENGINE',$this->lng->txt(
'enable_search_engine'));
669 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
673 if(!$robot_settings->checkModRewrite())
676 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'disabled="disabled"');
678 $this->tpl->setCurrentBlock(
'search_engine_alert');
680 $this->tpl->setVariable(
'SE_ALT_ALERT',$this->lng->txt(
'alert'));
681 $this->tpl->setVariable(
'TXT_SE_ALERT',$this->lng->txt(
'mod_rewrite_disabled'));
682 $this->tpl->parseCurrentBlock();
684 elseif(!$robot_settings->checkRewrite())
687 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'disabled="disabled"');
689 $this->tpl->setCurrentBlock(
'search_engine_alert');
691 $this->tpl->setVariable(
'SE_ALT_ALERT',$this->lng->txt(
'alert'));
692 $this->tpl->setVariable(
'TXT_SE_ALERT',$this->lng->txt(
'allow_override_alert'));
693 $this->tpl->parseCurrentBlock();
695 if($settings[
'open_google'] and !$error_se)
697 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'checked="checked"');
700 $this->tpl->setVariable(
"TXT_DEFAULT_REPOSITORY_VIEW", $this->lng->txt(
"def_repository_view"));
701 $this->tpl->setVariable(
"TXT_FLAT", $this->lng->txt(
"flatview"));
702 $this->tpl->setVariable(
"TXT_TREE", $this->lng->txt(
"treeview"));
704 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_ASSISTANCE", $this->lng->txt(
"enable_password_assistance"));
705 $this->tpl->setVariable(
"TXT_PASSWORD_AUTO_GENERATE_INFO",$this->lng->txt(
'passwd_generation_info'));
713 $this->tpl->setVariable(
"TXT_PASSWORD_ASSISTANCE_INFO", $this->lng->txt(
"password_assistance_info"));
715 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_GENERATION",$this->lng->txt(
'passwd_generation'));
718 $this->tpl->setVariable(
"TXT_FILE_SUFFIX_REPL", $this->lng->txt(
"file_suffix_repl"));
719 $this->tpl->setVariable(
"INFO_FILE_SUFFIX_REPL",
720 $this->lng->txt(
"file_suffix_repl_info").
" ".SUFFIX_REPL_DEFAULT);
722 $this->tpl->setVariable(
"TXT_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic'));
723 $this->tpl->setVariable(
"INFO_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic_info'));
725 $this->tpl->setVariable(
"TXT_ENABLE_TRASH",$this->lng->txt(
'enable_trash'));
726 $this->tpl->setVariable(
"INFO_ENABLE_TRASH",$this->lng->txt(
'enable_trash_info'));
728 $this->tpl->setVariable(
'TXT_SESSION_REMINDER', $this->lng->txt(
'session_reminder'));
729 $this->tpl->setVariable(
'INFO_SESSION_REMINDER', $this->lng->txt(
'session_reminder_info'));
730 $expires = $ilClientIniFile->readVariable(
"session",
"expire");
732 $this->tpl->setVariable(
'SESSION_REMINDER_SESSION_DURATION',
733 sprintf($this->lng->txt(
'session_reminder_session_duration'), $time));
737 $this->tpl->setVariable(
"TXT_SOFTWARE", $this->lng->txt(
"3rd_party_software"));
738 $this->tpl->setVariable(
"TXT_CONVERT_PATH", $this->lng->txt(
"path_to_convert"));
739 $this->tpl->setVariable(
"TXT_ZIP_PATH", $this->lng->txt(
"path_to_zip"));
740 $this->tpl->setVariable(
"TXT_UNZIP_PATH", $this->lng->txt(
"path_to_unzip"));
741 $this->tpl->setVariable(
"TXT_JAVA_PATH", $this->lng->txt(
"path_to_java"));
742 $this->tpl->setVariable(
"TXT_HTMLDOC_PATH", $this->lng->txt(
"path_to_htmldoc"));
743 $this->tpl->setVariable(
"TXT_MKISOFS_PATH", $this->lng->txt(
"path_to_mkisofs"));
744 $this->tpl->setVariable(
"TXT_LATEX_URL", $this->lng->txt(
"url_to_latex"));
747 $this->tpl->setVariable(
"TXT_CRON",$this->lng->txt(
'cron_jobs'));
748 $this->tpl->setVariable(
"TXT_CRON_DESC",$this->lng->txt(
'cron_jobs_desc'));
749 $this->tpl->setVariable(
"TXT_CRON_USER_ACCOUNTS",$this->lng->txt(
'check_user_accounts'));
750 $this->tpl->setVariable(
"CRON_USER_ACCOUNTS_DESC",$this->lng->txt(
'check_user_accounts_desc'));
751 $this->tpl->setVariable(
"TXT_CRON_LINK_CHECK",$this->lng->txt(
'check_link'));
752 $this->tpl->setVariable(
"CRON_LINK_CHECK_DESC",$this->lng->txt(
'check_link_desc'));
753 $this->tpl->setVariable(
"TXT_CRON_WEB_RESOURCE_CHECK",$this->lng->txt(
'check_web_resources'));
754 $this->tpl->setVariable(
"CRON_WEB_RESOURCE_CHECK_DESC",$this->lng->txt(
'check_web_resources_desc'));
756 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX",$this->lng->txt(
'cron_lucene_index'));
757 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX_INFO",$this->lng->txt(
'cron_lucene_index_info'));
759 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION",$this->lng->txt(
'cron_forum_notification'));
760 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_NEVER",$this->lng->txt(
'cron_forum_notification_never'));
761 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_DIRECTLY",$this->lng->txt(
'cron_forum_notification_directly'));
762 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_CRON",$this->lng->txt(
'cron_forum_notification_cron'));
763 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_DESC",$this->lng->txt(
'cron_forum_notification_desc'));
765 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION",$this->lng->txt(
'cron_mail_notification'));
766 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_NEVER",$this->lng->txt(
'cron_mail_notification_never'));
767 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_CRON",$this->lng->txt(
'cron_mail_notification_cron'));
768 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_DESC",$this->lng->txt(
'cron_mail_notification_desc'));
770 $this->tpl->setVariable(
"TXT_NEVER",$this->lng->txt(
'never'));
771 $this->tpl->setVariable(
"TXT_DAILY",$this->lng->txt(
'daily'));
772 $this->tpl->setVariable(
"TXT_WEEKLY",$this->lng->txt(
'weekly'));
773 $this->tpl->setVariable(
"TXT_MONTHLY",$this->lng->txt(
'monthly'));
774 $this->tpl->setVariable(
"TXT_QUARTERLY",$this->lng->txt(
'quarterly'));
776 $this->tpl->setVariable(
"TXT_WEBSERVICES",$this->lng->txt(
'webservices'));
777 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION",$this->lng->txt(
'soap_user_administration'));
778 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION_DESC",$this->lng->txt(
'soap_user_administration_desc'));
780 $this->tpl->setVariable(
"TXT_JAVA_SERVER",$this->lng->txt(
'java_server'));
781 $this->tpl->setVariable(
"TXT_JAVA_SERVER_HOST",$this->lng->txt(
'java_server_host'));
782 $this->tpl->setVariable(
"TXT_JAVA_SERVER_PORT",$this->lng->txt(
'java_server_port'));
783 $this->tpl->setVariable(
"TXT_JAVA_SERVER_INFO",$this->lng->txt(
'java_server_info'));
784 $this->tpl->setVariable(
"TXT_JAVA_SERVER_README",$this->lng->txt(
'java_server_readme'));
792 $this->tpl->setVariable(
"TXT_FORUMS",$this->lng->txt(
'obj_frm'));
793 $this->tpl->setVariable(
"TXT_STATUS_NEW",$this->lng->txt(
'frm_status_new'));
794 $this->tpl->setVariable(
"TXT_STATUS_NEW_DESC",$this->lng->txt(
'frm_status_new_desc'));
796 $this->tpl->setVariable(
"TXT_ONE_WEEK",
"1 ". $this->lng->txt(
'week'));
797 $this->tpl->setVariable(
"TXT_TWO_WEEKS",
"2 ". $this->lng->txt(
'weeks'));
798 $this->tpl->setVariable(
"TXT_FOUR_WEEKS",
"4 ". $this->lng->txt(
'weeks'));
799 $this->tpl->setVariable(
"TXT_EIGHT_WEEKS",
"8 ". $this->lng->txt(
'weeks'));
802 $this->tpl->setVariable(
"TXT_CONTACT_DATA", $this->lng->txt(
"contact_data"));
803 $this->tpl->setVariable(
"TXT_REQUIRED_FIELDS", $this->lng->txt(
"required_field"));
804 $this->tpl->setVariable(
"TXT_ADMIN", $this->lng->txt(
"administrator"));
805 $this->tpl->setVariable(
"TXT_FIRSTNAME", $this->lng->txt(
"firstname"));
806 $this->tpl->setVariable(
"TXT_LASTNAME", $this->lng->txt(
"lastname"));
807 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
808 $this->tpl->setVariable(
"TXT_POSITION", $this->lng->txt(
"position"));
809 $this->tpl->setVariable(
"TXT_INSTITUTION", $this->lng->txt(
"institution"));
810 $this->tpl->setVariable(
"TXT_STREET", $this->lng->txt(
"street"));
811 $this->tpl->setVariable(
"TXT_ZIPCODE", $this->lng->txt(
"zipcode"));
812 $this->tpl->setVariable(
"TXT_CITY", $this->lng->txt(
"city"));
813 $this->tpl->setVariable(
"TXT_COUNTRY", $this->lng->txt(
"country"));
814 $this->tpl->setVariable(
"TXT_PHONE", $this->lng->txt(
"phone"));
815 $this->tpl->setVariable(
"TXT_EMAIL", $this->lng->txt(
"email"));
816 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
823 $this->tpl->setVariable(
"FORMACTION_BASICDATA", $this->ctrl->getFormAction($this));
824 $this->tpl->setVariable(
"HTTP_PATH",ILIAS_HTTP_PATH);
826 $this->tpl->setVariable(
"HOSTNAME", $_SERVER[
"SERVER_NAME"]);
827 $this->tpl->setVariable(
"SERVER_PORT", $_SERVER[
"SERVER_PORT"]);
828 $this->tpl->setVariable(
"SERVER_ADMIN", $_SERVER[
"SERVER_ADMIN"]);
829 $this->tpl->setVariable(
"SERVER_SOFTWARE", $_SERVER[
"SERVER_SOFTWARE"]);
830 $this->tpl->setVariable(
"IP_ADDRESS", $_SERVER[
"SERVER_ADDR"]);
831 $this->tpl->setVariable(
"DB_VERSION",$settings[
"db_version"]);
832 $this->tpl->setVariable(
"ILIAS_VERSION",$settings[
"ilias_version"]);
833 $this->tpl->setVariable(
"INST_ID",$settings[
"inst_id"]);
834 $this->tpl->setVariable(
"CLIENT_ID",CLIENT_ID);
835 $this->tpl->setVariable(
"INST_NAME",$this->ilias->ini->readVariable(
"client",
"name"));
836 $this->tpl->setVariable(
"INST_INFO",$this->ilias->ini->readVariable(
"client",
"description"));
837 $this->tpl->setVariable(
"FEEDBACK_RECIPIENT",$settings[
"feedback_recipient"]);
838 $this->tpl->setVariable(
"ERROR_RECIPIENT",$settings[
"error_recipient"]);
840 $this->tpl->setVariable(
"PHP_INFO_LINK",
841 $this->ctrl->getLinkTarget($this,
"showPHPInfo"));
844 if ($settings[
"pub_section"])
846 $this->tpl->setVariable(
"PUB_SECTION",
"checked=\"checked\"");
849 if ($settings[
"default_repository_view"] ==
"tree")
851 $this->tpl->setVariable(
"TREESELECTED",
"selected=\"1\"");
855 $this->tpl->setVariable(
"FLATSELECTED",
"selected=\"1\"");
858 if($settings[
'password_assistance'])
860 $this->tpl->setVariable(
"PASSWORD_ASSISTANCE",
"checked=\"checked\"");
862 $this->tpl->setVariable(
"VAL_SHORT_NAME", $settings[
'short_inst_title']);
863 if($settings[
'passwd_auto_generate'])
865 $this->tpl->setVariable(
"PASSWORD_AUTO_GENERATE",
"checked=\"checked\"");
877 if($settings[
'links_dynamic'])
879 $this->tpl->setVariable(
"LINKS_DYNAMIC_CHECKED",
"checked=\"checked\"");
882 if($settings[
'enable_trash'])
884 $this->tpl->setVariable(
"ENABLE_TRASH_CHECKED",
"checked=\"checked\"");
887 if($settings[
'session_reminder_enabled'])
889 $this->tpl->setVariable(
'SESSION_REMINDER_ENABLED',
'checked=checked');
892 if ($settings[
"require_login"])
894 $this->tpl->setVariable(
"REQUIRE_LOGIN",
"checked=\"checked\"");
896 if ($settings[
"require_passwd"])
898 $this->tpl->setVariable(
"REQUIRE_PASSWD",
"checked=\"checked\"");
900 if ($settings[
"require_passwd2"])
902 $this->tpl->setVariable(
"REQUIRE_PASSWD2",
"checked=\"checked\"");
904 if ($settings[
"require_firstname"])
906 $this->tpl->setVariable(
"REQUIRE_FIRSTNAME",
"checked=\"checked\"");
908 if ($settings[
"require_gender"])
910 $this->tpl->setVariable(
"REQUIRE_GENDER",
"checked=\"checked\"");
912 if ($settings[
"require_lastname"])
914 $this->tpl->setVariable(
"REQUIRE_LASTNAME",
"checked=\"checked\"");
916 if ($settings[
"require_institution"])
918 $this->tpl->setVariable(
"REQUIRE_INSTITUTION",
"checked=\"checked\"");
920 if ($settings[
"require_department"])
922 $this->tpl->setVariable(
"REQUIRE_DEPARTMENT",
"checked=\"checked\"");
924 if ($settings[
"require_street"])
926 $this->tpl->setVariable(
"REQUIRE_STREET",
"checked=\"checked\"");
928 if ($settings[
"require_city"])
930 $this->tpl->setVariable(
"REQUIRE_CITY",
"checked=\"checked\"");
932 if ($settings[
"require_zipcode"])
934 $this->tpl->setVariable(
"REQUIRE_ZIPCODE",
"checked=\"checked\"");
936 if ($settings[
"require_country"])
938 $this->tpl->setVariable(
"REQUIRE_COUNTRY",
"checked=\"checked\"");
940 if ($settings[
"require_phone_office"])
942 $this->tpl->setVariable(
"REQUIRE_PHONE_OFFICE",
"checked=\"checked\"");
944 if ($settings[
"require_phone_home"])
946 $this->tpl->setVariable(
"REQUIRE_PHONE_HOME",
"checked=\"checked\"");
948 if ($settings[
"require_phone_mobile"])
950 $this->tpl->setVariable(
"REQUIRE_PHONE_MOBILE",
"checked=\"checked\"");
952 if ($settings[
"require_fax"])
954 $this->tpl->setVariable(
"REQUIRE_FAX",
"checked=\"checked\"");
956 if ($settings[
"require_email"])
958 $this->tpl->setVariable(
"REQUIRE_EMAIL",
"checked=\"checked\"");
960 if ($settings[
"require_hobby"])
962 $this->tpl->setVariable(
"REQUIRE_HOBBY",
"checked=\"checked\"");
964 if ($settings[
"require_default_role"])
966 $this->tpl->setVariable(
"REQUIRE_DEFAULT_ROLE",
"checked=\"checked\"");
968 if ($settings[
"require_referral_comment"])
970 $this->tpl->setVariable(
"REQUIRE_REFERRAL_COMMENT",
"checked=\"checked\"");
972 if ($settings[
"require_matriculation"])
974 $this->tpl->setVariable(
"REQUIRE_MATRICULATION",
"checked=\"checked\"");
976 if ($settings[
"cron_user_check"])
978 $this->tpl->setVariable(
"CRON_USER_CHECK",
"checked=\"checked\"");
980 if ($settings[
"cron_link_check"])
982 $this->tpl->setVariable(
"CRON_LINK_CHECK",
"checked=\"checked\"");
984 if($settings[
"cron_lucene_index"])
986 $this->tpl->setVariable(
"CRON_LUCENE_INDEX",
"checked=\"checked\"");
988 if ($settings[
"forum_notification"] == 0)
990 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_NEVER_SELECTED",
" selected");
992 else if ($settings[
"forum_notification"] == 1)
994 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_DIRECTLY_SELECTED",
" selected");
996 else if ($settings[
"forum_notification"] == 2)
998 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_CRON_SELECTED",
" selected");
1000 if ($settings[
"mail_notification"] == 0)
1002 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_NEVER_SELECTED",
" selected=\"selected\"");
1004 else if ($settings[
"mail_notification"] == 1)
1006 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_CRON_SELECTED",
" selected=\"selected\"");
1008 if ($val = $settings[
"cron_web_resource_check"])
1013 $this->tpl->setVariable(
"D_SELECT",
'selected="selected"');
1016 $this->tpl->setVariable(
"W_SELECT",
'selected="selected"');
1019 $this->tpl->setVariable(
"M_SELECT",
'selected="selected"');
1022 $this->tpl->setVariable(
"Q_SELECT",
'selected="selected"');
1027 switch($settings[
'frm_store_new'])
1030 $this->tpl->setVariable(
"ONE_SELECT",
'selected="selected"');
1034 $this->tpl->setVariable(
"TWO_SELECT",
'selected="selected"');
1038 $this->tpl->setVariable(
"FOUR_SELECT",
'selected="selected"');
1043 $this->tpl->setVariable(
"EIGHT_SELECT",
'selected="selected"');
1046 if ($settings[
"soap_user_administration"])
1048 $this->tpl->setVariable(
"SOAP_USER_ADMINISTRATION_CHECK",
"checked=\"checked\"");
1051 $this->tpl->setVariable(
"JAVA_SERVER_HOST",$settings[
"rpc_server_host"]);
1052 $this->tpl->setVariable(
"JAVA_SERVER_PORT",$settings[
"rpc_server_port"]);
1061 $not_set = $this->lng->txt(
"path_not_set");
1063 $this->tpl->setVariable(
"CONVERT_PATH",(PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1064 $this->tpl->setVariable(
"ZIP_PATH",(PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1065 $this->tpl->setVariable(
"UNZIP_PATH",(PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1066 $this->tpl->setVariable(
"JAVA_PATH",(PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1067 $this->tpl->setVariable(
"HTMLDOC_PATH",(PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
1068 $this->tpl->setVariable(
"MKISOFS_PATH",(PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
1069 $this->tpl->setVariable(
"LATEX_URL",(URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1072 $this->tpl->setVariable(
"ADMIN_FIRSTNAME",$settings[
"admin_firstname"]);
1073 $this->tpl->setVariable(
"ADMIN_LASTNAME",$settings[
"admin_lastname"]);
1074 $this->tpl->setVariable(
"ADMIN_TITLE",$settings[
"admin_title"]);
1075 $this->tpl->setVariable(
"ADMIN_POSITION",$settings[
"admin_position"]);
1076 $this->tpl->setVariable(
"ADMIN_INSTITUTION",$settings[
"admin_institution"]);
1077 $this->tpl->setVariable(
"ADMIN_STREET",$settings[
"admin_street"]);
1078 $this->tpl->setVariable(
"ADMIN_ZIPCODE",$settings[
"admin_zipcode"]);
1079 $this->tpl->setVariable(
"ADMIN_CITY",$settings[
"admin_city"]);
1080 $this->tpl->setVariable(
"ADMIN_COUNTRY",$settings[
"admin_country"]);
1081 $this->tpl->setVariable(
"ADMIN_PHONE",$settings[
"admin_phone"]);
1082 $this->tpl->setVariable(
"ADMIN_EMAIL",$settings[
"admin_email"]);
1084 $this->tpl->parseCurrentBlock();
1101 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1103 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1107 if (
$_POST[
'count_limit'] !== null ||
$_POST[
'age_limit'] !== null ||
$_POST[
'type_limit'] !== null)
1109 $ilias->account->writePref(
'systemcheck_count_limit',
1110 (is_numeric(
$_POST[
'count_limit']) &&
$_POST[
'count_limit'] > 0) ?
$_POST[
'count_limit'] :
''
1112 $ilias->account->writePref(
'systemcheck_age_limit',
1113 (is_numeric(
$_POST[
'age_limit']) &&
$_POST[
'age_limit'] > 0) ?
$_POST[
'age_limit'] :
'');
1114 $ilias->account->writePref(
'systemcheck_type_limit', trim(
$_POST[
'type_limit']));
1126 include_once
"classes/class.ilValidator.php";
1128 $hasScanLog = $validator->hasScanLog();
1134 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_last_log"));
1137 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1138 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"systemcheck"));
1139 $this->tpl->setVariable(
"COLSPAN", 3);
1140 $this->tpl->setVariable(
"TXT_ANALYZE_TITLE", $this->lng->txt(
"analyze_data"));
1141 $this->tpl->setVariable(
"TXT_ANALYSIS_OPTIONS", $this->lng->txt(
"analysis_options"));
1142 $this->tpl->setVariable(
"TXT_REPAIR_OPTIONS", $this->lng->txt(
"repair_options"));
1143 $this->tpl->setVariable(
"TXT_OUTPUT_OPTIONS", $this->lng->txt(
"output_options"));
1144 $this->tpl->setVariable(
"TXT_SCAN", $this->lng->txt(
"scan"));
1145 $this->tpl->setVariable(
"TXT_SCAN_DESC", $this->lng->txt(
"scan_desc"));
1146 $this->tpl->setVariable(
"TXT_DUMP_TREE", $this->lng->txt(
"dump_tree"));
1147 $this->tpl->setVariable(
"TXT_DUMP_TREE_DESC", $this->lng->txt(
"dump_tree_desc"));
1148 $this->tpl->setVariable(
"TXT_CLEAN", $this->lng->txt(
"clean"));
1149 $this->tpl->setVariable(
"TXT_CLEAN_DESC", $this->lng->txt(
"clean_desc"));
1150 $this->tpl->setVariable(
"TXT_RESTORE", $this->lng->txt(
"restore_missing"));
1151 $this->tpl->setVariable(
"TXT_RESTORE_DESC", $this->lng->txt(
"restore_missing_desc"));
1152 $this->tpl->setVariable(
"TXT_PURGE", $this->lng->txt(
"purge_missing"));
1153 $this->tpl->setVariable(
"TXT_PURGE_DESC", $this->lng->txt(
"purge_missing_desc"));
1154 $this->tpl->setVariable(
"TXT_RESTORE_TRASH", $this->lng->txt(
"restore_trash"));
1155 $this->tpl->setVariable(
"TXT_RESTORE_TRASH_DESC", $this->lng->txt(
"restore_trash_desc"));
1156 $this->tpl->setVariable(
"TXT_PURGE_TRASH", $this->lng->txt(
"purge_trash"));
1157 $this->tpl->setVariable(
"TXT_PURGE_TRASH_DESC", $this->lng->txt(
"purge_trash_desc"));
1158 $this->tpl->setVariable(
"TXT_COUNT_LIMIT", $this->lng->txt(
"purge_count_limit"));
1159 $this->tpl->setVariable(
"TXT_COUNT_LIMIT_DESC", $this->lng->txt(
"purge_count_limit_desc"));
1160 $this->tpl->setVariable(
"COUNT_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_count_limit"));
1161 $this->tpl->setVariable(
"TXT_AGE_LIMIT", $this->lng->txt(
"purge_age_limit"));
1162 $this->tpl->setVariable(
"TXT_AGE_LIMIT_DESC", $this->lng->txt(
"purge_age_limit_desc"));
1163 $this->tpl->setVariable(
"AGE_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_age_limit"));
1164 $this->tpl->setVariable(
"TXT_TYPE_LIMIT", $this->lng->txt(
"purge_type_limit"));
1165 $this->tpl->setVariable(
"TXT_TYPE_LIMIT_DESC", $this->lng->txt(
"purge_type_limit_desc"));
1167 if($ilias->account->getPref(
'systemcheck_mode_scan'))
1168 $this->tpl->touchBlock(
'mode_scan_checked');
1169 if($ilias->account->getPref(
'systemcheck_mode_dump_tree'))
1170 $this->tpl->touchBlock(
'mode_dump_tree_checked');
1171 if($ilias->account->getPref(
'systemcheck_mode_clean'))
1172 $this->tpl->touchBlock(
'mode_clean_checked');
1173 if($ilias->account->getPref(
'systemcheck_mode_restore'))
1175 $this->tpl->touchBlock(
'mode_restore_checked');
1176 $this->tpl->touchBlock(
'mode_purge_disabled');
1178 elseif($ilias->account->getPref(
'systemcheck_mode_purge'))
1180 $this->tpl->touchBlock(
'mode_purge_checked');
1181 $this->tpl->touchBlock(
'mode_restore_disabled');
1183 if($ilias->account->getPref(
'systemcheck_mode_restore_trash'))
1185 $this->tpl->touchBlock(
'mode_restore_trash_checked');
1186 $this->tpl->touchBlock(
'mode_purge_trash_disabled');
1188 elseif($ilias->account->getPref(
'systemcheck_mode_purge_trash'))
1190 $this->tpl->touchBlock(
'mode_purge_trash_checked');
1191 $this->tpl->touchBlock(
'mode_restore_trash_disabled');
1193 if($ilias->account->getPref(
'systemcheck_log_scan'))
1194 $this->tpl->touchBlock(
'log_scan_checked');
1196 $types = $objDefinition->getAllObjects();
1197 $ts = array(
"" =>
"");
1198 foreach ($types as
$t)
1200 if ($t !=
"" && !$objDefinition->isSystemObject($t) && $t !=
"root")
1202 if ($objDefinition->isPlugin($t))
1208 $ts[
$t] = $this->lng->txt(
"obj_".$t);
1212 $this->tpl->setVariable(
"TYPE_LIMIT_CHOICE",
1214 $ilias->account->getPref(
"systemcheck_type_limit"),
1219 $this->tpl->setVariable(
"TXT_LOG_SCAN", $this->lng->txt(
"log_scan"));
1220 $this->tpl->setVariable(
"TXT_LOG_SCAN_DESC", $this->lng->txt(
"log_scan_desc"));
1221 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"start_scan"));
1223 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save_params_for_cron"));
1225 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
1228 $cron_form->setFormAction($this->ctrl->getFormAction($this));
1229 $cron_form->setTitle($this->lng->txt(
'systemcheck_cronform'));
1232 $radio_group->
setValue( $ilSetting->get(
'systemcheck_cron') );
1234 $radio_opt =
new ilRadioOption($this->lng->txt(
'disabled'),0);
1235 $radio_group->addOption($radio_opt);
1237 $radio_opt =
new ilRadioOption($this->lng->txt(
'enabled'),1);
1238 $radio_group->addOption($radio_opt);
1240 $cron_form->addItem($radio_group);
1242 $cron_form->addCommandButton(
'saveCheckCron',$this->lng->txt(
'save'));
1244 $this->tpl->setVariable(
'CRON_FORM',$cron_form->getHTML());
1257 include_once
"classes/class.ilValidator.php";
1259 $modes = $validator->getPossibleModes();
1262 foreach($modes as $mode)
1264 if( isset(
$_POST[
'mode'][$mode]) ) $value = (int)
$_POST[
'mode'][$mode];
1266 $prefs[
'systemcheck_mode_'.$mode ] = $value;
1269 if( isset(
$_POST[
'log_scan']) ) $value = (
int)
$_POST[
'log_scan'];
1271 $prefs[
'systemcheck_log_scan'] = $value;
1274 foreach($prefs as
$key => $val)
1276 $ilUser->writePref(
$key,$val);
1284 $systemcheck_cron = (
$_POST[
'cronjob'] ? 1 : 0);
1285 $ilSetting->set(
'systemcheck_cron',$systemcheck_cron);
1298 global $rbacsystem, $styleDefinition;
1300 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.header_title_edit.html");
1307 $_GET[
"mode"] =
"session";
1308 $array_push =
false;
1312 if ((
$_GET[
"mode"] !=
"session"))
1314 $data = $this->
object->getHeaderTitleTranslations();
1316 $array_push =
false;
1320 array_splice(
$_SESSION[
"translation_post"][
"Fobject"],
$_GET[
"entry"],1,array());
1322 if (
$_GET[
"entry"] ==
$_SESSION[
"translation_post"][
"default_language"])
1324 $_SESSION[
"translation_post"][
"default_language"] =
"";
1331 if (!
$_GET[
"entry"] and $array_push)
1333 $count = array_push(
$data[
"Fobject"],array(
"title" =>
"",
"desc" =>
""));
1337 $count = count(
$data[
"Fobject"]);
1341 $strip = isset(
$_SESSION[
"translation_post"]) ?
true :
false;
1343 foreach (
$data[
"Fobject"] as
$key => $val)
1346 if (
$key == $count -1)
1348 $this->tpl->setCurrentBlock(
"addTranslation");
1349 $this->tpl->setVariable(
"TXT_ADD_TRANSLATION",$this->lng->txt(
"add_translation").
" >>");
1350 $this->tpl->parseCurrentBlock();
1356 $this->tpl->setCurrentBlock(
"removeTranslation");
1357 $this->tpl->setVariable(
"TXT_REMOVE_TRANSLATION",$this->lng->txt(
"remove_translation"));
1358 $this->ctrl->setParameter($this,
"entry",
$key);
1359 $this->ctrl->setParameter($this,
"mode",
"edit");
1360 $this->tpl->setVariable(
"LINK_REMOVE_TRANSLATION",
1361 $this->ctrl->getLinkTarget($this,
"removeTranslation"));
1362 $this->tpl->parseCurrentBlock();
1366 $this->tpl->addBlockFile(
"SEL_LANGUAGE",
"sel_language",
"tpl.lang_selection.html",
false);
1367 $this->tpl->setVariable(
"SEL_NAME",
"Fobject[".
$key.
"][lang]");
1369 include_once(
'Services/MetaData/classes/class.ilMDLanguageItem.php');
1373 foreach ($languages as $code => $language)
1375 $this->tpl->setCurrentBlock(
"lg_option");
1376 $this->tpl->setVariable(
"VAL_LG", $code);
1377 $this->tpl->setVariable(
"TXT_LG", $language);
1379 if ($code == $val[
"lang"])
1381 $this->tpl->setVariable(
"SELECTED",
"selected=\"selected\"");
1384 $this->tpl->parseCurrentBlock();
1388 $this->tpl->setCurrentBlock(
"obj_form");
1392 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"change_header_title"));
1396 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"translation").
" ".
$key);
1401 $this->tpl->setVariable(
"CHECKED",
"checked=\"checked\"");
1404 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
1405 $this->tpl->setVariable(
"TXT_DESC", $this->lng->txt(
"desc"));
1406 $this->tpl->setVariable(
"TXT_DEFAULT", $this->lng->txt(
"default"));
1407 $this->tpl->setVariable(
"TXT_LANGUAGE", $this->lng->txt(
"language"));
1410 $this->tpl->setVariable(
"NUM",
$key);
1411 $this->tpl->parseCurrentBlock();
1415 $this->tpl->setCurrentBlock(
"adm_content");
1417 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1418 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
1419 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
1420 $this->tpl->setVariable(
"CMD_SUBMIT",
"saveHeaderTitle");
1421 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
1432 if (!isset(
$data[
"default_language"]))
1434 $this->ilias->raiseError($this->lng->txt(
"msg_no_default_language"),$this->ilias->error_obj->MESSAGE);
1438 foreach (
$data[
"Fobject"] as
$key => $val)
1440 $langs[
$key] = $val[
"lang"];
1443 $langs = array_count_values($langs);
1446 if (array_key_exists(
"",$langs))
1448 $this->ilias->raiseError($this->lng->txt(
"msg_no_language_selected"),$this->ilias->error_obj->MESSAGE);
1452 if (array_sum($langs) > count($langs))
1454 $this->ilias->raiseError($this->lng->txt(
"msg_multi_language_selected"),$this->ilias->error_obj->MESSAGE);
1459 $_POST[
"Fobject"][
"desc"] = $_POST[
"Fobject"][$_POST[
"default_language"]][
"desc"];
1462 $this->
object->removeHeaderTitleTranslations();
1465 foreach (
$data[
"Fobject"] as
$key => $val)
1481 $this->ctrl->redirect($this);
1486 $this->ctrl->redirect($this,
"view");
1498 $this->ctrl->setParameter($this,
"mode",
"session");
1499 $this->ctrl->setParameter($this,
"entry",
"0");
1500 $this->ctrl->redirect($this,
"changeHeaderTitle");
1510 $this->ctrl->setParameter($this,
"entry",
$_GET[
"entry"]);
1511 $this->ctrl->setParameter($this,
"mode",
"session");
1512 $this->ctrl->redirect($this,
"changeHeaderTitle");
1520 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1522 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1525 $logging = ($a_log) ?
true :
false;
1526 include_once
"classes/class.ilValidator.php";
1528 $validator->setMode(
"all",
false);
1531 foreach ($a_mode as $mode => $value)
1533 $validator->setMode($mode,(
bool) $value);
1534 $modes[] = $mode.
'='.$value;
1537 $scan_log = $validator->validate();
1539 $mode = $this->lng->txt(
"scan_modes").
": ".implode(
', ',$modes);
1544 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1545 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scanning_system"));
1546 $this->tpl->setVariable(
"COLSPAN", 3);
1547 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
1548 $this->tpl->setVariable(
"TXT_MODE", $mode);
1550 if ($logging ===
true)
1552 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_log"));
1555 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
1557 $validator->writeScanLogLine($mode);
1562 include_once
"classes/class.ilValidator.php";
1563 $validator =
new IlValidator();
1564 $scan_log =& $validator->readScanLog();
1566 if (is_array($scan_log))
1568 $scan_log =
'<pre>'.implode(
"",$scan_log).
'</pre>';
1569 $this->tpl->setVariable(
"ADM_CONTENT", $scan_log);
1573 $scan_log =
"no scanlog found.";
1578 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scan_details"));
1579 $this->tpl->setVariable(
"COLSPAN", 3);
1580 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
1581 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
1592 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1594 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1598 $this->ctrl->setParameter($this,
'cur_mode',
$_GET[
'cur_mod']);
1599 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1600 $this->tpl->setVariable(
"TXT_BENCH_SETTINGS", $this->lng->txt(
"benchmark_settings"));
1601 $this->tpl->setVariable(
"TXT_ACTIVATION", $this->lng->txt(
"activation"));
1602 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save_settings"));
1603 $this->tpl->setVariable(
"TXT_CUR_RECORDS", $this->lng->txt(
"cur_number_rec"));
1604 $this->tpl->setVariable(
"VAL_CUR_RECORDS", $ilBench->getCurrentRecordNumber());
1605 $this->tpl->setVariable(
"TXT_MAX_RECORDS", $this->lng->txt(
"max_number_rec"));
1606 $this->tpl->setVariable(
"VAL_MAX_RECORDS", $ilBench->getMaximumRecords());
1607 $this->tpl->setVariable(
"TXT_CLEAR", $this->lng->txt(
"delete_all_rec"));
1608 if($ilBench->isEnabled())
1610 $this->tpl->setVariable(
"ACT_CHECKED",
" checked=\"1\" ");
1613 $modules = $ilBench->getMeasuredModules();
1615 if (count($modules) > 0)
1617 $this->tpl->setCurrentBlock(
"eval_table");
1619 $cur_module = (
$_GET[
"cur_mod"] !=
"" &&
1620 in_array(
$_GET[
"cur_mod"], $modules))
1622 : current($modules);
1624 $benchs = $ilBench->getEvaluation($cur_module);
1627 foreach($benchs as $bench)
1629 $this->tpl->setCurrentBlock(
"eval_row");
1630 $this->tpl->setVariable(
"ROWCOL",
1633 $this->tpl->setVariable(
"VAL_BENCH", $bench[
"benchmark"]);
1634 $this->tpl->setVariable(
"VAL_NUMBER_RECORDS", $bench[
"cnt"]);
1635 $this->tpl->setVariable(
"VAL_AVG_TIME", $bench[
"duration"]);
1636 $this->tpl->setVariable(
"VAL_MIN_TIME", $bench[
"min"]);
1637 $this->tpl->setVariable(
"VAL_MAX_TIME", $bench[
"max"]);
1638 $this->tpl->setVariable(
"VAL_CUM_TIME", $bench[
"duration"] * $bench[
"cnt"]);
1639 $this->tpl->parseCurrentBlock();
1642 $this->tpl->setVariable(
"SELECT_MODULE",
1645 $this->tpl->setVariable(
"TXT_SHOW", $this->lng->txt(
"show"));
1646 $this->tpl->setVariable(
"TXT_BENCH", $this->lng->txt(
"benchmark"));
1647 $this->tpl->setVariable(
"TXT_NUMBER_RECORDS", $this->lng->txt(
"number_of_records"));
1648 $this->tpl->setVariable(
"TXT_AVG_TIME", $this->lng->txt(
"average_time"));
1649 $this->tpl->setVariable(
"TXT_MIN_TIME", $this->lng->txt(
"min_time"));
1650 $this->tpl->setVariable(
"TXT_MAX_TIME", $this->lng->txt(
"max_time"));
1651 $this->tpl->setVariable(
"TXT_CUM_TIME", $this->lng->txt(
"cumulative_time"));
1653 $this->tpl->parseCurrentBlock();
1665 if (
$_POST[
"activate"] ==
"y")
1667 $ilBench->enable(
true);
1671 $ilBench->enable(
false);
1674 $ilBench->setMaximumRecords(
$_POST[
"max_records"]);
1678 $this->ctrl->redirect($this,
"benchmark");
1689 $this->ctrl->setParameter($this,
'cur_mod',
$_POST[
'module']);
1690 $this->ctrl->redirect($this,
"benchmark");
1701 $ilBench->clearData();
1711 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
1720 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1722 $tabs_gui->addTarget(
"server_data",
1723 $this->ctrl->getLinkTarget($this,
"showServerInfo"),
1724 array(
"showServerInfo",
"view"), get_class($this));
1728 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1730 $tabs_gui->addTarget(
"general_settings",
1731 $this->ctrl->getLinkTarget($this,
"showBasicSettings"),
1732 array(
"showBasicSettings",
"saveBasicSettings"), get_class($this));
1735 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1740 $tabs_gui->addTarget(
"system_check",
1741 $this->ctrl->getLinkTarget($this,
"check"), array(
"check",
"viewScanLog",
"saveCheckParams",
"saveCheckCron"), get_class($this));
1747 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
1749 $tabs_gui->addTarget(
"perm_settings",
1750 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
1778 $btpl =
new ilTemplate(
"tpl.server_data.html",
true,
true,
"Modules/SystemFolder");
1779 $btpl->setVariable(
"FORM", $this->form->getHTML());
1780 $btpl->setVariable(
"PHP_INFO_TARGET", $ilCtrl->getLinkTarget($this,
"showPHPInfo"));
1781 $tpl->setContent($btpl->get());
1793 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1798 $ne->
setValue($ilClientIniFile->readVariable(
"client",
"name"));
1799 $ne->setInfo($ilClientIniFile->readVariable(
"client",
"description"));
1800 $this->form->addItem($ne);
1805 $this->form->addItem($ne);
1809 $ne->
setValue($ilSetting->get(
"inst_id"));
1810 $this->form->addItem($ne);
1814 $ne->
setValue($ilSetting->get(
"db_version"));
1815 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
1816 $dbupdate =
new ilDBUpdate($this->ilias->db,
true);
1817 if (!$dbupdate->getDBVersionStatus())
1821 else if ($dbupdate->hotfixAvailable())
1825 $this->form->addItem($ne);
1829 $ne->
setValue($ilSetting->get(
"ilias_version"));
1830 $this->form->addItem($ne);
1834 $ne->
setValue($_SERVER[
"SERVER_NAME"]);
1835 $this->form->addItem($ne);
1839 $ne->
setValue($_SERVER[
"SERVER_ADDR"].
":".$_SERVER[
"SERVER_PORT"]);
1840 $this->form->addItem($ne);
1844 $ne->
setValue($_SERVER[
"SERVER_SOFTWARE"]);
1845 $this->form->addItem($ne);
1850 $this->form->addItem($ne);
1855 $this->form->addItem($ne);
1857 $not_set = $lng->txt(
"path_not_set");
1861 $ne->
setValue((PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1862 $this->form->addItem($ne);
1866 $ne->
setValue((PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1867 $this->form->addItem($ne);
1871 $ne->
setValue((PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1872 $this->form->addItem($ne);
1876 $ne->
setValue((PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1877 $this->form->addItem($ne);
1881 $ne->
setValue((PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
1882 $this->form->addItem($ne);
1886 $ne->
setValue((PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
1887 $this->form->addItem($ne);
1891 $ne->
setValue((URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1892 $this->form->addItem($ne);
1895 $this->form->setTitle($lng->txt(
"server_data"));
1896 $this->form->setFormAction($this->ctrl->getFormAction($this));
1913 $ilTabs->addSubTabTarget(
"basic_settings", $ilCtrl->getLinkTarget($this,
"showBasicSettings"));
1914 $ilTabs->addSubTabTarget(
"header_title", $ilCtrl->getLinkTarget($this,
"showHeaderTitle"));
1915 $ilTabs->addSubTabTarget(
"cron_jobs", $ilCtrl->getLinkTarget($this,
"showCronJobs"));
1916 $ilTabs->addSubTabTarget(
"contact_data", $ilCtrl->getLinkTarget($this,
"showContactInformation"));
1917 $ilTabs->addSubTabTarget(
"webservices", $ilCtrl->getLinkTarget($this,
"showWebServices"));
1918 $ilTabs->addSubTabTarget(
"java_server", $ilCtrl->getLinkTarget($this,
"showJavaServer"));
1920 $ilTabs->setSubTabActive($a_activate);
1921 $ilTabs->setTabActive(
"general_settings");
1940 $tpl->setContent($this->form->getHTML());
1951 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1953 $lng->loadLanguageModule(
"pd");
1956 $ti =
new ilTextInputGUI($this->lng->txt(
"short_inst_name"),
"short_inst_name");
1959 $ti->setValue($ilSetting->get(
"short_inst_name"));
1960 $ti->setInfo($this->lng->txt(
"short_inst_name_info"));
1961 $this->form->addItem($ti);
1965 $cb->
setInfo($lng->txt(
"pub_section_info"));
1966 if ($ilSetting->get(
"pub_section"))
1968 $cb->setChecked(
true);
1971 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
1974 $cb2->
setInfo($this->lng->txt(
"enable_search_engine"));
1975 $cb->addSubItem($cb2);
1976 if(!$robot_settings->checkModRewrite())
1978 $cb2->setAlert($lng->txt(
"mod_rewrite_disabled"));
1979 $cb2->setChecked(
false);
1980 $cb2->setDisabled(
true);
1982 elseif(!$robot_settings->checkRewrite())
1984 $cb2->setAlert($lng->txt(
"allow_override_alert"));
1985 $cb2->setChecked(
false);
1986 $cb2->setDisabled(
true);
1990 if ($ilSetting->get(
"open_google"))
1992 $cb2->setChecked(
true);
1997 $cb_prop =
new ilCheckboxInputGUI($lng->txt(
'pd_enable_global_profiles'),
'enable_global_profiles');
1998 $cb_prop->
setInfo($lng->txt(
'pd_enable_global_profiles_info'));
1999 $cb_prop->setChecked($ilSetting->get(
'enable_global_profiles'));
2000 $cb->addSubItem($cb_prop);
2002 $this->form->addItem($cb);
2006 "flat" => $lng->txt(
"flatview"),
2007 "tree" => $lng->txt(
"treeview")
2009 $si =
new ilSelectInputGUI($this->lng->txt(
"def_repository_view"),
"default_rep_view");
2011 $si->setInfo($this->lng->txt(
""));
2012 if ($ilSetting->get(
"default_repository_view") ==
"tree")
2014 $si->setValue(
"tree");
2018 $si->setValue(
"flat");
2020 $this->form->addItem($si);
2030 $si =
new ilSelectInputGUI($this->lng->txt(
"adm_repository_cache_time"),
"rep_cache");
2032 $si->setValue($ilSetting->get(
"rep_cache"));
2033 $si->setInfo($this->lng->txt(
"adm_repository_cache_time_info"));
2034 $this->form->addItem($si);
2037 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"adm_item_cmd_asynch"),
"item_cmd_asynch");
2038 $cb->
setInfo($this->lng->txt(
"adm_item_cmd_asynch_info"));
2039 $cb->setChecked($ilSetting->get(
"item_cmd_asynch"));
2040 $this->form->addItem($cb);
2043 $ti =
new ilTextInputGUI($this->lng->txt(
"adm_locale"),
"locale");
2046 $ti->setInfo($this->lng->txt(
"adm_locale_info"));
2047 $ti->setValue($ilSetting->get(
"locale"));
2048 $this->form->addItem($ti);
2053 $cb->
setInfo($this->lng->txt(
"enable_trash_info"));
2054 if ($ilSetting->get(
"enable_trash"))
2056 $cb->setChecked(
true);
2058 $this->form->addItem($cb);
2061 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"session_reminder"),
"session_reminder_enabled");
2062 $expires = $ilClientIniFile->readVariable(
"session",
"expire");
2064 $cb->setInfo($this->lng->txt(
"session_reminder_info").
"<br />".
2065 sprintf($this->lng->txt(
'session_reminder_session_duration'), $time));
2066 if((
int)$ilSetting->get(
"session_reminder_enabled"))
2068 $cb->setChecked(
true);
2070 $this->form->addItem($cb);
2073 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"enable_password_assistance"),
"password_assistance");
2074 if ($ilSetting->get(
"password_assistance"))
2078 $cb->setInfo($this->lng->txt(
"password_assistance_info"));
2079 $this->form->addItem($cb);
2082 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"passwd_generation"),
"passwd_auto_generate");
2083 if ($ilSetting->get(
"passwd_auto_generate"))
2087 $cb->setInfo($this->lng->txt(
"passwd_generation_info"));
2088 $this->form->addItem($cb);
2092 $cb->
setInfo($this->lng->txt(
"links_dynamic_info"));
2093 if ($ilSetting->get(
"links_dynamic"))
2095 $cb->setChecked(
true);
2097 $this->form->addItem($cb);
2102 $pl->setInfo($this->lng->txt(
'preview_learner_info'));
2103 $pl->setChecked($ilSetting->get(
'preview_learner'));
2104 $this->form->addItem($pl);
2107 $this->form->addCommandButton(
"saveBasicSettings", $lng->txt(
"save"));
2109 $this->form->setTitle($lng->txt(
"basic_settings"));
2110 $this->form->setFormAction($this->ctrl->getFormAction($this));
2122 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2124 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2128 if ($this->form->checkInput())
2130 $ilSetting->set(
"short_inst_name",
$_POST[
"short_inst_name"]);
2131 $ilSetting->set(
"pub_section",
$_POST[
"pub_section"]);
2132 $ilSetting->set(
"open_google",
$_POST[
"open_google"]);
2133 $ilSetting->set(
"default_repository_view",
$_POST[
"default_rep_view"]);
2134 $ilSetting->set(
"links_dynamic",
$_POST[
"links_dynamic"]);
2135 $ilSetting->set(
"enable_trash",
$_POST[
"enable_trash"]);
2136 $ilSetting->set(
"session_reminder_enabled",
$_POST[
"session_reminder_enabled"]);
2137 $ilSetting->set(
"password_assistance",
$_POST[
"password_assistance"]);
2138 $ilSetting->set(
"passwd_auto_generate",
$_POST[
"passwd_auto_generate"]);
2139 $ilSetting->set(
"locale",
$_POST[
"locale"]);
2140 $ilSetting->set(
'preview_learner',(
int)
$_POST[
'preview_learner']);
2141 $ilSetting->set(
'rep_cache',(
int) $_POST[
'rep_cache']);
2142 $ilSetting->set(
'item_cmd_asynch',(
int) $_POST[
'item_cmd_asynch']);
2144 $global_profiles = ($_POST[
"pub_section"])
2145 ? (
int)$_POST[
'enable_global_profiles']
2148 $ilSetting->set(
'enable_global_profiles', $global_profiles);
2151 $ilCtrl->redirect($this,
"showBasicSettings");
2154 $this->form->setValuesByPost();
2155 $tpl->setContent($this->form->getHtml());
2172 include_once(
"./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
2174 if ($a_get_post_values)
2177 foreach(
$_POST[
"title"] as $k => $v)
2179 $vals[] = array(
"title" => $v,
2180 "desc" =>
$_POST[
"desc"][$k],
2181 "lang" =>
$_POST[
"lang"][$k],
2182 "default" => (
$_POST[
"default"] == $k));
2184 $table->setData($vals);
2188 $data = $this->
object->getHeaderTitleTranslations();
2189 if (is_array(
$data[
"Fobject"]))
2191 foreach(
$data[
"Fobject"] as $k => $v)
2193 if ($k ==
$data[
"default_language"])
2195 $data[
"Fobject"][$k][
"default"] =
true;
2199 $data[
"Fobject"][$k][
"default"] =
false;
2205 $data[
"Fobject"] = array();
2207 $table->setData(
$data[
"Fobject"]);
2209 $tpl->setContent($table->getHTML());
2219 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2221 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2227 if (!isset(
$_POST[
"default"]) && count(
$_POST[
"lang"]) > 0)
2234 if (array_key_exists(
"",
$_POST[
"lang"]))
2241 if (count(array_unique(
$_POST[
"lang"])) < count(
$_POST[
"lang"]))
2248 $this->
object->removeHeaderTitleTranslations();
2249 foreach(
$_POST[
"title"] as $k => $v)
2251 $this->
object->addHeaderTitleTranslation(
2255 (
$_POST[
"default"] == $k));
2259 $ilCtrl->redirect($this,
"showHeaderTitle");
2269 if (is_array(
$_POST[
"title"]))
2271 foreach(
$_POST[
"title"] as $k => $v) {}
2274 $_POST[
"title"][$k] =
"";
2285 foreach(
$_POST[
"title"] as $k => $v)
2289 unset(
$_POST[
"title"][$k]);
2290 unset(
$_POST[
"desc"][$k]);
2291 unset(
$_POST[
"lang"][$k]);
2292 if ($k ==
$_POST[
"default"])
2294 unset(
$_POST[
"default"]);
2317 $tpl->setContent($this->form->getHTML());
2327 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2331 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"check_user_accounts"),
"cron_user_check");
2332 $cb->
setInfo($this->lng->txt(
"check_user_accounts_desc"));
2333 if ($ilSetting->get(
"cron_user_check"))
2335 $cb->setChecked(
true);
2337 $this->form->addItem($cb);
2341 $cb->
setInfo($this->lng->txt(
"check_link_desc"));
2342 if ($ilSetting->get(
"cron_link_check"))
2344 $cb->setChecked(
true);
2346 $this->form->addItem($cb);
2350 "0" => $lng->txt(
"never"),
2351 "1" => $lng->txt(
"daily"),
2352 "2" => $lng->txt(
"weekly"),
2353 "3" => $lng->txt(
"monthly"),
2354 "4" => $lng->txt(
"quarterly")
2356 $si =
new ilSelectInputGUI($this->lng->txt(
"check_web_resources"),
"cron_web_resource_check");
2358 $si->setInfo($this->lng->txt(
"check_web_resources_desc"));
2359 $si->setValue($ilSetting->get(
"cron_web_resource_check"));
2360 $this->form->addItem($si);
2363 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cron_lucene_index"),
"cron_lucene_index");
2364 $cb->
setInfo($this->lng->txt(
"cron_lucene_index_info"));
2365 if ($ilSetting->get(
"cron_lucene_index"))
2367 $cb->setChecked(
true);
2369 $this->form->addItem($cb);
2373 "0" => $lng->txt(
"cron_forum_notification_never"),
2374 "1" => $lng->txt(
"cron_forum_notification_directly"),
2375 "2" => $lng->txt(
"cron_forum_notification_cron"),
2377 $si =
new ilSelectInputGUI($this->lng->txt(
"cron_forum_notification"),
"forum_notification");
2379 $si->setInfo($this->lng->txt(
"cron_forum_notification_desc"));
2380 $si->setValue($ilSetting->get(
"forum_notification"));
2381 $this->form->addItem($si);
2385 "0" => $lng->txt(
"cron_mail_notification_never"),
2386 "1" => $lng->txt(
"cron_mail_notification_cron")
2388 $si =
new ilSelectInputGUI($this->lng->txt(
"cron_mail_notification"),
"mail_notification");
2390 $si->setInfo($this->lng->txt(
"cron_mail_notification_desc"));
2391 $si->setValue($ilSetting->get(
"mail_notification"));
2392 $this->form->addItem($si);
2395 $dq_settings =
new ilSetting(
'disk_quota');
2396 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"enable_disk_quota"),
"enable_disk_quota");
2397 $cb->
setInfo($this->lng->txt(
"enable_disk_quota_info"));
2398 if ($dq_settings->get(
'enabled'))
2400 $cb->setChecked(
true);
2402 $this->form->addItem($cb);
2403 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"enable_disk_quota_reminder_mail"),
"enable_disk_quota_reminder_mail");
2404 $cb->
setInfo($this->lng->txt(
"disk_quota_reminder_mail_desc"));
2405 if ($dq_settings->get(
'reminder_mail_enabled'))
2407 $cb->setChecked(
true);
2409 $this->form->addItem($cb);
2411 $this->form->addCommandButton(
"saveCronJobs", $lng->txt(
"save"));
2413 $this->form->setTitle($lng->txt(
"cron_jobs"));
2414 $this->form->setDescription($lng->txt(
"cron_jobs_desc"));
2415 $this->form->setFormAction($this->ctrl->getFormAction($this));
2427 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2429 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2433 if ($this->form->checkInput())
2435 $ilSetting->set(
"cron_user_check",
$_POST[
"cron_user_check"]);
2436 $ilSetting->set(
"cron_link_check",
$_POST[
"cron_link_check"]);
2437 $ilSetting->set(
"cron_web_resource_check",
$_POST[
"cron_web_resource_check"]);
2438 $ilSetting->set(
"cron_lucene_index",
$_POST[
"cron_lucene_index"]);
2439 $ilSetting->set(
"forum_notification",
$_POST[
"forum_notification"]);
2440 $ilSetting->set(
"mail_notification",
$_POST[
"mail_notification"]);
2443 $dq_settings =
new ilSetting(
'disk_quota');
2444 $dq_settings->set(
'enabled',
$_POST[
'enable_disk_quota'] ? 1 : 0);
2445 $dq_settings->set(
'reminder_mail_enabled',
$_POST[
'enable_disk_quota_reminder_mail'] ? 1 : 0);
2448 $ilCtrl->redirect($this,
"showCronJobs");
2453 $this->form->setValuesByPost();
2454 $tpl->setContent($this->form->getHtml());
2473 $tpl->setContent($this->form->getHTML());
2483 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2487 $ti =
new ilTextInputGUI($this->lng->txt(
"firstname"),
"admin_firstname");
2490 $ti->setRequired(
true);
2491 $ti->setValue($ilSetting->get(
"admin_firstname"));
2492 $this->form->addItem($ti);
2495 $ti =
new ilTextInputGUI($this->lng->txt(
"lastname"),
"admin_lastname");
2498 $ti->setRequired(
true);
2499 $ti->setValue($ilSetting->get(
"admin_lastname"));
2500 $this->form->addItem($ti);
2503 $ti =
new ilTextInputGUI($this->lng->txt(
"title"),
"admin_title");
2506 $ti->setValue($ilSetting->get(
"admin_title"));
2507 $this->form->addItem($ti);
2510 $ti =
new ilTextInputGUI($this->lng->txt(
"position"),
"admin_position");
2513 $ti->setValue($ilSetting->get(
"admin_position"));
2514 $this->form->addItem($ti);
2517 $ti =
new ilTextInputGUI($this->lng->txt(
"institution"),
"admin_institution");
2520 $ti->setValue($ilSetting->get(
"admin_institution"));
2521 $this->form->addItem($ti);
2524 $ti =
new ilTextInputGUI($this->lng->txt(
"street"),
"admin_street");
2528 $ti->setValue($ilSetting->get(
"admin_street"));
2529 $this->form->addItem($ti);
2532 $ti =
new ilTextInputGUI($this->lng->txt(
"zipcode"),
"admin_zipcode");
2536 $ti->setValue($ilSetting->get(
"admin_zipcode"));
2537 $this->form->addItem($ti);
2544 $ti->setValue($ilSetting->get(
"admin_city"));
2545 $this->form->addItem($ti);
2548 $ti =
new ilTextInputGUI($this->lng->txt(
"country"),
"admin_country");
2552 $ti->setValue($ilSetting->get(
"admin_country"));
2553 $this->form->addItem($ti);
2556 $ti =
new ilTextInputGUI($this->lng->txt(
"phone"),
"admin_phone");
2560 $ti->setValue($ilSetting->get(
"admin_phone"));
2561 $this->form->addItem($ti);
2564 $ti =
new ilTextInputGUI($this->lng->txt(
"email"),
"admin_email");
2567 $ti->setRequired(
true);
2568 $ti->setValue($ilSetting->get(
"admin_email"));
2569 $this->form->addItem($ti);
2572 $ti =
new ilEmailInputGUI($this->lng->txt(
"feedback_recipient"),
"feedback_recipient");
2573 $ti->setValue($ilSetting->get(
"feedback_recipient"));
2574 $this->form->addItem($ti);
2577 $ti =
new ilEmailInputGUI($this->lng->txt(
"error_recipient"),
"error_recipient");
2578 $ti->setValue($ilSetting->get(
"error_recipient"));
2579 $this->form->addItem($ti);
2581 $this->form->addCommandButton(
"saveContactInformation", $lng->txt(
"save"));
2583 $this->form->setTitle($lng->txt(
"contact_data"));
2584 $this->form->setFormAction($this->ctrl->getFormAction($this));
2596 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2598 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2602 if ($this->form->checkInput())
2604 $fs = array(
"admin_firstname",
"admin_lastname",
"admin_title",
"admin_position",
2605 "admin_institution",
"admin_street",
"admin_zipcode",
"admin_city",
2606 "admin_country",
"admin_phone",
"admin_email",
2607 "feedback_recipient",
"error_recipient");
2610 $ilSetting->set($f,
$_POST[$f]);
2613 $ilCtrl->redirect($this,
"showContactInformation");
2618 $this->form->setValuesByPost();
2619 $tpl->setContent($this->form->getHtml());
2638 $tpl->setContent($this->form->getHTML());
2648 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2652 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"soap_user_administration"),
"soap_user_administration");
2653 $cb->
setInfo($this->lng->txt(
"soap_user_administration_desc"));
2654 if ($ilSetting->get(
"soap_user_administration"))
2656 $cb->setChecked(
true);
2658 $this->form->addItem($cb);
2662 $wsdl->setInfo(sprintf($this->lng->txt(
'soap_wsdl_path_info'),
"<br />'".ILIAS_HTTP_PATH.
"/webservice/soap/server.php?wsdl'"));
2663 $wsdl->setValue((
string)$ilSetting->get(
'soap_wsdl_path'));
2665 $wsdl->setMaxLength(255);
2666 $this->form->addItem(
$wsdl);
2668 $this->form->addCommandButton(
"saveWebServices", $lng->txt(
"save"));
2670 $this->form->setTitle($lng->txt(
"webservices"));
2671 $this->form->setFormAction($this->ctrl->getFormAction($this));
2683 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2685 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2689 if ($this->form->checkInput())
2691 $ilSetting->set(
'soap_user_administration', $this->form->getInput(
'soap_user_administration'));
2692 $ilSetting->set(
'soap_wsdl_path', trim($this->form->getInput(
'soap_wsdl_path')));
2695 $ilCtrl->redirect($this,
'showWebServices');
2700 $this->form->setValuesByPost();
2701 $tpl->setContent($this->form->getHtml());
2718 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.java_settings.html',
'Modules/SystemFolder');
2720 $GLOBALS[
'lng']->loadLanguageModule(
'search');
2722 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
2724 $toolbar->addButton($this->lng->txt(
'lucene_create_ini'),
2725 $this->ctrl->getLinkTarget($this,
'createJavaServerIni'));
2726 $tpl->setVariable(
'ACTION_BUTTONS',$toolbar->getHTML());
2730 $tpl->setVariable(
'SETTINGS_TABLE',$this->form->getHTML());
2739 #include_once './Services/WebServices/RPC/classes/classs.ilRPCServerSettings.php';
2740 #$ini = ilRPCServerSettings::createServerIni();
2741 #ilUtil::deliverData($ini, 'ilServer.ini','text/plain');
2745 $this->tpl->setContent($this->form->getHTML());
2750 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
2754 $GLOBALS[
'lng']->loadLanguageModule(
'search');
2756 $this->form->setTitle($this->lng->txt(
'lucene_tbl_create_ini'));
2757 $this->form->setFormAction($this->ctrl->getFormAction($this,
'createJavaServerIni'));
2758 $this->form->addCommandButton(
'downloadJavaServerIni',$this->lng->txt(
'lucene_download_ini'));
2759 $this->form->addCommandButton(
'showJavaServer', $this->lng->txt(
'cancel'));
2763 $ip->
setInfo($this->lng->txt(
'lucene_host_info'));
2764 $ip->setMaxLength(128);
2766 $ip->setRequired(
true);
2767 $this->form->addItem($ip);
2772 $port->setMinValue(1);
2773 $port->setMaxValue(65535);
2774 $port->setRequired(
true);
2775 $this->form->addItem($port);
2778 $path =
new ilTextInputGUI($this->lng->txt(
'lucene_index_path'),
'in');
2780 $path->setMaxLength(1024);
2781 $path->setInfo($this->lng->txt(
'lucene_index_path_info'));
2782 $path->setRequired(
true);
2783 $this->form->addItem($path);
2788 $log->setMaxLength(1024);
2789 $log->setInfo($this->lng->txt(
'lucene_log_info'));
2790 $log->setRequired(
true);
2791 $this->form->addItem(
$log);
2800 'FATAL' =>
'FATAL'));
2801 $lev->setValue(
'INFO');
2802 $lev->setRequired(
true);
2803 $this->form->addItem($lev);
2809 $cpu->setMaxLength(2);
2810 $cpu->setMinValue(1);
2811 $cpu->setRequired(
true);
2812 $this->form->addItem($cpu);
2824 if($this->form->checkInput())
2826 include_once
'./Services/WebServices/RPC/classes/class.ilRpcIniFileWriter.php';
2828 $ini->setHost($this->form->getInput(
'ho'));
2829 $ini->setPort($this->form->getInput(
'po'));
2830 $ini->setIndexPath($this->form->getInput(
'in'));
2831 $ini->setLogPath($this->form->getInput(
'lo'));
2832 $ini->setLogLevel($this->form->getInput(
'le'));
2833 $ini->setNumThreads($this->form->getInput(
'cp'));
2840 $this->form->setValuesByPost();
2843 $this->tpl->setContent($this->form->getHTML());
2854 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2858 $ti =
new ilTextInputGUI($this->lng->txt(
"java_server_host"),
"rpc_server_host");
2861 $ti->setValue($ilSetting->get(
"rpc_server_host"));
2862 $this->form->addItem($ti);
2865 $ti =
new ilNumberInputGUI($this->lng->txt(
"java_server_port"),
"rpc_server_port");
2868 $ti->setValue($ilSetting->get(
"rpc_server_port"));
2869 $this->form->addItem($ti);
2873 $this->form->addCommandButton(
"saveJavaServer", $lng->txt(
"save"));
2875 $this->form->setTitle($lng->txt(
"java_server"));
2876 $this->form->setDescription($lng->txt(
"java_server_info").
2877 '<br /><a href="Services/WebServices/RPC/lib/README.txt" target="_blank">'.
2878 $lng->txt(
"java_server_readme").
'</a>');
2879 $this->form->setFormAction($this->ctrl->getFormAction($this));
2891 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2893 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2897 if ($this->form->checkInput())
2899 $ilSetting->set(
"rpc_server_host", trim(
$_POST[
"rpc_server_host"]));
2900 $ilSetting->set(
"rpc_server_port", trim(
$_POST[
"rpc_server_port"]));
2902 $ilCtrl->redirect($this,
"showJavaServer");
2909 $this->form->setValuesByPost();
2910 $tpl->setContent($this->form->getHtml());