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");
72 global $rbacsystem, $ilAccess;
74 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
81 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
83 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
87 $this->objectList = array();
88 $this->data[
"data"] = array();
89 $this->data[
"ctrl"] = array();
90 $this->data[
"cols"] = array(
"type",
"title");
92 $childs = $this->tree->getChilds($this->object->getRefId(),
$_GET[
"order"],
$_GET[
"direction"]);
94 foreach ($childs as $key => $val)
97 if (!$rbacsystem->checkAccess(
"visible",$val[
"ref_id"]))
103 if ($this->objDefinition->getDevMode($val[
"type"]))
109 if ($val[
"ref_id"] == RECOVERY_FOLDER_ID and !$this->tree->getChilds(RECOVERY_FOLDER_ID))
115 $this->data[
"data"][] = array(
116 "type" => $val[
"type"],
117 "title" => $val[
"title"].
"#separator#".$val[
"desc"],
118 "ref_id" => $val[
"ref_id"]
126 $this->data[
"data"][] = array(
128 "title" => $this->lng->txt(
"repository_admin").
"#separator#".
129 $this->lng->txt(
"repository_admin_desc"),
130 "ref_id" => ROOT_FOLDER_ID
133 $this->maxcount = count($this->data[
"data"]);
136 if (
$_GET[
"sort_by"] ==
"")
138 $_GET[
"sort_by"] =
"title";
143 foreach ($this->data[
"data"] as $key => $val)
145 $this->data[
"ctrl"][$key] = array(
146 "type" => $val[
"type"],
147 "ref_id" => $val[
"ref_id"]
150 unset($this->data[
"data"][$key][
"ref_id"]);
159 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
174 include_once
"./Services/Table/classes/class.ilTableGUI.php";
177 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
179 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.obj_tbl_rows.html");
183 if (!$this->call_by_reference)
185 $this->ctrl->setParameter($this,
"obj_id", $this->obj_id);
188 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
194 $tbl->setTitle($this->lng->txt(
"obj_".$this->object->getType()),
"icon_".$this->object->getType().
".gif",$this->lng->txt(
"obj_".$this->object->getType()));
203 $header_names[] =
"";
204 $header_names[] = $this->lng->txt(
"obj_cat");
206 $tbl->setHeaderNames($header_names);
208 $header_params = $this->ctrl->getParameterArray($this,
"view");
209 $tbl->setHeaderVars($this->data[
"cols"],$header_params);
210 $tbl->setColumnWidth(array(
"15",
"99%"));
213 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
214 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
217 $tbl->setMaxCount($this->maxcount);
220 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
221 $tbl->disable(
"numinfo");
226 if (is_array($this->data[
"data"][0]))
229 for ($i=0; $i < count($this->data[
"data"]); $i++)
231 $data = $this->data[
"data"][$i];
232 $ctrl = $this->data[
"ctrl"][$i];
237 $this->tpl->setCurrentBlock(
"table_cell");
238 $this->tpl->setVariable(
"CELLSTYLE",
"tblrow1");
239 $this->tpl->parseCurrentBlock();
241 if ($ctrl[
"ref_id"] != ROOT_FOLDER_ID)
243 foreach (
$data as $key => $val)
247 $class_name = $this->objDefinition->getClassName($obj_type);
248 $class = strtolower(
"ilObj".$class_name.
"GUI");
249 $this->ctrl->setParameterByClass($class,
"ref_id", $ctrl[
"ref_id"]);
250 $this->ctrl->setParameterByClass($class,
"obj_id", $ctrl[
"ref_id"]);
251 $link = $this->ctrl->getLinkTargetByClass($class,
"view");
255 $name_field = explode(
"#separator#",$val);
258 if ($key ==
"title" || $key ==
"type")
260 $this->tpl->setCurrentBlock(
"begin_link");
261 $this->tpl->setVariable(
"LINK_TARGET", $link);
263 $this->tpl->parseCurrentBlock();
264 $this->tpl->touchBlock(
"end_link");
267 $this->tpl->setCurrentBlock(
"text");
276 $this->tpl->setVariable(
"TEXT_CONTENT", $name_field[0]);
278 $this->tpl->setCurrentBlock(
"subtitle");
279 $this->tpl->setVariable(
"DESC", $name_field[1]);
280 $this->tpl->parseCurrentBlock();
284 $this->tpl->setVariable(
"TEXT_CONTENT", $val);
287 $this->tpl->parseCurrentBlock();
288 $this->tpl->setCurrentBlock(
"table_cell");
289 $this->tpl->parseCurrentBlock();
300 $this->tpl->setCurrentBlock(
"text");
301 $this->tpl->setVariable(
"TEXT_CONTENT", $val);
302 $this->tpl->parseCurrentBlock();
304 $this->tpl->setCurrentBlock(
"table_cell");
305 $this->tpl->parseCurrentBlock();
308 $this->tpl->setCurrentBlock(
"begin_link");
309 $this->ctrl->setParameterByClass(
"iladministrationgui",
310 "admin_mode",
"repository");
311 $this->ctrl->setParameterByClass(
"iladministrationgui",
312 "ref_id", ROOT_FOLDER_ID);
313 $this->tpl->setVariable(
"LINK_TARGET",
314 $this->ctrl->getLinkTargetByClass(
"iladministrationgui",
"frameset"));
315 $this->tpl->setVariable(
"FRAME_TARGET",
317 $this->ctrl->clearParametersByClass(
"iladministrationgui");
318 $this->tpl->parseCurrentBlock();
319 $this->tpl->touchBlock(
"end_link");
323 $name_field = explode(
"#separator#",
$data[
"title"]);
324 $this->tpl->setCurrentBlock(
"text");
325 $this->tpl->setVariable(
"TEXT_CONTENT", $name_field[0]);
326 $this->tpl->setCurrentBlock(
"subtitle");
327 $this->tpl->setVariable(
"DESC", $name_field[1]);
328 $this->tpl->parseCurrentBlock();
330 $this->tpl->setCurrentBlock(
"table_cell");
331 $this->tpl->parseCurrentBlock();
335 $this->tpl->setCurrentBlock(
"tbl_content");
336 $this->tpl->setVariable(
"CSS_ROW", $css_row);
337 $this->tpl->parseCurrentBlock();
343 $this->tpl->setCurrentBlock(
"notfound");
344 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
345 $this->tpl->setVariable(
"NUM_COLS", $num);
346 $this->tpl->parseCurrentBlock();
354 $settings = $this->ilias->getAllSettings();
356 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
358 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
383 if (empty(
$_POST[
"admin_firstname"]) or empty(
$_POST[
"admin_lastname"])
384 or empty(
$_POST[
"admin_street"]) or empty(
$_POST[
"admin_zipcode"])
385 or empty(
$_POST[
"admin_country"]) or empty(
$_POST[
"admin_city"])
386 or empty(
$_POST[
"admin_phone"]) or empty(
$_POST[
"admin_email"]))
396 ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"feedback_recipient").
"'<br/>".$this->lng->txt(
"email_not_valid"));
403 ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"error_recipient").
"'<br/>".$this->lng->txt(
"email_not_valid"));
410 ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"email").
"'<br/>".$this->lng->txt(
"email_not_valid"));
415 foreach (
$_POST as $key => $val)
429 $settings[
"feedback_recipient"] =
$_POST[
"feedback_recipient"];
430 $settings[
"error_recipient"] =
$_POST[
"error_recipient"];
433 $settings[
"pub_section"] =
$_POST[
"pub_section"];
434 $settings[
"open_google"] =
$_POST[
"open_google"];
435 $settings[
"default_repository_view"] =
$_POST[
"default_rep_view"];
436 $settings[
"password_assistance"] =
$_POST[
"password_assistance"];
437 $settings[
'short_inst_title'] =
$_POST[
'short_inst_title'];
438 $settings[
"passwd_auto_generate"] =
$_POST[
"password_auto_generate"];
440 $settings[
"enable_trash"] =
$_POST[
"enable_trash"];
444 $settings[
'session_reminder_enabled'] = (int)
$_POST[
'session_reminder_enabled'];
450 $settings[
"admin_firstname"] =
$_POST[
"admin_firstname"];
451 $settings[
"admin_lastname"] =
$_POST[
"admin_lastname"];
452 $settings[
"admin_title"] =
$_POST[
"admin_title"];
453 $settings[
"admin_position"] =
$_POST[
"admin_position"];
454 $settings[
"admin_institution"] =
$_POST[
"admin_institution"];
455 $settings[
"admin_street"] =
$_POST[
"admin_street"];
456 $settings[
"admin_zipcode"] =
$_POST[
"admin_zipcode"];
457 $settings[
"admin_city"] =
$_POST[
"admin_city"];
458 $settings[
"admin_country"] =
$_POST[
"admin_country"];
459 $settings[
"admin_phone"] =
$_POST[
"admin_phone"];
460 $settings[
"admin_email"] =
$_POST[
"admin_email"];
463 $settings[
"cron_user_check"] =
$_POST[
"cron_user_check"];
464 $settings[
"cron_link_check"] =
$_POST[
"cron_link_check"];
465 $settings[
"cron_web_resource_check"] =
$_POST[
"cron_web_resource_check"];
466 $settings[
"cron_lucene_index"] =
$_POST[
"cron_lucene_index"];
467 $settings[
"forum_notification"] =
$_POST[
"forum_notification"];
468 $settings[
"mail_notification"] =
$_POST[
"mail_notification"];
469 $settings[
"mail_notification_message"] =
$_POST[
"mail_notification_message"];
472 $settings[
'frm_store_new'] =
$_POST[
'frm_store_new'];
475 $settings[
"soap_user_administration"] =
$_POST[
"soap_user_administration"];
480 $settings[
"suffix_repl_additional"] =
$_POST[
"suffix_repl_additional"];
483 $settings[
"links_dynamic"] =
$_POST[
"links_dynamic"];
492 $this->ilias->setSetting(
"feedback_recipient",
$_POST[
"feedback_recipient"]);
493 $this->ilias->setSetting(
"error_recipient",
$_POST[
"error_recipient"]);
521 $this->ilias->setSetting(
"pub_section",
$_POST[
"pub_section"]);
522 $this->ilias->setSetting(
'open_google',
$_POST[
'open_google']);
523 $this->ilias->setSetting(
"default_repository_view",
$_POST[
"default_rep_view"]);
525 $this->ilias->setSetting(
'password_assistance',
$_POST[
'password_assistance']);
526 $this->ilias->setSetting(
'passwd_auto_generate',
$_POST[
'password_auto_generate']);
528 $this->ilias->setSetting(
'short_inst_name',
$_POST[
'short_inst_name']);
529 $this->ilias->setSetting(
'enable_trash',
$_POST[
'enable_trash']);
532 $this->ilias->setSetting(
'session_reminder_enabled', (
int)
$_POST[
'session_reminder_enabled']);
535 $this->ilias->setSetting(
"admin_firstname",$_POST[
"admin_firstname"]);
536 $this->ilias->setSetting(
"admin_lastname",$_POST[
"admin_lastname"]);
537 $this->ilias->setSetting(
"admin_title",$_POST[
"admin_title"]);
538 $this->ilias->setSetting(
"admin_position",$_POST[
"admin_position"]);
539 $this->ilias->setSetting(
"admin_institution",$_POST[
"admin_institution"]);
540 $this->ilias->setSetting(
"admin_street",$_POST[
"admin_street"]);
541 $this->ilias->setSetting(
"admin_zipcode",$_POST[
"admin_zipcode"]);
542 $this->ilias->setSetting(
"admin_city",$_POST[
"admin_city"]);
543 $this->ilias->setSetting(
"admin_country",$_POST[
"admin_country"]);
544 $this->ilias->setSetting(
"admin_phone",$_POST[
"admin_phone"]);
545 $this->ilias->setSetting(
"admin_email",$_POST[
"admin_email"]);
548 $this->ilias->setSetting(
"cron_user_check",$_POST[
"cron_user_check"]);
549 $this->ilias->setSetting(
"cron_link_check",$_POST[
"cron_link_check"]);
550 $this->ilias->setSetting(
"cron_web_resource_check",$_POST[
"cron_web_resource_check"]);
551 $this->ilias->setSetting(
"cron_lucene_index",$_POST[
"cron_lucene_index"]);
552 $this->ilias->setSetting(
"forum_notification",$_POST[
"forum_notification"]);
553 if ($_POST[
"forum_notification"] == 2)
555 $this->ilias->setSetting(
"cron_forum_notification_last_date",date(
"Y-m-d H:i:s"));
557 $this->ilias->setSetting(
"mail_notification", $_POST[
"mail_notification"]);
558 $this->ilias->setSetting(
"mail_notification_message", $_POST[
"mail_notification_message"]);
562 $this->ilias->setSetting(
"soap_user_administration",$_POST[
"soap_user_administration"]);
563 $this->ilias->setSetting(
"rpc_server_host",trim($_POST[
"rpc_server_host"]));
564 $this->ilias->setSetting(
"rpc_server_port",trim($_POST[
"rpc_server_port"]));
570 $this->ilias->setSetting(
'frm_store_new',$_POST[
'frm_store_new']);
573 $this->ilias->ini->write();
576 $this->ilias->setSetting(
'links_dynamic',$_POST[
'links_dynamic']);
578 $this->ilias->setSetting(
"suffix_repl_additional",
581 $settings = $this->ilias->getAllSettings();
584 $feedback = $this->lng->txt(
"saved_successfully");
585 if (trim($_POST[
"rpc_server_host"]) !=
"" ||
586 trim($_POST[
"rpc_server_port"]) !=
"")
588 include_once
'Services/WebServices/RPC/classes/class.ilRPCServerSettings.php';
590 if(!$rpc_settings->pingServer())
592 $feedback .=
"<br />\n".$this->lng->txt(
'java_server_no_connection');
598 $ilCtrl->redirect($this,
"view");
604 include_once(
"./Modules/Scorm2004/classes/class.ilScormEditorDBCreator.php");
606 $db_creator->createTables();
619 global $rbacsystem,
$ilCtrl, $ilClientIniFile;
621 $this->tpl->addBlockFile(
"SYSTEMSETTINGS",
"systemsettings",
"tpl.adm_basicdata.html",
622 "Modules/SystemFolder");
624 $settings = $this->ilias->getAllSettings();
627 $this->tpl->setVariable(
"HREF_CREATE_WIKI_TABLE",
628 $ilCtrl->getLinkTarget($this,
"createWikiTables"));
632 $this->tpl->setVariable(
"TXT_BASIC_DATA", $this->lng->txt(
"basic_data"));
638 $this->tpl->setVariable(
"TXT_ILIAS_VERSION", $this->lng->txt(
"ilias_version"));
639 $this->tpl->setVariable(
"TXT_DB_VERSION", $this->lng->txt(
"db_version"));
640 $this->tpl->setVariable(
"TXT_CLIENT_ID", $this->lng->txt(
"client_id"));
641 $this->tpl->setVariable(
"TXT_INST_ID", $this->lng->txt(
"inst_id"));
642 $this->tpl->setVariable(
"TXT_ACTIVATE_HTTPS",$this->lng->txt(
'activate_https'));
643 $this->tpl->setVariable(
"TXT_HOSTNAME", $this->lng->txt(
"host"));
644 $this->tpl->setVariable(
"TXT_IP_ADDRESS", $this->lng->txt(
"ip_address"));
645 $this->tpl->setVariable(
"TXT_SERVER_DATA", $this->lng->txt(
"server_data"));
646 $this->tpl->setVariable(
"TXT_SERVER_PORT", $this->lng->txt(
"port"));
647 $this->tpl->setVariable(
"TXT_SERVER_SOFTWARE", $this->lng->txt(
"server_software"));
648 $this->tpl->setVariable(
"TXT_HTTP_PATH", $this->lng->txt(
"http_path"));
649 $this->tpl->setVariable(
"TXT_ABSOLUTE_PATH", $this->lng->txt(
"absolute_path"));
650 $this->tpl->setVariable(
"TXT_INST_NAME", $this->lng->txt(
"inst_name"));
651 $this->tpl->setVariable(
"TXT_INST_INFO", $this->lng->txt(
"inst_info"));
653 $this->tpl->setVariable(
"TXT_FEEDBACK_RECIPIENT", $this->lng->txt(
"feedback_recipient"));
654 $this->tpl->setVariable(
"TXT_ERROR_RECIPIENT", $this->lng->txt(
"error_recipient"));
655 $this->tpl->setVariable(
"TXT_HEADER_TITLE", $this->lng->txt(
"header_title"));
656 $this->tpl->setVariable(
"TXT_SHORT_NAME", $this->lng->txt(
"short_inst_name"));
657 $this->tpl->setVariable(
"TXT_SHORT_NAME_INFO", $this->lng->txt(
"short_inst_name_info"));
659 $this->tpl->setVariable(
"VAL_SHORT_INST_NAME", $settings[
'short_inst_name']);
660 $this->tpl->setVariable(
"TXT_CHANGE", $this->lng->txt(
"change"));
661 $this->tpl->setVariable(
"LINK_HEADER_TITLE",
662 $this->ctrl->getLinkTarget($this,
"changeHeaderTitle"));
663 $this->tpl->setVariable(
"VAL_HEADER_TITLE",
666 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
667 $dbupdate =
new ilDBUpdate($this->ilias->db,
true);
669 if (!$dbupdate->getDBVersionStatus())
671 $this->tpl->setVariable(
"TXT_DB_UPDATE",
" (<span class=\"warning\">".$this->lng->txt(
"db_need_update").
"</span>)");
675 $this->tpl->setVariable(
"TXT_PUB_SECTION", $this->lng->txt(
"pub_section"));
678 $this->tpl->setVariable(
'TXT_SEARCH_ENGINE',$this->lng->txt(
'search_engine'));
679 $this->tpl->setVariable(
'TXT_ENABLE_SEARCH_ENGINE',$this->lng->txt(
'enable_search_engine'));
680 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
684 if(!$robot_settings->checkModRewrite())
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(
'mod_rewrite_disabled'));
693 $this->tpl->parseCurrentBlock();
695 elseif(!$robot_settings->checkRewrite())
698 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'disabled="disabled"');
700 $this->tpl->setCurrentBlock(
'search_engine_alert');
702 $this->tpl->setVariable(
'SE_ALT_ALERT',$this->lng->txt(
'alert'));
703 $this->tpl->setVariable(
'TXT_SE_ALERT',$this->lng->txt(
'allow_override_alert'));
704 $this->tpl->parseCurrentBlock();
706 if($settings[
'open_google'] and !$error_se)
708 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'checked="checked"');
711 $this->tpl->setVariable(
"TXT_DEFAULT_REPOSITORY_VIEW", $this->lng->txt(
"def_repository_view"));
712 $this->tpl->setVariable(
"TXT_FLAT", $this->lng->txt(
"flatview"));
713 $this->tpl->setVariable(
"TXT_TREE", $this->lng->txt(
"treeview"));
715 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_ASSISTANCE", $this->lng->txt(
"enable_password_assistance"));
716 $this->tpl->setVariable(
"TXT_PASSWORD_AUTO_GENERATE_INFO",$this->lng->txt(
'passwd_generation_info'));
724 $this->tpl->setVariable(
"TXT_PASSWORD_ASSISTANCE_INFO", $this->lng->txt(
"password_assistance_info"));
726 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_GENERATION",$this->lng->txt(
'passwd_generation'));
729 $this->tpl->setVariable(
"TXT_FILE_SUFFIX_REPL", $this->lng->txt(
"file_suffix_repl"));
730 $this->tpl->setVariable(
"INFO_FILE_SUFFIX_REPL",
731 $this->lng->txt(
"file_suffix_repl_info").
" ".SUFFIX_REPL_DEFAULT);
733 $this->tpl->setVariable(
"TXT_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic'));
734 $this->tpl->setVariable(
"INFO_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic_info'));
736 $this->tpl->setVariable(
"TXT_ENABLE_TRASH",$this->lng->txt(
'enable_trash'));
737 $this->tpl->setVariable(
"INFO_ENABLE_TRASH",$this->lng->txt(
'enable_trash_info'));
739 $this->tpl->setVariable(
'TXT_SESSION_REMINDER', $this->lng->txt(
'session_reminder'));
740 $this->tpl->setVariable(
'INFO_SESSION_REMINDER', $this->lng->txt(
'session_reminder_info'));
743 $this->tpl->setVariable(
'SESSION_REMINDER_SESSION_DURATION',
744 sprintf($this->lng->txt(
'session_reminder_session_duration'), $time));
747 $this->tpl->setVariable(
"TXT_SOFTWARE", $this->lng->txt(
"3rd_party_software"));
748 $this->tpl->setVariable(
"TXT_CONVERT_PATH", $this->lng->txt(
"path_to_convert"));
749 $this->tpl->setVariable(
"TXT_ZIP_PATH", $this->lng->txt(
"path_to_zip"));
750 $this->tpl->setVariable(
"TXT_UNZIP_PATH", $this->lng->txt(
"path_to_unzip"));
751 $this->tpl->setVariable(
"TXT_JAVA_PATH", $this->lng->txt(
"path_to_java"));
752 $this->tpl->setVariable(
"TXT_HTMLDOC_PATH", $this->lng->txt(
"path_to_htmldoc"));
753 $this->tpl->setVariable(
"TXT_MKISOFS_PATH", $this->lng->txt(
"path_to_mkisofs"));
754 $this->tpl->setVariable(
"TXT_LATEX_URL", $this->lng->txt(
"url_to_latex"));
757 $this->tpl->setVariable(
"TXT_CRON",$this->lng->txt(
'cron_jobs'));
758 $this->tpl->setVariable(
"TXT_CRON_DESC",$this->lng->txt(
'cron_jobs_desc'));
759 $this->tpl->setVariable(
"TXT_CRON_USER_ACCOUNTS",$this->lng->txt(
'check_user_accounts'));
760 $this->tpl->setVariable(
"CRON_USER_ACCOUNTS_DESC",$this->lng->txt(
'check_user_accounts_desc'));
761 $this->tpl->setVariable(
"TXT_CRON_LINK_CHECK",$this->lng->txt(
'check_link'));
762 $this->tpl->setVariable(
"CRON_LINK_CHECK_DESC",$this->lng->txt(
'check_link_desc'));
763 $this->tpl->setVariable(
"TXT_CRON_WEB_RESOURCE_CHECK",$this->lng->txt(
'check_web_resources'));
764 $this->tpl->setVariable(
"CRON_WEB_RESOURCE_CHECK_DESC",$this->lng->txt(
'check_web_resources_desc'));
766 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX",$this->lng->txt(
'cron_lucene_index'));
767 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX_INFO",$this->lng->txt(
'cron_lucene_index_info'));
769 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION",$this->lng->txt(
'cron_forum_notification'));
770 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_NEVER",$this->lng->txt(
'cron_forum_notification_never'));
771 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_DIRECTLY",$this->lng->txt(
'cron_forum_notification_directly'));
772 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_CRON",$this->lng->txt(
'cron_forum_notification_cron'));
773 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_DESC",$this->lng->txt(
'cron_forum_notification_desc'));
775 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION",$this->lng->txt(
'cron_mail_notification'));
776 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_NEVER",$this->lng->txt(
'cron_mail_notification_never'));
777 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_CRON",$this->lng->txt(
'cron_mail_notification_cron'));
778 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_DESC",$this->lng->txt(
'cron_mail_notification_desc'));
780 $this->tpl->setVariable(
"TXT_CRON_MAIL_MESSAGE_CHECK", $this->lng->txt(
'cron_mail_notification_message'));
781 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK", $this->lng->txt(
'cron_mail_notification_message_enabled'));
782 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK_DESC", $this->lng->txt(
'cron_mail_notification_message_desc'));
784 $this->tpl->setVariable(
"TXT_NEVER",$this->lng->txt(
'never'));
785 $this->tpl->setVariable(
"TXT_DAILY",$this->lng->txt(
'daily'));
786 $this->tpl->setVariable(
"TXT_WEEKLY",$this->lng->txt(
'weekly'));
787 $this->tpl->setVariable(
"TXT_MONTHLY",$this->lng->txt(
'monthly'));
788 $this->tpl->setVariable(
"TXT_QUARTERLY",$this->lng->txt(
'quarterly'));
790 $this->tpl->setVariable(
"TXT_WEBSERVICES",$this->lng->txt(
'webservices'));
791 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION",$this->lng->txt(
'soap_user_administration'));
792 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION_DESC",$this->lng->txt(
'soap_user_administration_desc'));
794 $this->tpl->setVariable(
"TXT_JAVA_SERVER",$this->lng->txt(
'java_server'));
795 $this->tpl->setVariable(
"TXT_JAVA_SERVER_HOST",$this->lng->txt(
'java_server_host'));
796 $this->tpl->setVariable(
"TXT_JAVA_SERVER_PORT",$this->lng->txt(
'java_server_port'));
797 $this->tpl->setVariable(
"TXT_JAVA_SERVER_INFO",$this->lng->txt(
'java_server_info'));
798 $this->tpl->setVariable(
"TXT_JAVA_SERVER_README",$this->lng->txt(
'java_server_readme'));
806 $this->tpl->setVariable(
"TXT_FORUMS",$this->lng->txt(
'obj_frm'));
807 $this->tpl->setVariable(
"TXT_STATUS_NEW",$this->lng->txt(
'frm_status_new'));
808 $this->tpl->setVariable(
"TXT_STATUS_NEW_DESC",$this->lng->txt(
'frm_status_new_desc'));
810 $this->tpl->setVariable(
"TXT_ONE_WEEK",
"1 ". $this->lng->txt(
'week'));
811 $this->tpl->setVariable(
"TXT_TWO_WEEKS",
"2 ". $this->lng->txt(
'weeks'));
812 $this->tpl->setVariable(
"TXT_FOUR_WEEKS",
"4 ". $this->lng->txt(
'weeks'));
813 $this->tpl->setVariable(
"TXT_EIGHT_WEEKS",
"8 ". $this->lng->txt(
'weeks'));
816 $this->tpl->setVariable(
"TXT_CONTACT_DATA", $this->lng->txt(
"contact_data"));
817 $this->tpl->setVariable(
"TXT_REQUIRED_FIELDS", $this->lng->txt(
"required_field"));
818 $this->tpl->setVariable(
"TXT_ADMIN", $this->lng->txt(
"administrator"));
819 $this->tpl->setVariable(
"TXT_FIRSTNAME", $this->lng->txt(
"firstname"));
820 $this->tpl->setVariable(
"TXT_LASTNAME", $this->lng->txt(
"lastname"));
821 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
822 $this->tpl->setVariable(
"TXT_POSITION", $this->lng->txt(
"position"));
823 $this->tpl->setVariable(
"TXT_INSTITUTION", $this->lng->txt(
"institution"));
824 $this->tpl->setVariable(
"TXT_STREET", $this->lng->txt(
"street"));
825 $this->tpl->setVariable(
"TXT_ZIPCODE", $this->lng->txt(
"zipcode"));
826 $this->tpl->setVariable(
"TXT_CITY", $this->lng->txt(
"city"));
827 $this->tpl->setVariable(
"TXT_COUNTRY", $this->lng->txt(
"country"));
828 $this->tpl->setVariable(
"TXT_PHONE", $this->lng->txt(
"phone"));
829 $this->tpl->setVariable(
"TXT_EMAIL", $this->lng->txt(
"email"));
830 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
837 $this->tpl->setVariable(
"FORMACTION_BASICDATA", $this->ctrl->getFormAction($this));
838 $this->tpl->setVariable(
"HTTP_PATH",ILIAS_HTTP_PATH);
840 $this->tpl->setVariable(
"HOSTNAME", $_SERVER[
"SERVER_NAME"]);
841 $this->tpl->setVariable(
"SERVER_PORT", $_SERVER[
"SERVER_PORT"]);
842 $this->tpl->setVariable(
"SERVER_ADMIN", $_SERVER[
"SERVER_ADMIN"]);
843 $this->tpl->setVariable(
"SERVER_SOFTWARE", $_SERVER[
"SERVER_SOFTWARE"]);
844 $this->tpl->setVariable(
"IP_ADDRESS", $_SERVER[
"SERVER_ADDR"]);
845 $this->tpl->setVariable(
"DB_VERSION",$settings[
"db_version"]);
846 $this->tpl->setVariable(
"ILIAS_VERSION",$settings[
"ilias_version"]);
847 $this->tpl->setVariable(
"INST_ID",$settings[
"inst_id"]);
848 $this->tpl->setVariable(
"CLIENT_ID",CLIENT_ID);
849 $this->tpl->setVariable(
"INST_NAME",$this->ilias->ini->readVariable(
"client",
"name"));
850 $this->tpl->setVariable(
"INST_INFO",$this->ilias->ini->readVariable(
"client",
"description"));
851 $this->tpl->setVariable(
"FEEDBACK_RECIPIENT",$settings[
"feedback_recipient"]);
852 $this->tpl->setVariable(
"ERROR_RECIPIENT",$settings[
"error_recipient"]);
854 $this->tpl->setVariable(
"PHP_INFO_LINK",
855 $this->ctrl->getLinkTarget($this,
"showPHPInfo"));
858 if ($settings[
"pub_section"])
860 $this->tpl->setVariable(
"PUB_SECTION",
"checked=\"checked\"");
863 if ($settings[
"default_repository_view"] ==
"tree")
865 $this->tpl->setVariable(
"TREESELECTED",
"selected=\"1\"");
869 $this->tpl->setVariable(
"FLATSELECTED",
"selected=\"1\"");
872 if($settings[
'password_assistance'])
874 $this->tpl->setVariable(
"PASSWORD_ASSISTANCE",
"checked=\"checked\"");
876 $this->tpl->setVariable(
"VAL_SHORT_NAME", $settings[
'short_inst_title']);
877 if($settings[
'passwd_auto_generate'])
879 $this->tpl->setVariable(
"PASSWORD_AUTO_GENERATE",
"checked=\"checked\"");
884 if($settings[
'links_dynamic'])
886 $this->tpl->setVariable(
"LINKS_DYNAMIC_CHECKED",
"checked=\"checked\"");
889 if($settings[
'enable_trash'])
891 $this->tpl->setVariable(
"ENABLE_TRASH_CHECKED",
"checked=\"checked\"");
894 if($settings[
'session_reminder_enabled'])
896 $this->tpl->setVariable(
'SESSION_REMINDER_ENABLED',
'checked=checked');
899 if ($settings[
"require_login"])
901 $this->tpl->setVariable(
"REQUIRE_LOGIN",
"checked=\"checked\"");
903 if ($settings[
"require_passwd"])
905 $this->tpl->setVariable(
"REQUIRE_PASSWD",
"checked=\"checked\"");
907 if ($settings[
"require_passwd2"])
909 $this->tpl->setVariable(
"REQUIRE_PASSWD2",
"checked=\"checked\"");
911 if ($settings[
"require_firstname"])
913 $this->tpl->setVariable(
"REQUIRE_FIRSTNAME",
"checked=\"checked\"");
915 if ($settings[
"require_gender"])
917 $this->tpl->setVariable(
"REQUIRE_GENDER",
"checked=\"checked\"");
919 if ($settings[
"require_lastname"])
921 $this->tpl->setVariable(
"REQUIRE_LASTNAME",
"checked=\"checked\"");
923 if ($settings[
"require_institution"])
925 $this->tpl->setVariable(
"REQUIRE_INSTITUTION",
"checked=\"checked\"");
927 if ($settings[
"require_department"])
929 $this->tpl->setVariable(
"REQUIRE_DEPARTMENT",
"checked=\"checked\"");
931 if ($settings[
"require_street"])
933 $this->tpl->setVariable(
"REQUIRE_STREET",
"checked=\"checked\"");
935 if ($settings[
"require_city"])
937 $this->tpl->setVariable(
"REQUIRE_CITY",
"checked=\"checked\"");
939 if ($settings[
"require_zipcode"])
941 $this->tpl->setVariable(
"REQUIRE_ZIPCODE",
"checked=\"checked\"");
943 if ($settings[
"require_country"])
945 $this->tpl->setVariable(
"REQUIRE_COUNTRY",
"checked=\"checked\"");
947 if ($settings[
"require_phone_office"])
949 $this->tpl->setVariable(
"REQUIRE_PHONE_OFFICE",
"checked=\"checked\"");
951 if ($settings[
"require_phone_home"])
953 $this->tpl->setVariable(
"REQUIRE_PHONE_HOME",
"checked=\"checked\"");
955 if ($settings[
"require_phone_mobile"])
957 $this->tpl->setVariable(
"REQUIRE_PHONE_MOBILE",
"checked=\"checked\"");
959 if ($settings[
"require_fax"])
961 $this->tpl->setVariable(
"REQUIRE_FAX",
"checked=\"checked\"");
963 if ($settings[
"require_email"])
965 $this->tpl->setVariable(
"REQUIRE_EMAIL",
"checked=\"checked\"");
967 if ($settings[
"require_hobby"])
969 $this->tpl->setVariable(
"REQUIRE_HOBBY",
"checked=\"checked\"");
971 if ($settings[
"require_default_role"])
973 $this->tpl->setVariable(
"REQUIRE_DEFAULT_ROLE",
"checked=\"checked\"");
975 if ($settings[
"require_referral_comment"])
977 $this->tpl->setVariable(
"REQUIRE_REFERRAL_COMMENT",
"checked=\"checked\"");
979 if ($settings[
"require_matriculation"])
981 $this->tpl->setVariable(
"REQUIRE_MATRICULATION",
"checked=\"checked\"");
983 if ($settings[
"cron_user_check"])
985 $this->tpl->setVariable(
"CRON_USER_CHECK",
"checked=\"checked\"");
987 if ($settings[
"cron_link_check"])
989 $this->tpl->setVariable(
"CRON_LINK_CHECK",
"checked=\"checked\"");
991 if($settings[
"cron_lucene_index"])
993 $this->tpl->setVariable(
"CRON_LUCENE_INDEX",
"checked=\"checked\"");
995 if ($settings[
"forum_notification"] == 0)
997 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_NEVER_SELECTED",
" selected");
999 else if ($settings[
"forum_notification"] == 1)
1001 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_DIRECTLY_SELECTED",
" selected");
1003 else if ($settings[
"forum_notification"] == 2)
1005 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_CRON_SELECTED",
" selected");
1007 if ($settings[
"mail_notification"] == 0)
1009 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_NEVER_SELECTED",
" selected=\"selected\"");
1011 else if ($settings[
"mail_notification"] == 1)
1013 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_CRON_SELECTED",
" selected=\"selected\"");
1014 if($settings[
"mail_notification_message"] == 1)
1016 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK",
"checked=\"checked\"");
1020 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK_DISABLED",
"DISABLED");
1023 if ($val = $settings[
"cron_web_resource_check"])
1028 $this->tpl->setVariable(
"D_SELECT",
'selected="selected"');
1031 $this->tpl->setVariable(
"W_SELECT",
'selected="selected"');
1034 $this->tpl->setVariable(
"M_SELECT",
'selected="selected"');
1037 $this->tpl->setVariable(
"Q_SELECT",
'selected="selected"');
1042 switch($settings[
'frm_store_new'])
1045 $this->tpl->setVariable(
"ONE_SELECT",
'selected="selected"');
1049 $this->tpl->setVariable(
"TWO_SELECT",
'selected="selected"');
1053 $this->tpl->setVariable(
"FOUR_SELECT",
'selected="selected"');
1058 $this->tpl->setVariable(
"EIGHT_SELECT",
'selected="selected"');
1061 if ($settings[
"soap_user_administration"])
1063 $this->tpl->setVariable(
"SOAP_USER_ADMINISTRATION_CHECK",
"checked=\"checked\"");
1066 $this->tpl->setVariable(
"JAVA_SERVER_HOST",$settings[
"rpc_server_host"]);
1067 $this->tpl->setVariable(
"JAVA_SERVER_PORT",$settings[
"rpc_server_port"]);
1076 $not_set = $this->lng->txt(
"path_not_set");
1078 $this->tpl->setVariable(
"CONVERT_PATH",(PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1079 $this->tpl->setVariable(
"ZIP_PATH",(PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1080 $this->tpl->setVariable(
"UNZIP_PATH",(PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1081 $this->tpl->setVariable(
"JAVA_PATH",(PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1082 $this->tpl->setVariable(
"HTMLDOC_PATH",(PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
1083 $this->tpl->setVariable(
"MKISOFS_PATH",(PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
1084 $this->tpl->setVariable(
"LATEX_URL",(URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1087 $this->tpl->setVariable(
"ADMIN_FIRSTNAME",$settings[
"admin_firstname"]);
1088 $this->tpl->setVariable(
"ADMIN_LASTNAME",$settings[
"admin_lastname"]);
1089 $this->tpl->setVariable(
"ADMIN_TITLE",$settings[
"admin_title"]);
1090 $this->tpl->setVariable(
"ADMIN_POSITION",$settings[
"admin_position"]);
1091 $this->tpl->setVariable(
"ADMIN_INSTITUTION",$settings[
"admin_institution"]);
1092 $this->tpl->setVariable(
"ADMIN_STREET",$settings[
"admin_street"]);
1093 $this->tpl->setVariable(
"ADMIN_ZIPCODE",$settings[
"admin_zipcode"]);
1094 $this->tpl->setVariable(
"ADMIN_CITY",$settings[
"admin_city"]);
1095 $this->tpl->setVariable(
"ADMIN_COUNTRY",$settings[
"admin_country"]);
1096 $this->tpl->setVariable(
"ADMIN_PHONE",$settings[
"admin_phone"]);
1097 $this->tpl->setVariable(
"ADMIN_EMAIL",$settings[
"admin_email"]);
1099 $this->tpl->parseCurrentBlock();
1116 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1118 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1122 if (
$_POST[
'count_limit'] !== null ||
$_POST[
'age_limit'] !== null ||
$_POST[
'type_limit'] !== null)
1124 $ilias->account->writePref(
'systemcheck_count_limit',
1125 (is_numeric(
$_POST[
'count_limit']) &&
$_POST[
'count_limit'] > 0) ?
$_POST[
'count_limit'] :
''
1127 $ilias->account->writePref(
'systemcheck_age_limit',
1128 (is_numeric(
$_POST[
'age_limit']) &&
$_POST[
'age_limit'] > 0) ?
$_POST[
'age_limit'] :
'');
1129 $ilias->account->writePref(
'systemcheck_type_limit', trim(
$_POST[
'type_limit']));
1141 include_once
"classes/class.ilValidator.php";
1143 $hasScanLog = $validator->hasScanLog();
1149 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_last_log"));
1152 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1153 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"systemcheck"));
1154 $this->tpl->setVariable(
"COLSPAN", 3);
1155 $this->tpl->setVariable(
"TXT_ANALYZE_TITLE", $this->lng->txt(
"analyze_data"));
1156 $this->tpl->setVariable(
"TXT_ANALYSIS_OPTIONS", $this->lng->txt(
"analysis_options"));
1157 $this->tpl->setVariable(
"TXT_REPAIR_OPTIONS", $this->lng->txt(
"repair_options"));
1158 $this->tpl->setVariable(
"TXT_OUTPUT_OPTIONS", $this->lng->txt(
"output_options"));
1159 $this->tpl->setVariable(
"TXT_SCAN", $this->lng->txt(
"scan"));
1160 $this->tpl->setVariable(
"TXT_SCAN_DESC", $this->lng->txt(
"scan_desc"));
1161 $this->tpl->setVariable(
"TXT_DUMP_TREE", $this->lng->txt(
"dump_tree"));
1162 $this->tpl->setVariable(
"TXT_DUMP_TREE_DESC", $this->lng->txt(
"dump_tree_desc"));
1163 $this->tpl->setVariable(
"TXT_CLEAN", $this->lng->txt(
"clean"));
1164 $this->tpl->setVariable(
"TXT_CLEAN_DESC", $this->lng->txt(
"clean_desc"));
1165 $this->tpl->setVariable(
"TXT_RESTORE", $this->lng->txt(
"restore_missing"));
1166 $this->tpl->setVariable(
"TXT_RESTORE_DESC", $this->lng->txt(
"restore_missing_desc"));
1167 $this->tpl->setVariable(
"TXT_PURGE", $this->lng->txt(
"purge_missing"));
1168 $this->tpl->setVariable(
"TXT_PURGE_DESC", $this->lng->txt(
"purge_missing_desc"));
1169 $this->tpl->setVariable(
"TXT_RESTORE_TRASH", $this->lng->txt(
"restore_trash"));
1170 $this->tpl->setVariable(
"TXT_RESTORE_TRASH_DESC", $this->lng->txt(
"restore_trash_desc"));
1171 $this->tpl->setVariable(
"TXT_PURGE_TRASH", $this->lng->txt(
"purge_trash"));
1172 $this->tpl->setVariable(
"TXT_PURGE_TRASH_DESC", $this->lng->txt(
"purge_trash_desc"));
1173 $this->tpl->setVariable(
"TXT_COUNT_LIMIT", $this->lng->txt(
"purge_count_limit"));
1174 $this->tpl->setVariable(
"TXT_COUNT_LIMIT_DESC", $this->lng->txt(
"purge_count_limit_desc"));
1175 $this->tpl->setVariable(
"COUNT_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_count_limit"));
1176 $this->tpl->setVariable(
"TXT_AGE_LIMIT", $this->lng->txt(
"purge_age_limit"));
1177 $this->tpl->setVariable(
"TXT_AGE_LIMIT_DESC", $this->lng->txt(
"purge_age_limit_desc"));
1178 $this->tpl->setVariable(
"AGE_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_age_limit"));
1179 $this->tpl->setVariable(
"TXT_TYPE_LIMIT", $this->lng->txt(
"purge_type_limit"));
1180 $this->tpl->setVariable(
"TXT_TYPE_LIMIT_DESC", $this->lng->txt(
"purge_type_limit_desc"));
1182 if($ilias->account->getPref(
'systemcheck_mode_scan'))
1183 $this->tpl->touchBlock(
'mode_scan_checked');
1184 if($ilias->account->getPref(
'systemcheck_mode_dump_tree'))
1185 $this->tpl->touchBlock(
'mode_dump_tree_checked');
1186 if($ilias->account->getPref(
'systemcheck_mode_clean'))
1187 $this->tpl->touchBlock(
'mode_clean_checked');
1188 if($ilias->account->getPref(
'systemcheck_mode_restore'))
1190 $this->tpl->touchBlock(
'mode_restore_checked');
1191 $this->tpl->touchBlock(
'mode_purge_disabled');
1193 elseif($ilias->account->getPref(
'systemcheck_mode_purge'))
1195 $this->tpl->touchBlock(
'mode_purge_checked');
1196 $this->tpl->touchBlock(
'mode_restore_disabled');
1198 if($ilias->account->getPref(
'systemcheck_mode_restore_trash'))
1200 $this->tpl->touchBlock(
'mode_restore_trash_checked');
1201 $this->tpl->touchBlock(
'mode_purge_trash_disabled');
1203 elseif($ilias->account->getPref(
'systemcheck_mode_purge_trash'))
1205 $this->tpl->touchBlock(
'mode_purge_trash_checked');
1206 $this->tpl->touchBlock(
'mode_restore_trash_disabled');
1208 if($ilias->account->getPref(
'systemcheck_log_scan'))
1209 $this->tpl->touchBlock(
'log_scan_checked');
1211 $types = $objDefinition->getAllObjects();
1212 $ts = array(
"" =>
"");
1213 foreach ($types as
$t)
1215 if ($t !=
"" && !$objDefinition->isSystemObject($t) && $t !=
"root")
1217 if ($objDefinition->isPlugin($t))
1223 $ts[
$t] = $this->lng->txt(
"obj_".$t);
1227 $this->tpl->setVariable(
"TYPE_LIMIT_CHOICE",
1229 $ilias->account->getPref(
"systemcheck_type_limit"),
1234 $this->tpl->setVariable(
"TXT_LOG_SCAN", $this->lng->txt(
"log_scan"));
1235 $this->tpl->setVariable(
"TXT_LOG_SCAN_DESC", $this->lng->txt(
"log_scan_desc"));
1236 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"start_scan"));
1238 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save_params_for_cron"));
1240 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
1243 $cron_form->setFormAction($this->ctrl->getFormAction($this));
1244 $cron_form->setTitle($this->lng->txt(
'systemcheck_cronform'));
1247 $radio_group->
setValue( $ilSetting->get(
'systemcheck_cron') );
1249 $radio_opt =
new ilRadioOption($this->lng->txt(
'disabled'),0);
1250 $radio_group->addOption($radio_opt);
1252 $radio_opt =
new ilRadioOption($this->lng->txt(
'enabled'),1);
1253 $radio_group->addOption($radio_opt);
1255 $cron_form->addItem($radio_group);
1257 $cron_form->addCommandButton(
'saveCheckCron',$this->lng->txt(
'save'));
1259 $this->tpl->setVariable(
'CRON_FORM',$cron_form->getHTML());
1272 include_once
"classes/class.ilValidator.php";
1274 $modes = $validator->getPossibleModes();
1277 foreach($modes as $mode)
1279 if( isset(
$_POST[
'mode'][$mode]) ) $value = (int)
$_POST[
'mode'][$mode];
1281 $prefs[
'systemcheck_mode_'.$mode ] = $value;
1284 if( isset(
$_POST[
'log_scan']) ) $value = (
int)
$_POST[
'log_scan'];
1286 $prefs[
'systemcheck_log_scan'] = $value;
1289 foreach($prefs as $key => $val)
1291 $ilUser->writePref($key,$val);
1299 $systemcheck_cron = (
$_POST[
'cronjob'] ? 1 : 0);
1300 $ilSetting->set(
'systemcheck_cron',$systemcheck_cron);
1313 global $rbacsystem, $styleDefinition;
1315 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.header_title_edit.html");
1322 $_GET[
"mode"] =
"session";
1323 $array_push =
false;
1327 if ((
$_GET[
"mode"] !=
"session"))
1329 $data = $this->
object->getHeaderTitleTranslations();
1331 $array_push =
false;
1333 elseif (
$_GET[
"entry"] != 0)
1335 array_splice(
$_SESSION[
"translation_post"][
"Fobject"],
$_GET[
"entry"],1,array());
1337 if (
$_GET[
"entry"] ==
$_SESSION[
"translation_post"][
"default_language"])
1339 $_SESSION[
"translation_post"][
"default_language"] =
"";
1346 if (!
$_GET[
"entry"] and $array_push)
1348 $count = array_push(
$data[
"Fobject"],array(
"title" =>
"",
"desc" =>
""));
1352 $count = count(
$data[
"Fobject"]);
1356 $strip = isset(
$_SESSION[
"translation_post"]) ?
true :
false;
1358 foreach (
$data[
"Fobject"] as $key => $val)
1361 if ($key == $count -1)
1363 $this->tpl->setCurrentBlock(
"addTranslation");
1364 $this->tpl->setVariable(
"TXT_ADD_TRANSLATION",$this->lng->txt(
"add_translation").
" >>");
1365 $this->tpl->parseCurrentBlock();
1371 $this->tpl->setCurrentBlock(
"removeTranslation");
1372 $this->tpl->setVariable(
"TXT_REMOVE_TRANSLATION",$this->lng->txt(
"remove_translation"));
1373 $this->ctrl->setParameter($this,
"entry", $key);
1374 $this->ctrl->setParameter($this,
"mode",
"edit");
1375 $this->tpl->setVariable(
"LINK_REMOVE_TRANSLATION",
1376 $this->ctrl->getLinkTarget($this,
"removeTranslation"));
1377 $this->tpl->parseCurrentBlock();
1381 $this->tpl->addBlockFile(
"SEL_LANGUAGE",
"sel_language",
"tpl.lang_selection.html",
false);
1382 $this->tpl->setVariable(
"SEL_NAME",
"Fobject[".$key.
"][lang]");
1384 include_once(
'Services/MetaData/classes/class.ilMDLanguageItem.php');
1388 foreach ($languages as $code => $language)
1390 $this->tpl->setCurrentBlock(
"lg_option");
1391 $this->tpl->setVariable(
"VAL_LG", $code);
1392 $this->tpl->setVariable(
"TXT_LG", $language);
1394 if ($code == $val[
"lang"])
1396 $this->tpl->setVariable(
"SELECTED",
"selected=\"selected\"");
1399 $this->tpl->parseCurrentBlock();
1403 $this->tpl->setCurrentBlock(
"obj_form");
1407 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"change_header_title"));
1411 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"translation").
" ".$key);
1414 if ($key ==
$data[
"default_language"])
1416 $this->tpl->setVariable(
"CHECKED",
"checked=\"checked\"");
1419 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
1420 $this->tpl->setVariable(
"TXT_DESC", $this->lng->txt(
"desc"));
1421 $this->tpl->setVariable(
"TXT_DEFAULT", $this->lng->txt(
"default"));
1422 $this->tpl->setVariable(
"TXT_LANGUAGE", $this->lng->txt(
"language"));
1425 $this->tpl->setVariable(
"NUM", $key);
1426 $this->tpl->parseCurrentBlock();
1430 $this->tpl->setCurrentBlock(
"adm_content");
1432 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1433 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
1434 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
1435 $this->tpl->setVariable(
"CMD_SUBMIT",
"saveHeaderTitle");
1436 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
1447 if (!isset(
$data[
"default_language"]))
1449 $this->ilias->raiseError($this->lng->txt(
"msg_no_default_language"),$this->ilias->error_obj->MESSAGE);
1453 foreach (
$data[
"Fobject"] as $key => $val)
1455 $langs[$key] = $val[
"lang"];
1458 $langs = array_count_values($langs);
1461 if (array_key_exists(
"",$langs))
1463 $this->ilias->raiseError($this->lng->txt(
"msg_no_language_selected"),$this->ilias->error_obj->MESSAGE);
1467 if (array_sum($langs) > count($langs))
1469 $this->ilias->raiseError($this->lng->txt(
"msg_multi_language_selected"),$this->ilias->error_obj->MESSAGE);
1474 $_POST[
"Fobject"][
"desc"] = $_POST[
"Fobject"][$_POST[
"default_language"]][
"desc"];
1477 $this->
object->removeHeaderTitleTranslations();
1480 foreach (
$data[
"Fobject"] as $key => $val)
1482 if ($key ==
$data[
"default_language"])
1496 $this->ctrl->redirect($this);
1501 $this->ctrl->redirect($this,
"view");
1513 $this->ctrl->setParameter($this,
"mode",
"session");
1514 $this->ctrl->setParameter($this,
"entry",
"0");
1515 $this->ctrl->redirect($this,
"changeHeaderTitle");
1525 $this->ctrl->setParameter($this,
"entry",
$_GET[
"entry"]);
1526 $this->ctrl->setParameter($this,
"mode",
"session");
1527 $this->ctrl->redirect($this,
"changeHeaderTitle");
1535 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1537 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1540 $logging = ($a_log) ?
true :
false;
1541 include_once
"classes/class.ilValidator.php";
1543 $validator->setMode(
"all",
false);
1546 foreach ($a_mode as $mode => $value)
1548 $validator->setMode($mode,(
bool) $value);
1549 $modes[] = $mode.
'='.$value;
1552 $scan_log = $validator->validate();
1554 $mode = $this->lng->txt(
"scan_modes").
": ".implode(
', ',$modes);
1559 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1560 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scanning_system"));
1561 $this->tpl->setVariable(
"COLSPAN", 3);
1562 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
1563 $this->tpl->setVariable(
"TXT_MODE", $mode);
1565 if ($logging ===
true)
1567 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_log"));
1570 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
1572 $validator->writeScanLogLine($mode);
1577 include_once
"classes/class.ilValidator.php";
1578 $validator =
new IlValidator();
1579 $scan_log =& $validator->readScanLog();
1581 if (is_array($scan_log))
1583 $scan_log =
'<pre>'.implode(
"",$scan_log).
'</pre>';
1584 $this->tpl->setVariable(
"ADM_CONTENT", $scan_log);
1588 $scan_log =
"no scanlog found.";
1593 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scan_details"));
1594 $this->tpl->setVariable(
"COLSPAN", 3);
1595 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
1596 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
1607 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1609 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1614 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1618 $cb =
new ilCheckboxInputGUI($lng->txt(
"adm_activate_db_benchmark"),
"enable_db_bench");
1619 $cb->
setChecked($ilSetting->get(
"enable_db_bench"));
1620 $cb->setInfo($lng->txt(
"adm_activate_db_benchmark_desc"));
1621 $this->form->addItem($cb);
1624 $ti =
new ilTextInputGUI($lng->txt(
"adm_db_benchmark_user"),
"db_bench_user");
1625 $ti->
setValue($ilSetting->get(
"db_bench_user"));
1626 $ti->setInfo($lng->txt(
"adm_db_benchmark_user_desc"));
1627 $this->form->addItem($ti);
1629 $this->form->addCommandButton(
"saveBenchSettings", $lng->txt(
"save"));
1631 $this->form->setTitle($lng->txt(
"adm_db_benchmark"));
1632 $this->form->setFormAction($ilCtrl->getFormAction($this));
1634 $tpl->setContent($this->form->getHTML());
1682 $rec = $ilBench->getDbBenchRecords();
1684 include_once(
"./Modules/SystemFolder/classes/class.ilBenchmarkTableGUI.php");
1686 $tpl->setContent($table->getHTML());
1699 $ilTabs->addSubtab(
"settings",
1700 $lng->txt(
"settings"),
1701 $ilCtrl->getLinkTarget($this,
"benchmark"));
1703 $rec = $ilBench->getDbBenchRecords();
1704 if (count($rec) > 0)
1706 $ilTabs->addSubtab(
"chronological",
1707 $lng->txt(
"adm_db_bench_chronological"),
1708 $ilCtrl->getLinkTarget($this,
"showDbBenchChronological"));
1709 $ilTabs->addSubtab(
"slowest_first",
1710 $lng->txt(
"adm_db_bench_slowest_first"),
1711 $ilCtrl->getLinkTarget($this,
"showDbBenchSlowestFirst"));
1712 $ilTabs->addSubtab(
"sorted_by_sql",
1713 $lng->txt(
"adm_db_bench_sorted_by_sql"),
1714 $ilCtrl->getLinkTarget($this,
"showDbBenchSortedBySql"));
1715 $ilTabs->addSubtab(
"by_first_table",
1716 $lng->txt(
"adm_db_bench_by_first_table"),
1717 $ilCtrl->getLinkTarget($this,
"showDbBenchByFirstTable"));
1720 $ilTabs->activateSubTab($a_current);
1731 if (
$_POST[
"enable_db_bench"])
1737 $ilBench->enableDbBench(
false);
1742 $this->ctrl->redirect($this,
"benchmark");
1753 $this->ctrl->setParameter($this,
'cur_mod',
$_POST[
'module']);
1754 $this->ctrl->redirect($this,
"benchmark");
1765 $ilBench->clearData();
1775 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
1778 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1780 $tabs_gui->addTarget(
"general_settings",
1781 $this->ctrl->getLinkTarget($this,
"showBasicSettings"),
1782 array(
"showBasicSettings",
"saveBasicSettings"), get_class($this));
1786 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1788 $tabs_gui->addTarget(
"server_data",
1789 $this->ctrl->getLinkTarget($this,
"showServerInfo"),
1790 array(
"showServerInfo",
"view"), get_class($this));
1793 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1798 $tabs_gui->addTarget(
"system_check",
1799 $this->ctrl->getLinkTarget($this,
"check"), array(
"check",
"viewScanLog",
"saveCheckParams",
"saveCheckCron"), get_class($this));
1801 $tabs_gui->addTarget(
"benchmarks",
1802 $this->ctrl->getLinkTarget($this,
"benchmark"),
"benchmark", get_class($this));
1805 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
1807 $tabs_gui->addTarget(
"perm_settings",
1808 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
1837 $btpl =
new ilTemplate(
"tpl.server_data.html",
true,
true,
"Modules/SystemFolder");
1838 $btpl->setVariable(
"FORM", $this->form->getHTML());
1839 $btpl->setVariable(
"PHP_INFO_TARGET", $ilCtrl->getLinkTarget($this,
"showPHPInfo"));
1840 $tpl->setContent($btpl->get());
1852 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1857 $ne->
setValue($ilClientIniFile->readVariable(
"client",
"name"));
1858 $ne->setInfo($ilClientIniFile->readVariable(
"client",
"description"));
1859 $this->form->addItem($ne);
1864 $this->form->addItem($ne);
1868 $ne->
setValue($ilSetting->get(
"inst_id"));
1869 $this->form->addItem($ne);
1873 $ne->
setValue($ilSetting->get(
"db_version"));
1875 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
1876 $this->form->addItem($ne);
1880 $ne->
setValue($ilSetting->get(
"ilias_version"));
1881 $this->form->addItem($ne);
1885 $ne->
setValue($_SERVER[
"SERVER_NAME"]);
1886 $this->form->addItem($ne);
1890 $ne->
setValue($_SERVER[
"SERVER_ADDR"].
":".$_SERVER[
"SERVER_PORT"]);
1891 $this->form->addItem($ne);
1895 $ne->
setValue($_SERVER[
"SERVER_SOFTWARE"]);
1896 $this->form->addItem($ne);
1901 $this->form->addItem($ne);
1906 $this->form->addItem($ne);
1908 $not_set = $lng->txt(
"path_not_set");
1912 $ne->
setValue((PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1913 $this->form->addItem($ne);
1917 $ne->
setValue((PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1918 $this->form->addItem($ne);
1922 $ne->
setValue((PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1923 $this->form->addItem($ne);
1927 $ne->
setValue((PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1928 $this->form->addItem($ne);
1932 $ne->
setValue((PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
1933 $this->form->addItem($ne);
1937 $ne->
setValue((PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
1938 $this->form->addItem($ne);
1942 $ne->
setValue((URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1943 $this->form->addItem($ne);
1946 $this->form->setTitle($lng->txt(
"server_data"));
1947 $this->form->setFormAction($this->ctrl->getFormAction($this));
1964 $ilTabs->addSubTabTarget(
"basic_settings", $ilCtrl->getLinkTarget($this,
"showBasicSettings"));
1965 $ilTabs->addSubTabTarget(
"header_title", $ilCtrl->getLinkTarget($this,
"showHeaderTitle"));
1966 $ilTabs->addSubTabTarget(
"cron_jobs", $ilCtrl->getLinkTarget($this,
"showCronJobs"));
1967 $ilTabs->addSubTabTarget(
"contact_data", $ilCtrl->getLinkTarget($this,
"showContactInformation"));
1968 $ilTabs->addSubTabTarget(
"webservices", $ilCtrl->getLinkTarget($this,
"showWebServices"));
1969 $ilTabs->addSubTabTarget(
"java_server", $ilCtrl->getLinkTarget($this,
"showJavaServer"));
1970 $ilTabs->addSubTabTarget(
"proxy", $ilCtrl->getLinkTarget($this,
"showProxy"));
1972 $ilTabs->setSubTabActive($a_activate);
1973 $ilTabs->setTabActive(
"general_settings");
1992 $tpl->setContent($this->form->getHTML());
2003 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2005 $lng->loadLanguageModule(
"pd");
2008 $ti =
new ilTextInputGUI($this->lng->txt(
"short_inst_name"),
"short_inst_name");
2011 $ti->setValue($ilSetting->get(
"short_inst_name"));
2012 $ti->setInfo($this->lng->txt(
"short_inst_name_info"));
2013 $this->form->addItem($ti);
2017 $cb->
setInfo($lng->txt(
"pub_section_info"));
2018 if ($ilSetting->get(
"pub_section"))
2020 $cb->setChecked(
true);
2023 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
2026 $cb2->
setInfo($this->lng->txt(
"enable_search_engine"));
2027 $cb->addSubItem($cb2);
2028 if(!$robot_settings->checkModRewrite())
2030 $cb2->setAlert($lng->txt(
"mod_rewrite_disabled"));
2031 $cb2->setChecked(
false);
2032 $cb2->setDisabled(
true);
2034 elseif(!$robot_settings->checkRewrite())
2036 $cb2->setAlert($lng->txt(
"allow_override_alert"));
2037 $cb2->setChecked(
false);
2038 $cb2->setDisabled(
true);
2042 if ($ilSetting->get(
"open_google"))
2044 $cb2->setChecked(
true);
2049 $cb_prop =
new ilCheckboxInputGUI($lng->txt(
'pd_enable_user_publish'),
'enable_global_profiles');
2050 $cb_prop->
setInfo($lng->txt(
'pd_enable_user_publish_info'));
2051 $cb_prop->setChecked($ilSetting->get(
'enable_global_profiles'));
2052 $cb->addSubItem($cb_prop);
2054 $this->form->addItem($cb);
2058 "flat" => $lng->txt(
"flatview"),
2059 "tree" => $lng->txt(
"treeview")
2061 $si =
new ilSelectInputGUI($this->lng->txt(
"def_repository_view"),
"default_rep_view");
2063 $si->setInfo($this->lng->txt(
""));
2064 if ($ilSetting->get(
"default_repository_view") ==
"tree")
2066 $si->setValue(
"tree");
2070 $si->setValue(
"flat");
2072 $this->form->addItem($si);
2076 "" => $lng->txt(
"adm_rep_tree_only_container"),
2077 "tree" => $lng->txt(
"adm_all_resource_types")
2082 $radg->
setValue($ilSetting->get(
"repository_tree_pres"));
2083 $op1 =
new ilRadioOption($lng->txt(
"adm_rep_tree_only_cntr"),
"",
2084 $lng->txt(
"adm_rep_tree_only_cntr_info"));
2085 $radg->addOption($op1);
2087 $op2 =
new ilRadioOption($lng->txt(
"adm_rep_tree_all_types"),
"all_types",
2088 $lng->txt(
"adm_rep_tree_all_types_info"));
2091 $cb =
new ilCheckboxInputGUI($lng->txt(
"adm_rep_tree_limit_grp_crs"),
"rep_tree_limit_grp_crs");
2092 $cb->setChecked($ilSetting->get(
"rep_tree_limit_grp_crs"));
2093 $cb->
setInfo($lng->txt(
"adm_rep_tree_limit_grp_crs_info"));
2094 $op2->addSubItem($cb);
2096 $radg->addOption($op2);
2098 $this->form->addItem($radg);
2101 $cb =
new ilCheckboxInputGUI($lng->txt(
"adm_synchronize_rep_tree"),
"rep_tree_synchronize");
2102 $cb->
setInfo($lng->txt(
"adm_synchronize_rep_tree_info"));
2103 $cb->setChecked($ilSetting->get(
"rep_tree_synchronize"));
2104 $this->form->addItem($cb);
2114 $si =
new ilSelectInputGUI($this->lng->txt(
"adm_repository_cache_time"),
"rep_cache");
2116 $si->setValue($ilSetting->get(
"rep_cache"));
2117 $si->setInfo($this->lng->txt(
"adm_repository_cache_time_info").
" ".
2118 $this->lng->txt(
"adm_repository_cache_time_info2"));
2119 $this->form->addItem($si);
2122 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"adm_item_cmd_asynch"),
"item_cmd_asynch");
2123 $cb->
setInfo($this->lng->txt(
"adm_item_cmd_asynch_info"));
2124 $cb->setChecked($ilSetting->get(
"item_cmd_asynch"));
2125 $this->form->addItem($cb);
2128 $ti =
new ilTextInputGUI($this->lng->txt(
"adm_locale"),
"locale");
2131 $ti->setInfo($this->lng->txt(
"adm_locale_info"));
2132 $ti->setValue($ilSetting->get(
"locale"));
2133 $this->form->addItem($ti);
2138 $cb->
setInfo($this->lng->txt(
"enable_trash_info"));
2139 if ($ilSetting->get(
"enable_trash"))
2141 $cb->setChecked(
true);
2143 $this->form->addItem($cb);
2154 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"session_reminder"),
"session_reminder_enabled");
2157 $cb->
setInfo($this->lng->txt(
"session_reminder_info").
"<br />".
2158 sprintf($this->lng->txt(
'session_reminder_session_duration'), $time));
2159 if((
int)$ilSetting->get(
"session_reminder_enabled"))
2161 $cb->setChecked(
true);
2166 $ssettings->addOption($fixed);
2172 require_once(
'Services/Authentication/classes/class.ilSessionControl.php');
2176 $sub_ti =
new ilTextInputGUI($this->lng->txt(
'session_max_count'),
'session_max_count');
2178 $sub_ti->setSize(5);
2179 $sub_ti->setInfo($this->lng->txt(
'session_max_count_info'));
2180 $sub_ti->setValue($ilSetting->get(
2184 $sub_ti->setDisabled(
true);
2185 $ldsh->addSubItem($sub_ti);
2190 $sub_ti =
new ilTextInputGUI($this->lng->txt(
'session_min_idle'),
'session_min_idle');
2192 $sub_ti->setSize(5);
2193 $sub_ti->setInfo($this->lng->txt(
'session_min_idle_info'));
2194 $sub_ti->setValue($ilSetting->get(
2198 $sub_ti->setDisabled(
true);
2199 $ldsh->addSubItem($sub_ti);
2204 $sub_ti =
new ilTextInputGUI($this->lng->txt(
'session_max_idle'),
'session_max_idle');
2206 $sub_ti->setSize(5);
2207 $sub_ti->setInfo($this->lng->txt(
'session_max_idle_info'));
2208 $sub_ti->setValue($ilSetting->get(
2212 $sub_ti->setDisabled(
true);
2213 $ldsh->addSubItem($sub_ti);
2218 $this->lng->txt(
'session_max_idle_after_first_request'),
2219 'session_max_idle_after_first_request'
2222 $sub_ti->setSize(5);
2223 $sub_ti->setInfo($this->lng->txt(
'session_max_idle_after_first_request_info'));
2224 $sub_ti->setValue($ilSetting->get(
2225 "session_max_idle_after_first_request",
2229 $sub_ti->setDisabled(
true);
2230 $ldsh->addSubItem($sub_ti);
2233 $ssettings->addOption($ldsh);
2240 $this->form->addItem($ssettings);
2247 $ti->
setValue($this->lng->txt(
'session_config_maintenance_disabled'));
2248 $ssettings->setDisabled(
true);
2249 $ti->addSubItem($ssettings);
2250 $this->form->addItem($ti);
2255 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"enable_password_assistance"),
"password_assistance");
2256 if ($ilSetting->get(
"password_assistance"))
2258 $cb->setChecked(
true);
2260 $cb->
setInfo($this->lng->txt(
"password_assistance_info"));
2261 $this->form->addItem($cb);
2264 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"passwd_generation"),
"passwd_auto_generate");
2265 if ($ilSetting->get(
"passwd_auto_generate"))
2267 $cb->setChecked(
true);
2269 $cb->
setInfo($this->lng->txt(
"passwd_generation_info"));
2270 $this->form->addItem($cb);
2274 $cb->
setInfo($this->lng->txt(
"links_dynamic_info"));
2275 if ($ilSetting->get(
"links_dynamic"))
2277 $cb->setChecked(
true);
2279 $this->form->addItem($cb);
2284 $pl->setInfo($this->lng->txt(
'preview_learner_info'));
2285 $pl->setChecked($ilSetting->get(
'preview_learner'));
2286 $this->form->addItem($pl);
2289 $pl =
new ilCheckboxInputGUI($this->lng->txt(
'adm_show_comments_tagging_in_lists'),
'comments_tagging_in_lists');
2291 $pl->setChecked($ilSetting->get(
'comments_tagging_in_lists'));
2292 $this->form->addItem($pl);
2295 $this->form->addCommandButton(
"saveBasicSettings", $lng->txt(
"save"));
2297 $this->form->setTitle($lng->txt(
"basic_settings"));
2298 $this->form->setFormAction($this->ctrl->getFormAction($this));
2310 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2312 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2316 if ($this->form->checkInput())
2318 $ilSetting->set(
"short_inst_name",
$_POST[
"short_inst_name"]);
2319 $ilSetting->set(
"pub_section",
$_POST[
"pub_section"]);
2320 $ilSetting->set(
"open_google",
$_POST[
"open_google"]);
2321 $ilSetting->set(
"default_repository_view",
$_POST[
"default_rep_view"]);
2322 $ilSetting->set(
"links_dynamic",
$_POST[
"links_dynamic"]);
2323 $ilSetting->set(
"enable_trash",
$_POST[
"enable_trash"]);
2324 $ilSetting->set(
"password_assistance",
$_POST[
"password_assistance"]);
2325 $ilSetting->set(
"passwd_auto_generate",
$_POST[
"passwd_auto_generate"]);
2326 $ilSetting->set(
"locale",
$_POST[
"locale"]);
2327 $ilSetting->set(
'preview_learner',(
int)
$_POST[
'preview_learner']);
2328 $ilSetting->set(
'comments_tagging_in_lists',(
int) $_POST[
'comments_tagging_in_lists']);
2329 $ilSetting->set(
'rep_cache',(
int) $_POST[
'rep_cache']);
2330 $ilSetting->set(
'item_cmd_asynch',(
int) $_POST[
'item_cmd_asynch']);
2331 $ilSetting->set(
"repository_tree_pres", $_POST[
"tree_pres"]);
2332 if ($_POST[
"tree_pres"] ==
"")
2334 $_POST[
"rep_tree_limit_grp_crs"] =
"";
2336 if ($_POST[
"rep_tree_limit_grp_crs"] && !$ilSetting->get(
"rep_tree_limit_grp_crs"))
2338 $_POST[
"rep_tree_synchronize"] =
true;
2340 else if (!$_POST[
"rep_tree_synchronize"] && $ilSetting->get(
"rep_tree_synchronize"))
2342 $_POST[
"rep_tree_limit_grp_crs"] =
false;
2345 $ilSetting->set(
"rep_tree_limit_grp_crs", $_POST[
"rep_tree_limit_grp_crs"]);
2346 $ilSetting->set(
"rep_tree_synchronize", $_POST[
"rep_tree_synchronize"]);
2349 $ilSetting->set(
'session_handling_type',
2350 (
int)$this->form->getInput(
'session_handling_type'));
2354 $ilSetting->set(
'session_reminder_enabled',
2355 $this->form->getInput(
'session_reminder_enabled'));
2359 require_once
'Services/Authentication/classes/class.ilSessionControl.php';
2361 $ilSetting->get(
'session_allow_client_maintenance',
2365 $ilSetting->set(
'session_max_count',
2366 (
int)$this->form->getInput(
'session_max_count'));
2367 $ilSetting->set(
'session_min_idle',
2368 (
int)$this->form->getInput(
'session_min_idle'));
2369 $ilSetting->set(
'session_max_idle',
2370 (
int)$this->form->getInput(
'session_max_idle'));
2371 $ilSetting->set(
'session_max_idle_after_first_request',
2372 (
int)$this->form->getInput(
'session_max_idle_after_first_request'));
2377 $global_profiles = ($_POST[
"pub_section"])
2378 ? (
int)$_POST[
'enable_global_profiles']
2381 $ilSetting->set(
'enable_global_profiles', $global_profiles);
2384 $ilCtrl->redirect($this,
"showBasicSettings");
2387 $this->form->setValuesByPost();
2388 $tpl->setContent($this->form->getHtml());
2405 include_once(
"./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
2407 if ($a_get_post_values)
2410 foreach(
$_POST[
"title"] as $k => $v)
2412 $vals[] = array(
"title" => $v,
2413 "desc" =>
$_POST[
"desc"][$k],
2414 "lang" =>
$_POST[
"lang"][$k],
2415 "default" => (
$_POST[
"default"] == $k));
2417 $table->setData($vals);
2421 $data = $this->
object->getHeaderTitleTranslations();
2422 if (is_array(
$data[
"Fobject"]))
2424 foreach(
$data[
"Fobject"] as $k => $v)
2426 if ($k ==
$data[
"default_language"])
2428 $data[
"Fobject"][$k][
"default"] =
true;
2432 $data[
"Fobject"][$k][
"default"] =
false;
2438 $data[
"Fobject"] = array();
2440 $table->setData(
$data[
"Fobject"]);
2442 $tpl->setContent($table->getHTML());
2452 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2454 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2460 if (!isset(
$_POST[
"default"]) && count(
$_POST[
"lang"]) > 0)
2467 if (array_key_exists(
"",
$_POST[
"lang"]))
2474 if (count(array_unique(
$_POST[
"lang"])) < count(
$_POST[
"lang"]))
2481 $this->
object->removeHeaderTitleTranslations();
2482 foreach(
$_POST[
"title"] as $k => $v)
2484 $this->
object->addHeaderTitleTranslation(
2488 (
$_POST[
"default"] == $k));
2492 $ilCtrl->redirect($this,
"showHeaderTitle");
2502 if (is_array(
$_POST[
"title"]))
2504 foreach(
$_POST[
"title"] as $k => $v) {}
2507 $_POST[
"title"][$k] =
"";
2518 foreach(
$_POST[
"title"] as $k => $v)
2522 unset(
$_POST[
"title"][$k]);
2523 unset(
$_POST[
"desc"][$k]);
2524 unset(
$_POST[
"lang"][$k]);
2525 if ($k ==
$_POST[
"default"])
2527 unset(
$_POST[
"default"]);
2550 $tpl->setContent($this->form->getHTML());
2560 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2564 if($ilSetting->get(
'last_cronjob_start_ts'))
2566 include_once(
'./Services/Calendar/classes/class.ilDatePresentation.php');
2571 $cls->setInfo($this->lng->txt(
'cronjob_last_start_unknown'));
2574 $this->form->addItem($cls);
2577 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"check_user_accounts"),
"cron_user_check");
2578 $cb->
setInfo($this->lng->txt(
"check_user_accounts_desc"));
2579 if ($ilSetting->get(
"cron_user_check"))
2581 $cb->setChecked(
true);
2583 $this->form->addItem($cb);
2587 require_once(
'Services/User/classes/class.ilCronDeleteInactiveUserAccounts.php');
2588 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"delete_inactive_user_accounts"),
"cron_inactive_user_delete");
2589 $cb->
setInfo($this->lng->txt(
"delete_inactive_user_accounts_desc"));
2590 if($ilSetting->get(
"cron_inactive_user_delete",
false)) $cb->setChecked(
true);
2593 $this->lng->txt(
'delete_inactive_user_accounts_interval'),
2594 'cron_inactive_user_delete_interval'
2596 $sub_list->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_interval_desc'));
2597 $sub_list->setOptions(
2600 $sub_list->setValue($ilSetting->get(
2601 'cron_inactive_user_delete_interval',
2604 $cb->addSubItem($sub_list);
2606 include_once(
'Services/Form/classes/class.ilMultiSelectInputGUI.php');
2608 $this->lng->txt(
'delete_inactive_user_accounts_include_roles'),
2609 'cron_inactive_user_delete_include_roles'
2611 $sub_mlist->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_include_roles_desc'));
2613 foreach($rbacreview->getGlobalRoles() as $role_id)
2615 if( $role_id != ANONYMOUS_ROLE_ID )
2616 $roles[$role_id] = $ilObjDataCache->lookupTitle($role_id);
2618 $sub_mlist->setOptions($roles);
2619 $setting = $ilSetting->get(
'cron_inactive_user_delete_include_roles', null);
2620 if($setting === null) $setting = array();
2621 else $setting = explode(
',', $setting);
2622 $sub_mlist->setValue($setting);
2623 $sub_mlist->setWidth(300);
2624 #$sub_mlist->setHeight(100);
2625 $cb->addSubItem($sub_mlist);
2629 $this->lng->txt(
'delete_inactive_user_accounts_period'),
2630 'cron_inactive_user_delete_period'
2632 $sub_text->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_period_desc'));
2633 $sub_text->setValue($ilSetting->get(
"cron_inactive_user_delete_period", $default_setting));
2634 $sub_text->setSize(2);
2635 $sub_text->setMaxLength(3);
2636 $cb->addSubItem($sub_text);
2646 $this->form->addItem($cb);
2651 $cb->
setInfo($this->lng->txt(
"check_link_desc"));
2652 if ($ilSetting->get(
"cron_link_check"))
2654 $cb->setChecked(
true);
2656 $this->form->addItem($cb);
2660 "0" => $lng->txt(
"never"),
2661 "1" => $lng->txt(
"daily"),
2662 "2" => $lng->txt(
"weekly"),
2663 "3" => $lng->txt(
"monthly"),
2664 "4" => $lng->txt(
"quarterly")
2666 $si =
new ilSelectInputGUI($this->lng->txt(
"check_web_resources"),
"cron_web_resource_check");
2668 $si->setInfo($this->lng->txt(
"check_web_resources_desc"));
2669 $si->setValue($ilSetting->get(
"cron_web_resource_check"));
2670 $this->form->addItem($si);
2673 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cron_lucene_index"),
"cron_lucene_index");
2674 $cb->
setInfo($this->lng->txt(
"cron_lucene_index_info"));
2675 if ($ilSetting->get(
"cron_lucene_index"))
2677 $cb->setChecked(
true);
2679 $this->form->addItem($cb);
2683 "0" => $lng->txt(
"cron_forum_notification_never"),
2684 "1" => $lng->txt(
"cron_forum_notification_directly"),
2685 "2" => $lng->txt(
"cron_forum_notification_cron"),
2687 $si =
new ilSelectInputGUI($this->lng->txt(
"cron_forum_notification"),
"forum_notification");
2689 $si->setInfo($this->lng->txt(
"cron_forum_notification_desc"));
2690 $si->setValue($ilSetting->get(
"forum_notification"));
2691 $this->form->addItem($si);
2695 "0" => $lng->txt(
"cron_mail_notification_never"),
2696 "1" => $lng->txt(
"cron_mail_notification_cron")
2698 $si =
new ilSelectInputGUI($this->lng->txt(
"cron_mail_notification"),
"mail_notification");
2700 $si->setInfo($this->lng->txt(
"cron_mail_notification_desc"));
2701 $si->setValue($ilSetting->get(
"mail_notification"));
2702 $this->form->addItem($si);
2704 if($ilSetting->get(
"mail_notification") ==
'1')
2706 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cron_mail_notification_message"),
"mail_notification_message");
2707 $cb->
setInfo($this->lng->txt(
"cron_mail_notification_message_info"));
2708 if ($ilSetting->get(
"mail_notification_message"))
2710 $cb->setChecked(
true);
2712 $this->form->addItem($cb);
2716 $dq_settings =
new ilSetting(
'disk_quota');
2717 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"enable_disk_quota"),
"enable_disk_quota");
2718 $cb->
setInfo($this->lng->txt(
"enable_disk_quota_info"));
2719 if ($dq_settings->get(
'enabled'))
2721 $cb->setChecked(
true);
2723 $this->form->addItem($cb);
2725 $cb_reminder =
new ilCheckboxInputGUI($this->lng->txt(
"enable_disk_quota_reminder_mail"),
"enable_disk_quota_reminder_mail");
2726 $cb_reminder->
setInfo($this->lng->txt(
"disk_quota_reminder_mail_desc"));
2727 if ($dq_settings->get(
'reminder_mail_enabled'))
2729 $cb_reminder->setChecked(
true);
2731 $cb->addSubItem($cb_reminder);
2734 $cb_prop_summary=
new ilCheckboxInputGUI($lng->txt(
"enable_disk_quota_summary_mail"),
"enable_disk_quota_summary_mail");
2736 $cb_prop_summary->setChecked((
int)$dq_settings->get(
'summary_mail_enabled', 0) == 1);
2737 $cb_prop_summary->setInfo($lng->txt(
'enable_disk_quota_summary_mail_desc'));
2738 $cb->addSubItem($cb_prop_summary);
2741 $summary_rcpt =
new ilTextInputGUI($lng->txt(
"disk_quota_summary_rctp"),
"disk_quota_summary_rctp");
2742 $summary_rcpt->
setValue($dq_settings->get(
'summary_rcpt',
''));
2743 $summary_rcpt->setInfo($lng->txt(
'disk_quota_summary_rctp_desc'));
2744 $cb_prop_summary->addSubItem($summary_rcpt);
2747 $payment_noti =
new ilCheckboxInputGUI($lng->txt(
"payment_notification"),
"payment_notification");
2749 $payment_noti->setChecked((
int)$ilSetting->get(
'payment_notification', 0) == 1);
2750 $payment_noti->setInfo($lng->txt(
'payment_notification_desc'));
2752 $num_days =
new ilNumberInputGUI($this->lng->txt(
'payment_notification_days'),
'payment_notification_days');
2754 $num_days->setMinValue(0);
2755 $num_days->setMaxValue(120);
2756 $num_days->setRequired(
true);
2757 $num_days->setValue($ilSetting->get(
'payment_notification_days'));
2758 $num_days->setInfo($lng->txt(
'payment_notification_days_desc'));
2760 $payment_noti->addSubItem($num_days);
2761 $this->form->addItem($payment_noti);
2764 $inv_options = array(
2765 "1" => $lng->txt(
"yearly"),
2766 "2" => $lng->txt(
"monthly")
2768 include_once
'./Services/Payment/classes/class.ilUserDefinedInvoiceNumber.php';
2771 $inv_reset =
new ilSelectInputGUI($this->lng->txt(
"invoice_number_reset_period"),
"invoice_number_reset_period");
2773 $inv_reset->setInfo($this->lng->txt(
"invoice_number_reset_period_desc"));
2775 $this->form->addItem($inv_reset);
2779 $inv_info =
new ilNonEditableValueGUI($this->lng->txt(
'invoice_number_reset_period'),
'invoice_number_reset_period');
2780 $inv_info->
setInfo($lng->txt(
'payment_userdefined_invoice_number_not_activated'));
2781 $this->form->addItem($inv_info);
2785 $crsgrp_ntf =
new ilCheckboxInputGUI($this->lng->txt(
"enable_course_group_notifications"),
"crsgrp_ntf");
2786 $crsgrp_ntf->
setInfo($this->lng->txt(
"enable_course_group_notifications_desc"));
2787 if ($ilSetting->get(
'crsgrp_ntf'))
2789 $crsgrp_ntf->setChecked(
true);
2791 $this->form->addItem($crsgrp_ntf);
2793 $this->form->addCommandButton(
"saveCronJobs", $lng->txt(
"save"));
2795 $this->form->setTitle($lng->txt(
"cron_jobs"));
2796 $this->form->setDescription($lng->txt(
"cron_jobs_desc"));
2797 $this->form->setFormAction($this->ctrl->getFormAction($this));
2809 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2811 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2815 if ($this->form->checkInput())
2817 $ilSetting->set(
"cron_user_check",
$_POST[
"cron_user_check"]);
2818 $ilSetting->set(
"cron_link_check",
$_POST[
"cron_link_check"]);
2819 $ilSetting->set(
"cron_web_resource_check",
$_POST[
"cron_web_resource_check"]);
2820 $ilSetting->set(
"cron_lucene_index",
$_POST[
"cron_lucene_index"]);
2821 $ilSetting->set(
"forum_notification",
$_POST[
"forum_notification"]);
2822 $ilSetting->set(
"mail_notification",
$_POST[
"mail_notification"]);
2823 $ilSetting->set(
'mail_notification_message',
$_POST[
'mail_notification_message'] ? 1 : 0);
2825 $ilSetting->set(
'cron_inactive_user_delete',
$_POST[
'cron_inactive_user_delete']);
2826 $ilSetting->set(
'cron_inactive_user_delete_interval',
$_POST[
'cron_inactive_user_delete_interval']);
2827 $setting = implode(
',',
$_POST[
'cron_inactive_user_delete_include_roles']);
2828 if( !strlen($setting) ) $setting = null;
2829 $ilSetting->set(
'cron_inactive_user_delete_include_roles', $setting);
2830 $ilSetting->set(
'cron_inactive_user_delete_period',
$_POST[
'cron_inactive_user_delete_period']);
2833 $dq_settings =
new ilSetting(
'disk_quota');
2834 $dq_settings->set(
'enabled',
$_POST[
'enable_disk_quota'] ? 1 : 0);
2835 $dq_settings->set(
'reminder_mail_enabled',
$_POST[
'enable_disk_quota_reminder_mail'] ? 1 : 0);
2838 $dq_settings->set(
'summary_mail_enabled',
$_POST[
'enable_disk_quota_summary_mail'] ? 1 : 0);
2842 $ilSetting->set(
'payment_notification',
$_POST[
'payment_notification'] ? 1 : 0);
2843 $ilSetting->set(
'payment_notification_days',
$_POST[
'payment_notification_days']);
2845 $ilSetting->set(
'crsgrp_ntf',
$_POST[
'crsgrp_ntf']);
2848 $ilCtrl->redirect($this,
"showCronJobs");
2853 $this->form->setValuesByPost();
2854 $tpl->setContent($this->form->getHtml());
2873 $tpl->setContent($this->form->getHTML());
2883 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2887 $ti =
new ilTextInputGUI($this->lng->txt(
"firstname"),
"admin_firstname");
2890 $ti->setRequired(
true);
2891 $ti->setValue($ilSetting->get(
"admin_firstname"));
2892 $this->form->addItem($ti);
2895 $ti =
new ilTextInputGUI($this->lng->txt(
"lastname"),
"admin_lastname");
2898 $ti->setRequired(
true);
2899 $ti->setValue($ilSetting->get(
"admin_lastname"));
2900 $this->form->addItem($ti);
2903 $ti =
new ilTextInputGUI($this->lng->txt(
"title"),
"admin_title");
2906 $ti->setValue($ilSetting->get(
"admin_title"));
2907 $this->form->addItem($ti);
2910 $ti =
new ilTextInputGUI($this->lng->txt(
"position"),
"admin_position");
2913 $ti->setValue($ilSetting->get(
"admin_position"));
2914 $this->form->addItem($ti);
2917 $ti =
new ilTextInputGUI($this->lng->txt(
"institution"),
"admin_institution");
2920 $ti->setValue($ilSetting->get(
"admin_institution"));
2921 $this->form->addItem($ti);
2924 $ti =
new ilTextInputGUI($this->lng->txt(
"street"),
"admin_street");
2928 $ti->setValue($ilSetting->get(
"admin_street"));
2929 $this->form->addItem($ti);
2932 $ti =
new ilTextInputGUI($this->lng->txt(
"zipcode"),
"admin_zipcode");
2936 $ti->setValue($ilSetting->get(
"admin_zipcode"));
2937 $this->form->addItem($ti);
2944 $ti->setValue($ilSetting->get(
"admin_city"));
2945 $this->form->addItem($ti);
2948 $ti =
new ilTextInputGUI($this->lng->txt(
"country"),
"admin_country");
2952 $ti->setValue($ilSetting->get(
"admin_country"));
2953 $this->form->addItem($ti);
2956 $ti =
new ilTextInputGUI($this->lng->txt(
"phone"),
"admin_phone");
2960 $ti->setValue($ilSetting->get(
"admin_phone"));
2961 $this->form->addItem($ti);
2964 $ti =
new ilTextInputGUI($this->lng->txt(
"email"),
"admin_email");
2967 $ti->setRequired(
true);
2968 $ti->setValue($ilSetting->get(
"admin_email"));
2969 $this->form->addItem($ti);
2972 $ti =
new ilEmailInputGUI($this->lng->txt(
"feedback_recipient"),
"feedback_recipient");
2973 $ti->setValue($ilSetting->get(
"feedback_recipient"));
2974 $this->form->addItem($ti);
2977 $ti =
new ilEmailInputGUI($this->lng->txt(
"error_recipient"),
"error_recipient");
2978 $ti->setValue($ilSetting->get(
"error_recipient"));
2979 $this->form->addItem($ti);
2981 $this->form->addCommandButton(
"saveContactInformation", $lng->txt(
"save"));
2983 $this->form->setTitle($lng->txt(
"contact_data"));
2984 $this->form->setFormAction($this->ctrl->getFormAction($this));
2996 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2998 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
3002 if ($this->form->checkInput())
3004 $fs = array(
"admin_firstname",
"admin_lastname",
"admin_title",
"admin_position",
3005 "admin_institution",
"admin_street",
"admin_zipcode",
"admin_city",
3006 "admin_country",
"admin_phone",
"admin_email",
3007 "feedback_recipient",
"error_recipient");
3010 $ilSetting->set($f,
$_POST[$f]);
3013 $ilCtrl->redirect($this,
"showContactInformation");
3018 $this->form->setValuesByPost();
3019 $tpl->setContent($this->form->getHtml());
3038 $tpl->setContent($this->form->getHTML());
3048 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
3052 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"soap_user_administration"),
"soap_user_administration");
3053 $cb->
setInfo($this->lng->txt(
"soap_user_administration_desc"));
3054 if ($ilSetting->get(
"soap_user_administration"))
3056 $cb->setChecked(
true);
3058 $this->form->addItem($cb);
3061 $wsdl =
new ilTextInputGUI($this->lng->txt(
'soap_wsdl_path'),
'soap_wsdl_path');
3062 $wsdl->
setInfo(sprintf($this->lng->txt(
'soap_wsdl_path_info'),
"<br />'".ILIAS_HTTP_PATH.
"/webservice/soap/server.php?wsdl'"));
3063 $wsdl->setValue((
string)$ilSetting->get(
'soap_wsdl_path'));
3065 $wsdl->setMaxLength(255);
3066 $this->form->addItem($wsdl);
3069 $ctime =
new ilNumberInputGUI($this->lng->txt(
'soap_connect_timeout'),
'ctimeout');
3072 $ctime->setMaxLength(3);
3073 include_once
'./Services/WebServices/SOAP/classes/class.ilSoapClient.php';
3075 $ctime->setInfo($this->lng->txt(
'soap_connect_timeout_info'));
3076 $this->form->addItem($ctime);
3078 $this->form->addCommandButton(
"saveWebServices", $lng->txt(
"save"));
3080 $this->form->setTitle($lng->txt(
"webservices"));
3081 $this->form->setFormAction($this->ctrl->getFormAction($this));
3093 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
3095 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
3099 if ($this->form->checkInput())
3101 $ilSetting->set(
'soap_user_administration', $this->form->getInput(
'soap_user_administration'));
3102 $ilSetting->set(
'soap_wsdl_path', trim($this->form->getInput(
'soap_wsdl_path')));
3103 $ilSetting->set(
'soap_connect_timeout',$this->form->getInput(
'ctimeout'));
3106 $ilCtrl->redirect($this,
'showWebServices');
3111 $this->form->setValuesByPost();
3112 $tpl->setContent($this->form->getHtml());
3129 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.java_settings.html',
'Modules/SystemFolder');
3131 $GLOBALS[
'lng']->loadLanguageModule(
'search');
3133 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
3135 $toolbar->addButton($this->lng->txt(
'lucene_create_ini'),
3136 $this->ctrl->getLinkTarget($this,
'createJavaServerIni'));
3137 $tpl->setVariable(
'ACTION_BUTTONS',$toolbar->getHTML());
3141 $tpl->setVariable(
'SETTINGS_TABLE',$this->form->getHTML());
3150 #include_once './Services/WebServices/RPC/classes/classs.ilRPCServerSettings.php';
3151 #$ini = ilRPCServerSettings::createServerIni();
3152 #ilUtil::deliverData($ini, 'ilServer.ini','text/plain');
3156 $this->tpl->setContent($this->form->getHTML());
3161 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
3165 $GLOBALS[
'lng']->loadLanguageModule(
'search');
3167 $this->form->setTitle($this->lng->txt(
'lucene_tbl_create_ini'));
3168 $this->form->setFormAction($this->ctrl->getFormAction($this,
'createJavaServerIni'));
3169 $this->form->addCommandButton(
'downloadJavaServerIni',$this->lng->txt(
'lucene_download_ini'));
3170 $this->form->addCommandButton(
'showJavaServer', $this->lng->txt(
'cancel'));
3174 $ip->
setInfo($this->lng->txt(
'lucene_host_info'));
3175 $ip->setMaxLength(128);
3177 $ip->setRequired(
true);
3178 $this->form->addItem($ip);
3183 $port->setMinValue(1);
3184 $port->setMaxValue(65535);
3185 $port->setRequired(
true);
3186 $this->form->addItem($port);
3191 $path->setMaxLength(1024);
3192 $path->setInfo($this->lng->txt(
'lucene_index_path_info'));
3193 $path->setRequired(
true);
3194 $this->form->addItem(
$path);
3199 $log->setMaxLength(1024);
3200 $log->setInfo($this->lng->txt(
'lucene_log_info'));
3201 $log->setRequired(
true);
3202 $this->form->addItem(
$log);
3211 'FATAL' =>
'FATAL'));
3212 $lev->setValue(
'INFO');
3213 $lev->setRequired(
true);
3214 $this->form->addItem($lev);
3220 $cpu->setMaxLength(2);
3221 $cpu->setMinValue(1);
3222 $cpu->setRequired(
true);
3223 $this->form->addItem($cpu);
3227 $fs->
setInfo($this->lng->txt(
'lucene_max_fs_info'));
3230 $fs->setMaxLength(4);
3231 $fs->setMinValue(1);
3232 $fs->setRequired(
true);
3233 $this->form->addItem($fs);
3245 if($this->form->checkInput())
3247 include_once
'./Services/WebServices/RPC/classes/class.ilRpcIniFileWriter.php';
3249 $ini->setHost($this->form->getInput(
'ho'));
3250 $ini->setPort($this->form->getInput(
'po'));
3251 $ini->setIndexPath($this->form->getInput(
'in'));
3252 $ini->setLogPath($this->form->getInput(
'lo'));
3253 $ini->setLogLevel($this->form->getInput(
'le'));
3254 $ini->setNumThreads($this->form->getInput(
'cp'));
3255 $ini->setMaxFileSize($this->form->getInput(
'fs'));
3262 $this->form->setValuesByPost();
3265 $this->tpl->setContent($this->form->getHTML());
3276 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
3280 $ti =
new ilTextInputGUI($this->lng->txt(
"java_server_host"),
"rpc_server_host");
3283 $ti->setValue($ilSetting->get(
"rpc_server_host"));
3284 $this->form->addItem($ti);
3287 $ti =
new ilNumberInputGUI($this->lng->txt(
"java_server_port"),
"rpc_server_port");
3290 $ti->setValue($ilSetting->get(
"rpc_server_port"));
3291 $this->form->addItem($ti);
3295 $this->form->addCommandButton(
"saveJavaServer", $lng->txt(
"save"));
3297 $this->form->setTitle($lng->txt(
"java_server"));
3298 $this->form->setDescription($lng->txt(
"java_server_info").
3299 '<br /><a href="Services/WebServices/RPC/lib/README.txt" target="_blank">'.
3300 $lng->txt(
"java_server_readme").
'</a>');
3301 $this->form->setFormAction($this->ctrl->getFormAction($this));
3313 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
3315 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
3319 if ($this->form->checkInput())
3321 $ilSetting->set(
"rpc_server_host", trim(
$_POST[
"rpc_server_host"]));
3322 $ilSetting->set(
"rpc_server_port", trim(
$_POST[
"rpc_server_port"]));
3324 $ilCtrl->redirect($this,
"showJavaServer");
3331 $this->form->setValuesByPost();
3332 $tpl->setContent($this->form->getHtml());
3347 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
3349 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
3352 require_once
'classes/class.ilProxySettings.php';
3355 $this->form->setValuesByArray(array(
3365 $tpl->setContent($this->form->getHTML());
3380 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
3382 $this->lng->txt(
'proxy_connectable')
3387 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
3389 $this->lng->txt(
'proxy_not_connectable')
3391 ilUtil::sendFailure($this->lng->txt(
'proxy_pear_net_socket_error').
': '.$e->getMessage());
3406 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
3408 $this->ilias->raiseError($lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
3411 require_once
'classes/class.ilProxySettings.php';
3414 $isFormValid = $this->form->checkInput();
3416 ->setHost(trim($this->form->getInput(
'proxy_host')))
3417 ->setPort(trim($this->form->getInput(
'proxy_port')));
3424 $isFormValid =
false;
3425 $this->form->getItemByPostVar(
'proxy_host')->setAlert($lng->txt(
'msg_input_is_required'));
3429 $isFormValid =
false;
3430 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'msg_input_is_required'));
3436 $isFormValid =
false;
3437 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'proxy_port_numeric'));
3456 $this->form->setValuesByPost();
3457 $tpl->setContent($this->form->getHTML());
3473 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
3475 $this->form->setFormAction($ilCtrl->getFormAction($this,
'saveProxy'));
3479 $proxs->
setInfo($lng->txt(
'proxy_status_info'));
3480 $proxs->setValue(1);
3481 $this->form->addItem($proxs);
3485 $proxs->addSubItem($proxa);
3488 $prox =
new ilTextInputGUI($lng->txt(
'proxy_host'),
'proxy_host');
3489 $prox->
setInfo($lng->txt(
'proxy_host_info'));
3490 $proxs->addSubItem($prox);
3493 $proxp =
new ilTextInputGUI($lng->txt(
'proxy_port'),
'proxy_port');
3494 $proxp->
setInfo($lng->txt(
'proxy_port_info'));
3495 $proxp->setSize(10);
3496 $proxp->setMaxLength(10);
3497 $proxs->addSubItem($proxp);
3500 $this->form->addCommandButton(
'saveProxy', $lng->txt(
'save'));
3510 $a_target = SYSTEM_FOLDER_ID;
3512 if ($ilAccess->checkAccess(
"read",
"", $a_target))
3519 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
3521 $_GET[
"cmd"] =
"frameset";
3522 $_GET[
"target"] =
"";
3523 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
3526 include(
"repository.php");
3530 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);