36 require_once
"./classes/class.ilObjectGUI.php";
54 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,
false);
56 $this->lng->loadLanguageModule(
"administration");
63 $next_class = $this->ctrl->getNextClass($this);
67 case 'ilpermissiongui':
68 include_once(
"./classes/class.ilPermissionGUI.php");
70 $ret =& $this->ctrl->forwardCommand($perm_gui);
75 $cmd = $this->ctrl->getCmd(
"view");
95 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
97 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
101 $this->objectList = array();
102 $this->data[
"data"] = array();
103 $this->data[
"ctrl"] = array();
104 $this->data[
"cols"] = array(
"type",
"title");
106 $childs = $this->tree->getChilds($this->object->getRefId(),
$_GET[
"order"],
$_GET[
"direction"]);
108 foreach ($childs as $key => $val)
111 if (!$rbacsystem->checkAccess(
"visible",$val[
"ref_id"]))
117 if ($this->objDefinition->getDevMode($val[
"type"]))
123 if ($val[
"ref_id"] == RECOVERY_FOLDER_ID and !$this->tree->getChilds(RECOVERY_FOLDER_ID))
129 $this->data[
"data"][] = array(
130 "type" => $val[
"type"],
131 "title" => $val[
"title"].
"#separator#".$val[
"desc"],
132 "ref_id" => $val[
"ref_id"]
140 $this->data[
"data"][] = array(
142 "title" => $this->lng->txt(
"repository_admin").
"#separator#".
143 $this->lng->txt(
"repository_admin_desc"),
144 "ref_id" => ROOT_FOLDER_ID
147 $this->maxcount = count($this->data[
"data"]);
150 if (
$_GET[
"sort_by"] ==
"")
152 $_GET[
"sort_by"] =
"title";
157 foreach ($this->data[
"data"] as $key => $val)
159 $this->data[
"ctrl"][$key] = array(
160 "type" => $val[
"type"],
161 "ref_id" => $val[
"ref_id"]
164 unset($this->data[
"data"][$key][
"ref_id"]);
173 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
188 include_once
"./Services/Table/classes/class.ilTableGUI.php";
191 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
193 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.obj_tbl_rows.html");
197 if (!$this->call_by_reference)
199 $this->ctrl->setParameter($this,
"obj_id", $this->obj_id);
202 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
208 $tbl->setTitle($this->lng->txt(
"obj_".$this->object->getType()),
"icon_".$this->object->getType().
".gif",$this->lng->txt(
"obj_".$this->object->getType()));
217 $header_names[] =
"";
218 $header_names[] = $this->lng->txt(
"obj_cat");
220 $tbl->setHeaderNames($header_names);
222 $header_params = $this->ctrl->getParameterArray($this,
"view");
223 $tbl->setHeaderVars($this->data[
"cols"],$header_params);
224 $tbl->setColumnWidth(array(
"15",
"99%"));
227 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
228 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
231 $tbl->setMaxCount($this->maxcount);
234 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
235 $tbl->disable(
"numinfo");
240 if (is_array($this->data[
"data"][0]))
243 for ($i=0; $i < count($this->data[
"data"]); $i++)
245 $data = $this->data[
"data"][$i];
246 $ctrl = $this->data[
"ctrl"][$i];
251 $this->tpl->setCurrentBlock(
"table_cell");
252 $this->tpl->setVariable(
"CELLSTYLE",
"tblrow1");
253 $this->tpl->parseCurrentBlock();
255 if ($ctrl[
"ref_id"] != ROOT_FOLDER_ID)
257 foreach (
$data as $key => $val)
261 $class_name = $this->objDefinition->getClassName($obj_type);
262 $class = strtolower(
"ilObj".$class_name.
"GUI");
263 $this->ctrl->setParameterByClass($class,
"ref_id", $ctrl[
"ref_id"]);
264 $this->ctrl->setParameterByClass($class,
"obj_id", $ctrl[
"ref_id"]);
265 $link = $this->ctrl->getLinkTargetByClass($class,
"view");
269 $name_field = explode(
"#separator#",$val);
272 if ($key ==
"title" || $key ==
"type")
274 $this->tpl->setCurrentBlock(
"begin_link");
275 $this->tpl->setVariable(
"LINK_TARGET", $link);
277 $this->tpl->parseCurrentBlock();
278 $this->tpl->touchBlock(
"end_link");
281 $this->tpl->setCurrentBlock(
"text");
290 $this->tpl->setVariable(
"TEXT_CONTENT", $name_field[0]);
292 $this->tpl->setCurrentBlock(
"subtitle");
293 $this->tpl->setVariable(
"DESC", $name_field[1]);
294 $this->tpl->parseCurrentBlock();
298 $this->tpl->setVariable(
"TEXT_CONTENT", $val);
301 $this->tpl->parseCurrentBlock();
302 $this->tpl->setCurrentBlock(
"table_cell");
303 $this->tpl->parseCurrentBlock();
314 $this->tpl->setCurrentBlock(
"text");
315 $this->tpl->setVariable(
"TEXT_CONTENT", $val);
316 $this->tpl->parseCurrentBlock();
318 $this->tpl->setCurrentBlock(
"table_cell");
319 $this->tpl->parseCurrentBlock();
322 $this->tpl->setCurrentBlock(
"begin_link");
323 $this->ctrl->setParameterByClass(
"iladministrationgui",
324 "admin_mode",
"repository");
325 $this->ctrl->setParameterByClass(
"iladministrationgui",
326 "ref_id", ROOT_FOLDER_ID);
327 $this->tpl->setVariable(
"LINK_TARGET",
328 $this->ctrl->getLinkTargetByClass(
"iladministrationgui",
"frameset"));
329 $this->tpl->setVariable(
"FRAME_TARGET",
331 $this->ctrl->clearParametersByClass(
"iladministrationgui");
332 $this->tpl->parseCurrentBlock();
333 $this->tpl->touchBlock(
"end_link");
337 $name_field = explode(
"#separator#",
$data[
"title"]);
338 $this->tpl->setCurrentBlock(
"text");
339 $this->tpl->setVariable(
"TEXT_CONTENT", $name_field[0]);
340 $this->tpl->setCurrentBlock(
"subtitle");
341 $this->tpl->setVariable(
"DESC", $name_field[1]);
342 $this->tpl->parseCurrentBlock();
344 $this->tpl->setCurrentBlock(
"table_cell");
345 $this->tpl->parseCurrentBlock();
349 $this->tpl->setCurrentBlock(
"tbl_content");
350 $this->tpl->setVariable(
"CSS_ROW", $css_row);
351 $this->tpl->parseCurrentBlock();
357 $this->tpl->setCurrentBlock(
"notfound");
358 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
359 $this->tpl->setVariable(
"NUM_COLS", $num);
360 $this->tpl->parseCurrentBlock();
368 $settings = $this->ilias->getAllSettings();
392 if (empty($_POST[
"admin_firstname"]) or empty($_POST[
"admin_lastname"])
393 or empty($_POST[
"admin_street"]) or empty($_POST[
"admin_zipcode"])
394 or empty($_POST[
"admin_country"]) or empty($_POST[
"admin_city"])
395 or empty($_POST[
"admin_phone"]) or empty($_POST[
"admin_email"]))
403 if (!
ilUtil::is_email($_POST[
"feedback_recipient"]) and !empty($_POST[
"feedback_recipient"]) and $form_valid)
405 ilUtil::sendInfo($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"feedback_recipient").
"'<br/>".$this->lng->txt(
"email_not_valid"));
410 if (!
ilUtil::is_email($_POST[
"error_recipient"]) and !empty($_POST[
"error_recipient"]) and $form_valid)
412 ilUtil::sendInfo($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"error_recipient").
"'<br/>".$this->lng->txt(
"email_not_valid"));
419 ilUtil::sendInfo($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"email").
"'<br/>".$this->lng->txt(
"email_not_valid"));
424 foreach ($_POST as $key => $val)
438 $settings[
"feedback_recipient"] = $_POST[
"feedback_recipient"];
439 $settings[
"error_recipient"] = $_POST[
"error_recipient"];
442 $settings[
"pub_section"] = $_POST[
"pub_section"];
443 $settings[
"open_google"] = $_POST[
"open_google"];
444 $settings[
"default_repository_view"] = $_POST[
"default_rep_view"];
445 $settings[
"password_assistance"] = $_POST[
"password_assistance"];
446 $settings[
'short_inst_title'] = $_POST[
'short_inst_title'];
447 $settings[
"passwd_auto_generate"] = $_POST[
"password_auto_generate"];
449 $settings[
"enable_trash"] = $_POST[
"enable_trash"];
453 $settings[
"admin_firstname"] = $_POST[
"admin_firstname"];
454 $settings[
"admin_lastname"] = $_POST[
"admin_lastname"];
455 $settings[
"admin_title"] = $_POST[
"admin_title"];
456 $settings[
"admin_position"] = $_POST[
"admin_position"];
457 $settings[
"admin_institution"] = $_POST[
"admin_institution"];
458 $settings[
"admin_street"] = $_POST[
"admin_street"];
459 $settings[
"admin_zipcode"] = $_POST[
"admin_zipcode"];
460 $settings[
"admin_city"] = $_POST[
"admin_city"];
461 $settings[
"admin_country"] = $_POST[
"admin_country"];
462 $settings[
"admin_phone"] = $_POST[
"admin_phone"];
463 $settings[
"admin_email"] = $_POST[
"admin_email"];
466 $settings[
"cron_user_check"] = $_POST[
"cron_user_check"];
467 $settings[
"cron_link_check"] = $_POST[
"cron_link_check"];
468 $settings[
"cron_web_resource_check"] = $_POST[
"cron_web_resource_check"];
469 $settings[
"cron_lucene_index"] = $_POST[
"cron_lucene_index"];
470 $settings[
"forum_notification"] = $_POST[
"forum_notification"];
471 $settings[
"mail_notification"] = $_POST[
"mail_notification"];
474 $settings[
'frm_store_new'] = $_POST[
'frm_store_new'];
477 $settings[
"soap_user_administration"] = $_POST[
"soap_user_administration"];
482 $settings[
"suffix_repl_additional"] = $_POST[
"suffix_repl_additional"];
485 $settings[
"links_dynamic"] = $_POST[
"links_dynamic"];
494 $this->ilias->setSetting(
"feedback_recipient",$_POST[
"feedback_recipient"]);
495 $this->ilias->setSetting(
"error_recipient",$_POST[
"error_recipient"]);
523 $this->ilias->setSetting(
"pub_section",$_POST[
"pub_section"]);
524 $this->ilias->setSetting(
'open_google',$_POST[
'open_google']);
525 $this->ilias->setSetting(
"default_repository_view",$_POST[
"default_rep_view"]);
527 $this->ilias->setSetting(
'password_assistance',$_POST[
'password_assistance']);
528 $this->ilias->setSetting(
'passwd_auto_generate',$_POST[
'password_auto_generate']);
531 $this->ilias->setSetting(
'short_inst_name',$_POST[
'short_inst_name']);
532 $this->ilias->setSetting(
'enable_trash',$_POST[
'enable_trash']);
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"]);
561 $this->ilias->setSetting(
"soap_user_administration",$_POST[
"soap_user_administration"]);
562 $this->ilias->setSetting(
"rpc_server_host",trim($_POST[
"rpc_server_host"]));
563 $this->ilias->setSetting(
"rpc_server_port",trim($_POST[
"rpc_server_port"]));
569 $this->ilias->setSetting(
'frm_store_new',$_POST[
'frm_store_new']);
572 $this->ilias->ini->write();
575 $this->ilias->setSetting(
'links_dynamic',$_POST[
'links_dynamic']);
577 $this->ilias->setSetting(
"suffix_repl_additional",
580 $settings = $this->ilias->getAllSettings();
583 $feedback = $this->lng->txt(
"saved_successfully");
584 if (trim($_POST[
"rpc_server_host"]) !=
"" ||
585 trim($_POST[
"rpc_server_port"]) !=
"")
587 include_once
'Services/WebServices/RPC/classes/class.ilRPCServerSettings.php';
589 if(!$rpc_settings->pingServer())
591 $feedback .=
"<br />\n".$this->lng->txt(
'java_server_no_connection');
597 $ilCtrl->redirect($this,
"view");
603 include_once(
"./Modules/Wiki/classes/class.ilWikiDBCreator.php");
617 $this->tpl->addBlockFile(
"SYSTEMSETTINGS",
"systemsettings",
"tpl.adm_basicdata.html");
619 $settings = $this->ilias->getAllSettings();
622 $this->tpl->setVariable(
"HREF_CREATE_WIKI_TABLE",
623 $ilCtrl->getLinkTarget($this,
"createWikiTables"));
627 $this->tpl->setVariable(
"TXT_BASIC_DATA", $this->lng->txt(
"basic_data"));
633 $this->tpl->setVariable(
"TXT_ILIAS_VERSION", $this->lng->txt(
"ilias_version"));
634 $this->tpl->setVariable(
"TXT_DB_VERSION", $this->lng->txt(
"db_version"));
635 $this->tpl->setVariable(
"TXT_CLIENT_ID", $this->lng->txt(
"client_id"));
636 $this->tpl->setVariable(
"TXT_INST_ID", $this->lng->txt(
"inst_id"));
637 $this->tpl->setVariable(
"TXT_ACTIVATE_HTTPS",$this->lng->txt(
'activate_https'));
638 $this->tpl->setVariable(
"TXT_HOSTNAME", $this->lng->txt(
"host"));
639 $this->tpl->setVariable(
"TXT_IP_ADDRESS", $this->lng->txt(
"ip_address"));
640 $this->tpl->setVariable(
"TXT_SERVER_DATA", $this->lng->txt(
"server_data"));
641 $this->tpl->setVariable(
"TXT_SERVER_PORT", $this->lng->txt(
"port"));
642 $this->tpl->setVariable(
"TXT_SERVER_SOFTWARE", $this->lng->txt(
"server_software"));
643 $this->tpl->setVariable(
"TXT_HTTP_PATH", $this->lng->txt(
"http_path"));
644 $this->tpl->setVariable(
"TXT_ABSOLUTE_PATH", $this->lng->txt(
"absolute_path"));
645 $this->tpl->setVariable(
"TXT_INST_NAME", $this->lng->txt(
"inst_name"));
646 $this->tpl->setVariable(
"TXT_INST_INFO", $this->lng->txt(
"inst_info"));
648 $this->tpl->setVariable(
"TXT_FEEDBACK_RECIPIENT", $this->lng->txt(
"feedback_recipient"));
649 $this->tpl->setVariable(
"TXT_ERROR_RECIPIENT", $this->lng->txt(
"error_recipient"));
650 $this->tpl->setVariable(
"TXT_HEADER_TITLE", $this->lng->txt(
"header_title"));
651 $this->tpl->setVariable(
"TXT_SHORT_NAME", $this->lng->txt(
"short_inst_name"));
652 $this->tpl->setVariable(
"TXT_SHORT_NAME_INFO", $this->lng->txt(
"short_inst_name_info"));
654 $this->tpl->setVariable(
"VAL_SHORT_INST_NAME", $settings[
'short_inst_name']);
655 $this->tpl->setVariable(
"TXT_CHANGE", $this->lng->txt(
"change"));
656 $this->tpl->setVariable(
"LINK_HEADER_TITLE",
657 $this->ctrl->getLinkTarget($this,
"changeHeaderTitle"));
658 $this->tpl->setVariable(
"VAL_HEADER_TITLE",
661 include_once (
"./classes/class.ilDBUpdate.php");
662 $dbupdate =
new ilDBUpdate($this->ilias->db,
true);
664 if (!$dbupdate->getDBVersionStatus())
666 $this->tpl->setVariable(
"TXT_DB_UPDATE",
" (<span class=\"warning\">".$this->lng->txt(
"db_need_update").
"</span>)");
670 $this->tpl->setVariable(
"TXT_PUB_SECTION", $this->lng->txt(
"pub_section"));
673 $this->tpl->setVariable(
'TXT_SEARCH_ENGINE',$this->lng->txt(
'search_engine'));
674 $this->tpl->setVariable(
'TXT_ENABLE_SEARCH_ENGINE',$this->lng->txt(
'enable_search_engine'));
675 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
679 if(!$robot_settings->checkModRewrite())
682 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'disabled="disabled"');
684 $this->tpl->setCurrentBlock(
'search_engine_alert');
686 $this->tpl->setVariable(
'SE_ALT_ALERT',$this->lng->txt(
'alert'));
687 $this->tpl->setVariable(
'TXT_SE_ALERT',$this->lng->txt(
'mod_rewrite_disabled'));
688 $this->tpl->parseCurrentBlock();
690 elseif(!$robot_settings->checkRewrite())
693 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'disabled="disabled"');
695 $this->tpl->setCurrentBlock(
'search_engine_alert');
697 $this->tpl->setVariable(
'SE_ALT_ALERT',$this->lng->txt(
'alert'));
698 $this->tpl->setVariable(
'TXT_SE_ALERT',$this->lng->txt(
'allow_override_alert'));
699 $this->tpl->parseCurrentBlock();
701 if($settings[
'open_google'] and !$error_se)
703 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'checked="checked"');
706 $this->tpl->setVariable(
"TXT_DEFAULT_REPOSITORY_VIEW", $this->lng->txt(
"def_repository_view"));
707 $this->tpl->setVariable(
"TXT_FLAT", $this->lng->txt(
"flatview"));
708 $this->tpl->setVariable(
"TXT_TREE", $this->lng->txt(
"treeview"));
710 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_ASSISTANCE", $this->lng->txt(
"enable_password_assistance"));
711 $this->tpl->setVariable(
"TXT_PASSWORD_AUTO_GENERATE_INFO",$this->lng->txt(
'passwd_generation_info'));
719 $this->tpl->setVariable(
"TXT_PASSWORD_ASSISTANCE_INFO", $this->lng->txt(
"password_assistance_info"));
721 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_GENERATION",$this->lng->txt(
'passwd_generation'));
724 $this->tpl->setVariable(
"TXT_FILE_SUFFIX_REPL", $this->lng->txt(
"file_suffix_repl"));
725 $this->tpl->setVariable(
"INFO_FILE_SUFFIX_REPL",
726 $this->lng->txt(
"file_suffix_repl_info").
" ".SUFFIX_REPL_DEFAULT);
728 $this->tpl->setVariable(
"TXT_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic'));
729 $this->tpl->setVariable(
"INFO_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic_info'));
731 $this->tpl->setVariable(
"TXT_ENABLE_TRASH",$this->lng->txt(
'enable_trash'));
732 $this->tpl->setVariable(
"INFO_ENABLE_TRASH",$this->lng->txt(
'enable_trash_info'));
735 $this->tpl->setVariable(
"TXT_SOFTWARE", $this->lng->txt(
"3rd_party_software"));
736 $this->tpl->setVariable(
"TXT_CONVERT_PATH", $this->lng->txt(
"path_to_convert"));
737 $this->tpl->setVariable(
"TXT_ZIP_PATH", $this->lng->txt(
"path_to_zip"));
738 $this->tpl->setVariable(
"TXT_UNZIP_PATH", $this->lng->txt(
"path_to_unzip"));
739 $this->tpl->setVariable(
"TXT_JAVA_PATH", $this->lng->txt(
"path_to_java"));
740 $this->tpl->setVariable(
"TXT_HTMLDOC_PATH", $this->lng->txt(
"path_to_htmldoc"));
741 $this->tpl->setVariable(
"TXT_LATEX_URL", $this->lng->txt(
"url_to_latex"));
744 $this->tpl->setVariable(
"TXT_CRON",$this->lng->txt(
'cron_jobs'));
745 $this->tpl->setVariable(
"TXT_CRON_DESC",$this->lng->txt(
'cron_jobs_desc'));
746 $this->tpl->setVariable(
"TXT_CRON_USER_ACCOUNTS",$this->lng->txt(
'check_user_accounts'));
747 $this->tpl->setVariable(
"CRON_USER_ACCOUNTS_DESC",$this->lng->txt(
'check_user_accounts_desc'));
748 $this->tpl->setVariable(
"TXT_CRON_LINK_CHECK",$this->lng->txt(
'check_link'));
749 $this->tpl->setVariable(
"CRON_LINK_CHECK_DESC",$this->lng->txt(
'check_link_desc'));
750 $this->tpl->setVariable(
"TXT_CRON_WEB_RESOURCE_CHECK",$this->lng->txt(
'check_web_resources'));
751 $this->tpl->setVariable(
"CRON_WEB_RESOURCE_CHECK_DESC",$this->lng->txt(
'check_web_resources_desc'));
753 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX",$this->lng->txt(
'cron_lucene_index'));
754 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX_INFO",$this->lng->txt(
'cron_lucene_index_info'));
756 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION",$this->lng->txt(
'cron_forum_notification'));
757 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_NEVER",$this->lng->txt(
'cron_forum_notification_never'));
758 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_DIRECTLY",$this->lng->txt(
'cron_forum_notification_directly'));
759 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_CRON",$this->lng->txt(
'cron_forum_notification_cron'));
760 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_DESC",$this->lng->txt(
'cron_forum_notification_desc'));
762 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION",$this->lng->txt(
'cron_mail_notification'));
763 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_NEVER",$this->lng->txt(
'cron_mail_notification_never'));
764 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_CRON",$this->lng->txt(
'cron_mail_notification_cron'));
765 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_DESC",$this->lng->txt(
'cron_mail_notification_desc'));
767 $this->tpl->setVariable(
"TXT_NEVER",$this->lng->txt(
'never'));
768 $this->tpl->setVariable(
"TXT_DAILY",$this->lng->txt(
'daily'));
769 $this->tpl->setVariable(
"TXT_WEEKLY",$this->lng->txt(
'weekly'));
770 $this->tpl->setVariable(
"TXT_MONTHLY",$this->lng->txt(
'monthly'));
771 $this->tpl->setVariable(
"TXT_QUARTERLY",$this->lng->txt(
'quarterly'));
773 $this->tpl->setVariable(
"TXT_WEBSERVICES",$this->lng->txt(
'webservices'));
774 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION",$this->lng->txt(
'soap_user_administration'));
775 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION_DESC",$this->lng->txt(
'soap_user_administration_desc'));
777 $this->tpl->setVariable(
"TXT_JAVA_SERVER",$this->lng->txt(
'java_server'));
778 $this->tpl->setVariable(
"TXT_JAVA_SERVER_HOST",$this->lng->txt(
'java_server_host'));
779 $this->tpl->setVariable(
"TXT_JAVA_SERVER_PORT",$this->lng->txt(
'java_server_port'));
780 $this->tpl->setVariable(
"TXT_JAVA_SERVER_INFO",$this->lng->txt(
'java_server_info'));
781 $this->tpl->setVariable(
"TXT_JAVA_SERVER_README",$this->lng->txt(
'java_server_readme'));
789 $this->tpl->setVariable(
"TXT_FORUMS",$this->lng->txt(
'obj_frm'));
790 $this->tpl->setVariable(
"TXT_STATUS_NEW",$this->lng->txt(
'frm_status_new'));
791 $this->tpl->setVariable(
"TXT_STATUS_NEW_DESC",$this->lng->txt(
'frm_status_new_desc'));
793 $this->tpl->setVariable(
"TXT_ONE_WEEK",
"1 ". $this->lng->txt(
'week'));
794 $this->tpl->setVariable(
"TXT_TWO_WEEKS",
"2 ". $this->lng->txt(
'weeks'));
795 $this->tpl->setVariable(
"TXT_FOUR_WEEKS",
"4 ". $this->lng->txt(
'weeks'));
796 $this->tpl->setVariable(
"TXT_EIGHT_WEEKS",
"8 ". $this->lng->txt(
'weeks'));
799 $this->tpl->setVariable(
"TXT_CONTACT_DATA", $this->lng->txt(
"contact_data"));
800 $this->tpl->setVariable(
"TXT_REQUIRED_FIELDS", $this->lng->txt(
"required_field"));
801 $this->tpl->setVariable(
"TXT_ADMIN", $this->lng->txt(
"administrator"));
802 $this->tpl->setVariable(
"TXT_FIRSTNAME", $this->lng->txt(
"firstname"));
803 $this->tpl->setVariable(
"TXT_LASTNAME", $this->lng->txt(
"lastname"));
804 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
805 $this->tpl->setVariable(
"TXT_POSITION", $this->lng->txt(
"position"));
806 $this->tpl->setVariable(
"TXT_INSTITUTION", $this->lng->txt(
"institution"));
807 $this->tpl->setVariable(
"TXT_STREET", $this->lng->txt(
"street"));
808 $this->tpl->setVariable(
"TXT_ZIPCODE", $this->lng->txt(
"zipcode"));
809 $this->tpl->setVariable(
"TXT_CITY", $this->lng->txt(
"city"));
810 $this->tpl->setVariable(
"TXT_COUNTRY", $this->lng->txt(
"country"));
811 $this->tpl->setVariable(
"TXT_PHONE", $this->lng->txt(
"phone"));
812 $this->tpl->setVariable(
"TXT_EMAIL", $this->lng->txt(
"email"));
813 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
820 $this->tpl->setVariable(
"FORMACTION_BASICDATA", $this->ctrl->getFormAction($this));
821 $this->tpl->setVariable(
"HTTP_PATH",ILIAS_HTTP_PATH);
823 $this->tpl->setVariable(
"HOSTNAME", $_SERVER[
"SERVER_NAME"]);
824 $this->tpl->setVariable(
"SERVER_PORT", $_SERVER[
"SERVER_PORT"]);
825 $this->tpl->setVariable(
"SERVER_ADMIN", $_SERVER[
"SERVER_ADMIN"]);
826 $this->tpl->setVariable(
"SERVER_SOFTWARE", $_SERVER[
"SERVER_SOFTWARE"]);
827 $this->tpl->setVariable(
"IP_ADDRESS", $_SERVER[
"SERVER_ADDR"]);
828 $this->tpl->setVariable(
"DB_VERSION",$settings[
"db_version"]);
829 $this->tpl->setVariable(
"ILIAS_VERSION",$settings[
"ilias_version"]);
830 $this->tpl->setVariable(
"INST_ID",$settings[
"inst_id"]);
831 $this->tpl->setVariable(
"CLIENT_ID",CLIENT_ID);
832 $this->tpl->setVariable(
"INST_NAME",$this->ilias->ini->readVariable(
"client",
"name"));
833 $this->tpl->setVariable(
"INST_INFO",$this->ilias->ini->readVariable(
"client",
"description"));
834 $this->tpl->setVariable(
"FEEDBACK_RECIPIENT",$settings[
"feedback_recipient"]);
835 $this->tpl->setVariable(
"ERROR_RECIPIENT",$settings[
"error_recipient"]);
837 $this->tpl->setVariable(
"PHP_INFO_LINK",
838 $this->ctrl->getLinkTarget($this,
"showPHPInfo"));
878 if ($settings[
"pub_section"])
880 $this->tpl->setVariable(
"PUB_SECTION",
"checked=\"checked\"");
883 if ($settings[
"default_repository_view"] ==
"tree")
885 $this->tpl->setVariable(
"TREESELECTED",
"selected=\"1\"");
889 $this->tpl->setVariable(
"FLATSELECTED",
"selected=\"1\"");
896 if($settings[
'password_assistance'])
898 $this->tpl->setVariable(
"PASSWORD_ASSISTANCE",
"checked=\"checked\"");
900 $this->tpl->setVariable(
"VAL_SHORT_NAME", $settings[
'short_inst_title']);
901 if($settings[
'passwd_auto_generate'])
903 $this->tpl->setVariable(
"PASSWORD_AUTO_GENERATE",
"checked=\"checked\"");
915 if($settings[
'links_dynamic'])
917 $this->tpl->setVariable(
"LINKS_DYNAMIC_CHECKED",
"checked=\"checked\"");
920 if($settings[
'enable_trash'])
922 $this->tpl->setVariable(
"ENABLE_TRASH_CHECKED",
"checked=\"checked\"");
925 if ($settings[
"require_login"])
927 $this->tpl->setVariable(
"REQUIRE_LOGIN",
"checked=\"checked\"");
929 if ($settings[
"require_passwd"])
931 $this->tpl->setVariable(
"REQUIRE_PASSWD",
"checked=\"checked\"");
933 if ($settings[
"require_passwd2"])
935 $this->tpl->setVariable(
"REQUIRE_PASSWD2",
"checked=\"checked\"");
937 if ($settings[
"require_firstname"])
939 $this->tpl->setVariable(
"REQUIRE_FIRSTNAME",
"checked=\"checked\"");
941 if ($settings[
"require_gender"])
943 $this->tpl->setVariable(
"REQUIRE_GENDER",
"checked=\"checked\"");
945 if ($settings[
"require_lastname"])
947 $this->tpl->setVariable(
"REQUIRE_LASTNAME",
"checked=\"checked\"");
949 if ($settings[
"require_institution"])
951 $this->tpl->setVariable(
"REQUIRE_INSTITUTION",
"checked=\"checked\"");
953 if ($settings[
"require_department"])
955 $this->tpl->setVariable(
"REQUIRE_DEPARTMENT",
"checked=\"checked\"");
957 if ($settings[
"require_street"])
959 $this->tpl->setVariable(
"REQUIRE_STREET",
"checked=\"checked\"");
961 if ($settings[
"require_city"])
963 $this->tpl->setVariable(
"REQUIRE_CITY",
"checked=\"checked\"");
965 if ($settings[
"require_zipcode"])
967 $this->tpl->setVariable(
"REQUIRE_ZIPCODE",
"checked=\"checked\"");
969 if ($settings[
"require_country"])
971 $this->tpl->setVariable(
"REQUIRE_COUNTRY",
"checked=\"checked\"");
973 if ($settings[
"require_phone_office"])
975 $this->tpl->setVariable(
"REQUIRE_PHONE_OFFICE",
"checked=\"checked\"");
977 if ($settings[
"require_phone_home"])
979 $this->tpl->setVariable(
"REQUIRE_PHONE_HOME",
"checked=\"checked\"");
981 if ($settings[
"require_phone_mobile"])
983 $this->tpl->setVariable(
"REQUIRE_PHONE_MOBILE",
"checked=\"checked\"");
985 if ($settings[
"require_fax"])
987 $this->tpl->setVariable(
"REQUIRE_FAX",
"checked=\"checked\"");
989 if ($settings[
"require_email"])
991 $this->tpl->setVariable(
"REQUIRE_EMAIL",
"checked=\"checked\"");
993 if ($settings[
"require_hobby"])
995 $this->tpl->setVariable(
"REQUIRE_HOBBY",
"checked=\"checked\"");
997 if ($settings[
"require_default_role"])
999 $this->tpl->setVariable(
"REQUIRE_DEFAULT_ROLE",
"checked=\"checked\"");
1001 if ($settings[
"require_referral_comment"])
1003 $this->tpl->setVariable(
"REQUIRE_REFERRAL_COMMENT",
"checked=\"checked\"");
1005 if ($settings[
"require_matriculation"])
1007 $this->tpl->setVariable(
"REQUIRE_MATRICULATION",
"checked=\"checked\"");
1009 if ($settings[
"cron_user_check"])
1011 $this->tpl->setVariable(
"CRON_USER_CHECK",
"checked=\"checked\"");
1013 if ($settings[
"cron_link_check"])
1015 $this->tpl->setVariable(
"CRON_LINK_CHECK",
"checked=\"checked\"");
1017 if($settings[
"cron_lucene_index"])
1019 $this->tpl->setVariable(
"CRON_LUCENE_INDEX",
"checked=\"checked\"");
1021 if ($settings[
"forum_notification"] == 0)
1023 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_NEVER_SELECTED",
" selected");
1025 else if ($settings[
"forum_notification"] == 1)
1027 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_DIRECTLY_SELECTED",
" selected");
1029 else if ($settings[
"forum_notification"] == 2)
1031 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_CRON_SELECTED",
" selected");
1033 if ($settings[
"mail_notification"] == 0)
1035 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_NEVER_SELECTED",
" selected=\"selected\"");
1037 else if ($settings[
"mail_notification"] == 1)
1039 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_CRON_SELECTED",
" selected=\"selected\"");
1041 if ($val = $settings[
"cron_web_resource_check"])
1046 $this->tpl->setVariable(
"D_SELECT",
'selected="selected"');
1049 $this->tpl->setVariable(
"W_SELECT",
'selected="selected"');
1052 $this->tpl->setVariable(
"M_SELECT",
'selected="selected"');
1055 $this->tpl->setVariable(
"Q_SELECT",
'selected="selected"');
1060 switch($settings[
'frm_store_new'])
1063 $this->tpl->setVariable(
"ONE_SELECT",
'selected="selected"');
1067 $this->tpl->setVariable(
"TWO_SELECT",
'selected="selected"');
1071 $this->tpl->setVariable(
"FOUR_SELECT",
'selected="selected"');
1076 $this->tpl->setVariable(
"EIGHT_SELECT",
'selected="selected"');
1079 if ($settings[
"soap_user_administration"])
1081 $this->tpl->setVariable(
"SOAP_USER_ADMINISTRATION_CHECK",
"checked=\"checked\"");
1084 $this->tpl->setVariable(
"JAVA_SERVER_HOST",$settings[
"rpc_server_host"]);
1085 $this->tpl->setVariable(
"JAVA_SERVER_PORT",$settings[
"rpc_server_port"]);
1094 $not_set = $this->lng->txt(
"path_not_set");
1096 $this->tpl->setVariable(
"CONVERT_PATH",(PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1097 $this->tpl->setVariable(
"ZIP_PATH",(PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1098 $this->tpl->setVariable(
"UNZIP_PATH",(PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1099 $this->tpl->setVariable(
"JAVA_PATH",(PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1100 $this->tpl->setVariable(
"HTMLDOC_PATH",(PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
1101 $this->tpl->setVariable(
"LATEX_URL",(URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1104 $this->tpl->setVariable(
"ADMIN_FIRSTNAME",$settings[
"admin_firstname"]);
1105 $this->tpl->setVariable(
"ADMIN_LASTNAME",$settings[
"admin_lastname"]);
1106 $this->tpl->setVariable(
"ADMIN_TITLE",$settings[
"admin_title"]);
1107 $this->tpl->setVariable(
"ADMIN_POSITION",$settings[
"admin_position"]);
1108 $this->tpl->setVariable(
"ADMIN_INSTITUTION",$settings[
"admin_institution"]);
1109 $this->tpl->setVariable(
"ADMIN_STREET",$settings[
"admin_street"]);
1110 $this->tpl->setVariable(
"ADMIN_ZIPCODE",$settings[
"admin_zipcode"]);
1111 $this->tpl->setVariable(
"ADMIN_CITY",$settings[
"admin_city"]);
1112 $this->tpl->setVariable(
"ADMIN_COUNTRY",$settings[
"admin_country"]);
1113 $this->tpl->setVariable(
"ADMIN_PHONE",$settings[
"admin_phone"]);
1114 $this->tpl->setVariable(
"ADMIN_EMAIL",$settings[
"admin_email"]);
1116 $this->tpl->parseCurrentBlock();
1133 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1135 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1139 if ($_POST[
'count_limit'] !== null || $_POST[
'age_limit'] !== null || $_POST[
'type_limit'] !== null)
1141 $ilias->account->writePref(
'systemcheck_count_limit',
1142 (is_numeric($_POST[
'count_limit']) && $_POST[
'count_limit'] > 0) ? $_POST[
'count_limit'] :
''
1144 $ilias->account->writePref(
'systemcheck_age_limit',
1145 (is_numeric($_POST[
'age_limit']) && $_POST[
'age_limit'] > 0) ? $_POST[
'age_limit'] :
'');
1146 $ilias->account->writePref(
'systemcheck_type_limit', trim($_POST[
'type_limit']));
1157 include_once
"classes/class.ilValidator.php";
1159 $hasScanLog = $validator->hasScanLog();
1165 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_last_log"));
1168 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1169 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"systemcheck"));
1170 $this->tpl->setVariable(
"COLSPAN", 3);
1171 $this->tpl->setVariable(
"TXT_ANALYZE_TITLE", $this->lng->txt(
"analyze_data"));
1172 $this->tpl->setVariable(
"TXT_ANALYSIS_OPTIONS", $this->lng->txt(
"analysis_options"));
1173 $this->tpl->setVariable(
"TXT_REPAIR_OPTIONS", $this->lng->txt(
"repair_options"));
1174 $this->tpl->setVariable(
"TXT_OUTPUT_OPTIONS", $this->lng->txt(
"output_options"));
1175 $this->tpl->setVariable(
"TXT_SCAN", $this->lng->txt(
"scan"));
1176 $this->tpl->setVariable(
"TXT_SCAN_DESC", $this->lng->txt(
"scan_desc"));
1177 $this->tpl->setVariable(
"TXT_DUMP_TREE", $this->lng->txt(
"dump_tree"));
1178 $this->tpl->setVariable(
"TXT_DUMP_TREE_DESC", $this->lng->txt(
"dump_tree_desc"));
1179 $this->tpl->setVariable(
"TXT_CLEAN", $this->lng->txt(
"clean"));
1180 $this->tpl->setVariable(
"TXT_CLEAN_DESC", $this->lng->txt(
"clean_desc"));
1181 $this->tpl->setVariable(
"TXT_RESTORE", $this->lng->txt(
"restore_missing"));
1182 $this->tpl->setVariable(
"TXT_RESTORE_DESC", $this->lng->txt(
"restore_missing_desc"));
1183 $this->tpl->setVariable(
"TXT_PURGE", $this->lng->txt(
"purge_missing"));
1184 $this->tpl->setVariable(
"TXT_PURGE_DESC", $this->lng->txt(
"purge_missing_desc"));
1185 $this->tpl->setVariable(
"TXT_RESTORE_TRASH", $this->lng->txt(
"restore_trash"));
1186 $this->tpl->setVariable(
"TXT_RESTORE_TRASH_DESC", $this->lng->txt(
"restore_trash_desc"));
1187 $this->tpl->setVariable(
"TXT_PURGE_TRASH", $this->lng->txt(
"purge_trash"));
1188 $this->tpl->setVariable(
"TXT_PURGE_TRASH_DESC", $this->lng->txt(
"purge_trash_desc"));
1189 $this->tpl->setVariable(
"TXT_COUNT_LIMIT", $this->lng->txt(
"purge_count_limit"));
1190 $this->tpl->setVariable(
"TXT_COUNT_LIMIT_DESC", $this->lng->txt(
"purge_count_limit_desc"));
1191 $this->tpl->setVariable(
"COUNT_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_count_limit"));
1192 $this->tpl->setVariable(
"TXT_AGE_LIMIT", $this->lng->txt(
"purge_age_limit"));
1193 $this->tpl->setVariable(
"TXT_AGE_LIMIT_DESC", $this->lng->txt(
"purge_age_limit_desc"));
1194 $this->tpl->setVariable(
"AGE_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_age_limit"));
1195 $this->tpl->setVariable(
"TXT_TYPE_LIMIT", $this->lng->txt(
"purge_type_limit"));
1196 $this->tpl->setVariable(
"TXT_TYPE_LIMIT_DESC", $this->lng->txt(
"purge_type_limit_desc"));
1198 $types = array_merge(array(
""), $objDefinition->getAllObjects());
1199 $this->tpl->setVariable(
"TYPE_LIMIT_CHOICE",
1201 $ilias->account->getPref(
"systemcheck_type_limit"),
1206 $this->tpl->setVariable(
"TXT_LOG_SCAN", $this->lng->txt(
"log_scan"));
1207 $this->tpl->setVariable(
"TXT_LOG_SCAN_DESC", $this->lng->txt(
"log_scan_desc"));
1208 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"start_scan"));
1219 global $rbacsystem, $styleDefinition;
1221 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.header_title_edit.html");
1228 $_GET[
"mode"] =
"session";
1229 $array_push =
false;
1233 if ((
$_GET[
"mode"] !=
"session"))
1235 $data = $this->
object->getHeaderTitleTranslations();
1237 $array_push =
false;
1239 elseif (
$_GET[
"entry"] != 0)
1241 array_splice(
$_SESSION[
"translation_post"][
"Fobject"],
$_GET[
"entry"],1,array());
1243 if (
$_GET[
"entry"] ==
$_SESSION[
"translation_post"][
"default_language"])
1245 $_SESSION[
"translation_post"][
"default_language"] =
"";
1252 if (!
$_GET[
"entry"] and $array_push)
1254 $count = array_push(
$data[
"Fobject"],array(
"title" =>
"",
"desc" =>
""));
1258 $count = count(
$data[
"Fobject"]);
1262 $strip = isset(
$_SESSION[
"translation_post"]) ?
true :
false;
1264 foreach (
$data[
"Fobject"] as $key => $val)
1267 if ($key == $count -1)
1269 $this->tpl->setCurrentBlock(
"addTranslation");
1270 $this->tpl->setVariable(
"TXT_ADD_TRANSLATION",$this->lng->txt(
"add_translation").
" >>");
1271 $this->tpl->parseCurrentBlock();
1277 $this->tpl->setCurrentBlock(
"removeTranslation");
1278 $this->tpl->setVariable(
"TXT_REMOVE_TRANSLATION",$this->lng->txt(
"remove_translation"));
1279 $this->ctrl->setParameter($this,
"entry", $key);
1280 $this->ctrl->setParameter($this,
"mode",
"edit");
1281 $this->tpl->setVariable(
"LINK_REMOVE_TRANSLATION",
1282 $this->ctrl->getLinkTarget($this,
"removeTranslation"));
1283 $this->tpl->parseCurrentBlock();
1287 $this->tpl->addBlockFile(
"SEL_LANGUAGE",
"sel_language",
"tpl.lang_selection.html",
false);
1288 $this->tpl->setVariable(
"SEL_NAME",
"Fobject[".$key.
"][lang]");
1290 include_once(
'Services/MetaData/classes/class.ilMDLanguageItem.php');
1294 foreach ($languages as $code => $language)
1296 $this->tpl->setCurrentBlock(
"lg_option");
1297 $this->tpl->setVariable(
"VAL_LG", $code);
1298 $this->tpl->setVariable(
"TXT_LG", $language);
1300 if ($code == $val[
"lang"])
1302 $this->tpl->setVariable(
"SELECTED",
"selected=\"selected\"");
1305 $this->tpl->parseCurrentBlock();
1309 $this->tpl->setCurrentBlock(
"obj_form");
1313 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"change_header_title"));
1317 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"translation").
" ".$key);
1320 if ($key ==
$data[
"default_language"])
1322 $this->tpl->setVariable(
"CHECKED",
"checked=\"checked\"");
1325 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
1326 $this->tpl->setVariable(
"TXT_DESC", $this->lng->txt(
"desc"));
1327 $this->tpl->setVariable(
"TXT_DEFAULT", $this->lng->txt(
"default"));
1328 $this->tpl->setVariable(
"TXT_LANGUAGE", $this->lng->txt(
"language"));
1331 $this->tpl->setVariable(
"NUM", $key);
1332 $this->tpl->parseCurrentBlock();
1336 $this->tpl->setCurrentBlock(
"adm_content");
1338 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1339 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
1340 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
1341 $this->tpl->setVariable(
"CMD_SUBMIT",
"saveHeaderTitle");
1342 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
1353 if (!isset(
$data[
"default_language"]))
1355 $this->ilias->raiseError($this->lng->txt(
"msg_no_default_language"),$this->ilias->error_obj->MESSAGE);
1359 foreach (
$data[
"Fobject"] as $key => $val)
1361 $langs[$key] = $val[
"lang"];
1364 $langs = array_count_values($langs);
1367 if (array_key_exists(
"",$langs))
1369 $this->ilias->raiseError($this->lng->txt(
"msg_no_language_selected"),$this->ilias->error_obj->MESSAGE);
1373 if (array_sum($langs) > count($langs))
1375 $this->ilias->raiseError($this->lng->txt(
"msg_multi_language_selected"),$this->ilias->error_obj->MESSAGE);
1379 $_POST[
"Fobject"][
"title"] = $_POST[
"Fobject"][$_POST[
"default_language"]][
"title"];
1380 $_POST[
"Fobject"][
"desc"] = $_POST[
"Fobject"][$_POST[
"default_language"]][
"desc"];
1383 $this->
object->removeHeaderTitleTranslations();
1386 foreach (
$data[
"Fobject"] as $key => $val)
1388 if ($key ==
$data[
"default_language"])
1402 $this->ctrl->redirect($this);
1407 $this->ctrl->redirect($this,
"view");
1419 $this->ctrl->setParameter($this,
"mode",
"session");
1420 $this->ctrl->setParameter($this,
"entry",
"0");
1421 $this->ctrl->redirect($this,
"changeHeaderTitle");
1431 $this->ctrl->setParameter($this,
"entry",
$_GET[
"entry"]);
1432 $this->ctrl->setParameter($this,
"mode",
"session");
1433 $this->ctrl->redirect($this,
"changeHeaderTitle");
1441 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1443 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1446 $logging = ($a_log) ?
true :
false;
1447 include_once
"classes/class.ilValidator.php";
1449 $validator->setMode(
"all",
false);
1452 foreach ($a_mode as $mode => $value)
1454 $validator->setMode($mode,(
bool) $value);
1455 $modes[] = $mode.
'='.$value;
1458 $scan_log = $validator->validate();
1460 $mode = $this->lng->txt(
"scan_modes").
": ".implode(
', ',$modes);
1465 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1466 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scanning_system"));
1467 $this->tpl->setVariable(
"COLSPAN", 3);
1468 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
1469 $this->tpl->setVariable(
"TXT_MODE", $mode);
1471 if ($logging ===
true)
1473 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_log"));
1476 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
1478 $validator->writeScanLogLine($mode);
1483 include_once
"classes/class.ilValidator.php";
1484 $validator =
new IlValidator();
1485 $scan_log =& $validator->readScanLog();
1487 if (is_array($scan_log))
1489 $scan_log =
'<pre>'.implode(
"",$scan_log).
'</pre>';
1490 $this->tpl->setVariable(
"ADM_CONTENT", $scan_log);
1494 $scan_log =
"no scanlog found.";
1499 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scan_details"));
1500 $this->tpl->setVariable(
"COLSPAN", 3);
1501 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
1502 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
1513 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1515 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1519 $this->ctrl->setParameter($this,
'cur_mode',
$_GET[
'cur_mod']);
1520 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1521 $this->tpl->setVariable(
"TXT_BENCH_SETTINGS", $this->lng->txt(
"benchmark_settings"));
1522 $this->tpl->setVariable(
"TXT_ACTIVATION", $this->lng->txt(
"activation"));
1523 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save_settings"));
1524 $this->tpl->setVariable(
"TXT_CUR_RECORDS", $this->lng->txt(
"cur_number_rec"));
1525 $this->tpl->setVariable(
"VAL_CUR_RECORDS", $ilBench->getCurrentRecordNumber());
1526 $this->tpl->setVariable(
"TXT_MAX_RECORDS", $this->lng->txt(
"max_number_rec"));
1527 $this->tpl->setVariable(
"VAL_MAX_RECORDS", $ilBench->getMaximumRecords());
1528 $this->tpl->setVariable(
"TXT_CLEAR", $this->lng->txt(
"delete_all_rec"));
1529 if($ilBench->isEnabled())
1531 $this->tpl->setVariable(
"ACT_CHECKED",
" checked=\"1\" ");
1534 $modules = $ilBench->getMeasuredModules();
1536 if (count($modules) > 0)
1538 $this->tpl->setCurrentBlock(
"eval_table");
1540 $cur_module = (
$_GET[
"cur_mod"] !=
"" &&
1541 in_array(
$_GET[
"cur_mod"], $modules))
1543 : current($modules);
1545 $benchs = $ilBench->getEvaluation($cur_module);
1548 foreach($benchs as $bench)
1550 $this->tpl->setCurrentBlock(
"eval_row");
1551 $this->tpl->setVariable(
"ROWCOL",
1554 $this->tpl->setVariable(
"VAL_BENCH", $bench[
"benchmark"]);
1555 $this->tpl->setVariable(
"VAL_NUMBER_RECORDS", $bench[
"cnt"]);
1556 $this->tpl->setVariable(
"VAL_AVG_TIME", $bench[
"duration"]);
1557 $this->tpl->setVariable(
"VAL_MIN_TIME", $bench[
"min"]);
1558 $this->tpl->setVariable(
"VAL_MAX_TIME", $bench[
"max"]);
1559 $this->tpl->setVariable(
"VAL_CUM_TIME", $bench[
"duration"] * $bench[
"cnt"]);
1560 $this->tpl->parseCurrentBlock();
1563 $this->tpl->setVariable(
"SELECT_MODULE",
1566 $this->tpl->setVariable(
"TXT_SHOW", $this->lng->txt(
"show"));
1567 $this->tpl->setVariable(
"TXT_BENCH", $this->lng->txt(
"benchmark"));
1568 $this->tpl->setVariable(
"TXT_NUMBER_RECORDS", $this->lng->txt(
"number_of_records"));
1569 $this->tpl->setVariable(
"TXT_AVG_TIME", $this->lng->txt(
"average_time"));
1570 $this->tpl->setVariable(
"TXT_MIN_TIME", $this->lng->txt(
"min_time"));
1571 $this->tpl->setVariable(
"TXT_MAX_TIME", $this->lng->txt(
"max_time"));
1572 $this->tpl->setVariable(
"TXT_CUM_TIME", $this->lng->txt(
"cumulative_time"));
1574 $this->tpl->parseCurrentBlock();
1586 if ($_POST[
"activate"] ==
"y")
1588 $ilBench->enable(
true);
1592 $ilBench->enable(
false);
1595 $ilBench->setMaximumRecords($_POST[
"max_records"]);
1599 $this->ctrl->redirect($this,
"benchmark");
1610 $this->ctrl->setParameter($this,
'cur_mod',$_POST[
'module']);
1611 $this->ctrl->redirect($this,
"benchmark");
1622 $ilBench->clearData();
1632 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
1634 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1636 $tabs_gui->addTarget(
"settings",
1637 $this->ctrl->getLinkTarget($this,
"view"), array(
"view",
"saveSettings"), get_class($this));
1640 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1645 $tabs_gui->addTarget(
"system_check",
1646 $this->ctrl->getLinkTarget($this,
"check"), array(
"check",
"viewScanLog"), get_class($this));
1648 $tabs_gui->addTarget(
"benchmarks",
1649 $this->ctrl->getLinkTarget($this,
"benchmark"),
"benchmark", get_class($this));
1652 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
1654 $tabs_gui->addTarget(
"perm_settings",
1655 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');