4 require_once
"./classes/class.ilObjectGUI.php";
32 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,
false);
34 $this->lng->loadLanguageModule(
"administration");
41 $next_class = $this->ctrl->getNextClass($this);
45 case 'ilpermissiongui':
46 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
48 $ret =& $this->ctrl->forwardCommand($perm_gui);
53 $cmd = $this->ctrl->getCmd(
"view");
77 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
79 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
83 $this->objectList = array();
84 $this->data[
"data"] = array();
85 $this->data[
"ctrl"] = array();
86 $this->data[
"cols"] = array(
"type",
"title");
88 $childs = $this->tree->getChilds($this->object->getRefId(),
$_GET[
"order"],
$_GET[
"direction"]);
90 foreach ($childs as $key => $val)
93 if (!$rbacsystem->checkAccess(
"visible",$val[
"ref_id"]))
99 if ($this->objDefinition->getDevMode($val[
"type"]))
105 if ($val[
"ref_id"] == RECOVERY_FOLDER_ID and !$this->tree->getChilds(RECOVERY_FOLDER_ID))
111 $this->data[
"data"][] = array(
112 "type" => $val[
"type"],
113 "title" => $val[
"title"].
"#separator#".$val[
"desc"],
114 "ref_id" => $val[
"ref_id"]
122 $this->data[
"data"][] = array(
124 "title" => $this->lng->txt(
"repository_admin").
"#separator#".
125 $this->lng->txt(
"repository_admin_desc"),
126 "ref_id" => ROOT_FOLDER_ID
129 $this->maxcount = count($this->data[
"data"]);
132 if (
$_GET[
"sort_by"] ==
"")
134 $_GET[
"sort_by"] =
"title";
139 foreach ($this->data[
"data"] as $key => $val)
141 $this->data[
"ctrl"][$key] = array(
142 "type" => $val[
"type"],
143 "ref_id" => $val[
"ref_id"]
146 unset($this->data[
"data"][$key][
"ref_id"]);
155 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
170 include_once
"./Services/Table/classes/class.ilTableGUI.php";
173 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
175 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.obj_tbl_rows.html");
179 if (!$this->call_by_reference)
181 $this->ctrl->setParameter($this,
"obj_id", $this->obj_id);
184 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
190 $tbl->setTitle($this->lng->txt(
"obj_".$this->object->getType()),
"icon_".$this->object->getType().
".gif",$this->lng->txt(
"obj_".$this->object->getType()));
199 $header_names[] =
"";
200 $header_names[] = $this->lng->txt(
"obj_cat");
202 $tbl->setHeaderNames($header_names);
204 $header_params = $this->ctrl->getParameterArray($this,
"view");
205 $tbl->setHeaderVars($this->data[
"cols"],$header_params);
206 $tbl->setColumnWidth(array(
"15",
"99%"));
209 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
210 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
213 $tbl->setMaxCount($this->maxcount);
216 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
217 $tbl->disable(
"numinfo");
222 if (is_array($this->data[
"data"][0]))
225 for ($i=0; $i < count($this->data[
"data"]); $i++)
227 $data = $this->data[
"data"][$i];
228 $ctrl = $this->data[
"ctrl"][$i];
233 $this->tpl->setCurrentBlock(
"table_cell");
234 $this->tpl->setVariable(
"CELLSTYLE",
"tblrow1");
235 $this->tpl->parseCurrentBlock();
237 if ($ctrl[
"ref_id"] != ROOT_FOLDER_ID)
239 foreach (
$data as $key => $val)
243 $class_name = $this->objDefinition->getClassName($obj_type);
244 $class = strtolower(
"ilObj".$class_name.
"GUI");
245 $this->ctrl->setParameterByClass($class,
"ref_id", $ctrl[
"ref_id"]);
246 $this->ctrl->setParameterByClass($class,
"obj_id", $ctrl[
"ref_id"]);
247 $link = $this->ctrl->getLinkTargetByClass($class,
"view");
251 $name_field = explode(
"#separator#",$val);
254 if ($key ==
"title" || $key ==
"type")
256 $this->tpl->setCurrentBlock(
"begin_link");
257 $this->tpl->setVariable(
"LINK_TARGET", $link);
259 $this->tpl->parseCurrentBlock();
260 $this->tpl->touchBlock(
"end_link");
263 $this->tpl->setCurrentBlock(
"text");
272 $this->tpl->setVariable(
"TEXT_CONTENT", $name_field[0]);
274 $this->tpl->setCurrentBlock(
"subtitle");
275 $this->tpl->setVariable(
"DESC", $name_field[1]);
276 $this->tpl->parseCurrentBlock();
280 $this->tpl->setVariable(
"TEXT_CONTENT", $val);
283 $this->tpl->parseCurrentBlock();
284 $this->tpl->setCurrentBlock(
"table_cell");
285 $this->tpl->parseCurrentBlock();
296 $this->tpl->setCurrentBlock(
"text");
297 $this->tpl->setVariable(
"TEXT_CONTENT", $val);
298 $this->tpl->parseCurrentBlock();
300 $this->tpl->setCurrentBlock(
"table_cell");
301 $this->tpl->parseCurrentBlock();
304 $this->tpl->setCurrentBlock(
"begin_link");
305 $this->ctrl->setParameterByClass(
"iladministrationgui",
306 "admin_mode",
"repository");
307 $this->ctrl->setParameterByClass(
"iladministrationgui",
308 "ref_id", ROOT_FOLDER_ID);
309 $this->tpl->setVariable(
"LINK_TARGET",
310 $this->ctrl->getLinkTargetByClass(
"iladministrationgui",
"frameset"));
311 $this->tpl->setVariable(
"FRAME_TARGET",
313 $this->ctrl->clearParametersByClass(
"iladministrationgui");
314 $this->tpl->parseCurrentBlock();
315 $this->tpl->touchBlock(
"end_link");
319 $name_field = explode(
"#separator#",
$data[
"title"]);
320 $this->tpl->setCurrentBlock(
"text");
321 $this->tpl->setVariable(
"TEXT_CONTENT", $name_field[0]);
322 $this->tpl->setCurrentBlock(
"subtitle");
323 $this->tpl->setVariable(
"DESC", $name_field[1]);
324 $this->tpl->parseCurrentBlock();
326 $this->tpl->setCurrentBlock(
"table_cell");
327 $this->tpl->parseCurrentBlock();
331 $this->tpl->setCurrentBlock(
"tbl_content");
332 $this->tpl->setVariable(
"CSS_ROW", $css_row);
333 $this->tpl->parseCurrentBlock();
339 $this->tpl->setCurrentBlock(
"notfound");
340 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
341 $this->tpl->setVariable(
"NUM_COLS", $num);
342 $this->tpl->parseCurrentBlock();
350 $settings = $this->ilias->getAllSettings();
352 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
354 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
379 if (empty(
$_POST[
"admin_firstname"]) or empty(
$_POST[
"admin_lastname"])
380 or empty(
$_POST[
"admin_street"]) or empty(
$_POST[
"admin_zipcode"])
381 or empty(
$_POST[
"admin_country"]) or empty(
$_POST[
"admin_city"])
382 or empty(
$_POST[
"admin_phone"]) or empty(
$_POST[
"admin_email"]))
392 ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"feedback_recipient").
"'<br/>".$this->lng->txt(
"email_not_valid"));
399 ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"error_recipient").
"'<br/>".$this->lng->txt(
"email_not_valid"));
406 ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"email").
"'<br/>".$this->lng->txt(
"email_not_valid"));
411 foreach (
$_POST as $key => $val)
425 $settings[
"feedback_recipient"] =
$_POST[
"feedback_recipient"];
426 $settings[
"error_recipient"] =
$_POST[
"error_recipient"];
429 $settings[
"pub_section"] =
$_POST[
"pub_section"];
430 $settings[
"open_google"] =
$_POST[
"open_google"];
431 $settings[
"default_repository_view"] =
$_POST[
"default_rep_view"];
432 $settings[
"password_assistance"] =
$_POST[
"password_assistance"];
433 $settings[
'short_inst_title'] =
$_POST[
'short_inst_title'];
434 $settings[
"passwd_auto_generate"] =
$_POST[
"password_auto_generate"];
436 $settings[
"enable_trash"] =
$_POST[
"enable_trash"];
440 $settings[
'session_reminder_enabled'] = (int)
$_POST[
'session_reminder_enabled'];
446 $settings[
"admin_firstname"] =
$_POST[
"admin_firstname"];
447 $settings[
"admin_lastname"] =
$_POST[
"admin_lastname"];
448 $settings[
"admin_title"] =
$_POST[
"admin_title"];
449 $settings[
"admin_position"] =
$_POST[
"admin_position"];
450 $settings[
"admin_institution"] =
$_POST[
"admin_institution"];
451 $settings[
"admin_street"] =
$_POST[
"admin_street"];
452 $settings[
"admin_zipcode"] =
$_POST[
"admin_zipcode"];
453 $settings[
"admin_city"] =
$_POST[
"admin_city"];
454 $settings[
"admin_country"] =
$_POST[
"admin_country"];
455 $settings[
"admin_phone"] =
$_POST[
"admin_phone"];
456 $settings[
"admin_email"] =
$_POST[
"admin_email"];
459 $settings[
"cron_user_check"] =
$_POST[
"cron_user_check"];
460 $settings[
"cron_link_check"] =
$_POST[
"cron_link_check"];
461 $settings[
"cron_web_resource_check"] =
$_POST[
"cron_web_resource_check"];
462 $settings[
"cron_lucene_index"] =
$_POST[
"cron_lucene_index"];
463 $settings[
"mail_notification"] =
$_POST[
"mail_notification"];
464 $settings[
"mail_notification_message"] =
$_POST[
"mail_notification_message"];
467 $settings[
"soap_user_administration"] =
$_POST[
"soap_user_administration"];
469 $settings[
"suffix_repl_additional"] =
$_POST[
"suffix_repl_additional"];
472 $settings[
"links_dynamic"] =
$_POST[
"links_dynamic"];
481 $this->ilias->setSetting(
"feedback_recipient",
$_POST[
"feedback_recipient"]);
482 $this->ilias->setSetting(
"error_recipient",
$_POST[
"error_recipient"]);
510 $this->ilias->setSetting(
"pub_section",
$_POST[
"pub_section"]);
511 $this->ilias->setSetting(
'open_google',
$_POST[
'open_google']);
512 $this->ilias->setSetting(
"default_repository_view",
$_POST[
"default_rep_view"]);
514 $this->ilias->setSetting(
'password_assistance',
$_POST[
'password_assistance']);
515 $this->ilias->setSetting(
'passwd_auto_generate',
$_POST[
'password_auto_generate']);
518 $this->ilias->setSetting(
'short_inst_name',
$_POST[
'short_inst_name']);
519 $this->ilias->setSetting(
'enable_trash',
$_POST[
'enable_trash']);
522 $this->ilias->setSetting(
'session_reminder_enabled', (
int)
$_POST[
'session_reminder_enabled']);
525 $this->ilias->setSetting(
"admin_firstname",$_POST[
"admin_firstname"]);
526 $this->ilias->setSetting(
"admin_lastname",$_POST[
"admin_lastname"]);
527 $this->ilias->setSetting(
"admin_title",$_POST[
"admin_title"]);
528 $this->ilias->setSetting(
"admin_position",$_POST[
"admin_position"]);
529 $this->ilias->setSetting(
"admin_institution",$_POST[
"admin_institution"]);
530 $this->ilias->setSetting(
"admin_street",$_POST[
"admin_street"]);
531 $this->ilias->setSetting(
"admin_zipcode",$_POST[
"admin_zipcode"]);
532 $this->ilias->setSetting(
"admin_city",$_POST[
"admin_city"]);
533 $this->ilias->setSetting(
"admin_country",$_POST[
"admin_country"]);
534 $this->ilias->setSetting(
"admin_phone",$_POST[
"admin_phone"]);
535 $this->ilias->setSetting(
"admin_email",$_POST[
"admin_email"]);
538 $this->ilias->setSetting(
"cron_user_check",$_POST[
"cron_user_check"]);
539 $this->ilias->setSetting(
"cron_link_check",$_POST[
"cron_link_check"]);
540 $this->ilias->setSetting(
"cron_web_resource_check",$_POST[
"cron_web_resource_check"]);
541 $this->ilias->setSetting(
"cron_lucene_index",$_POST[
"cron_lucene_index"]);
542 $this->ilias->setSetting(
"mail_notification", $_POST[
"mail_notification"]);
543 $this->ilias->setSetting(
"mail_notification_message", $_POST[
"mail_notification_message"]);
547 $this->ilias->setSetting(
"soap_user_administration",$_POST[
"soap_user_administration"]);
548 $this->ilias->setSetting(
"rpc_server_host",trim($_POST[
"rpc_server_host"]));
549 $this->ilias->setSetting(
"rpc_server_port",trim($_POST[
"rpc_server_port"]));
552 $this->ilias->ini->write();
555 $this->ilias->setSetting(
'links_dynamic',$_POST[
'links_dynamic']);
557 $this->ilias->setSetting(
"suffix_repl_additional",
560 $settings = $this->ilias->getAllSettings();
563 $feedback = $this->lng->txt(
"saved_successfully");
564 if (trim($_POST[
"rpc_server_host"]) !=
"" ||
565 trim($_POST[
"rpc_server_port"]) !=
"")
567 include_once
'Services/WebServices/RPC/classes/class.ilRPCServerSettings.php';
569 if(!$rpc_settings->pingServer())
571 $feedback .=
"<br />\n".$this->lng->txt(
'java_server_no_connection');
577 $ilCtrl->redirect($this,
"view");
583 include_once(
"./Modules/Scorm2004/classes/class.ilScormEditorDBCreator.php");
585 $db_creator->createTables();
598 global $rbacsystem,
$ilCtrl, $ilClientIniFile;
600 $this->tpl->addBlockFile(
"SYSTEMSETTINGS",
"systemsettings",
"tpl.adm_basicdata.html",
601 "Modules/SystemFolder");
603 $settings = $this->ilias->getAllSettings();
605 $this->tpl->setVariable(
"TXT_BASIC_DATA", $this->lng->txt(
"basic_data"));
611 $this->tpl->setVariable(
"TXT_ILIAS_VERSION", $this->lng->txt(
"ilias_version"));
612 $this->tpl->setVariable(
"TXT_DB_VERSION", $this->lng->txt(
"db_version"));
613 $this->tpl->setVariable(
"TXT_CLIENT_ID", $this->lng->txt(
"client_id"));
614 $this->tpl->setVariable(
"TXT_INST_ID", $this->lng->txt(
"inst_id"));
615 $this->tpl->setVariable(
"TXT_ACTIVATE_HTTPS",$this->lng->txt(
'activate_https'));
616 $this->tpl->setVariable(
"TXT_HOSTNAME", $this->lng->txt(
"host"));
617 $this->tpl->setVariable(
"TXT_IP_ADDRESS", $this->lng->txt(
"ip_address"));
618 $this->tpl->setVariable(
"TXT_SERVER_DATA", $this->lng->txt(
"server_data"));
619 $this->tpl->setVariable(
"TXT_SERVER_PORT", $this->lng->txt(
"port"));
620 $this->tpl->setVariable(
"TXT_SERVER_SOFTWARE", $this->lng->txt(
"server_software"));
621 $this->tpl->setVariable(
"TXT_HTTP_PATH", $this->lng->txt(
"http_path"));
622 $this->tpl->setVariable(
"TXT_ABSOLUTE_PATH", $this->lng->txt(
"absolute_path"));
623 $this->tpl->setVariable(
"TXT_INST_NAME", $this->lng->txt(
"inst_name"));
624 $this->tpl->setVariable(
"TXT_INST_INFO", $this->lng->txt(
"inst_info"));
626 $this->tpl->setVariable(
"TXT_FEEDBACK_RECIPIENT", $this->lng->txt(
"feedback_recipient"));
627 $this->tpl->setVariable(
"TXT_ERROR_RECIPIENT", $this->lng->txt(
"error_recipient"));
628 $this->tpl->setVariable(
"TXT_HEADER_TITLE", $this->lng->txt(
"header_title"));
629 $this->tpl->setVariable(
"TXT_SHORT_NAME", $this->lng->txt(
"short_inst_name"));
630 $this->tpl->setVariable(
"TXT_SHORT_NAME_INFO", $this->lng->txt(
"short_inst_name_info"));
632 $this->tpl->setVariable(
"VAL_SHORT_INST_NAME", $settings[
'short_inst_name']);
633 $this->tpl->setVariable(
"TXT_CHANGE", $this->lng->txt(
"change"));
634 $this->tpl->setVariable(
"LINK_HEADER_TITLE",
635 $this->ctrl->getLinkTarget($this,
"changeHeaderTitle"));
636 $this->tpl->setVariable(
"VAL_HEADER_TITLE",
639 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
640 $dbupdate =
new ilDBUpdate($this->ilias->db,
true);
642 if (!$dbupdate->getDBVersionStatus())
644 $this->tpl->setVariable(
"TXT_DB_UPDATE",
" (<span class=\"warning\">".$this->lng->txt(
"db_need_update").
"</span>)");
648 $this->tpl->setVariable(
"TXT_PUB_SECTION", $this->lng->txt(
"pub_section"));
651 $this->tpl->setVariable(
'TXT_SEARCH_ENGINE',$this->lng->txt(
'search_engine'));
652 $this->tpl->setVariable(
'TXT_ENABLE_SEARCH_ENGINE',$this->lng->txt(
'enable_search_engine'));
653 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
657 if(!$robot_settings->checkModRewrite())
660 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'disabled="disabled"');
662 $this->tpl->setCurrentBlock(
'search_engine_alert');
664 $this->tpl->setVariable(
'SE_ALT_ALERT',$this->lng->txt(
'alert'));
665 $this->tpl->setVariable(
'TXT_SE_ALERT',$this->lng->txt(
'mod_rewrite_disabled'));
666 $this->tpl->parseCurrentBlock();
668 elseif(!$robot_settings->checkRewrite())
671 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'disabled="disabled"');
673 $this->tpl->setCurrentBlock(
'search_engine_alert');
675 $this->tpl->setVariable(
'SE_ALT_ALERT',$this->lng->txt(
'alert'));
676 $this->tpl->setVariable(
'TXT_SE_ALERT',$this->lng->txt(
'allow_override_alert'));
677 $this->tpl->parseCurrentBlock();
679 if($settings[
'open_google'] and !$error_se)
681 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'checked="checked"');
684 $this->tpl->setVariable(
"TXT_DEFAULT_REPOSITORY_VIEW", $this->lng->txt(
"def_repository_view"));
685 $this->tpl->setVariable(
"TXT_FLAT", $this->lng->txt(
"flatview"));
686 $this->tpl->setVariable(
"TXT_TREE", $this->lng->txt(
"treeview"));
688 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_ASSISTANCE", $this->lng->txt(
"enable_password_assistance"));
689 $this->tpl->setVariable(
"TXT_PASSWORD_AUTO_GENERATE_INFO",$this->lng->txt(
'passwd_generation_info'));
697 $this->tpl->setVariable(
"TXT_PASSWORD_ASSISTANCE_INFO", $this->lng->txt(
"password_assistance_info"));
699 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_GENERATION",$this->lng->txt(
'passwd_generation'));
702 $this->tpl->setVariable(
"TXT_FILE_SUFFIX_REPL", $this->lng->txt(
"file_suffix_repl"));
703 $this->tpl->setVariable(
"INFO_FILE_SUFFIX_REPL",
704 $this->lng->txt(
"file_suffix_repl_info").
" ".SUFFIX_REPL_DEFAULT);
706 $this->tpl->setVariable(
"TXT_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic'));
707 $this->tpl->setVariable(
"INFO_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic_info'));
709 $this->tpl->setVariable(
"TXT_ENABLE_TRASH",$this->lng->txt(
'enable_trash'));
710 $this->tpl->setVariable(
"INFO_ENABLE_TRASH",$this->lng->txt(
'enable_trash_info'));
712 $this->tpl->setVariable(
'TXT_SESSION_REMINDER', $this->lng->txt(
'session_reminder'));
713 $this->tpl->setVariable(
'INFO_SESSION_REMINDER', $this->lng->txt(
'session_reminder_info'));
714 $expires = $ilClientIniFile->readVariable(
"session",
"expire");
716 $this->tpl->setVariable(
'SESSION_REMINDER_SESSION_DURATION',
717 sprintf($this->lng->txt(
'session_reminder_session_duration'), $time));
721 $this->tpl->setVariable(
"TXT_SOFTWARE", $this->lng->txt(
"3rd_party_software"));
722 $this->tpl->setVariable(
"TXT_CONVERT_PATH", $this->lng->txt(
"path_to_convert"));
723 $this->tpl->setVariable(
"TXT_ZIP_PATH", $this->lng->txt(
"path_to_zip"));
724 $this->tpl->setVariable(
"TXT_UNZIP_PATH", $this->lng->txt(
"path_to_unzip"));
725 $this->tpl->setVariable(
"TXT_JAVA_PATH", $this->lng->txt(
"path_to_java"));
726 $this->tpl->setVariable(
"TXT_HTMLDOC_PATH", $this->lng->txt(
"path_to_htmldoc"));
727 $this->tpl->setVariable(
"TXT_MKISOFS_PATH", $this->lng->txt(
"path_to_mkisofs"));
728 $this->tpl->setVariable(
"TXT_LATEX_URL", $this->lng->txt(
"url_to_latex"));
731 $this->tpl->setVariable(
"TXT_CRON",$this->lng->txt(
'cron_jobs'));
732 $this->tpl->setVariable(
"TXT_CRON_DESC",$this->lng->txt(
'cron_jobs_desc'));
733 $this->tpl->setVariable(
"TXT_CRON_USER_ACCOUNTS",$this->lng->txt(
'check_user_accounts'));
734 $this->tpl->setVariable(
"CRON_USER_ACCOUNTS_DESC",$this->lng->txt(
'check_user_accounts_desc'));
735 $this->tpl->setVariable(
"TXT_CRON_LINK_CHECK",$this->lng->txt(
'check_link'));
736 $this->tpl->setVariable(
"CRON_LINK_CHECK_DESC",$this->lng->txt(
'check_link_desc'));
737 $this->tpl->setVariable(
"TXT_CRON_WEB_RESOURCE_CHECK",$this->lng->txt(
'check_web_resources'));
738 $this->tpl->setVariable(
"CRON_WEB_RESOURCE_CHECK_DESC",$this->lng->txt(
'check_web_resources_desc'));
740 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX",$this->lng->txt(
'cron_lucene_index'));
741 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX_INFO",$this->lng->txt(
'cron_lucene_index_info'));
743 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION",$this->lng->txt(
'cron_mail_notification'));
744 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_NEVER",$this->lng->txt(
'cron_mail_notification_never'));
745 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_CRON",$this->lng->txt(
'cron_mail_notification_cron'));
746 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_DESC",$this->lng->txt(
'cron_mail_notification_desc'));
748 $this->tpl->setVariable(
"TXT_CRON_MAIL_MESSAGE_CHECK", $this->lng->txt(
'cron_mail_notification_message'));
749 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK", $this->lng->txt(
'cron_mail_notification_message_enabled'));
750 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK_DESC", $this->lng->txt(
'cron_mail_notification_message_desc'));
752 $this->tpl->setVariable(
"TXT_NEVER",$this->lng->txt(
'never'));
753 $this->tpl->setVariable(
"TXT_DAILY",$this->lng->txt(
'daily'));
754 $this->tpl->setVariable(
"TXT_WEEKLY",$this->lng->txt(
'weekly'));
755 $this->tpl->setVariable(
"TXT_MONTHLY",$this->lng->txt(
'monthly'));
756 $this->tpl->setVariable(
"TXT_QUARTERLY",$this->lng->txt(
'quarterly'));
758 $this->tpl->setVariable(
"TXT_WEBSERVICES",$this->lng->txt(
'webservices'));
759 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION",$this->lng->txt(
'soap_user_administration'));
760 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION_DESC",$this->lng->txt(
'soap_user_administration_desc'));
762 $this->tpl->setVariable(
"TXT_JAVA_SERVER",$this->lng->txt(
'java_server'));
763 $this->tpl->setVariable(
"TXT_JAVA_SERVER_HOST",$this->lng->txt(
'java_server_host'));
764 $this->tpl->setVariable(
"TXT_JAVA_SERVER_PORT",$this->lng->txt(
'java_server_port'));
765 $this->tpl->setVariable(
"TXT_JAVA_SERVER_INFO",$this->lng->txt(
'java_server_info'));
766 $this->tpl->setVariable(
"TXT_JAVA_SERVER_README",$this->lng->txt(
'java_server_readme'));
772 $this->tpl->setVariable(
"TXT_CONTACT_DATA", $this->lng->txt(
"contact_data"));
773 $this->tpl->setVariable(
"TXT_REQUIRED_FIELDS", $this->lng->txt(
"required_field"));
774 $this->tpl->setVariable(
"TXT_ADMIN", $this->lng->txt(
"administrator"));
775 $this->tpl->setVariable(
"TXT_FIRSTNAME", $this->lng->txt(
"firstname"));
776 $this->tpl->setVariable(
"TXT_LASTNAME", $this->lng->txt(
"lastname"));
777 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
778 $this->tpl->setVariable(
"TXT_POSITION", $this->lng->txt(
"position"));
779 $this->tpl->setVariable(
"TXT_INSTITUTION", $this->lng->txt(
"institution"));
780 $this->tpl->setVariable(
"TXT_STREET", $this->lng->txt(
"street"));
781 $this->tpl->setVariable(
"TXT_ZIPCODE", $this->lng->txt(
"zipcode"));
782 $this->tpl->setVariable(
"TXT_CITY", $this->lng->txt(
"city"));
783 $this->tpl->setVariable(
"TXT_COUNTRY", $this->lng->txt(
"country"));
784 $this->tpl->setVariable(
"TXT_PHONE", $this->lng->txt(
"phone"));
785 $this->tpl->setVariable(
"TXT_EMAIL", $this->lng->txt(
"email"));
786 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
793 $this->tpl->setVariable(
"FORMACTION_BASICDATA", $this->ctrl->getFormAction($this));
794 $this->tpl->setVariable(
"HTTP_PATH",ILIAS_HTTP_PATH);
796 $this->tpl->setVariable(
"HOSTNAME", $_SERVER[
"SERVER_NAME"]);
797 $this->tpl->setVariable(
"SERVER_PORT", $_SERVER[
"SERVER_PORT"]);
798 $this->tpl->setVariable(
"SERVER_ADMIN", $_SERVER[
"SERVER_ADMIN"]);
799 $this->tpl->setVariable(
"SERVER_SOFTWARE", $_SERVER[
"SERVER_SOFTWARE"]);
800 $this->tpl->setVariable(
"IP_ADDRESS", $_SERVER[
"SERVER_ADDR"]);
801 $this->tpl->setVariable(
"DB_VERSION",$settings[
"db_version"]);
802 $this->tpl->setVariable(
"ILIAS_VERSION",$settings[
"ilias_version"]);
803 $this->tpl->setVariable(
"INST_ID",$settings[
"inst_id"]);
804 $this->tpl->setVariable(
"CLIENT_ID",CLIENT_ID);
805 $this->tpl->setVariable(
"INST_NAME",$this->ilias->ini->readVariable(
"client",
"name"));
806 $this->tpl->setVariable(
"INST_INFO",$this->ilias->ini->readVariable(
"client",
"description"));
807 $this->tpl->setVariable(
"FEEDBACK_RECIPIENT",$settings[
"feedback_recipient"]);
808 $this->tpl->setVariable(
"ERROR_RECIPIENT",$settings[
"error_recipient"]);
810 $this->tpl->setVariable(
"PHP_INFO_LINK",
811 $this->ctrl->getLinkTarget($this,
"showPHPInfo"));
814 if ($settings[
"pub_section"])
816 $this->tpl->setVariable(
"PUB_SECTION",
"checked=\"checked\"");
819 if ($settings[
"default_repository_view"] ==
"tree")
821 $this->tpl->setVariable(
"TREESELECTED",
"selected=\"1\"");
825 $this->tpl->setVariable(
"FLATSELECTED",
"selected=\"1\"");
828 if($settings[
'password_assistance'])
830 $this->tpl->setVariable(
"PASSWORD_ASSISTANCE",
"checked=\"checked\"");
832 $this->tpl->setVariable(
"VAL_SHORT_NAME", $settings[
'short_inst_title']);
833 if($settings[
'passwd_auto_generate'])
835 $this->tpl->setVariable(
"PASSWORD_AUTO_GENERATE",
"checked=\"checked\"");
847 if($settings[
'links_dynamic'])
849 $this->tpl->setVariable(
"LINKS_DYNAMIC_CHECKED",
"checked=\"checked\"");
852 if($settings[
'enable_trash'])
854 $this->tpl->setVariable(
"ENABLE_TRASH_CHECKED",
"checked=\"checked\"");
857 if($settings[
'session_reminder_enabled'])
859 $this->tpl->setVariable(
'SESSION_REMINDER_ENABLED',
'checked=checked');
862 if ($settings[
"require_login"])
864 $this->tpl->setVariable(
"REQUIRE_LOGIN",
"checked=\"checked\"");
866 if ($settings[
"require_passwd"])
868 $this->tpl->setVariable(
"REQUIRE_PASSWD",
"checked=\"checked\"");
870 if ($settings[
"require_passwd2"])
872 $this->tpl->setVariable(
"REQUIRE_PASSWD2",
"checked=\"checked\"");
874 if ($settings[
"require_firstname"])
876 $this->tpl->setVariable(
"REQUIRE_FIRSTNAME",
"checked=\"checked\"");
878 if ($settings[
"require_gender"])
880 $this->tpl->setVariable(
"REQUIRE_GENDER",
"checked=\"checked\"");
882 if ($settings[
"require_lastname"])
884 $this->tpl->setVariable(
"REQUIRE_LASTNAME",
"checked=\"checked\"");
886 if ($settings[
"require_institution"])
888 $this->tpl->setVariable(
"REQUIRE_INSTITUTION",
"checked=\"checked\"");
890 if ($settings[
"require_department"])
892 $this->tpl->setVariable(
"REQUIRE_DEPARTMENT",
"checked=\"checked\"");
894 if ($settings[
"require_street"])
896 $this->tpl->setVariable(
"REQUIRE_STREET",
"checked=\"checked\"");
898 if ($settings[
"require_city"])
900 $this->tpl->setVariable(
"REQUIRE_CITY",
"checked=\"checked\"");
902 if ($settings[
"require_zipcode"])
904 $this->tpl->setVariable(
"REQUIRE_ZIPCODE",
"checked=\"checked\"");
906 if ($settings[
"require_country"])
908 $this->tpl->setVariable(
"REQUIRE_COUNTRY",
"checked=\"checked\"");
910 if ($settings[
"require_phone_office"])
912 $this->tpl->setVariable(
"REQUIRE_PHONE_OFFICE",
"checked=\"checked\"");
914 if ($settings[
"require_phone_home"])
916 $this->tpl->setVariable(
"REQUIRE_PHONE_HOME",
"checked=\"checked\"");
918 if ($settings[
"require_phone_mobile"])
920 $this->tpl->setVariable(
"REQUIRE_PHONE_MOBILE",
"checked=\"checked\"");
922 if ($settings[
"require_fax"])
924 $this->tpl->setVariable(
"REQUIRE_FAX",
"checked=\"checked\"");
926 if ($settings[
"require_email"])
928 $this->tpl->setVariable(
"REQUIRE_EMAIL",
"checked=\"checked\"");
930 if ($settings[
"require_hobby"])
932 $this->tpl->setVariable(
"REQUIRE_HOBBY",
"checked=\"checked\"");
934 if ($settings[
"require_default_role"])
936 $this->tpl->setVariable(
"REQUIRE_DEFAULT_ROLE",
"checked=\"checked\"");
938 if ($settings[
"require_referral_comment"])
940 $this->tpl->setVariable(
"REQUIRE_REFERRAL_COMMENT",
"checked=\"checked\"");
942 if ($settings[
"require_matriculation"])
944 $this->tpl->setVariable(
"REQUIRE_MATRICULATION",
"checked=\"checked\"");
946 if ($settings[
"cron_user_check"])
948 $this->tpl->setVariable(
"CRON_USER_CHECK",
"checked=\"checked\"");
950 if ($settings[
"cron_link_check"])
952 $this->tpl->setVariable(
"CRON_LINK_CHECK",
"checked=\"checked\"");
954 if($settings[
"cron_lucene_index"])
956 $this->tpl->setVariable(
"CRON_LUCENE_INDEX",
"checked=\"checked\"");
958 if ($settings[
"mail_notification"] == 0)
960 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_NEVER_SELECTED",
" selected=\"selected\"");
962 else if ($settings[
"mail_notification"] == 1)
964 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_CRON_SELECTED",
" selected=\"selected\"");
965 if($settings[
"mail_notification_message"] == 1)
967 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK",
"checked=\"checked\"");
971 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK_DISABLED",
"DISABLED");
974 if ($val = $settings[
"cron_web_resource_check"])
979 $this->tpl->setVariable(
"D_SELECT",
'selected="selected"');
982 $this->tpl->setVariable(
"W_SELECT",
'selected="selected"');
985 $this->tpl->setVariable(
"M_SELECT",
'selected="selected"');
988 $this->tpl->setVariable(
"Q_SELECT",
'selected="selected"');
993 if ($settings[
"soap_user_administration"])
995 $this->tpl->setVariable(
"SOAP_USER_ADMINISTRATION_CHECK",
"checked=\"checked\"");
998 $this->tpl->setVariable(
"JAVA_SERVER_HOST",$settings[
"rpc_server_host"]);
999 $this->tpl->setVariable(
"JAVA_SERVER_PORT",$settings[
"rpc_server_port"]);
1003 $not_set = $this->lng->txt(
"path_not_set");
1005 $this->tpl->setVariable(
"CONVERT_PATH",(PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1006 $this->tpl->setVariable(
"ZIP_PATH",(PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1007 $this->tpl->setVariable(
"UNZIP_PATH",(PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1008 $this->tpl->setVariable(
"JAVA_PATH",(PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1009 $this->tpl->setVariable(
"HTMLDOC_PATH",(PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
1010 $this->tpl->setVariable(
"MKISOFS_PATH",(PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
1011 $this->tpl->setVariable(
"LATEX_URL",(URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1014 $this->tpl->setVariable(
"ADMIN_FIRSTNAME",$settings[
"admin_firstname"]);
1015 $this->tpl->setVariable(
"ADMIN_LASTNAME",$settings[
"admin_lastname"]);
1016 $this->tpl->setVariable(
"ADMIN_TITLE",$settings[
"admin_title"]);
1017 $this->tpl->setVariable(
"ADMIN_POSITION",$settings[
"admin_position"]);
1018 $this->tpl->setVariable(
"ADMIN_INSTITUTION",$settings[
"admin_institution"]);
1019 $this->tpl->setVariable(
"ADMIN_STREET",$settings[
"admin_street"]);
1020 $this->tpl->setVariable(
"ADMIN_ZIPCODE",$settings[
"admin_zipcode"]);
1021 $this->tpl->setVariable(
"ADMIN_CITY",$settings[
"admin_city"]);
1022 $this->tpl->setVariable(
"ADMIN_COUNTRY",$settings[
"admin_country"]);
1023 $this->tpl->setVariable(
"ADMIN_PHONE",$settings[
"admin_phone"]);
1024 $this->tpl->setVariable(
"ADMIN_EMAIL",$settings[
"admin_email"]);
1026 $this->tpl->parseCurrentBlock();
1043 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1045 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1049 if (
$_POST[
'count_limit'] !== null ||
$_POST[
'age_limit'] !== null ||
$_POST[
'type_limit'] !== null)
1051 $ilias->account->writePref(
'systemcheck_count_limit',
1052 (is_numeric(
$_POST[
'count_limit']) &&
$_POST[
'count_limit'] > 0) ?
$_POST[
'count_limit'] :
''
1054 $ilias->account->writePref(
'systemcheck_age_limit',
1055 (is_numeric(
$_POST[
'age_limit']) &&
$_POST[
'age_limit'] > 0) ?
$_POST[
'age_limit'] :
'');
1056 $ilias->account->writePref(
'systemcheck_type_limit', trim(
$_POST[
'type_limit']));
1068 include_once
"classes/class.ilValidator.php";
1070 $hasScanLog = $validator->hasScanLog();
1076 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_last_log"));
1079 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1080 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"systemcheck"));
1081 $this->tpl->setVariable(
"COLSPAN", 3);
1082 $this->tpl->setVariable(
"TXT_ANALYZE_TITLE", $this->lng->txt(
"analyze_data"));
1083 $this->tpl->setVariable(
"TXT_ANALYSIS_OPTIONS", $this->lng->txt(
"analysis_options"));
1084 $this->tpl->setVariable(
"TXT_REPAIR_OPTIONS", $this->lng->txt(
"repair_options"));
1085 $this->tpl->setVariable(
"TXT_OUTPUT_OPTIONS", $this->lng->txt(
"output_options"));
1086 $this->tpl->setVariable(
"TXT_SCAN", $this->lng->txt(
"scan"));
1087 $this->tpl->setVariable(
"TXT_SCAN_DESC", $this->lng->txt(
"scan_desc"));
1088 $this->tpl->setVariable(
"TXT_DUMP_TREE", $this->lng->txt(
"dump_tree"));
1089 $this->tpl->setVariable(
"TXT_DUMP_TREE_DESC", $this->lng->txt(
"dump_tree_desc"));
1090 $this->tpl->setVariable(
"TXT_CLEAN", $this->lng->txt(
"clean"));
1091 $this->tpl->setVariable(
"TXT_CLEAN_DESC", $this->lng->txt(
"clean_desc"));
1092 $this->tpl->setVariable(
"TXT_RESTORE", $this->lng->txt(
"restore_missing"));
1093 $this->tpl->setVariable(
"TXT_RESTORE_DESC", $this->lng->txt(
"restore_missing_desc"));
1094 $this->tpl->setVariable(
"TXT_PURGE", $this->lng->txt(
"purge_missing"));
1095 $this->tpl->setVariable(
"TXT_PURGE_DESC", $this->lng->txt(
"purge_missing_desc"));
1096 $this->tpl->setVariable(
"TXT_RESTORE_TRASH", $this->lng->txt(
"restore_trash"));
1097 $this->tpl->setVariable(
"TXT_RESTORE_TRASH_DESC", $this->lng->txt(
"restore_trash_desc"));
1098 $this->tpl->setVariable(
"TXT_PURGE_TRASH", $this->lng->txt(
"purge_trash"));
1099 $this->tpl->setVariable(
"TXT_PURGE_TRASH_DESC", $this->lng->txt(
"purge_trash_desc"));
1100 $this->tpl->setVariable(
"TXT_COUNT_LIMIT", $this->lng->txt(
"purge_count_limit"));
1101 $this->tpl->setVariable(
"TXT_COUNT_LIMIT_DESC", $this->lng->txt(
"purge_count_limit_desc"));
1102 $this->tpl->setVariable(
"COUNT_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_count_limit"));
1103 $this->tpl->setVariable(
"TXT_AGE_LIMIT", $this->lng->txt(
"purge_age_limit"));
1104 $this->tpl->setVariable(
"TXT_AGE_LIMIT_DESC", $this->lng->txt(
"purge_age_limit_desc"));
1105 $this->tpl->setVariable(
"AGE_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_age_limit"));
1106 $this->tpl->setVariable(
"TXT_TYPE_LIMIT", $this->lng->txt(
"purge_type_limit"));
1107 $this->tpl->setVariable(
"TXT_TYPE_LIMIT_DESC", $this->lng->txt(
"purge_type_limit_desc"));
1109 if($ilias->account->getPref(
'systemcheck_mode_scan'))
1110 $this->tpl->touchBlock(
'mode_scan_checked');
1111 if($ilias->account->getPref(
'systemcheck_mode_dump_tree'))
1112 $this->tpl->touchBlock(
'mode_dump_tree_checked');
1113 if($ilias->account->getPref(
'systemcheck_mode_clean'))
1114 $this->tpl->touchBlock(
'mode_clean_checked');
1115 if($ilias->account->getPref(
'systemcheck_mode_restore'))
1117 $this->tpl->touchBlock(
'mode_restore_checked');
1118 $this->tpl->touchBlock(
'mode_purge_disabled');
1120 elseif($ilias->account->getPref(
'systemcheck_mode_purge'))
1122 $this->tpl->touchBlock(
'mode_purge_checked');
1123 $this->tpl->touchBlock(
'mode_restore_disabled');
1125 if($ilias->account->getPref(
'systemcheck_mode_restore_trash'))
1127 $this->tpl->touchBlock(
'mode_restore_trash_checked');
1128 $this->tpl->touchBlock(
'mode_purge_trash_disabled');
1130 elseif($ilias->account->getPref(
'systemcheck_mode_purge_trash'))
1132 $this->tpl->touchBlock(
'mode_purge_trash_checked');
1133 $this->tpl->touchBlock(
'mode_restore_trash_disabled');
1135 if($ilias->account->getPref(
'systemcheck_log_scan'))
1136 $this->tpl->touchBlock(
'log_scan_checked');
1138 $types = $objDefinition->getAllObjects();
1139 $ts = array(
"" =>
"");
1140 foreach ($types as
$t)
1142 if ($t !=
"" && !$objDefinition->isSystemObject($t) && $t !=
"root")
1144 if ($objDefinition->isPlugin($t))
1150 $ts[
$t] = $this->lng->txt(
"obj_".$t);
1154 $this->tpl->setVariable(
"TYPE_LIMIT_CHOICE",
1156 $ilias->account->getPref(
"systemcheck_type_limit"),
1161 $this->tpl->setVariable(
"TXT_LOG_SCAN", $this->lng->txt(
"log_scan"));
1162 $this->tpl->setVariable(
"TXT_LOG_SCAN_DESC", $this->lng->txt(
"log_scan_desc"));
1163 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"start_scan"));
1165 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save_params_for_cron"));
1167 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
1170 $cron_form->setFormAction($this->ctrl->getFormAction($this));
1171 $cron_form->setTitle($this->lng->txt(
'systemcheck_cronform'));
1174 $radio_group->
setValue( $ilSetting->get(
'systemcheck_cron') );
1176 $radio_opt =
new ilRadioOption($this->lng->txt(
'disabled'),0);
1177 $radio_group->addOption($radio_opt);
1179 $radio_opt =
new ilRadioOption($this->lng->txt(
'enabled'),1);
1180 $radio_group->addOption($radio_opt);
1182 $cron_form->addItem($radio_group);
1184 $cron_form->addCommandButton(
'saveCheckCron',$this->lng->txt(
'save'));
1186 $this->tpl->setVariable(
'CRON_FORM',$cron_form->getHTML());
1199 include_once
"classes/class.ilValidator.php";
1201 $modes = $validator->getPossibleModes();
1204 foreach($modes as $mode)
1206 if( isset(
$_POST[
'mode'][$mode]) ) $value = (int)
$_POST[
'mode'][$mode];
1208 $prefs[
'systemcheck_mode_'.$mode ] = $value;
1211 if( isset(
$_POST[
'log_scan']) ) $value = (
int)
$_POST[
'log_scan'];
1213 $prefs[
'systemcheck_log_scan'] = $value;
1216 foreach($prefs as $key => $val)
1218 $ilUser->writePref($key,$val);
1226 $systemcheck_cron = (
$_POST[
'cronjob'] ? 1 : 0);
1227 $ilSetting->set(
'systemcheck_cron',$systemcheck_cron);
1240 global $rbacsystem, $styleDefinition;
1242 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.header_title_edit.html");
1249 $_GET[
"mode"] =
"session";
1250 $array_push =
false;
1254 if ((
$_GET[
"mode"] !=
"session"))
1256 $data = $this->
object->getHeaderTitleTranslations();
1258 $array_push =
false;
1260 elseif (
$_GET[
"entry"] != 0)
1262 array_splice(
$_SESSION[
"translation_post"][
"Fobject"],
$_GET[
"entry"],1,array());
1264 if (
$_GET[
"entry"] ==
$_SESSION[
"translation_post"][
"default_language"])
1266 $_SESSION[
"translation_post"][
"default_language"] =
"";
1273 if (!
$_GET[
"entry"] and $array_push)
1275 $count = array_push(
$data[
"Fobject"],array(
"title" =>
"",
"desc" =>
""));
1279 $count = count(
$data[
"Fobject"]);
1283 $strip = isset(
$_SESSION[
"translation_post"]) ?
true :
false;
1285 foreach (
$data[
"Fobject"] as $key => $val)
1288 if ($key == $count -1)
1290 $this->tpl->setCurrentBlock(
"addTranslation");
1291 $this->tpl->setVariable(
"TXT_ADD_TRANSLATION",$this->lng->txt(
"add_translation").
" >>");
1292 $this->tpl->parseCurrentBlock();
1298 $this->tpl->setCurrentBlock(
"removeTranslation");
1299 $this->tpl->setVariable(
"TXT_REMOVE_TRANSLATION",$this->lng->txt(
"remove_translation"));
1300 $this->ctrl->setParameter($this,
"entry", $key);
1301 $this->ctrl->setParameter($this,
"mode",
"edit");
1302 $this->tpl->setVariable(
"LINK_REMOVE_TRANSLATION",
1303 $this->ctrl->getLinkTarget($this,
"removeTranslation"));
1304 $this->tpl->parseCurrentBlock();
1308 $this->tpl->addBlockFile(
"SEL_LANGUAGE",
"sel_language",
"tpl.lang_selection.html",
false);
1309 $this->tpl->setVariable(
"SEL_NAME",
"Fobject[".$key.
"][lang]");
1311 include_once(
'Services/MetaData/classes/class.ilMDLanguageItem.php');
1315 foreach ($languages as $code => $language)
1317 $this->tpl->setCurrentBlock(
"lg_option");
1318 $this->tpl->setVariable(
"VAL_LG", $code);
1319 $this->tpl->setVariable(
"TXT_LG", $language);
1321 if ($code == $val[
"lang"])
1323 $this->tpl->setVariable(
"SELECTED",
"selected=\"selected\"");
1326 $this->tpl->parseCurrentBlock();
1330 $this->tpl->setCurrentBlock(
"obj_form");
1334 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"change_header_title"));
1338 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"translation").
" ".$key);
1341 if ($key ==
$data[
"default_language"])
1343 $this->tpl->setVariable(
"CHECKED",
"checked=\"checked\"");
1346 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
1347 $this->tpl->setVariable(
"TXT_DESC", $this->lng->txt(
"desc"));
1348 $this->tpl->setVariable(
"TXT_DEFAULT", $this->lng->txt(
"default"));
1349 $this->tpl->setVariable(
"TXT_LANGUAGE", $this->lng->txt(
"language"));
1352 $this->tpl->setVariable(
"NUM", $key);
1353 $this->tpl->parseCurrentBlock();
1357 $this->tpl->setCurrentBlock(
"adm_content");
1359 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1360 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
1361 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
1362 $this->tpl->setVariable(
"CMD_SUBMIT",
"saveHeaderTitle");
1363 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
1374 if (!isset(
$data[
"default_language"]))
1376 $this->ilias->raiseError($this->lng->txt(
"msg_no_default_language"),$this->ilias->error_obj->MESSAGE);
1380 foreach (
$data[
"Fobject"] as $key => $val)
1382 $langs[$key] = $val[
"lang"];
1385 $langs = array_count_values($langs);
1388 if (array_key_exists(
"",$langs))
1390 $this->ilias->raiseError($this->lng->txt(
"msg_no_language_selected"),$this->ilias->error_obj->MESSAGE);
1394 if (array_sum($langs) > count($langs))
1396 $this->ilias->raiseError($this->lng->txt(
"msg_multi_language_selected"),$this->ilias->error_obj->MESSAGE);
1401 $_POST[
"Fobject"][
"desc"] = $_POST[
"Fobject"][$_POST[
"default_language"]][
"desc"];
1404 $this->
object->removeHeaderTitleTranslations();
1407 foreach (
$data[
"Fobject"] as $key => $val)
1409 if ($key ==
$data[
"default_language"])
1423 $this->ctrl->redirect($this);
1428 $this->ctrl->redirect($this,
"view");
1440 $this->ctrl->setParameter($this,
"mode",
"session");
1441 $this->ctrl->setParameter($this,
"entry",
"0");
1442 $this->ctrl->redirect($this,
"changeHeaderTitle");
1452 $this->ctrl->setParameter($this,
"entry",
$_GET[
"entry"]);
1453 $this->ctrl->setParameter($this,
"mode",
"session");
1454 $this->ctrl->redirect($this,
"changeHeaderTitle");
1462 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1464 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1467 $logging = ($a_log) ?
true :
false;
1468 include_once
"classes/class.ilValidator.php";
1470 $validator->setMode(
"all",
false);
1473 foreach ($a_mode as $mode => $value)
1475 $validator->setMode($mode,(
bool) $value);
1476 $modes[] = $mode.
'='.$value;
1479 $scan_log = $validator->validate();
1481 $mode = $this->lng->txt(
"scan_modes").
": ".implode(
', ',$modes);
1486 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1487 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scanning_system"));
1488 $this->tpl->setVariable(
"COLSPAN", 3);
1489 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
1490 $this->tpl->setVariable(
"TXT_MODE", $mode);
1492 if ($logging ===
true)
1494 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_log"));
1497 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
1499 $validator->writeScanLogLine($mode);
1504 include_once
"classes/class.ilValidator.php";
1505 $validator =
new IlValidator();
1506 $scan_log =& $validator->readScanLog();
1508 if (is_array($scan_log))
1510 $scan_log =
'<pre>'.implode(
"",$scan_log).
'</pre>';
1511 $this->tpl->setVariable(
"ADM_CONTENT", $scan_log);
1515 $scan_log =
"no scanlog found.";
1520 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scan_details"));
1521 $this->tpl->setVariable(
"COLSPAN", 3);
1522 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
1523 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
1534 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1536 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1541 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1545 $cb =
new ilCheckboxInputGUI($lng->txt(
"adm_activate_db_benchmark"),
"enable_db_bench");
1546 $cb->
setChecked($ilSetting->get(
"enable_db_bench"));
1547 $cb->setInfo($lng->txt(
"adm_activate_db_benchmark_desc"));
1548 $this->form->addItem($cb);
1551 $ti =
new ilTextInputGUI($lng->txt(
"adm_db_benchmark_user"),
"db_bench_user");
1552 $ti->
setValue($ilSetting->get(
"db_bench_user"));
1553 $ti->setInfo($lng->txt(
"adm_db_benchmark_user_desc"));
1554 $this->form->addItem($ti);
1556 $this->form->addCommandButton(
"saveBenchSettings", $lng->txt(
"save"));
1558 $this->form->setTitle($lng->txt(
"adm_db_benchmark"));
1559 $this->form->setFormAction($ilCtrl->getFormAction($this));
1561 $tpl->setContent($this->form->getHTML());
1609 $rec = $ilBench->getDbBenchRecords();
1611 include_once(
"./Modules/SystemFolder/classes/class.ilBenchmarkTableGUI.php");
1613 $tpl->setContent($table->getHTML());
1626 $ilTabs->addSubtab(
"settings",
1627 $lng->txt(
"settings"),
1628 $ilCtrl->getLinkTarget($this,
"benchmark"));
1630 $rec = $ilBench->getDbBenchRecords();
1631 if (count($rec) > 0)
1633 $ilTabs->addSubtab(
"chronological",
1634 $lng->txt(
"adm_db_bench_chronological"),
1635 $ilCtrl->getLinkTarget($this,
"showDbBenchChronological"));
1636 $ilTabs->addSubtab(
"slowest_first",
1637 $lng->txt(
"adm_db_bench_slowest_first"),
1638 $ilCtrl->getLinkTarget($this,
"showDbBenchSlowestFirst"));
1639 $ilTabs->addSubtab(
"sorted_by_sql",
1640 $lng->txt(
"adm_db_bench_sorted_by_sql"),
1641 $ilCtrl->getLinkTarget($this,
"showDbBenchSortedBySql"));
1642 $ilTabs->addSubtab(
"by_first_table",
1643 $lng->txt(
"adm_db_bench_by_first_table"),
1644 $ilCtrl->getLinkTarget($this,
"showDbBenchByFirstTable"));
1647 $ilTabs->activateSubTab($a_current);
1658 if (
$_POST[
"enable_db_bench"])
1664 $ilBench->enableDbBench(
false);
1669 $this->ctrl->redirect($this,
"benchmark");
1680 $this->ctrl->setParameter($this,
'cur_mod',
$_POST[
'module']);
1681 $this->ctrl->redirect($this,
"benchmark");
1692 $ilBench->clearData();
1702 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
1711 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1713 $tabs_gui->addTarget(
"server_data",
1714 $this->ctrl->getLinkTarget($this,
"showServerInfo"),
1715 array(
"showServerInfo",
"view"), get_class($this));
1719 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1721 $tabs_gui->addTarget(
"general_settings",
1722 $this->ctrl->getLinkTarget($this,
"showBasicSettings"),
1723 array(
"showBasicSettings",
"saveBasicSettings"), get_class($this));
1726 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1731 $tabs_gui->addTarget(
"system_check",
1732 $this->ctrl->getLinkTarget($this,
"check"), array(
"check",
"viewScanLog",
"saveCheckParams",
"saveCheckCron"), get_class($this));
1734 $tabs_gui->addTarget(
"benchmarks",
1735 $this->ctrl->getLinkTarget($this,
"benchmark"),
"benchmark", get_class($this));
1738 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
1740 $tabs_gui->addTarget(
"perm_settings",
1741 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
1769 $btpl =
new ilTemplate(
"tpl.server_data.html",
true,
true,
"Modules/SystemFolder");
1770 $btpl->setVariable(
"FORM", $this->form->getHTML());
1771 $btpl->setVariable(
"PHP_INFO_TARGET", $ilCtrl->getLinkTarget($this,
"showPHPInfo"));
1772 $tpl->setContent($btpl->get());
1784 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1789 $ne->
setValue($ilClientIniFile->readVariable(
"client",
"name"));
1790 $ne->setInfo($ilClientIniFile->readVariable(
"client",
"description"));
1791 $this->form->addItem($ne);
1796 $this->form->addItem($ne);
1800 $ne->
setValue($ilSetting->get(
"inst_id"));
1801 $this->form->addItem($ne);
1805 $ne->
setValue($ilSetting->get(
"db_version"));
1806 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
1807 $dbupdate =
new ilDBUpdate($this->ilias->db,
true);
1808 if (!$dbupdate->getDBVersionStatus())
1812 else if ($dbupdate->hotfixAvailable())
1816 $this->form->addItem($ne);
1820 $ne->
setValue($ilSetting->get(
"ilias_version"));
1821 $this->form->addItem($ne);
1825 $ne->
setValue($_SERVER[
"SERVER_NAME"]);
1826 $this->form->addItem($ne);
1830 $ne->
setValue($_SERVER[
"SERVER_ADDR"].
":".$_SERVER[
"SERVER_PORT"]);
1831 $this->form->addItem($ne);
1835 $ne->
setValue($_SERVER[
"SERVER_SOFTWARE"]);
1836 $this->form->addItem($ne);
1841 $this->form->addItem($ne);
1846 $this->form->addItem($ne);
1848 $not_set = $lng->txt(
"path_not_set");
1852 $ne->
setValue((PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1853 $this->form->addItem($ne);
1857 $ne->
setValue((PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1858 $this->form->addItem($ne);
1862 $ne->
setValue((PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1863 $this->form->addItem($ne);
1867 $ne->
setValue((PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1868 $this->form->addItem($ne);
1872 $ne->
setValue((PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
1873 $this->form->addItem($ne);
1877 $ne->
setValue((PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
1878 $this->form->addItem($ne);
1882 $ne->
setValue((URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1883 $this->form->addItem($ne);
1886 $this->form->setTitle($lng->txt(
"server_data"));
1887 $this->form->setFormAction($this->ctrl->getFormAction($this));
1904 $ilTabs->addSubTabTarget(
"basic_settings", $ilCtrl->getLinkTarget($this,
"showBasicSettings"));
1905 $ilTabs->addSubTabTarget(
"header_title", $ilCtrl->getLinkTarget($this,
"showHeaderTitle"));
1906 $ilTabs->addSubTabTarget(
"cron_jobs", $ilCtrl->getLinkTarget($this,
"showCronJobs"));
1907 $ilTabs->addSubTabTarget(
"contact_data", $ilCtrl->getLinkTarget($this,
"showContactInformation"));
1908 $ilTabs->addSubTabTarget(
"webservices", $ilCtrl->getLinkTarget($this,
"showWebServices"));
1909 $ilTabs->addSubTabTarget(
"java_server", $ilCtrl->getLinkTarget($this,
"showJavaServer"));
1910 $ilTabs->addSubTabTarget(
"proxy", $ilCtrl->getLinkTarget($this,
"showProxy"));
1912 $ilTabs->setSubTabActive($a_activate);
1913 $ilTabs->setTabActive(
"general_settings");
1932 $tpl->setContent($this->form->getHTML());
1943 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1945 $lng->loadLanguageModule(
"pd");
1948 $ti =
new ilTextInputGUI($this->lng->txt(
"short_inst_name"),
"short_inst_name");
1951 $ti->setValue($ilSetting->get(
"short_inst_name"));
1952 $ti->setInfo($this->lng->txt(
"short_inst_name_info"));
1953 $this->form->addItem($ti);
1957 $cb->
setInfo($lng->txt(
"pub_section_info"));
1958 if ($ilSetting->get(
"pub_section"))
1960 $cb->setChecked(
true);
1963 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
1966 $cb2->
setInfo($this->lng->txt(
"enable_search_engine"));
1967 $cb->addSubItem($cb2);
1968 if(!$robot_settings->checkModRewrite())
1970 $cb2->setAlert($lng->txt(
"mod_rewrite_disabled"));
1971 $cb2->setChecked(
false);
1972 $cb2->setDisabled(
true);
1974 elseif(!$robot_settings->checkRewrite())
1976 $cb2->setAlert($lng->txt(
"allow_override_alert"));
1977 $cb2->setChecked(
false);
1978 $cb2->setDisabled(
true);
1982 if ($ilSetting->get(
"open_google"))
1984 $cb2->setChecked(
true);
1989 $cb_prop =
new ilCheckboxInputGUI($lng->txt(
'pd_enable_global_profiles'),
'enable_global_profiles');
1990 $cb_prop->
setInfo($lng->txt(
'pd_enable_global_profiles_info'));
1991 $cb_prop->setChecked($ilSetting->get(
'enable_global_profiles'));
1992 $cb->addSubItem($cb_prop);
1994 $this->form->addItem($cb);
1998 "flat" => $lng->txt(
"flatview"),
1999 "tree" => $lng->txt(
"treeview")
2001 $si =
new ilSelectInputGUI($this->lng->txt(
"def_repository_view"),
"default_rep_view");
2003 $si->setInfo($this->lng->txt(
""));
2004 if ($ilSetting->get(
"default_repository_view") ==
"tree")
2006 $si->setValue(
"tree");
2010 $si->setValue(
"flat");
2012 $this->form->addItem($si);
2016 "" => $lng->txt(
"adm_rep_tree_only_container"),
2017 "tree" => $lng->txt(
"adm_all_resource_types")
2022 $radg->
setValue($ilSetting->get(
"repository_tree_pres"));
2023 $op1 =
new ilRadioOption($lng->txt(
"adm_rep_tree_only_cntr"),
"",
2024 $lng->txt(
"adm_rep_tree_only_cntr_info"));
2025 $radg->addOption($op1);
2027 $op2 =
new ilRadioOption($lng->txt(
"adm_rep_tree_all_types"),
"all_types",
2028 $lng->txt(
"adm_rep_tree_all_types_info"));
2031 $cb =
new ilCheckboxInputGUI($lng->txt(
"adm_rep_tree_limit_grp_crs"),
"rep_tree_limit_grp_crs");
2032 $cb->setChecked($ilSetting->get(
"rep_tree_limit_grp_crs"));
2033 $cb->
setInfo($lng->txt(
"adm_rep_tree_limit_grp_crs_info"));
2034 $op2->addSubItem($cb);
2036 $radg->addOption($op2);
2038 $this->form->addItem($radg);
2041 $cb =
new ilCheckboxInputGUI($lng->txt(
"adm_synchronize_rep_tree"),
"rep_tree_synchronize");
2042 $cb->
setInfo($lng->txt(
"adm_synchronize_rep_tree_info"));
2043 $cb->setChecked($ilSetting->get(
"rep_tree_synchronize"));
2044 $this->form->addItem($cb);
2054 $si =
new ilSelectInputGUI($this->lng->txt(
"adm_repository_cache_time"),
"rep_cache");
2056 $si->setValue($ilSetting->get(
"rep_cache"));
2057 $si->setInfo($this->lng->txt(
"adm_repository_cache_time_info"));
2058 $this->form->addItem($si);
2061 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"adm_item_cmd_asynch"),
"item_cmd_asynch");
2062 $cb->
setInfo($this->lng->txt(
"adm_item_cmd_asynch_info"));
2063 $cb->setChecked($ilSetting->get(
"item_cmd_asynch"));
2064 $this->form->addItem($cb);
2067 $ti =
new ilTextInputGUI($this->lng->txt(
"adm_locale"),
"locale");
2070 $ti->setInfo($this->lng->txt(
"adm_locale_info"));
2071 $ti->setValue($ilSetting->get(
"locale"));
2072 $this->form->addItem($ti);
2077 $cb->
setInfo($this->lng->txt(
"enable_trash_info"));
2078 if ($ilSetting->get(
"enable_trash"))
2080 $cb->setChecked(
true);
2082 $this->form->addItem($cb);
2087 $ssettings->
setValue($ilSetting->get(
'session_handling_type', 0));
2090 $fixed =
new ilRadioOption($this->lng->txt(
'sess_fixed_duration'), 0);
2093 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"session_reminder"),
"session_reminder_enabled");
2094 $expires = $ilClientIniFile->readVariable(
"session",
"expire");
2096 $cb->
setInfo($this->lng->txt(
"session_reminder_info").
"<br />".
2097 sprintf($this->lng->txt(
'session_reminder_session_duration'), $time));
2098 if((
int)$ilSetting->get(
"session_reminder_enabled"))
2100 $cb->setChecked(
true);
2105 $ssettings->addOption($fixed);
2108 $ldsh =
new ilRadioOption($this->lng->txt(
'sess_load_dependent_session_handling'), 1);
2113 require_once(
'Services/Authentication/classes/class.ilSessionControl.php');
2118 $ti->
setValue(sprintf($this->lng->txt(
'session_config_maintenance_enabled'), CLIENT_ID));
2124 $ti->
setValue($this->lng->txt(
'session_config_maintenance_disabled'));
2126 $ldsh->addSubItem($ti);
2130 $sub_ti =
new ilTextInputGUI($this->lng->txt(
'session_max_count'),
'session_max_count');
2132 $sub_ti->setSize(5);
2133 $sub_ti->setInfo($this->lng->txt(
'session_max_count_info'));
2134 $sub_ti->setValue($ilSetting->get(
2138 $sub_ti->setDisabled(
true);
2139 $ldsh->addSubItem($sub_ti);
2144 $sub_ti =
new ilTextInputGUI($this->lng->txt(
'session_min_idle'),
'session_min_idle');
2146 $sub_ti->setSize(5);
2147 $sub_ti->setInfo($this->lng->txt(
'session_min_idle_info'));
2148 $sub_ti->setValue($ilSetting->get(
2152 $sub_ti->setDisabled(
true);
2153 $ldsh->addSubItem($sub_ti);
2158 $sub_ti =
new ilTextInputGUI($this->lng->txt(
'session_max_idle'),
'session_max_idle');
2160 $sub_ti->setSize(5);
2161 $sub_ti->setInfo($this->lng->txt(
'session_max_idle_info'));
2162 $sub_ti->setValue($ilSetting->get(
2166 $sub_ti->setDisabled(
true);
2167 $ldsh->addSubItem($sub_ti);
2172 $this->lng->txt(
'session_max_idle_after_first_request'),
2173 'session_max_idle_after_first_request'
2176 $sub_ti->setSize(5);
2177 $sub_ti->setInfo($this->lng->txt(
'session_max_idle_after_first_request_info'));
2178 $sub_ti->setValue($ilSetting->get(
2179 "session_max_idle_after_first_request",
2183 $sub_ti->setDisabled(
true);
2184 $ldsh->addSubItem($sub_ti);
2187 $ssettings->addOption($ldsh);
2190 $this->form->addItem($ssettings);
2194 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"enable_password_assistance"),
"password_assistance");
2195 if ($ilSetting->get(
"password_assistance"))
2197 $cb->setChecked(
true);
2199 $cb->
setInfo($this->lng->txt(
"password_assistance_info"));
2200 $this->form->addItem($cb);
2203 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"passwd_generation"),
"passwd_auto_generate");
2204 if ($ilSetting->get(
"passwd_auto_generate"))
2206 $cb->setChecked(
true);
2208 $cb->
setInfo($this->lng->txt(
"passwd_generation_info"));
2209 $this->form->addItem($cb);
2213 $cb->
setInfo($this->lng->txt(
"links_dynamic_info"));
2214 if ($ilSetting->get(
"links_dynamic"))
2216 $cb->setChecked(
true);
2218 $this->form->addItem($cb);
2223 $pl->setInfo($this->lng->txt(
'preview_learner_info'));
2224 $pl->setChecked($ilSetting->get(
'preview_learner'));
2225 $this->form->addItem($pl);
2228 $this->form->addCommandButton(
"saveBasicSettings", $lng->txt(
"save"));
2230 $this->form->setTitle($lng->txt(
"basic_settings"));
2231 $this->form->setFormAction($this->ctrl->getFormAction($this));
2243 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2245 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2249 if ($this->form->checkInput())
2251 $ilSetting->set(
"short_inst_name",
$_POST[
"short_inst_name"]);
2252 $ilSetting->set(
"pub_section",
$_POST[
"pub_section"]);
2253 $ilSetting->set(
"open_google",
$_POST[
"open_google"]);
2254 $ilSetting->set(
"default_repository_view",
$_POST[
"default_rep_view"]);
2255 $ilSetting->set(
"links_dynamic",
$_POST[
"links_dynamic"]);
2256 $ilSetting->set(
"enable_trash",
$_POST[
"enable_trash"]);
2257 $ilSetting->set(
"password_assistance",
$_POST[
"password_assistance"]);
2258 $ilSetting->set(
"passwd_auto_generate",
$_POST[
"passwd_auto_generate"]);
2259 $ilSetting->set(
"locale",
$_POST[
"locale"]);
2260 $ilSetting->set(
'preview_learner',(
int)
$_POST[
'preview_learner']);
2261 $ilSetting->set(
'rep_cache',(
int) $_POST[
'rep_cache']);
2262 $ilSetting->set(
'item_cmd_asynch',(
int) $_POST[
'item_cmd_asynch']);
2263 $ilSetting->set(
"repository_tree_pres", $_POST[
"tree_pres"]);
2264 if ($_POST[
"tree_pres"] ==
"")
2266 $_POST[
"rep_tree_limit_grp_crs"] =
"";
2268 if ($_POST[
"rep_tree_limit_grp_crs"] && !$ilSetting->get(
"rep_tree_limit_grp_crs"))
2270 $_POST[
"rep_tree_synchronize"] =
true;
2272 else if (!$_POST[
"rep_tree_synchronize"] && $ilSetting->get(
"rep_tree_synchronize"))
2274 $_POST[
"rep_tree_limit_grp_crs"] =
false;
2277 $ilSetting->set(
"rep_tree_limit_grp_crs", $_POST[
"rep_tree_limit_grp_crs"]);
2278 $ilSetting->set(
"rep_tree_synchronize", $_POST[
"rep_tree_synchronize"]);
2281 $ilSetting->set(
'session_handling_type',
2282 (
int)$this->form->getInput(
'session_handling_type'));
2284 if( $this->form->getInput(
'session_handling_type') == 0 )
2286 $ilSetting->set(
'session_reminder_enabled',
2287 $this->form->getInput(
'session_reminder_enabled'));
2289 else if( $this->form->getInput(
'session_handling_type') == 1 )
2291 require_once
'Services/Authentication/classes/class.ilSessionControl.php';
2293 $ilSetting->get(
'session_allow_client_maintenance',
2297 $ilSetting->set(
'session_max_count',
2298 (
int)$this->form->getInput(
'session_max_count'));
2299 $ilSetting->set(
'session_min_idle',
2300 (
int)$this->form->getInput(
'session_min_idle'));
2301 $ilSetting->set(
'session_max_idle',
2302 (
int)$this->form->getInput(
'session_max_idle'));
2303 $ilSetting->set(
'session_max_idle_after_first_request',
2304 (
int)$this->form->getInput(
'session_max_idle_after_first_request'));
2309 $global_profiles = ($_POST[
"pub_section"])
2310 ? (
int)$_POST[
'enable_global_profiles']
2313 $ilSetting->set(
'enable_global_profiles', $global_profiles);
2316 $ilCtrl->redirect($this,
"showBasicSettings");
2319 $this->form->setValuesByPost();
2320 $tpl->setContent($this->form->getHtml());
2337 include_once(
"./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
2339 if ($a_get_post_values)
2342 foreach(
$_POST[
"title"] as $k => $v)
2344 $vals[] = array(
"title" => $v,
2345 "desc" =>
$_POST[
"desc"][$k],
2346 "lang" =>
$_POST[
"lang"][$k],
2347 "default" => (
$_POST[
"default"] == $k));
2349 $table->setData($vals);
2353 $data = $this->
object->getHeaderTitleTranslations();
2354 if (is_array(
$data[
"Fobject"]))
2356 foreach(
$data[
"Fobject"] as $k => $v)
2358 if ($k ==
$data[
"default_language"])
2360 $data[
"Fobject"][$k][
"default"] =
true;
2364 $data[
"Fobject"][$k][
"default"] =
false;
2370 $data[
"Fobject"] = array();
2372 $table->setData(
$data[
"Fobject"]);
2374 $tpl->setContent($table->getHTML());
2384 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2386 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2392 if (!isset(
$_POST[
"default"]) && count(
$_POST[
"lang"]) > 0)
2399 if (array_key_exists(
"",
$_POST[
"lang"]))
2406 if (count(array_unique(
$_POST[
"lang"])) < count(
$_POST[
"lang"]))
2413 $this->
object->removeHeaderTitleTranslations();
2414 foreach(
$_POST[
"title"] as $k => $v)
2416 $this->
object->addHeaderTitleTranslation(
2420 (
$_POST[
"default"] == $k));
2424 $ilCtrl->redirect($this,
"showHeaderTitle");
2434 if (is_array(
$_POST[
"title"]))
2436 foreach(
$_POST[
"title"] as $k => $v) {}
2439 $_POST[
"title"][$k] =
"";
2450 foreach(
$_POST[
"title"] as $k => $v)
2454 unset(
$_POST[
"title"][$k]);
2455 unset(
$_POST[
"desc"][$k]);
2456 unset(
$_POST[
"lang"][$k]);
2457 if ($k ==
$_POST[
"default"])
2459 unset(
$_POST[
"default"]);
2482 $tpl->setContent($this->form->getHTML());
2492 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2496 if($ilSetting->get(
'last_cronjob_start_ts'))
2498 include_once(
'./Services/Calendar/classes/class.ilDatePresentation.php');
2503 $cls->setInfo($this->lng->txt(
'cronjob_last_start_unknown'));
2506 $this->form->addItem($cls);
2509 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"check_user_accounts"),
"cron_user_check");
2510 $cb->
setInfo($this->lng->txt(
"check_user_accounts_desc"));
2511 if ($ilSetting->get(
"cron_user_check"))
2513 $cb->setChecked(
true);
2515 $this->form->addItem($cb);
2519 require_once(
'Services/User/classes/class.ilCronDeleteInactiveUserAccounts.php');
2520 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"delete_inactive_user_accounts"),
"cron_inactive_user_delete");
2521 $cb->
setInfo($this->lng->txt(
"delete_inactive_user_accounts_desc"));
2522 if($ilSetting->get(
"cron_inactive_user_delete",
false)) $cb->setChecked(
true);
2525 $this->lng->txt(
'delete_inactive_user_accounts_interval'),
2526 'cron_inactive_user_delete_interval'
2528 $sub_list->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_interval_desc'));
2529 $sub_list->setOptions(
2532 $sub_list->setValue($ilSetting->get(
2533 'cron_inactive_user_delete_interval',
2536 $cb->addSubItem($sub_list);
2538 include_once(
'Services/Form/classes/class.ilMultiSelectInputGUI.php');
2540 $this->lng->txt(
'delete_inactive_user_accounts_include_roles'),
2541 'cron_inactive_user_delete_include_roles'
2543 $sub_mlist->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_include_roles_desc'));
2545 foreach($rbacreview->getGlobalRoles() as $role_id)
2547 if( $role_id != ANONYMOUS_ROLE_ID )
2548 $roles[$role_id] = $ilObjDataCache->lookupTitle($role_id);
2550 $sub_mlist->setOptions($roles);
2551 $setting = $ilSetting->get(
'cron_inactive_user_delete_include_roles', null);
2552 if($setting === null) $setting = array();
2553 else $setting = explode(
',', $setting);
2554 $sub_mlist->setValue($setting);
2555 $sub_mlist->setWidth(300);
2556 #$sub_mlist->setHeight(100);
2557 $cb->addSubItem($sub_mlist);
2561 $this->lng->txt(
'delete_inactive_user_accounts_period'),
2562 'cron_inactive_user_delete_period'
2564 $sub_text->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_period_desc'));
2565 $sub_text->setValue($ilSetting->get(
"cron_inactive_user_delete_period", $default_setting));
2566 $sub_text->setSize(2);
2567 $sub_text->setMaxLength(3);
2568 $cb->addSubItem($sub_text);
2578 $this->form->addItem($cb);
2583 $cb->
setInfo($this->lng->txt(
"check_link_desc"));
2584 if ($ilSetting->get(
"cron_link_check"))
2586 $cb->setChecked(
true);
2588 $this->form->addItem($cb);
2592 "0" => $lng->txt(
"never"),
2593 "1" => $lng->txt(
"daily"),
2594 "2" => $lng->txt(
"weekly"),
2595 "3" => $lng->txt(
"monthly"),
2596 "4" => $lng->txt(
"quarterly")
2598 $si =
new ilSelectInputGUI($this->lng->txt(
"check_web_resources"),
"cron_web_resource_check");
2600 $si->setInfo($this->lng->txt(
"check_web_resources_desc"));
2601 $si->setValue($ilSetting->get(
"cron_web_resource_check"));
2602 $this->form->addItem($si);
2605 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cron_lucene_index"),
"cron_lucene_index");
2606 $cb->
setInfo($this->lng->txt(
"cron_lucene_index_info"));
2607 if ($ilSetting->get(
"cron_lucene_index"))
2609 $cb->setChecked(
true);
2611 $this->form->addItem($cb);
2615 "0" => $lng->txt(
"cron_mail_notification_never"),
2616 "1" => $lng->txt(
"cron_mail_notification_cron")
2618 $si =
new ilSelectInputGUI($this->lng->txt(
"cron_mail_notification"),
"mail_notification");
2620 $si->setInfo($this->lng->txt(
"cron_mail_notification_desc"));
2621 $si->setValue($ilSetting->get(
"mail_notification"));
2622 $this->form->addItem($si);
2624 if($ilSetting->get(
"mail_notification") ==
'1')
2626 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cron_mail_notification_message"),
"mail_notification_message");
2627 $cb->
setInfo($this->lng->txt(
"cron_mail_notification_message_info"));
2628 if ($ilSetting->get(
"mail_notification_message"))
2630 $cb->setChecked(
true);
2632 $this->form->addItem($cb);
2636 $dq_settings =
new ilSetting(
'disk_quota');
2637 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"enable_disk_quota"),
"enable_disk_quota");
2638 $cb->
setInfo($this->lng->txt(
"enable_disk_quota_info"));
2639 if ($dq_settings->get(
'enabled'))
2641 $cb->setChecked(
true);
2643 $this->form->addItem($cb);
2645 $cb_reminder =
new ilCheckboxInputGUI($this->lng->txt(
"enable_disk_quota_reminder_mail"),
"enable_disk_quota_reminder_mail");
2646 $cb_reminder->
setInfo($this->lng->txt(
"disk_quota_reminder_mail_desc"));
2647 if ($dq_settings->get(
'reminder_mail_enabled'))
2649 $cb_reminder->setChecked(
true);
2651 $cb->addSubItem($cb_reminder);
2654 $cb_prop_summary=
new ilCheckboxInputGUI($lng->txt(
"enable_disk_quota_summary_mail"),
"enable_disk_quota_summary_mail");
2656 $cb_prop_summary->setChecked((
int)$dq_settings->get(
'summary_mail_enabled', 0) == 1);
2657 $cb_prop_summary->setInfo($lng->txt(
'enable_disk_quota_summary_mail_desc'));
2658 $cb->addSubItem($cb_prop_summary);
2661 $summary_rcpt =
new ilTextInputGUI($lng->txt(
"disk_quota_summary_rctp"),
"disk_quota_summary_rctp");
2662 $summary_rcpt->
setValue($dq_settings->get(
'summary_rcpt',
''));
2663 $summary_rcpt->setInfo($lng->txt(
'disk_quota_summary_rctp_desc'));
2664 $cb_prop_summary->addSubItem($summary_rcpt);
2666 $this->form->addCommandButton(
"saveCronJobs", $lng->txt(
"save"));
2668 $this->form->setTitle($lng->txt(
"cron_jobs"));
2669 $this->form->setDescription($lng->txt(
"cron_jobs_desc"));
2670 $this->form->setFormAction($this->ctrl->getFormAction($this));
2682 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2684 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2688 if ($this->form->checkInput())
2690 $ilSetting->set(
"cron_user_check",
$_POST[
"cron_user_check"]);
2691 $ilSetting->set(
"cron_link_check",
$_POST[
"cron_link_check"]);
2692 $ilSetting->set(
"cron_web_resource_check",
$_POST[
"cron_web_resource_check"]);
2693 $ilSetting->set(
"cron_lucene_index",
$_POST[
"cron_lucene_index"]);
2694 $ilSetting->set(
"mail_notification",
$_POST[
"mail_notification"]);
2695 $ilSetting->set(
'mail_notification_message',
$_POST[
'mail_notification_message'] ? 1 : 0);
2697 $ilSetting->set(
'cron_inactive_user_delete',
$_POST[
'cron_inactive_user_delete']);
2698 $ilSetting->set(
'cron_inactive_user_delete_interval',
$_POST[
'cron_inactive_user_delete_interval']);
2699 $setting = implode(
',',
$_POST[
'cron_inactive_user_delete_include_roles']);
2700 if( !strlen($setting) ) $setting = null;
2701 $ilSetting->set(
'cron_inactive_user_delete_include_roles', $setting);
2702 $ilSetting->set(
'cron_inactive_user_delete_period',
$_POST[
'cron_inactive_user_delete_period']);
2705 $dq_settings =
new ilSetting(
'disk_quota');
2706 $dq_settings->set(
'enabled',
$_POST[
'enable_disk_quota'] ? 1 : 0);
2707 $dq_settings->set(
'reminder_mail_enabled',
$_POST[
'enable_disk_quota_reminder_mail'] ? 1 : 0);
2710 $dq_settings->set(
'summary_mail_enabled',
$_POST[
'enable_disk_quota_summary_mail'] ? 1 : 0);
2714 $ilCtrl->redirect($this,
"showCronJobs");
2719 $this->form->setValuesByPost();
2720 $tpl->setContent($this->form->getHtml());
2739 $tpl->setContent($this->form->getHTML());
2749 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2753 $ti =
new ilTextInputGUI($this->lng->txt(
"firstname"),
"admin_firstname");
2756 $ti->setRequired(
true);
2757 $ti->setValue($ilSetting->get(
"admin_firstname"));
2758 $this->form->addItem($ti);
2761 $ti =
new ilTextInputGUI($this->lng->txt(
"lastname"),
"admin_lastname");
2764 $ti->setRequired(
true);
2765 $ti->setValue($ilSetting->get(
"admin_lastname"));
2766 $this->form->addItem($ti);
2769 $ti =
new ilTextInputGUI($this->lng->txt(
"title"),
"admin_title");
2772 $ti->setValue($ilSetting->get(
"admin_title"));
2773 $this->form->addItem($ti);
2776 $ti =
new ilTextInputGUI($this->lng->txt(
"position"),
"admin_position");
2779 $ti->setValue($ilSetting->get(
"admin_position"));
2780 $this->form->addItem($ti);
2783 $ti =
new ilTextInputGUI($this->lng->txt(
"institution"),
"admin_institution");
2786 $ti->setValue($ilSetting->get(
"admin_institution"));
2787 $this->form->addItem($ti);
2790 $ti =
new ilTextInputGUI($this->lng->txt(
"street"),
"admin_street");
2794 $ti->setValue($ilSetting->get(
"admin_street"));
2795 $this->form->addItem($ti);
2798 $ti =
new ilTextInputGUI($this->lng->txt(
"zipcode"),
"admin_zipcode");
2802 $ti->setValue($ilSetting->get(
"admin_zipcode"));
2803 $this->form->addItem($ti);
2810 $ti->setValue($ilSetting->get(
"admin_city"));
2811 $this->form->addItem($ti);
2814 $ti =
new ilTextInputGUI($this->lng->txt(
"country"),
"admin_country");
2818 $ti->setValue($ilSetting->get(
"admin_country"));
2819 $this->form->addItem($ti);
2822 $ti =
new ilTextInputGUI($this->lng->txt(
"phone"),
"admin_phone");
2826 $ti->setValue($ilSetting->get(
"admin_phone"));
2827 $this->form->addItem($ti);
2830 $ti =
new ilTextInputGUI($this->lng->txt(
"email"),
"admin_email");
2833 $ti->setRequired(
true);
2834 $ti->setValue($ilSetting->get(
"admin_email"));
2835 $this->form->addItem($ti);
2838 $ti =
new ilEmailInputGUI($this->lng->txt(
"feedback_recipient"),
"feedback_recipient");
2839 $ti->setValue($ilSetting->get(
"feedback_recipient"));
2840 $this->form->addItem($ti);
2843 $ti =
new ilEmailInputGUI($this->lng->txt(
"error_recipient"),
"error_recipient");
2844 $ti->setValue($ilSetting->get(
"error_recipient"));
2845 $this->form->addItem($ti);
2847 $this->form->addCommandButton(
"saveContactInformation", $lng->txt(
"save"));
2849 $this->form->setTitle($lng->txt(
"contact_data"));
2850 $this->form->setFormAction($this->ctrl->getFormAction($this));
2862 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2864 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2868 if ($this->form->checkInput())
2870 $fs = array(
"admin_firstname",
"admin_lastname",
"admin_title",
"admin_position",
2871 "admin_institution",
"admin_street",
"admin_zipcode",
"admin_city",
2872 "admin_country",
"admin_phone",
"admin_email",
2873 "feedback_recipient",
"error_recipient");
2876 $ilSetting->set($f,
$_POST[$f]);
2879 $ilCtrl->redirect($this,
"showContactInformation");
2884 $this->form->setValuesByPost();
2885 $tpl->setContent($this->form->getHtml());
2904 $tpl->setContent($this->form->getHTML());
2914 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2918 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"soap_user_administration"),
"soap_user_administration");
2919 $cb->
setInfo($this->lng->txt(
"soap_user_administration_desc"));
2920 if ($ilSetting->get(
"soap_user_administration"))
2922 $cb->setChecked(
true);
2924 $this->form->addItem($cb);
2927 $wsdl =
new ilTextInputGUI($this->lng->txt(
'soap_wsdl_path'),
'soap_wsdl_path');
2928 $wsdl->
setInfo(sprintf($this->lng->txt(
'soap_wsdl_path_info'),
"<br />'".ILIAS_HTTP_PATH.
"/webservice/soap/server.php?wsdl'"));
2929 $wsdl->setValue((
string)$ilSetting->get(
'soap_wsdl_path'));
2931 $wsdl->setMaxLength(255);
2932 $this->form->addItem($wsdl);
2934 $this->form->addCommandButton(
"saveWebServices", $lng->txt(
"save"));
2936 $this->form->setTitle($lng->txt(
"webservices"));
2937 $this->form->setFormAction($this->ctrl->getFormAction($this));
2949 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2951 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2955 if ($this->form->checkInput())
2957 $ilSetting->set(
'soap_user_administration', $this->form->getInput(
'soap_user_administration'));
2958 $ilSetting->set(
'soap_wsdl_path', trim($this->form->getInput(
'soap_wsdl_path')));
2961 $ilCtrl->redirect($this,
'showWebServices');
2966 $this->form->setValuesByPost();
2967 $tpl->setContent($this->form->getHtml());
2984 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.java_settings.html',
'Modules/SystemFolder');
2986 $GLOBALS[
'lng']->loadLanguageModule(
'search');
2988 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
2990 $toolbar->addButton($this->lng->txt(
'lucene_create_ini'),
2991 $this->ctrl->getLinkTarget($this,
'createJavaServerIni'));
2992 $tpl->setVariable(
'ACTION_BUTTONS',$toolbar->getHTML());
2996 $tpl->setVariable(
'SETTINGS_TABLE',$this->form->getHTML());
3005 #include_once './Services/WebServices/RPC/classes/classs.ilRPCServerSettings.php';
3006 #$ini = ilRPCServerSettings::createServerIni();
3007 #ilUtil::deliverData($ini, 'ilServer.ini','text/plain');
3011 $this->tpl->setContent($this->form->getHTML());
3016 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
3020 $GLOBALS[
'lng']->loadLanguageModule(
'search');
3022 $this->form->setTitle($this->lng->txt(
'lucene_tbl_create_ini'));
3023 $this->form->setFormAction($this->ctrl->getFormAction($this,
'createJavaServerIni'));
3024 $this->form->addCommandButton(
'downloadJavaServerIni',$this->lng->txt(
'lucene_download_ini'));
3025 $this->form->addCommandButton(
'showJavaServer', $this->lng->txt(
'cancel'));
3029 $ip->
setInfo($this->lng->txt(
'lucene_host_info'));
3030 $ip->setMaxLength(128);
3032 $ip->setRequired(
true);
3033 $this->form->addItem($ip);
3038 $port->setMinValue(1);
3039 $port->setMaxValue(65535);
3040 $port->setRequired(
true);
3041 $this->form->addItem($port);
3046 $path->setMaxLength(1024);
3047 $path->setInfo($this->lng->txt(
'lucene_index_path_info'));
3048 $path->setRequired(
true);
3049 $this->form->addItem(
$path);
3054 $log->setMaxLength(1024);
3055 $log->setInfo($this->lng->txt(
'lucene_log_info'));
3056 $log->setRequired(
true);
3057 $this->form->addItem(
$log);
3066 'FATAL' =>
'FATAL'));
3067 $lev->setValue(
'INFO');
3068 $lev->setRequired(
true);
3069 $this->form->addItem($lev);
3075 $cpu->setMaxLength(2);
3076 $cpu->setMinValue(1);
3077 $cpu->setRequired(
true);
3078 $this->form->addItem($cpu);
3082 $fs->
setInfo($this->lng->txt(
'lucene_max_fs_info'));
3085 $fs->setMaxLength(4);
3086 $fs->setMinValue(1);
3087 $fs->setRequired(
true);
3088 $this->form->addItem($fs);
3100 if($this->form->checkInput())
3102 include_once
'./Services/WebServices/RPC/classes/class.ilRpcIniFileWriter.php';
3104 $ini->setHost($this->form->getInput(
'ho'));
3105 $ini->setPort($this->form->getInput(
'po'));
3106 $ini->setIndexPath($this->form->getInput(
'in'));
3107 $ini->setLogPath($this->form->getInput(
'lo'));
3108 $ini->setLogLevel($this->form->getInput(
'le'));
3109 $ini->setNumThreads($this->form->getInput(
'cp'));
3110 $ini->setMaxFileSize($this->form->getInput(
'fs'));
3117 $this->form->setValuesByPost();
3120 $this->tpl->setContent($this->form->getHTML());
3131 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
3135 $ti =
new ilTextInputGUI($this->lng->txt(
"java_server_host"),
"rpc_server_host");
3138 $ti->setValue($ilSetting->get(
"rpc_server_host"));
3139 $this->form->addItem($ti);
3142 $ti =
new ilNumberInputGUI($this->lng->txt(
"java_server_port"),
"rpc_server_port");
3145 $ti->setValue($ilSetting->get(
"rpc_server_port"));
3146 $this->form->addItem($ti);
3150 $this->form->addCommandButton(
"saveJavaServer", $lng->txt(
"save"));
3152 $this->form->setTitle($lng->txt(
"java_server"));
3153 $this->form->setDescription($lng->txt(
"java_server_info").
3154 '<br /><a href="Services/WebServices/RPC/lib/README.txt" target="_blank">'.
3155 $lng->txt(
"java_server_readme").
'</a>');
3156 $this->form->setFormAction($this->ctrl->getFormAction($this));
3168 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
3170 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
3174 if ($this->form->checkInput())
3176 $ilSetting->set(
"rpc_server_host", trim(
$_POST[
"rpc_server_host"]));
3177 $ilSetting->set(
"rpc_server_port", trim(
$_POST[
"rpc_server_port"]));
3179 $ilCtrl->redirect($this,
"showJavaServer");
3186 $this->form->setValuesByPost();
3187 $tpl->setContent($this->form->getHtml());
3202 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
3204 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
3207 require_once
'classes/class.ilProxySettings.php';
3210 $this->form->setValuesByArray(array(
3220 $tpl->setContent($this->form->getHTML());
3235 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
3237 $this->lng->txt(
'proxy_connectable')
3242 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
3244 $this->lng->txt(
'proxy_not_connectable')
3246 ilUtil::sendFailure($this->lng->txt(
'proxy_pear_net_socket_error').
': '.$e->getMessage());
3261 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
3263 $this->ilias->raiseError($lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
3266 require_once
'classes/class.ilProxySettings.php';
3269 $isFormValid = $this->form->checkInput();
3271 ->setHost(trim($this->form->getInput(
'proxy_host')))
3272 ->setPort(trim($this->form->getInput(
'proxy_port')));
3279 $isFormValid =
false;
3280 $this->form->getItemByPostVar(
'proxy_host')->setAlert($lng->txt(
'msg_input_is_required'));
3284 $isFormValid =
false;
3285 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'msg_input_is_required'));
3291 $isFormValid =
false;
3292 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'proxy_port_numeric'));
3311 $this->form->setValuesByPost();
3312 $tpl->setContent($this->form->getHTML());
3328 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
3330 $this->form->setFormAction($ilCtrl->getFormAction($this,
'saveProxy'));
3334 $proxs->
setInfo($lng->txt(
'proxy_status_info'));
3335 $proxs->setValue(1);
3336 $this->form->addItem($proxs);
3340 $proxs->addSubItem($proxa);
3343 $prox =
new ilTextInputGUI($lng->txt(
'proxy_host'),
'proxy_host');
3344 $prox->
setInfo($lng->txt(
'proxy_host_info'));
3345 $proxs->addSubItem($prox);
3348 $proxp =
new ilTextInputGUI($lng->txt(
'proxy_port'),
'proxy_port');
3349 $proxp->
setInfo($lng->txt(
'proxy_port_info'));
3350 $proxp->setSize(10);
3351 $proxp->setMaxLength(10);
3352 $proxs->addSubItem($proxp);
3355 $this->form->addCommandButton(
'saveProxy', $lng->txt(
'save'));
3365 $a_target = SYSTEM_FOLDER_ID;
3367 if ($ilAccess->checkAccess(
"read",
"", $a_target))
3374 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
3376 $_GET[
"cmd"] =
"frameset";
3377 $_GET[
"target"] =
"";
3378 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
3381 include(
"repository.php");
3385 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);