4 require_once
"./Services/Object/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);
46 case 'ilpermissiongui':
47 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
49 $ret =& $this->ctrl->forwardCommand($perm_gui);
54 $ilTabs->clearTargets();
55 $ilTabs->setBackTarget($this->lng->txt(
"back"),
56 $this->ctrl->getLinkTarget($this,
""));
58 include_once(
"./Services/Imprint/classes/class.ilImprintGUI.php");
66 $igui->setEnableEditing(
false);
69 $ret = $this->ctrl->forwardCommand($igui);
72 $this->tpl->setContent(
$ret);
76 case "ilobjectownershipmanagementgui":
78 include_once(
"Services/Object/classes/class.ilObjectOwnershipManagementGUI.php");
80 $this->ctrl->forwardCommand($gui);
85 $cmd = $this->ctrl->getCmd(
"view");
106 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
117 $settings = $this->ilias->getAllSettings();
119 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
121 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
146 if (empty(
$_POST[
"admin_firstname"]) or empty(
$_POST[
"admin_lastname"])
147 or empty(
$_POST[
"admin_street"]) or empty(
$_POST[
"admin_zipcode"])
148 or empty(
$_POST[
"admin_country"]) or empty(
$_POST[
"admin_city"])
149 or empty(
$_POST[
"admin_phone"]) or empty(
$_POST[
"admin_email"]))
159 ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"feedback_recipient").
"'<br/>".$this->lng->txt(
"email_not_valid"));
166 ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"error_recipient").
"'<br/>".$this->lng->txt(
"email_not_valid"));
173 ilUtil::sendFailure($this->lng->txt(
"input_error").
": '".$this->lng->txt(
"email").
"'<br/>".$this->lng->txt(
"email_not_valid"));
178 foreach (
$_POST as $key => $val)
192 $settings[
"feedback_recipient"] =
$_POST[
"feedback_recipient"];
193 $settings[
"error_recipient"] =
$_POST[
"error_recipient"];
196 $settings[
"pub_section"] =
$_POST[
"pub_section"];
197 $settings[
"open_google"] =
$_POST[
"open_google"];
198 $settings[
"default_repository_view"] =
$_POST[
"default_rep_view"];
199 $settings[
"password_assistance"] =
$_POST[
"password_assistance"];
200 $settings[
'short_inst_title'] =
$_POST[
'short_inst_title'];
201 $settings[
"passwd_auto_generate"] =
$_POST[
"password_auto_generate"];
203 $settings[
"enable_trash"] =
$_POST[
"enable_trash"];
207 $settings[
'session_reminder_enabled'] = (int)
$_POST[
'session_reminder_enabled'];
213 $settings[
"admin_firstname"] =
$_POST[
"admin_firstname"];
214 $settings[
"admin_lastname"] =
$_POST[
"admin_lastname"];
215 $settings[
"admin_title"] =
$_POST[
"admin_title"];
216 $settings[
"admin_position"] =
$_POST[
"admin_position"];
217 $settings[
"admin_institution"] =
$_POST[
"admin_institution"];
218 $settings[
"admin_street"] =
$_POST[
"admin_street"];
219 $settings[
"admin_zipcode"] =
$_POST[
"admin_zipcode"];
220 $settings[
"admin_city"] =
$_POST[
"admin_city"];
221 $settings[
"admin_country"] =
$_POST[
"admin_country"];
222 $settings[
"admin_phone"] =
$_POST[
"admin_phone"];
223 $settings[
"admin_email"] =
$_POST[
"admin_email"];
226 $settings[
"cron_user_check"] =
$_POST[
"cron_user_check"];
227 $settings[
"cron_link_check"] =
$_POST[
"cron_link_check"];
228 $settings[
"cron_web_resource_check"] =
$_POST[
"cron_web_resource_check"];
229 $settings[
"cron_lucene_index"] =
$_POST[
"cron_lucene_index"];
230 $settings[
"forum_notification"] =
$_POST[
"forum_notification"];
231 $settings[
"mail_notification"] =
$_POST[
"mail_notification"];
232 $settings[
"mail_notification_message"] =
$_POST[
"mail_notification_message"];
235 $settings[
'frm_store_new'] =
$_POST[
'frm_store_new'];
238 $settings[
"soap_user_administration"] =
$_POST[
"soap_user_administration"];
243 $settings[
"suffix_repl_additional"] =
$_POST[
"suffix_repl_additional"];
246 $settings[
"links_dynamic"] =
$_POST[
"links_dynamic"];
255 $this->ilias->setSetting(
"feedback_recipient",
$_POST[
"feedback_recipient"]);
256 $this->ilias->setSetting(
"error_recipient",
$_POST[
"error_recipient"]);
284 $this->ilias->setSetting(
"pub_section",
$_POST[
"pub_section"]);
285 $this->ilias->setSetting(
'open_google',
$_POST[
'open_google']);
286 $this->ilias->setSetting(
"default_repository_view",
$_POST[
"default_rep_view"]);
288 $this->ilias->setSetting(
'password_assistance',
$_POST[
'password_assistance']);
289 $this->ilias->setSetting(
'passwd_auto_generate',
$_POST[
'password_auto_generate']);
291 $this->ilias->setSetting(
'short_inst_name',
$_POST[
'short_inst_name']);
292 $this->ilias->setSetting(
'enable_trash',
$_POST[
'enable_trash']);
295 $this->ilias->setSetting(
'session_reminder_enabled', (
int)
$_POST[
'session_reminder_enabled']);
298 $this->ilias->setSetting(
"admin_firstname",$_POST[
"admin_firstname"]);
299 $this->ilias->setSetting(
"admin_lastname",$_POST[
"admin_lastname"]);
300 $this->ilias->setSetting(
"admin_title",$_POST[
"admin_title"]);
301 $this->ilias->setSetting(
"admin_position",$_POST[
"admin_position"]);
302 $this->ilias->setSetting(
"admin_institution",$_POST[
"admin_institution"]);
303 $this->ilias->setSetting(
"admin_street",$_POST[
"admin_street"]);
304 $this->ilias->setSetting(
"admin_zipcode",$_POST[
"admin_zipcode"]);
305 $this->ilias->setSetting(
"admin_city",$_POST[
"admin_city"]);
306 $this->ilias->setSetting(
"admin_country",$_POST[
"admin_country"]);
307 $this->ilias->setSetting(
"admin_phone",$_POST[
"admin_phone"]);
308 $this->ilias->setSetting(
"admin_email",$_POST[
"admin_email"]);
311 $this->ilias->setSetting(
"cron_user_check",$_POST[
"cron_user_check"]);
312 $this->ilias->setSetting(
"cron_link_check",$_POST[
"cron_link_check"]);
313 $this->ilias->setSetting(
"cron_web_resource_check",$_POST[
"cron_web_resource_check"]);
314 $this->ilias->setSetting(
"cron_lucene_index",$_POST[
"cron_lucene_index"]);
315 $this->ilias->setSetting(
"forum_notification",$_POST[
"forum_notification"]);
316 if ($_POST[
"forum_notification"] == 2)
318 $this->ilias->setSetting(
"cron_forum_notification_last_date",date(
"Y-m-d H:i:s"));
320 $this->ilias->setSetting(
"mail_notification", $_POST[
"mail_notification"]);
321 $this->ilias->setSetting(
"mail_notification_message", $_POST[
"mail_notification_message"]);
325 $this->ilias->setSetting(
"soap_user_administration",$_POST[
"soap_user_administration"]);
326 $this->ilias->setSetting(
"rpc_server_host",trim($_POST[
"rpc_server_host"]));
327 $this->ilias->setSetting(
"rpc_server_port",trim($_POST[
"rpc_server_port"]));
333 $this->ilias->setSetting(
'frm_store_new',$_POST[
'frm_store_new']);
336 $this->ilias->ini->write();
339 $this->ilias->setSetting(
'links_dynamic',$_POST[
'links_dynamic']);
341 $this->ilias->setSetting(
"suffix_repl_additional",
344 $settings = $this->ilias->getAllSettings();
347 $feedback = $this->lng->txt(
"saved_successfully");
348 if (trim($_POST[
"rpc_server_host"]) !=
"" ||
349 trim($_POST[
"rpc_server_port"]) !=
"")
351 include_once
'Services/WebServices/RPC/classes/class.ilRPCServerSettings.php';
353 if(!$rpc_settings->pingServer())
355 $feedback .=
"<br />\n".$this->lng->txt(
'java_server_no_connection');
361 $ilCtrl->redirect($this,
"view");
372 global $rbacsystem,
$ilCtrl, $ilClientIniFile;
374 $this->tpl->addBlockFile(
"SYSTEMSETTINGS",
"systemsettings",
"tpl.adm_basicdata.html",
375 "Modules/SystemFolder");
377 $settings = $this->ilias->getAllSettings();
380 $this->tpl->setVariable(
"HREF_CREATE_WIKI_TABLE",
381 $ilCtrl->getLinkTarget($this,
"createWikiTables"));
385 $this->tpl->setVariable(
"TXT_BASIC_DATA", $this->lng->txt(
"basic_data"));
391 $this->tpl->setVariable(
"TXT_ILIAS_VERSION", $this->lng->txt(
"ilias_version"));
392 $this->tpl->setVariable(
"TXT_DB_VERSION", $this->lng->txt(
"db_version"));
393 $this->tpl->setVariable(
"TXT_CLIENT_ID", $this->lng->txt(
"client_id"));
394 $this->tpl->setVariable(
"TXT_INST_ID", $this->lng->txt(
"inst_id"));
395 $this->tpl->setVariable(
"TXT_ACTIVATE_HTTPS",$this->lng->txt(
'activate_https'));
396 $this->tpl->setVariable(
"TXT_HOSTNAME", $this->lng->txt(
"host"));
397 $this->tpl->setVariable(
"TXT_IP_ADDRESS", $this->lng->txt(
"ip_address"));
398 $this->tpl->setVariable(
"TXT_SERVER_DATA", $this->lng->txt(
"server_data"));
399 $this->tpl->setVariable(
"TXT_SERVER_PORT", $this->lng->txt(
"port"));
400 $this->tpl->setVariable(
"TXT_SERVER_SOFTWARE", $this->lng->txt(
"server_software"));
401 $this->tpl->setVariable(
"TXT_HTTP_PATH", $this->lng->txt(
"http_path"));
402 $this->tpl->setVariable(
"TXT_ABSOLUTE_PATH", $this->lng->txt(
"absolute_path"));
403 $this->tpl->setVariable(
"TXT_INST_NAME", $this->lng->txt(
"inst_name"));
404 $this->tpl->setVariable(
"TXT_INST_INFO", $this->lng->txt(
"inst_info"));
406 $this->tpl->setVariable(
"TXT_FEEDBACK_RECIPIENT", $this->lng->txt(
"feedback_recipient"));
407 $this->tpl->setVariable(
"TXT_ERROR_RECIPIENT", $this->lng->txt(
"error_recipient"));
408 $this->tpl->setVariable(
"TXT_HEADER_TITLE", $this->lng->txt(
"header_title"));
409 $this->tpl->setVariable(
"TXT_SHORT_NAME", $this->lng->txt(
"short_inst_name"));
410 $this->tpl->setVariable(
"TXT_SHORT_NAME_INFO", $this->lng->txt(
"short_inst_name_info"));
412 $this->tpl->setVariable(
"VAL_SHORT_INST_NAME", $settings[
'short_inst_name']);
413 $this->tpl->setVariable(
"TXT_CHANGE", $this->lng->txt(
"change"));
414 $this->tpl->setVariable(
"LINK_HEADER_TITLE",
415 $this->ctrl->getLinkTarget($this,
"changeHeaderTitle"));
416 $this->tpl->setVariable(
"VAL_HEADER_TITLE",
419 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
420 $dbupdate =
new ilDBUpdate($this->ilias->db,
true);
422 if (!$dbupdate->getDBVersionStatus())
424 $this->tpl->setVariable(
"TXT_DB_UPDATE",
" (<span class=\"warning\">".$this->lng->txt(
"db_need_update").
"</span>)");
428 $this->tpl->setVariable(
"TXT_PUB_SECTION", $this->lng->txt(
"pub_section"));
431 $this->tpl->setVariable(
'TXT_SEARCH_ENGINE',$this->lng->txt(
'search_engine'));
432 $this->tpl->setVariable(
'TXT_ENABLE_SEARCH_ENGINE',$this->lng->txt(
'enable_search_engine'));
433 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
438 if(!$robot_settings->checkRewrite())
441 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'disabled="disabled"');
443 $this->tpl->setCurrentBlock(
'search_engine_alert');
445 $this->tpl->setVariable(
'SE_ALT_ALERT',$this->lng->txt(
'alert'));
446 $this->tpl->setVariable(
'TXT_SE_ALERT',$this->lng->txt(
'allow_override_alert'));
447 $this->tpl->parseCurrentBlock();
449 if($settings[
'open_google'] and !$error_se)
451 $this->tpl->setVariable(
'OPEN_GOOGLE_CHECKED',
'checked="checked"');
454 $this->tpl->setVariable(
"TXT_DEFAULT_REPOSITORY_VIEW", $this->lng->txt(
"def_repository_view"));
455 $this->tpl->setVariable(
"TXT_FLAT", $this->lng->txt(
"flatview"));
456 $this->tpl->setVariable(
"TXT_TREE", $this->lng->txt(
"treeview"));
458 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_ASSISTANCE", $this->lng->txt(
"enable_password_assistance"));
459 $this->tpl->setVariable(
"TXT_PASSWORD_AUTO_GENERATE_INFO",$this->lng->txt(
'passwd_generation_info'));
467 $this->tpl->setVariable(
"TXT_PASSWORD_ASSISTANCE_INFO", $this->lng->txt(
"password_assistance_info"));
469 $this->tpl->setVariable(
"TXT_ENABLE_PASSWORD_GENERATION",$this->lng->txt(
'passwd_generation'));
472 $this->tpl->setVariable(
"TXT_FILE_SUFFIX_REPL", $this->lng->txt(
"file_suffix_repl"));
473 $this->tpl->setVariable(
"INFO_FILE_SUFFIX_REPL",
474 $this->lng->txt(
"file_suffix_repl_info").
" ".SUFFIX_REPL_DEFAULT);
476 $this->tpl->setVariable(
"TXT_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic'));
477 $this->tpl->setVariable(
"INFO_DYNAMIC_LINKS",$this->lng->txt(
'links_dynamic_info'));
479 $this->tpl->setVariable(
"TXT_ENABLE_TRASH",$this->lng->txt(
'enable_trash'));
480 $this->tpl->setVariable(
"INFO_ENABLE_TRASH",$this->lng->txt(
'enable_trash_info'));
482 $this->tpl->setVariable(
'TXT_SESSION_REMINDER', $this->lng->txt(
'session_reminder'));
483 $this->tpl->setVariable(
'INFO_SESSION_REMINDER', $this->lng->txt(
'session_reminder_info'));
486 $this->tpl->setVariable(
'SESSION_REMINDER_SESSION_DURATION',
487 sprintf($this->lng->txt(
'session_reminder_session_duration'), $time));
490 $this->tpl->setVariable(
"TXT_SOFTWARE", $this->lng->txt(
"3rd_party_software"));
491 $this->tpl->setVariable(
"TXT_CONVERT_PATH", $this->lng->txt(
"path_to_convert"));
492 $this->tpl->setVariable(
"TXT_ZIP_PATH", $this->lng->txt(
"path_to_zip"));
493 $this->tpl->setVariable(
"TXT_UNZIP_PATH", $this->lng->txt(
"path_to_unzip"));
494 $this->tpl->setVariable(
"TXT_JAVA_PATH", $this->lng->txt(
"path_to_java"));
495 $this->tpl->setVariable(
"TXT_HTMLDOC_PATH", $this->lng->txt(
"path_to_htmldoc"));
496 $this->tpl->setVariable(
"TXT_MKISOFS_PATH", $this->lng->txt(
"path_to_mkisofs"));
497 $this->tpl->setVariable(
"TXT_LATEX_URL", $this->lng->txt(
"url_to_latex"));
500 $this->tpl->setVariable(
"TXT_CRON",$this->lng->txt(
'cron_jobs'));
501 $this->tpl->setVariable(
"TXT_CRON_DESC",$this->lng->txt(
'cron_jobs_desc'));
502 $this->tpl->setVariable(
"TXT_CRON_USER_ACCOUNTS",$this->lng->txt(
'check_user_accounts'));
503 $this->tpl->setVariable(
"CRON_USER_ACCOUNTS_DESC",$this->lng->txt(
'check_user_accounts_desc'));
504 $this->tpl->setVariable(
"TXT_CRON_LINK_CHECK",$this->lng->txt(
'check_link'));
505 $this->tpl->setVariable(
"CRON_LINK_CHECK_DESC",$this->lng->txt(
'check_link_desc'));
506 $this->tpl->setVariable(
"TXT_CRON_WEB_RESOURCE_CHECK",$this->lng->txt(
'check_web_resources'));
507 $this->tpl->setVariable(
"CRON_WEB_RESOURCE_CHECK_DESC",$this->lng->txt(
'check_web_resources_desc'));
509 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX",$this->lng->txt(
'cron_lucene_index'));
510 $this->tpl->setVariable(
"TXT_CRON_LUCENE_INDEX_INFO",$this->lng->txt(
'cron_lucene_index_info'));
512 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION",$this->lng->txt(
'cron_forum_notification'));
513 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_NEVER",$this->lng->txt(
'cron_forum_notification_never'));
514 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_DIRECTLY",$this->lng->txt(
'cron_forum_notification_directly'));
515 $this->tpl->setVariable(
"TXT_CRON_FORUM_NOTIFICATION_CRON",$this->lng->txt(
'cron_forum_notification_cron'));
516 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_DESC",$this->lng->txt(
'cron_forum_notification_desc'));
518 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION",$this->lng->txt(
'cron_mail_notification'));
519 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_NEVER",$this->lng->txt(
'cron_mail_notification_never'));
520 $this->tpl->setVariable(
"TXT_CRON_MAIL_NOTIFICATION_CRON",$this->lng->txt(
'cron_mail_notification_cron'));
521 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_DESC",$this->lng->txt(
'cron_mail_notification_desc'));
523 $this->tpl->setVariable(
"TXT_CRON_MAIL_MESSAGE_CHECK", $this->lng->txt(
'cron_mail_notification_message'));
524 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK", $this->lng->txt(
'cron_mail_notification_message_enabled'));
525 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK_DESC", $this->lng->txt(
'cron_mail_notification_message_desc'));
527 $this->tpl->setVariable(
"TXT_NEVER",$this->lng->txt(
'never'));
528 $this->tpl->setVariable(
"TXT_DAILY",$this->lng->txt(
'daily'));
529 $this->tpl->setVariable(
"TXT_WEEKLY",$this->lng->txt(
'weekly'));
530 $this->tpl->setVariable(
"TXT_MONTHLY",$this->lng->txt(
'monthly'));
531 $this->tpl->setVariable(
"TXT_QUARTERLY",$this->lng->txt(
'quarterly'));
533 $this->tpl->setVariable(
"TXT_WEBSERVICES",$this->lng->txt(
'webservices'));
534 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION",$this->lng->txt(
'soap_user_administration'));
535 $this->tpl->setVariable(
"TXT_SOAP_USER_ADMINISTRATION_DESC",$this->lng->txt(
'soap_user_administration_desc').$this->lng->txt(
'soap_user_administration_desc_extended'));
537 $this->tpl->setVariable(
"TXT_JAVA_SERVER",$this->lng->txt(
'java_server'));
538 $this->tpl->setVariable(
"TXT_JAVA_SERVER_HOST",$this->lng->txt(
'java_server_host'));
539 $this->tpl->setVariable(
"TXT_JAVA_SERVER_PORT",$this->lng->txt(
'java_server_port'));
540 $this->tpl->setVariable(
"TXT_JAVA_SERVER_INFO",$this->lng->txt(
'java_server_info'));
541 $this->tpl->setVariable(
"TXT_JAVA_SERVER_README",$this->lng->txt(
'java_server_readme'));
549 $this->tpl->setVariable(
"TXT_FORUMS",$this->lng->txt(
'obj_frm'));
550 $this->tpl->setVariable(
"TXT_STATUS_NEW",$this->lng->txt(
'frm_status_new'));
551 $this->tpl->setVariable(
"TXT_STATUS_NEW_DESC",$this->lng->txt(
'frm_status_new_desc'));
553 $this->tpl->setVariable(
"TXT_ONE_WEEK",
"1 ". $this->lng->txt(
'week'));
554 $this->tpl->setVariable(
"TXT_TWO_WEEKS",
"2 ". $this->lng->txt(
'weeks'));
555 $this->tpl->setVariable(
"TXT_FOUR_WEEKS",
"4 ". $this->lng->txt(
'weeks'));
556 $this->tpl->setVariable(
"TXT_EIGHT_WEEKS",
"8 ". $this->lng->txt(
'weeks'));
559 $this->tpl->setVariable(
"TXT_CONTACT_DATA", $this->lng->txt(
"contact_data"));
560 $this->tpl->setVariable(
"TXT_REQUIRED_FIELDS", $this->lng->txt(
"required_field"));
561 $this->tpl->setVariable(
"TXT_ADMIN", $this->lng->txt(
"administrator"));
562 $this->tpl->setVariable(
"TXT_FIRSTNAME", $this->lng->txt(
"firstname"));
563 $this->tpl->setVariable(
"TXT_LASTNAME", $this->lng->txt(
"lastname"));
564 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
565 $this->tpl->setVariable(
"TXT_POSITION", $this->lng->txt(
"position"));
566 $this->tpl->setVariable(
"TXT_INSTITUTION", $this->lng->txt(
"institution"));
567 $this->tpl->setVariable(
"TXT_STREET", $this->lng->txt(
"street"));
568 $this->tpl->setVariable(
"TXT_ZIPCODE", $this->lng->txt(
"zipcode"));
569 $this->tpl->setVariable(
"TXT_CITY", $this->lng->txt(
"city"));
570 $this->tpl->setVariable(
"TXT_COUNTRY", $this->lng->txt(
"country"));
571 $this->tpl->setVariable(
"TXT_PHONE", $this->lng->txt(
"phone"));
572 $this->tpl->setVariable(
"TXT_EMAIL", $this->lng->txt(
"email"));
573 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
580 $this->tpl->setVariable(
"FORMACTION_BASICDATA", $this->ctrl->getFormAction($this));
581 $this->tpl->setVariable(
"HTTP_PATH",ILIAS_HTTP_PATH);
583 $this->tpl->setVariable(
"HOSTNAME", $_SERVER[
"SERVER_NAME"]);
584 $this->tpl->setVariable(
"SERVER_PORT", $_SERVER[
"SERVER_PORT"]);
585 $this->tpl->setVariable(
"SERVER_ADMIN", $_SERVER[
"SERVER_ADMIN"]);
586 $this->tpl->setVariable(
"SERVER_SOFTWARE", $_SERVER[
"SERVER_SOFTWARE"]);
587 $this->tpl->setVariable(
"IP_ADDRESS", $_SERVER[
"SERVER_ADDR"]);
588 $this->tpl->setVariable(
"DB_VERSION",$settings[
"db_version"]);
589 $this->tpl->setVariable(
"ILIAS_VERSION",$settings[
"ilias_version"]);
590 $this->tpl->setVariable(
"INST_ID",$settings[
"inst_id"]);
591 $this->tpl->setVariable(
"CLIENT_ID",CLIENT_ID);
592 $this->tpl->setVariable(
"INST_NAME",$this->ilias->ini->readVariable(
"client",
"name"));
593 $this->tpl->setVariable(
"INST_INFO",$this->ilias->ini->readVariable(
"client",
"description"));
594 $this->tpl->setVariable(
"FEEDBACK_RECIPIENT",$settings[
"feedback_recipient"]);
595 $this->tpl->setVariable(
"ERROR_RECIPIENT",$settings[
"error_recipient"]);
597 $this->tpl->setVariable(
"PHP_INFO_LINK",
598 $this->ctrl->getLinkTarget($this,
"showPHPInfo"));
601 if ($settings[
"pub_section"])
603 $this->tpl->setVariable(
"PUB_SECTION",
"checked=\"checked\"");
606 if ($settings[
"default_repository_view"] ==
"tree")
608 $this->tpl->setVariable(
"TREESELECTED",
"selected=\"1\"");
612 $this->tpl->setVariable(
"FLATSELECTED",
"selected=\"1\"");
615 if($settings[
'password_assistance'])
617 $this->tpl->setVariable(
"PASSWORD_ASSISTANCE",
"checked=\"checked\"");
619 $this->tpl->setVariable(
"VAL_SHORT_NAME", $settings[
'short_inst_title']);
620 if($settings[
'passwd_auto_generate'])
622 $this->tpl->setVariable(
"PASSWORD_AUTO_GENERATE",
"checked=\"checked\"");
627 if($settings[
'links_dynamic'])
629 $this->tpl->setVariable(
"LINKS_DYNAMIC_CHECKED",
"checked=\"checked\"");
632 if($settings[
'enable_trash'])
634 $this->tpl->setVariable(
"ENABLE_TRASH_CHECKED",
"checked=\"checked\"");
637 if($settings[
'session_reminder_enabled'])
639 $this->tpl->setVariable(
'SESSION_REMINDER_ENABLED',
'checked=checked');
642 if ($settings[
"require_login"])
644 $this->tpl->setVariable(
"REQUIRE_LOGIN",
"checked=\"checked\"");
646 if ($settings[
"require_passwd"])
648 $this->tpl->setVariable(
"REQUIRE_PASSWD",
"checked=\"checked\"");
650 if ($settings[
"require_passwd2"])
652 $this->tpl->setVariable(
"REQUIRE_PASSWD2",
"checked=\"checked\"");
654 if ($settings[
"require_firstname"])
656 $this->tpl->setVariable(
"REQUIRE_FIRSTNAME",
"checked=\"checked\"");
658 if ($settings[
"require_gender"])
660 $this->tpl->setVariable(
"REQUIRE_GENDER",
"checked=\"checked\"");
662 if ($settings[
"require_lastname"])
664 $this->tpl->setVariable(
"REQUIRE_LASTNAME",
"checked=\"checked\"");
666 if ($settings[
"require_institution"])
668 $this->tpl->setVariable(
"REQUIRE_INSTITUTION",
"checked=\"checked\"");
670 if ($settings[
"require_department"])
672 $this->tpl->setVariable(
"REQUIRE_DEPARTMENT",
"checked=\"checked\"");
674 if ($settings[
"require_street"])
676 $this->tpl->setVariable(
"REQUIRE_STREET",
"checked=\"checked\"");
678 if ($settings[
"require_city"])
680 $this->tpl->setVariable(
"REQUIRE_CITY",
"checked=\"checked\"");
682 if ($settings[
"require_zipcode"])
684 $this->tpl->setVariable(
"REQUIRE_ZIPCODE",
"checked=\"checked\"");
686 if ($settings[
"require_country"])
688 $this->tpl->setVariable(
"REQUIRE_COUNTRY",
"checked=\"checked\"");
690 if ($settings[
"require_phone_office"])
692 $this->tpl->setVariable(
"REQUIRE_PHONE_OFFICE",
"checked=\"checked\"");
694 if ($settings[
"require_phone_home"])
696 $this->tpl->setVariable(
"REQUIRE_PHONE_HOME",
"checked=\"checked\"");
698 if ($settings[
"require_phone_mobile"])
700 $this->tpl->setVariable(
"REQUIRE_PHONE_MOBILE",
"checked=\"checked\"");
702 if ($settings[
"require_fax"])
704 $this->tpl->setVariable(
"REQUIRE_FAX",
"checked=\"checked\"");
706 if ($settings[
"require_email"])
708 $this->tpl->setVariable(
"REQUIRE_EMAIL",
"checked=\"checked\"");
710 if ($settings[
"require_hobby"])
712 $this->tpl->setVariable(
"REQUIRE_HOBBY",
"checked=\"checked\"");
714 if ($settings[
"require_default_role"])
716 $this->tpl->setVariable(
"REQUIRE_DEFAULT_ROLE",
"checked=\"checked\"");
718 if ($settings[
"require_referral_comment"])
720 $this->tpl->setVariable(
"REQUIRE_REFERRAL_COMMENT",
"checked=\"checked\"");
722 if ($settings[
"require_matriculation"])
724 $this->tpl->setVariable(
"REQUIRE_MATRICULATION",
"checked=\"checked\"");
726 if ($settings[
"cron_user_check"])
728 $this->tpl->setVariable(
"CRON_USER_CHECK",
"checked=\"checked\"");
730 if ($settings[
"cron_link_check"])
732 $this->tpl->setVariable(
"CRON_LINK_CHECK",
"checked=\"checked\"");
734 if($settings[
"cron_lucene_index"])
736 $this->tpl->setVariable(
"CRON_LUCENE_INDEX",
"checked=\"checked\"");
738 if ($settings[
"forum_notification"] == 0)
740 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_NEVER_SELECTED",
" selected");
742 else if ($settings[
"forum_notification"] == 1)
744 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_DIRECTLY_SELECTED",
" selected");
746 else if ($settings[
"forum_notification"] == 2)
748 $this->tpl->setVariable(
"CRON_FORUM_NOTIFICATION_CRON_SELECTED",
" selected");
750 if ($settings[
"mail_notification"] == 0)
752 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_NEVER_SELECTED",
" selected=\"selected\"");
754 else if ($settings[
"mail_notification"] == 1)
756 $this->tpl->setVariable(
"CRON_MAIL_NOTIFICATION_CRON_SELECTED",
" selected=\"selected\"");
757 if($settings[
"mail_notification_message"] == 1)
759 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK",
"checked=\"checked\"");
763 $this->tpl->setVariable(
"CRON_MAIL_MESSAGE_CHECK_DISABLED",
"DISABLED");
766 if ($val = $settings[
"cron_web_resource_check"])
771 $this->tpl->setVariable(
"D_SELECT",
'selected="selected"');
774 $this->tpl->setVariable(
"W_SELECT",
'selected="selected"');
777 $this->tpl->setVariable(
"M_SELECT",
'selected="selected"');
780 $this->tpl->setVariable(
"Q_SELECT",
'selected="selected"');
785 switch($settings[
'frm_store_new'])
788 $this->tpl->setVariable(
"ONE_SELECT",
'selected="selected"');
792 $this->tpl->setVariable(
"TWO_SELECT",
'selected="selected"');
796 $this->tpl->setVariable(
"FOUR_SELECT",
'selected="selected"');
801 $this->tpl->setVariable(
"EIGHT_SELECT",
'selected="selected"');
804 if ($settings[
"soap_user_administration"])
806 $this->tpl->setVariable(
"SOAP_USER_ADMINISTRATION_CHECK",
"checked=\"checked\"");
809 $this->tpl->setVariable(
"JAVA_SERVER_HOST",$settings[
"rpc_server_host"]);
810 $this->tpl->setVariable(
"JAVA_SERVER_PORT",$settings[
"rpc_server_port"]);
819 $not_set = $this->lng->txt(
"path_not_set");
821 $this->tpl->setVariable(
"CONVERT_PATH",(PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
822 $this->tpl->setVariable(
"ZIP_PATH",(PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
823 $this->tpl->setVariable(
"UNZIP_PATH",(PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
824 $this->tpl->setVariable(
"JAVA_PATH",(PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
825 $this->tpl->setVariable(
"HTMLDOC_PATH",(PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
826 $this->tpl->setVariable(
"MKISOFS_PATH",(PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
827 $this->tpl->setVariable(
"LATEX_URL",(URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
830 $this->tpl->setVariable(
"ADMIN_FIRSTNAME",$settings[
"admin_firstname"]);
831 $this->tpl->setVariable(
"ADMIN_LASTNAME",$settings[
"admin_lastname"]);
832 $this->tpl->setVariable(
"ADMIN_TITLE",$settings[
"admin_title"]);
833 $this->tpl->setVariable(
"ADMIN_POSITION",$settings[
"admin_position"]);
834 $this->tpl->setVariable(
"ADMIN_INSTITUTION",$settings[
"admin_institution"]);
835 $this->tpl->setVariable(
"ADMIN_STREET",$settings[
"admin_street"]);
836 $this->tpl->setVariable(
"ADMIN_ZIPCODE",$settings[
"admin_zipcode"]);
837 $this->tpl->setVariable(
"ADMIN_CITY",$settings[
"admin_city"]);
838 $this->tpl->setVariable(
"ADMIN_COUNTRY",$settings[
"admin_country"]);
839 $this->tpl->setVariable(
"ADMIN_PHONE",$settings[
"admin_phone"]);
840 $this->tpl->setVariable(
"ADMIN_EMAIL",$settings[
"admin_email"]);
842 $this->tpl->parseCurrentBlock();
857 $ilTabs->addSubTab(
"system_check_sub", $this->lng->txt(
"system_check"),
858 $ilCtrl->getLinkTarget($this,
"check"));
859 $ilTabs->addSubTab(
"no_owner", $this->lng->txt(
"system_check_no_owner"),
860 $ilCtrl->getLinkTargetByClass(
"ilObjectOwnershipManagementGUI"));
862 $ilTabs->setSubTabActive($a_activate);
863 $ilTabs->setTabActive(
"system_check");
877 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
879 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
883 if (
$_POST[
'count_limit'] !== null ||
$_POST[
'age_limit'] !== null ||
$_POST[
'type_limit'] !== null)
885 $ilias->account->writePref(
'systemcheck_count_limit',
886 (is_numeric(
$_POST[
'count_limit']) &&
$_POST[
'count_limit'] > 0) ?
$_POST[
'count_limit'] :
''
888 $ilias->account->writePref(
'systemcheck_age_limit',
889 (is_numeric(
$_POST[
'age_limit']) &&
$_POST[
'age_limit'] > 0) ?
$_POST[
'age_limit'] :
'');
890 $ilias->account->writePref(
'systemcheck_type_limit', trim(
$_POST[
'type_limit']));
902 include_once
"./Services/Repository/classes/class.ilValidator.php";
904 $hasScanLog = $validator->hasScanLog();
906 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_check.html",
907 "Modules/SystemFolder");
911 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_last_log"));
914 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
915 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"systemcheck"));
916 $this->tpl->setVariable(
"COLSPAN", 3);
917 $this->tpl->setVariable(
"TXT_ANALYZE_TITLE", $this->lng->txt(
"analyze_data"));
918 $this->tpl->setVariable(
"TXT_ANALYSIS_OPTIONS", $this->lng->txt(
"analysis_options"));
919 $this->tpl->setVariable(
"TXT_REPAIR_OPTIONS", $this->lng->txt(
"repair_options"));
920 $this->tpl->setVariable(
"TXT_OUTPUT_OPTIONS", $this->lng->txt(
"output_options"));
921 $this->tpl->setVariable(
"TXT_SCAN", $this->lng->txt(
"scan"));
922 $this->tpl->setVariable(
"TXT_SCAN_DESC", $this->lng->txt(
"scan_desc"));
923 $this->tpl->setVariable(
"TXT_DUMP_TREE", $this->lng->txt(
"dump_tree"));
924 $this->tpl->setVariable(
"TXT_DUMP_TREE_DESC", $this->lng->txt(
"dump_tree_desc"));
925 $this->tpl->setVariable(
"TXT_CLEAN", $this->lng->txt(
"clean"));
926 $this->tpl->setVariable(
"TXT_CLEAN_DESC", $this->lng->txt(
"clean_desc"));
927 $this->tpl->setVariable(
"TXT_RESTORE", $this->lng->txt(
"restore_missing"));
928 $this->tpl->setVariable(
"TXT_RESTORE_DESC", $this->lng->txt(
"restore_missing_desc"));
929 $this->tpl->setVariable(
"TXT_PURGE", $this->lng->txt(
"purge_missing"));
930 $this->tpl->setVariable(
"TXT_PURGE_DESC", $this->lng->txt(
"purge_missing_desc"));
931 $this->tpl->setVariable(
"TXT_RESTORE_TRASH", $this->lng->txt(
"restore_trash"));
932 $this->tpl->setVariable(
"TXT_RESTORE_TRASH_DESC", $this->lng->txt(
"restore_trash_desc"));
933 $this->tpl->setVariable(
"TXT_PURGE_TRASH", $this->lng->txt(
"purge_trash"));
934 $this->tpl->setVariable(
"TXT_PURGE_TRASH_DESC", $this->lng->txt(
"purge_trash_desc"));
935 $this->tpl->setVariable(
"TXT_COUNT_LIMIT", $this->lng->txt(
"purge_count_limit"));
936 $this->tpl->setVariable(
"TXT_COUNT_LIMIT_DESC", $this->lng->txt(
"purge_count_limit_desc"));
937 $this->tpl->setVariable(
"COUNT_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_count_limit"));
938 $this->tpl->setVariable(
"TXT_AGE_LIMIT", $this->lng->txt(
"purge_age_limit"));
939 $this->tpl->setVariable(
"TXT_AGE_LIMIT_DESC", $this->lng->txt(
"purge_age_limit_desc"));
940 $this->tpl->setVariable(
"AGE_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_age_limit"));
941 $this->tpl->setVariable(
"TXT_TYPE_LIMIT", $this->lng->txt(
"purge_type_limit"));
942 $this->tpl->setVariable(
"TXT_TYPE_LIMIT_DESC", $this->lng->txt(
"purge_type_limit_desc"));
944 if($ilias->account->getPref(
'systemcheck_mode_scan'))
945 $this->tpl->touchBlock(
'mode_scan_checked');
946 if($ilias->account->getPref(
'systemcheck_mode_dump_tree'))
947 $this->tpl->touchBlock(
'mode_dump_tree_checked');
948 if($ilias->account->getPref(
'systemcheck_mode_clean'))
949 $this->tpl->touchBlock(
'mode_clean_checked');
950 if($ilias->account->getPref(
'systemcheck_mode_restore'))
952 $this->tpl->touchBlock(
'mode_restore_checked');
953 $this->tpl->touchBlock(
'mode_purge_disabled');
955 elseif($ilias->account->getPref(
'systemcheck_mode_purge'))
957 $this->tpl->touchBlock(
'mode_purge_checked');
958 $this->tpl->touchBlock(
'mode_restore_disabled');
960 if($ilias->account->getPref(
'systemcheck_mode_restore_trash'))
962 $this->tpl->touchBlock(
'mode_restore_trash_checked');
963 $this->tpl->touchBlock(
'mode_purge_trash_disabled');
965 elseif($ilias->account->getPref(
'systemcheck_mode_purge_trash'))
967 $this->tpl->touchBlock(
'mode_purge_trash_checked');
968 $this->tpl->touchBlock(
'mode_restore_trash_disabled');
970 if($ilias->account->getPref(
'systemcheck_log_scan'))
971 $this->tpl->touchBlock(
'log_scan_checked');
976 $obj_types_in_tree = array();
979 $set = $ilDB->query(
'SELECT type FROM object_data od'.
980 ' JOIN object_reference ref ON (od.obj_id = ref.obj_id)'.
981 ' JOIN tree ON (tree.child = ref.ref_id)'.
982 ' WHERE tree.tree < 1'.
984 while(
$row = $ilDB->fetchAssoc($set))
986 $obj_types_in_tree[] =
$row[
'type'];
989 $types = $objDefinition->getAllObjects();
990 $ts = array(
"" =>
"");
991 foreach ($types as
$t)
993 if ($t !=
"" && !$objDefinition->isSystemObject($t) && $t !=
"root" &&
994 in_array($t, $obj_types_in_tree))
996 if ($objDefinition->isPlugin($t))
1002 $ts[
$t] = $this->lng->txt(
"obj_".$t);
1007 $this->tpl->setVariable(
"TYPE_LIMIT_CHOICE",
1009 $ilias->account->getPref(
"systemcheck_type_limit"),
1014 $this->tpl->setVariable(
"TXT_LOG_SCAN", $this->lng->txt(
"log_scan"));
1015 $this->tpl->setVariable(
"TXT_LOG_SCAN_DESC", $this->lng->txt(
"log_scan_desc"));
1016 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"start_scan"));
1018 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save_params_for_cron"));
1020 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
1023 $cron_form->setFormAction($this->ctrl->getFormAction($this));
1024 $cron_form->setTitle($this->lng->txt(
'systemcheck_cronform'));
1027 $radio_group->
setValue( $ilSetting->get(
'systemcheck_cron') );
1029 $radio_opt =
new ilRadioOption($this->lng->txt(
'disabled'),0);
1030 $radio_group->addOption($radio_opt);
1032 $radio_opt =
new ilRadioOption($this->lng->txt(
'enabled'),1);
1033 $radio_group->addOption($radio_opt);
1035 $cron_form->addItem($radio_group);
1037 $cron_form->addCommandButton(
'saveCheckCron',$this->lng->txt(
'save'));
1039 $this->tpl->setVariable(
'CRON_FORM',$cron_form->getHTML());
1052 include_once
"./Services/Repository/classes/class.ilValidator.php";
1054 $modes = $validator->getPossibleModes();
1057 foreach($modes as $mode)
1059 if( isset(
$_POST[
'mode'][$mode]) ) $value = (int)
$_POST[
'mode'][$mode];
1061 $prefs[
'systemcheck_mode_'.$mode ] = $value;
1064 if( isset(
$_POST[
'log_scan']) ) $value = (
int)
$_POST[
'log_scan'];
1066 $prefs[
'systemcheck_log_scan'] = $value;
1069 foreach($prefs as $key => $val)
1071 $ilUser->writePref($key,$val);
1079 $systemcheck_cron = (
$_POST[
'cronjob'] ? 1 : 0);
1080 $ilSetting->set(
'systemcheck_cron',$systemcheck_cron);
1093 global $rbacsystem, $styleDefinition;
1095 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.header_title_edit.html",
1096 "Modules/SystemFolder");
1103 $_GET[
"mode"] =
"session";
1104 $array_push =
false;
1108 if ((
$_GET[
"mode"] !=
"session"))
1110 $data = $this->
object->getHeaderTitleTranslations();
1112 $array_push =
false;
1114 elseif (
$_GET[
"entry"] != 0)
1116 array_splice(
$_SESSION[
"translation_post"][
"Fobject"],
$_GET[
"entry"],1,array());
1118 if (
$_GET[
"entry"] ==
$_SESSION[
"translation_post"][
"default_language"])
1120 $_SESSION[
"translation_post"][
"default_language"] =
"";
1127 if (!
$_GET[
"entry"] and $array_push)
1129 $count = array_push(
$data[
"Fobject"],array(
"title" =>
"",
"desc" =>
""));
1133 $count = count(
$data[
"Fobject"]);
1137 $strip = isset(
$_SESSION[
"translation_post"]) ?
true :
false;
1139 foreach (
$data[
"Fobject"] as $key => $val)
1142 if ($key == $count -1)
1144 $this->tpl->setCurrentBlock(
"addTranslation");
1145 $this->tpl->setVariable(
"TXT_ADD_TRANSLATION",$this->lng->txt(
"add_translation").
" >>");
1146 $this->tpl->parseCurrentBlock();
1152 $this->tpl->setCurrentBlock(
"removeTranslation");
1153 $this->tpl->setVariable(
"TXT_REMOVE_TRANSLATION",$this->lng->txt(
"remove_translation"));
1154 $this->ctrl->setParameter($this,
"entry", $key);
1155 $this->ctrl->setParameter($this,
"mode",
"edit");
1156 $this->tpl->setVariable(
"LINK_REMOVE_TRANSLATION",
1157 $this->ctrl->getLinkTarget($this,
"removeTranslation"));
1158 $this->tpl->parseCurrentBlock();
1162 $this->tpl->addBlockFile(
"SEL_LANGUAGE",
"sel_language",
"tpl.lang_selection.html",
1163 "Services/MetaData");
1164 $this->tpl->setVariable(
"SEL_NAME",
"Fobject[".$key.
"][lang]");
1166 include_once(
'Services/MetaData/classes/class.ilMDLanguageItem.php');
1170 foreach ($languages as $code => $language)
1172 $this->tpl->setCurrentBlock(
"lg_option");
1173 $this->tpl->setVariable(
"VAL_LG", $code);
1174 $this->tpl->setVariable(
"TXT_LG", $language);
1176 if ($code == $val[
"lang"])
1178 $this->tpl->setVariable(
"SELECTED",
"selected=\"selected\"");
1181 $this->tpl->parseCurrentBlock();
1185 $this->tpl->setCurrentBlock(
"obj_form");
1189 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"change_header_title"));
1193 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"translation").
" ".$key);
1196 if ($key ==
$data[
"default_language"])
1198 $this->tpl->setVariable(
"CHECKED",
"checked=\"checked\"");
1201 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
1202 $this->tpl->setVariable(
"TXT_DESC", $this->lng->txt(
"desc"));
1203 $this->tpl->setVariable(
"TXT_DEFAULT", $this->lng->txt(
"default"));
1204 $this->tpl->setVariable(
"TXT_LANGUAGE", $this->lng->txt(
"language"));
1207 $this->tpl->setVariable(
"NUM", $key);
1208 $this->tpl->parseCurrentBlock();
1212 $this->tpl->setCurrentBlock(
"adm_content");
1214 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1215 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
1216 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
1217 $this->tpl->setVariable(
"CMD_SUBMIT",
"saveHeaderTitle");
1218 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
1229 if (!isset(
$data[
"default_language"]))
1231 $this->ilias->raiseError($this->lng->txt(
"msg_no_default_language"),$this->ilias->error_obj->MESSAGE);
1235 foreach (
$data[
"Fobject"] as $key => $val)
1237 $langs[$key] = $val[
"lang"];
1240 $langs = array_count_values($langs);
1243 if (array_key_exists(
"",$langs))
1245 $this->ilias->raiseError($this->lng->txt(
"msg_no_language_selected"),$this->ilias->error_obj->MESSAGE);
1249 if (array_sum($langs) > count($langs))
1251 $this->ilias->raiseError($this->lng->txt(
"msg_multi_language_selected"),$this->ilias->error_obj->MESSAGE);
1256 $_POST[
"Fobject"][
"desc"] = $_POST[
"Fobject"][$_POST[
"default_language"]][
"desc"];
1259 $this->
object->removeHeaderTitleTranslations();
1262 foreach (
$data[
"Fobject"] as $key => $val)
1264 if ($key ==
$data[
"default_language"])
1278 $this->ctrl->redirect($this);
1283 $this->ctrl->redirect($this,
"view");
1295 $this->ctrl->setParameter($this,
"mode",
"session");
1296 $this->ctrl->setParameter($this,
"entry",
"0");
1297 $this->ctrl->redirect($this,
"changeHeaderTitle");
1307 $this->ctrl->setParameter($this,
"entry",
$_GET[
"entry"]);
1308 $this->ctrl->setParameter($this,
"mode",
"session");
1309 $this->ctrl->redirect($this,
"changeHeaderTitle");
1317 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1319 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1322 $logging = ($a_log) ?
true :
false;
1323 include_once
"./Services/Repository/classes/class.ilValidator.php";
1325 $validator->setMode(
"all",
false);
1328 foreach ($a_mode as $mode => $value)
1330 $validator->setMode($mode,(
bool) $value);
1331 $modes[] = $mode.
'='.$value;
1334 $scan_log = $validator->validate();
1336 $mode = $this->lng->txt(
"scan_modes").
": ".implode(
', ',$modes);
1339 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_scan.html",
1340 "Modules/SystemFolder");
1342 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
1343 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scanning_system"));
1344 $this->tpl->setVariable(
"COLSPAN", 3);
1345 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
1346 $this->tpl->setVariable(
"TXT_MODE", $mode);
1348 if ($logging ===
true)
1350 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_log"));
1353 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
1355 $validator->writeScanLogLine($mode);
1360 include_once
"./Services/Repository/classes/class.ilValidator.php";
1361 $validator =
new IlValidator();
1362 $scan_log =& $validator->readScanLog();
1364 if (is_array($scan_log))
1366 $scan_log =
'<pre>'.implode(
"",$scan_log).
'</pre>';
1367 $this->tpl->setVariable(
"ADM_CONTENT", $scan_log);
1371 $scan_log =
"no scanlog found.";
1375 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_scan.html",
1376 "Modules/SystemFolder");
1377 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scan_details"));
1378 $this->tpl->setVariable(
"COLSPAN", 3);
1379 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
1380 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
1391 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1393 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1398 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1402 $cb =
new ilCheckboxInputGUI($lng->txt(
"adm_activate_db_benchmark"),
"enable_db_bench");
1403 $cb->
setChecked($ilSetting->get(
"enable_db_bench"));
1404 $cb->setInfo($lng->txt(
"adm_activate_db_benchmark_desc"));
1405 $this->form->addItem($cb);
1408 $ti =
new ilTextInputGUI($lng->txt(
"adm_db_benchmark_user"),
"db_bench_user");
1409 $ti->
setValue($ilSetting->get(
"db_bench_user"));
1410 $ti->setInfo($lng->txt(
"adm_db_benchmark_user_desc"));
1411 $this->form->addItem($ti);
1413 $this->form->addCommandButton(
"saveBenchSettings", $lng->txt(
"save"));
1415 $this->form->setTitle($lng->txt(
"adm_db_benchmark"));
1416 $this->form->setFormAction($ilCtrl->getFormAction($this));
1418 $tpl->setContent($this->form->getHTML());
1466 $rec = $ilBench->getDbBenchRecords();
1468 include_once(
"./Modules/SystemFolder/classes/class.ilBenchmarkTableGUI.php");
1470 $tpl->setContent($table->getHTML());
1483 $ilTabs->addSubtab(
"settings",
1484 $lng->txt(
"settings"),
1485 $ilCtrl->getLinkTarget($this,
"benchmark"));
1487 $rec = $ilBench->getDbBenchRecords();
1488 if (count($rec) > 0)
1490 $ilTabs->addSubtab(
"chronological",
1491 $lng->txt(
"adm_db_bench_chronological"),
1492 $ilCtrl->getLinkTarget($this,
"showDbBenchChronological"));
1493 $ilTabs->addSubtab(
"slowest_first",
1494 $lng->txt(
"adm_db_bench_slowest_first"),
1495 $ilCtrl->getLinkTarget($this,
"showDbBenchSlowestFirst"));
1496 $ilTabs->addSubtab(
"sorted_by_sql",
1497 $lng->txt(
"adm_db_bench_sorted_by_sql"),
1498 $ilCtrl->getLinkTarget($this,
"showDbBenchSortedBySql"));
1499 $ilTabs->addSubtab(
"by_first_table",
1500 $lng->txt(
"adm_db_bench_by_first_table"),
1501 $ilCtrl->getLinkTarget($this,
"showDbBenchByFirstTable"));
1504 $ilTabs->activateSubTab($a_current);
1515 if (
$_POST[
"enable_db_bench"])
1521 $ilBench->enableDbBench(
false);
1526 $this->ctrl->redirect($this,
"benchmark");
1537 $this->ctrl->setParameter($this,
'cur_mod',
$_POST[
'module']);
1538 $this->ctrl->redirect($this,
"benchmark");
1549 $ilBench->clearData();
1557 global $rbacsystem, $ilHelp;
1561 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
1564 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1566 $tabs_gui->addTarget(
"general_settings",
1567 $this->ctrl->getLinkTarget($this,
"showBasicSettings"),
1568 array(
"showBasicSettings",
"saveBasicSettings"), get_class($this));
1572 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1574 $tabs_gui->addTarget(
"server_data",
1575 $this->ctrl->getLinkTarget($this,
"showServerInfo"),
1576 array(
"showServerInfo",
"view"), get_class($this));
1579 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1584 $tabs_gui->addTarget(
"system_check",
1585 $this->ctrl->getLinkTarget($this,
"check"), array(
"check",
"viewScanLog",
"saveCheckParams",
"saveCheckCron"), get_class($this));
1587 $tabs_gui->addTarget(
"benchmarks",
1588 $this->ctrl->getLinkTarget($this,
"benchmark"),
"benchmark", get_class($this));
1591 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
1593 $tabs_gui->addTarget(
"perm_settings",
1594 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
1623 $btpl =
new ilTemplate(
"tpl.server_data.html",
true,
true,
"Modules/SystemFolder");
1624 $btpl->setVariable(
"FORM", $this->form->getHTML());
1625 $btpl->setVariable(
"PHP_INFO_TARGET", $ilCtrl->getLinkTarget($this,
"showPHPInfo"));
1626 $tpl->setContent($btpl->get());
1638 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1643 $ne->
setValue($ilClientIniFile->readVariable(
"client",
"name"));
1644 $ne->setInfo($ilClientIniFile->readVariable(
"client",
"description"));
1645 $this->form->addItem($ne);
1650 $this->form->addItem($ne);
1654 $ne->
setValue($ilSetting->get(
"inst_id"));
1655 $this->form->addItem($ne);
1659 $ne->
setValue($ilSetting->get(
"db_version"));
1661 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
1662 $this->form->addItem($ne);
1666 $ne->
setValue($ilSetting->get(
"ilias_version"));
1667 $this->form->addItem($ne);
1671 $ne->
setValue($_SERVER[
"SERVER_NAME"]);
1672 $this->form->addItem($ne);
1676 $ne->
setValue($_SERVER[
"SERVER_ADDR"].
":".$_SERVER[
"SERVER_PORT"]);
1677 $this->form->addItem($ne);
1681 $ne->
setValue($_SERVER[
"SERVER_SOFTWARE"]);
1682 $this->form->addItem($ne);
1687 $this->form->addItem($ne);
1692 $this->form->addItem($ne);
1694 $not_set = $lng->txt(
"path_not_set");
1698 $ne->
setValue((PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1699 $this->form->addItem($ne);
1703 $ne->
setValue((PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1704 $this->form->addItem($ne);
1708 $ne->
setValue((PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1709 $this->form->addItem($ne);
1713 $ne->
setValue((PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1714 $this->form->addItem($ne);
1718 $ne->
setValue((PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
1719 $this->form->addItem($ne);
1723 $ne->
setValue((PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
1724 $this->form->addItem($ne);
1728 $ne->
setValue((URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1729 $this->form->addItem($ne);
1732 $this->form->setTitle($lng->txt(
"server_data"));
1733 $this->form->setFormAction($this->ctrl->getFormAction($this));
1750 $ilTabs->addSubTabTarget(
"basic_settings", $ilCtrl->getLinkTarget($this,
"showBasicSettings"));
1751 $ilTabs->addSubTabTarget(
"header_title", $ilCtrl->getLinkTarget($this,
"showHeaderTitle"));
1752 $ilTabs->addSubTabTarget(
"cron_jobs", $ilCtrl->getLinkTarget($this,
"showCronJobs"));
1753 $ilTabs->addSubTabTarget(
"contact_data", $ilCtrl->getLinkTarget($this,
"showContactInformation"));
1754 $ilTabs->addSubTabTarget(
"adm_imprint", $ilCtrl->getLinkTargetByClass(
"ilimprintgui",
"preview"));
1755 $ilTabs->addSubTabTarget(
"webservices", $ilCtrl->getLinkTarget($this,
"showWebServices"));
1756 $ilTabs->addSubTabTarget(
"java_server", $ilCtrl->getLinkTarget($this,
"showJavaServer"));
1757 $ilTabs->addSubTabTarget(
"proxy", $ilCtrl->getLinkTarget($this,
"showProxy"));
1759 $ilTabs->setSubTabActive($a_activate);
1760 $ilTabs->setTabActive(
"general_settings");
1779 $tpl->setContent($this->form->getHTML());
1790 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1792 $lng->loadLanguageModule(
"pd");
1795 $ti =
new ilTextInputGUI($this->lng->txt(
"short_inst_name"),
"short_inst_name");
1798 $ti->setValue($ilSetting->get(
"short_inst_name"));
1799 $ti->setInfo($this->lng->txt(
"short_inst_name_info"));
1800 $this->form->addItem($ti);
1804 $cb->
setInfo($lng->txt(
"pub_section_info"));
1805 if ($ilSetting->get(
"pub_section"))
1807 $cb->setChecked(
true);
1810 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
1813 $cb2->
setInfo($this->lng->txt(
"enable_search_engine"));
1814 $cb->addSubItem($cb2);
1816 if(!$robot_settings->checkRewrite())
1818 $cb2->setAlert($lng->txt(
"allow_override_alert"));
1819 $cb2->setChecked(
false);
1820 $cb2->setDisabled(
true);
1824 if ($ilSetting->get(
"open_google"))
1826 $cb2->setChecked(
true);
1831 $cb_prop =
new ilCheckboxInputGUI($lng->txt(
'pd_enable_user_publish'),
'enable_global_profiles');
1832 $cb_prop->
setInfo($lng->txt(
'pd_enable_user_publish_info'));
1833 $cb_prop->setChecked($ilSetting->get(
'enable_global_profiles'));
1834 $cb->addSubItem($cb_prop);
1838 include_once(
"./Services/Captcha/classes/class.ilCaptchaUtil.php");
1839 $cap =
new ilCheckboxInputGUI($this->lng->txt(
'adm_captcha_wiki_forum'),
'activate_captcha_anonym');
1843 $cap->setChecked($ilSetting->get(
'activate_captcha_anonym'));
1849 $cb->addSubItem($cap);
1852 $this->form->addItem($cb);
1856 "flat" => $lng->txt(
"flatview"),
1857 "tree" => $lng->txt(
"treeview")
1861 $si->setInfo($this->lng->txt(
""));
1862 if ($ilSetting->get(
"default_repository_view") ==
"tree")
1864 $si->setValue(
"tree");
1868 $si->setValue(
"flat");
1870 $this->form->addItem($si);
1874 "" => $lng->txt(
"adm_rep_tree_only_container"),
1875 "tree" => $lng->txt(
"adm_all_resource_types")
1880 $radg->
setValue($ilSetting->get(
"repository_tree_pres"));
1881 $op1 =
new ilRadioOption($lng->txt(
"adm_rep_tree_only_cntr"),
"",
1882 $lng->txt(
"adm_rep_tree_only_cntr_info"));
1883 $radg->addOption($op1);
1885 $op2 =
new ilRadioOption($lng->txt(
"adm_rep_tree_all_types"),
"all_types",
1886 $lng->txt(
"adm_rep_tree_all_types_info"));
1889 $cb =
new ilCheckboxInputGUI($lng->txt(
"adm_rep_tree_limit_grp_crs"),
"rep_tree_limit_grp_crs");
1890 $cb->setChecked($ilSetting->get(
"rep_tree_limit_grp_crs"));
1891 $cb->
setInfo($lng->txt(
"adm_rep_tree_limit_grp_crs_info"));
1892 $op2->addSubItem($cb);
1894 $radg->addOption($op2);
1896 $this->form->addItem($radg);
1898 $sdesc =
new ilCheckboxInputGUI($lng->txt(
"adm_rep_shorten_description"),
"rep_shorten_description");
1899 $sdesc->
setInfo($lng->txt(
"adm_rep_shorten_description_info"));
1900 $sdesc->setChecked($ilSetting->get(
"rep_shorten_description"));
1901 $this->form->addItem($sdesc);
1903 $sdesclen =
new ilTextInputGUI($lng->txt(
"adm_rep_shorten_description_length"),
"rep_shorten_description_length");
1904 $sdesclen->
setValue($ilSetting->get(
"rep_shorten_description_length"));
1905 $sdesclen->setSize(3);
1906 $sdesc->addSubItem($sdesclen);
1909 $cb =
new ilCheckboxInputGUI($lng->txt(
"adm_synchronize_rep_tree"),
"rep_tree_synchronize");
1910 $cb->
setInfo($lng->txt(
"adm_synchronize_rep_tree_info"));
1911 $cb->setChecked($ilSetting->get(
"rep_tree_synchronize"));
1912 $this->form->addItem($cb);
1930 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"adm_item_cmd_asynch"),
"item_cmd_asynch");
1931 $cb->
setInfo($this->lng->txt(
"adm_item_cmd_asynch_info"));
1932 $cb->setChecked($ilSetting->get(
"item_cmd_asynch"));
1933 $this->form->addItem($cb);
1936 $ti =
new ilTextInputGUI($this->lng->txt(
"adm_locale"),
"locale");
1939 $ti->setInfo($this->lng->txt(
"adm_locale_info"));
1940 $ti->setValue($ilSetting->get(
"locale"));
1941 $this->form->addItem($ti);
1946 $cb->
setInfo($this->lng->txt(
"enable_trash_info"));
1947 if ($ilSetting->get(
"enable_trash"))
1949 $cb->setChecked(
true);
1951 $this->form->addItem($cb);
1962 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"session_reminder"),
"session_reminder_enabled");
1965 $cb->
setInfo($this->lng->txt(
"session_reminder_info").
"<br />".
1966 sprintf($this->lng->txt(
'session_reminder_session_duration'), $time));
1967 if((
int)$ilSetting->get(
"session_reminder_enabled"))
1969 $cb->setChecked(
true);
1974 $ssettings->addOption($fixed);
1980 require_once(
'Services/Authentication/classes/class.ilSessionControl.php');
1984 $sub_ti =
new ilTextInputGUI($this->lng->txt(
'session_max_count'),
'session_max_count');
1986 $sub_ti->setSize(5);
1987 $sub_ti->setInfo($this->lng->txt(
'session_max_count_info'));
1988 $sub_ti->setValue($ilSetting->get(
1992 $sub_ti->setDisabled(
true);
1993 $ldsh->addSubItem($sub_ti);
1998 $sub_ti =
new ilTextInputGUI($this->lng->txt(
'session_min_idle'),
'session_min_idle');
2000 $sub_ti->setSize(5);
2001 $sub_ti->setInfo($this->lng->txt(
'session_min_idle_info'));
2002 $sub_ti->setValue($ilSetting->get(
2006 $sub_ti->setDisabled(
true);
2007 $ldsh->addSubItem($sub_ti);
2012 $sub_ti =
new ilTextInputGUI($this->lng->txt(
'session_max_idle'),
'session_max_idle');
2014 $sub_ti->setSize(5);
2015 $sub_ti->setInfo($this->lng->txt(
'session_max_idle_info'));
2016 $sub_ti->setValue($ilSetting->get(
2020 $sub_ti->setDisabled(
true);
2021 $ldsh->addSubItem($sub_ti);
2026 $this->lng->txt(
'session_max_idle_after_first_request'),
2027 'session_max_idle_after_first_request'
2030 $sub_ti->setSize(5);
2031 $sub_ti->setInfo($this->lng->txt(
'session_max_idle_after_first_request_info'));
2032 $sub_ti->setValue($ilSetting->get(
2033 "session_max_idle_after_first_request",
2037 $sub_ti->setDisabled(
true);
2038 $ldsh->addSubItem($sub_ti);
2041 $ssettings->addOption($ldsh);
2048 $this->form->addItem($ssettings);
2055 $ti->
setValue($this->lng->txt(
'session_config_maintenance_disabled'));
2056 $ssettings->setDisabled(
true);
2057 $ti->addSubItem($ssettings);
2058 $this->form->addItem($ti);
2063 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"enable_password_assistance"),
"password_assistance");
2064 if ($ilSetting->get(
"password_assistance"))
2066 $cb->setChecked(
true);
2068 $cb->
setInfo($this->lng->txt(
"password_assistance_info"));
2069 $this->form->addItem($cb);
2072 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"passwd_generation"),
"passwd_auto_generate");
2073 if ($ilSetting->get(
"passwd_auto_generate"))
2075 $cb->setChecked(
true);
2077 $cb->
setInfo($this->lng->txt(
"passwd_generation_info"));
2078 $this->form->addItem($cb);
2082 $cb->
setInfo($this->lng->txt(
"links_dynamic_info"));
2083 if ($ilSetting->get(
"links_dynamic"))
2085 $cb->setChecked(
true);
2087 $this->form->addItem($cb);
2092 $pl->setInfo($this->lng->txt(
'preview_learner_info'));
2093 $pl->setChecked($ilSetting->get(
'preview_learner'));
2094 $this->form->addItem($pl);
2097 $pl =
new ilCheckboxInputGUI($this->lng->txt(
'adm_show_comments_tagging_in_lists'),
'comments_tagging_in_lists');
2099 $pl->setChecked($ilSetting->get(
'comments_tagging_in_lists'));
2100 $this->form->addItem($pl);
2104 include_once
"Services/User/classes/class.ilUserUtil.php";
2107 $si->setInfo($this->lng->txt(
"adm_user_starting_point_info"));
2113 $this->form->addItem($si);
2117 $repobj_id =
new ilTextInputGUI($lng->txt(
"adm_user_starting_point_ref_id"),
"usr_start_ref_id");
2118 $repobj_id->setRequired(
true);
2119 $repobj_id->setSize(5);
2123 $repobj_id->
setValue($start_ref_id);
2129 $repobj_id->
setInfo($lng->txt(
"obj_".ilObject::_lookupType($start_obj_id)).
2134 $repobj->addSubItem($repobj_id);
2135 $si->addOption($repobj);
2138 $startp =
new ilCheckboxInputGUI($lng->txt(
"adm_user_starting_point_personal"),
"usr_start_pers");
2139 $startp->
setInfo($lng->txt(
"adm_user_starting_point_personal_info"));
2141 $si->addSubItem($startp);
2145 $this->form->addCommandButton(
"saveBasicSettings", $lng->txt(
"save"));
2147 $this->form->setTitle($lng->txt(
"basic_settings"));
2148 $this->form->setFormAction($this->ctrl->getFormAction($this));
2160 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2162 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2166 if ($this->form->checkInput())
2168 $ilSetting->set(
"short_inst_name",
$_POST[
"short_inst_name"]);
2169 $ilSetting->set(
"pub_section",
$_POST[
"pub_section"]);
2170 $ilSetting->set(
"open_google",
$_POST[
"open_google"]);
2171 $ilSetting->set(
"default_repository_view",
$_POST[
"default_rep_view"]);
2172 $ilSetting->set(
"links_dynamic",
$_POST[
"links_dynamic"]);
2173 $ilSetting->set(
"enable_trash",
$_POST[
"enable_trash"]);
2174 $ilSetting->set(
"password_assistance",
$_POST[
"password_assistance"]);
2175 $ilSetting->set(
"passwd_auto_generate",
$_POST[
"passwd_auto_generate"]);
2176 $ilSetting->set(
"locale",
$_POST[
"locale"]);
2177 $ilSetting->set(
'preview_learner',(
int)
$_POST[
'preview_learner']);
2178 $ilSetting->set(
'comments_tagging_in_lists',(
int) $_POST[
'comments_tagging_in_lists']);
2179 $ilSetting->set(
'activate_captcha_anonym',(
int) $_POST[
'activate_captcha_anonym']);
2181 $ilSetting->set(
'item_cmd_asynch',(
int) $_POST[
'item_cmd_asynch']);
2182 $ilSetting->set(
"repository_tree_pres", $_POST[
"tree_pres"]);
2183 if ($_POST[
"tree_pres"] ==
"")
2185 $_POST[
"rep_tree_limit_grp_crs"] =
"";
2187 if ($_POST[
"rep_tree_limit_grp_crs"] && !$ilSetting->get(
"rep_tree_limit_grp_crs"))
2189 $_POST[
"rep_tree_synchronize"] =
true;
2191 else if (!$_POST[
"rep_tree_synchronize"] && $ilSetting->get(
"rep_tree_synchronize"))
2193 $_POST[
"rep_tree_limit_grp_crs"] =
false;
2196 $ilSetting->set(
"rep_tree_limit_grp_crs", $_POST[
"rep_tree_limit_grp_crs"]);
2197 $ilSetting->set(
"rep_tree_synchronize", $_POST[
"rep_tree_synchronize"]);
2200 $ilSetting->set(
'session_handling_type',
2201 (
int)$this->form->getInput(
'session_handling_type'));
2205 $ilSetting->set(
'session_reminder_enabled',
2206 $this->form->getInput(
'session_reminder_enabled'));
2210 require_once
'Services/Authentication/classes/class.ilSessionControl.php';
2212 $ilSetting->get(
'session_allow_client_maintenance',
2217 include_once
"Services/Authentication/classes/class.ilSessionStatistics.php";
2220 $ilSetting->set(
'session_max_count',
2221 (
int)$this->form->getInput(
'session_max_count'));
2222 $ilSetting->set(
'session_min_idle',
2223 (
int)$this->form->getInput(
'session_min_idle'));
2224 $ilSetting->set(
'session_max_idle',
2225 (
int)$this->form->getInput(
'session_max_idle'));
2226 $ilSetting->set(
'session_max_idle_after_first_request',
2227 (
int)$this->form->getInput(
'session_max_idle_after_first_request'));
2232 $global_profiles = ($_POST[
"pub_section"])
2233 ? (
int)$_POST[
'enable_global_profiles']
2236 $ilSetting->set(
'enable_global_profiles', $global_profiles);
2238 $ilSetting->set(
"rep_shorten_description", $this->form->getInput(
'rep_shorten_description'));
2239 $ilSetting->set(
"rep_shorten_description_length", (
int)$this->form->getInput(
'rep_shorten_description_length'));
2241 include_once
"Services/User/classes/class.ilUserUtil.php";
2246 $ilCtrl->redirect($this,
"showBasicSettings");
2249 $this->form->setValuesByPost();
2250 $tpl->setContent($this->form->getHtml());
2267 include_once(
"./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
2269 if ($a_get_post_values)
2272 foreach(
$_POST[
"title"] as $k => $v)
2274 $vals[] = array(
"title" => $v,
2275 "desc" =>
$_POST[
"desc"][$k],
2276 "lang" =>
$_POST[
"lang"][$k],
2277 "default" => (
$_POST[
"default"] == $k));
2279 $table->setData($vals);
2283 $data = $this->
object->getHeaderTitleTranslations();
2284 if (is_array(
$data[
"Fobject"]))
2286 foreach(
$data[
"Fobject"] as $k => $v)
2288 if ($k ==
$data[
"default_language"])
2290 $data[
"Fobject"][$k][
"default"] =
true;
2294 $data[
"Fobject"][$k][
"default"] =
false;
2300 $data[
"Fobject"] = array();
2302 $table->setData(
$data[
"Fobject"]);
2304 $tpl->setContent($table->getHTML());
2314 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2316 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2322 if (!isset(
$_POST[
"default"]) && count(
$_POST[
"lang"]) > 0)
2329 if (array_key_exists(
"",
$_POST[
"lang"]))
2336 if (count(array_unique(
$_POST[
"lang"])) < count(
$_POST[
"lang"]))
2343 $this->
object->removeHeaderTitleTranslations();
2344 foreach(
$_POST[
"title"] as $k => $v)
2346 $this->
object->addHeaderTitleTranslation(
2350 (
$_POST[
"default"] == $k));
2354 $ilCtrl->redirect($this,
"showHeaderTitle");
2364 if (is_array(
$_POST[
"title"]))
2366 foreach(
$_POST[
"title"] as $k => $v) {}
2369 $_POST[
"title"][$k] =
"";
2380 foreach(
$_POST[
"title"] as $k => $v)
2384 unset(
$_POST[
"title"][$k]);
2385 unset(
$_POST[
"desc"][$k]);
2386 unset(
$_POST[
"lang"][$k]);
2387 if ($k ==
$_POST[
"default"])
2389 unset(
$_POST[
"default"]);
2412 $tpl->setContent($this->form->getHTML());
2422 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2426 if($ilSetting->get(
'last_cronjob_start_ts'))
2428 include_once(
'./Services/Calendar/classes/class.ilDatePresentation.php');
2433 $cls->setInfo($this->lng->txt(
'cronjob_last_start_unknown'));
2436 $this->form->addItem($cls);
2439 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"check_user_accounts"),
"cron_user_check");
2440 $cb->
setInfo($this->lng->txt(
"check_user_accounts_desc"));
2441 if ($ilSetting->get(
"cron_user_check"))
2443 $cb->setChecked(
true);
2445 $this->form->addItem($cb);
2449 require_once(
'Services/User/classes/class.ilCronDeleteInactiveUserAccounts.php');
2450 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"delete_inactive_user_accounts"),
"cron_inactive_user_delete");
2451 $cb->
setInfo($this->lng->txt(
"delete_inactive_user_accounts_desc"));
2452 if($ilSetting->get(
"cron_inactive_user_delete",
false)) $cb->setChecked(
true);
2455 $this->lng->txt(
'delete_inactive_user_accounts_interval'),
2456 'cron_inactive_user_delete_interval'
2458 $sub_list->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_interval_desc'));
2459 $sub_list->setOptions(
2462 $sub_list->setValue($ilSetting->get(
2463 'cron_inactive_user_delete_interval',
2466 $cb->addSubItem($sub_list);
2468 include_once(
'Services/Form/classes/class.ilMultiSelectInputGUI.php');
2470 $this->lng->txt(
'delete_inactive_user_accounts_include_roles'),
2471 'cron_inactive_user_delete_include_roles'
2473 $sub_mlist->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_include_roles_desc'));
2475 foreach($rbacreview->getGlobalRoles() as $role_id)
2477 if( $role_id != ANONYMOUS_ROLE_ID )
2478 $roles[$role_id] = $ilObjDataCache->lookupTitle($role_id);
2480 $sub_mlist->setOptions($roles);
2481 $setting = $ilSetting->get(
'cron_inactive_user_delete_include_roles', null);
2482 if($setting === null) $setting = array();
2483 else $setting = explode(
',', $setting);
2484 $sub_mlist->setValue($setting);
2485 $sub_mlist->setWidth(300);
2486 #$sub_mlist->setHeight(100);
2487 $cb->addSubItem($sub_mlist);
2491 $this->lng->txt(
'delete_inactive_user_accounts_period'),
2492 'cron_inactive_user_delete_period'
2494 $sub_text->
setInfo($this->lng->txt(
'delete_inactive_user_accounts_period_desc'));
2495 $sub_text->setValue($ilSetting->get(
"cron_inactive_user_delete_period", $default_setting));
2496 $sub_text->setSize(4);
2497 $sub_text->setMaxLength(4);
2498 $cb->addSubItem($sub_text);
2508 $this->form->addItem($cb);
2512 require_once(
'Services/User/classes/class.ilCronDeleteInactivatedUserAccounts.php');
2513 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"delete_inactivated_user_accounts"),
"cron_inactivated_user_delete");
2514 $cb->
setInfo($this->lng->txt(
"delete_inactivated_user_accounts_desc"));
2515 if($ilSetting->get(
"cron_inactivated_user_delete",
false)) $cb->setChecked(
true);
2518 $this->lng->txt(
'delete_inactivated_user_accounts_interval'),
2519 'cron_inactivated_user_delete_interval'
2521 $sub_list->
setInfo($this->lng->txt(
'delete_inactivated_user_accounts_interval_desc'));
2522 $sub_list->setOptions(
2525 $sub_list->setValue($ilSetting->get(
2526 'cron_inactivated_user_delete_interval',
2529 $cb->addSubItem($sub_list);
2531 include_once(
'Services/Form/classes/class.ilMultiSelectInputGUI.php');
2533 $this->lng->txt(
'delete_inactivated_user_accounts_include_roles'),
2534 'cron_inactivated_user_delete_include_roles'
2536 $sub_mlist->
setInfo($this->lng->txt(
'delete_inactivated_user_accounts_include_roles_desc'));
2538 foreach($rbacreview->getGlobalRoles() as $role_id)
2540 if( $role_id != ANONYMOUS_ROLE_ID )
2541 $roles[$role_id] = $ilObjDataCache->lookupTitle($role_id);
2543 $sub_mlist->setOptions($roles);
2544 $setting = $ilSetting->get(
'cron_inactivated_user_delete_include_roles', null);
2545 if($setting === null) $setting = array();
2546 else $setting = explode(
',', $setting);
2547 $sub_mlist->setValue($setting);
2548 $sub_mlist->setWidth(300);
2549 #$sub_mlist->setHeight(100);
2550 $cb->addSubItem($sub_mlist);
2554 $this->lng->txt(
'delete_inactivated_user_accounts_period'),
2555 'cron_inactivated_user_delete_period'
2557 $sub_text->
setInfo($this->lng->txt(
'delete_inactivated_user_accounts_period_desc'));
2558 $sub_text->setValue($ilSetting->get(
"cron_inactivated_user_delete_period", $default_setting));
2559 $sub_text->setSize(4);
2560 $sub_text->setMaxLength(4);
2561 $cb->addSubItem($sub_text);
2571 $this->form->addItem($cb);
2576 $cb->
setInfo($this->lng->txt(
"check_link_desc"));
2577 if ($ilSetting->get(
"cron_link_check"))
2579 $cb->setChecked(
true);
2581 $this->form->addItem($cb);
2585 "0" => $lng->txt(
"never"),
2586 "1" => $lng->txt(
"daily"),
2587 "2" => $lng->txt(
"weekly"),
2588 "3" => $lng->txt(
"monthly"),
2589 "4" => $lng->txt(
"quarterly")
2591 $si =
new ilSelectInputGUI($this->lng->txt(
"check_web_resources"),
"cron_web_resource_check");
2593 $si->setInfo($this->lng->txt(
"check_web_resources_desc"));
2594 $si->setValue($ilSetting->get(
"cron_web_resource_check"));
2595 $this->form->addItem($si);
2598 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cron_lucene_index"),
"cron_lucene_index");
2599 $cb->
setInfo($this->lng->txt(
"cron_lucene_index_info"));
2600 if ($ilSetting->get(
"cron_lucene_index"))
2602 $cb->setChecked(
true);
2604 $this->form->addItem($cb);
2608 "0" => $lng->txt(
"cron_forum_notification_never"),
2609 "1" => $lng->txt(
"cron_forum_notification_directly"),
2610 "2" => $lng->txt(
"cron_forum_notification_cron"),
2612 $si =
new ilSelectInputGUI($this->lng->txt(
"cron_forum_notification"),
"forum_notification");
2614 $si->setInfo($this->lng->txt(
"cron_forum_notification_desc"));
2615 $si->setValue($ilSetting->get(
"forum_notification"));
2616 $this->form->addItem($si);
2620 "0" => $lng->txt(
"cron_mail_notification_never"),
2621 "1" => $lng->txt(
"cron_mail_notification_cron")
2623 $si =
new ilSelectInputGUI($this->lng->txt(
"cron_mail_notification"),
"mail_notification");
2625 $si->setInfo($this->lng->txt(
"cron_mail_notification_desc"));
2626 $si->setValue($ilSetting->get(
"mail_notification"));
2627 $this->form->addItem($si);
2629 if($ilSetting->get(
"mail_notification") ==
'1')
2631 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"cron_mail_notification_message"),
"mail_notification_message");
2632 $cb->
setInfo($this->lng->txt(
"cron_mail_notification_message_info"));
2633 if ($ilSetting->get(
"mail_notification_message"))
2635 $cb->setChecked(
true);
2637 $this->form->addItem($cb);
2641 $dq_settings =
new ilSetting(
'disk_quota');
2642 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"enable_disk_quota"),
"enable_disk_quota");
2643 $cb->
setInfo($this->lng->txt(
"enable_disk_quota_info"));
2644 if ($dq_settings->get(
'enabled'))
2646 $cb->setChecked(
true);
2648 $this->form->addItem($cb);
2650 $cb_reminder =
new ilCheckboxInputGUI($this->lng->txt(
"enable_disk_quota_reminder_mail"),
"enable_disk_quota_reminder_mail");
2651 $cb_reminder->
setInfo($this->lng->txt(
"disk_quota_reminder_mail_desc"));
2652 if ($dq_settings->get(
'reminder_mail_enabled'))
2654 $cb_reminder->setChecked(
true);
2656 $cb->addSubItem($cb_reminder);
2659 $cb_prop_summary=
new ilCheckboxInputGUI($lng->txt(
"enable_disk_quota_summary_mail"),
"enable_disk_quota_summary_mail");
2661 $cb_prop_summary->setChecked((
int)$dq_settings->get(
'summary_mail_enabled', 0) == 1);
2662 $cb_prop_summary->setInfo($lng->txt(
'enable_disk_quota_summary_mail_desc'));
2663 $cb->addSubItem($cb_prop_summary);
2666 $summary_rcpt =
new ilTextInputGUI($lng->txt(
"disk_quota_summary_rctp"),
"disk_quota_summary_rctp");
2667 $summary_rcpt->
setValue($dq_settings->get(
'summary_rcpt',
''));
2668 $summary_rcpt->setInfo($lng->txt(
'disk_quota_summary_rctp_desc'));
2669 $cb_prop_summary->addSubItem($summary_rcpt);
2672 $payment_noti =
new ilCheckboxInputGUI($lng->txt(
"payment_notification"),
"payment_notification");
2674 $payment_noti->setChecked((
int)$ilSetting->get(
'payment_notification', 0) == 1);
2675 $payment_noti->setInfo($lng->txt(
'payment_notification_desc'));
2677 $num_days =
new ilNumberInputGUI($this->lng->txt(
'payment_notification_days'),
'payment_notification_days');
2679 $num_days->setMinValue(0);
2680 $num_days->setMaxValue(120);
2681 $num_days->setRequired(
true);
2682 $num_days->setValue($ilSetting->get(
'payment_notification_days'));
2683 $num_days->setInfo($lng->txt(
'payment_notification_days_desc'));
2685 $payment_noti->addSubItem($num_days);
2686 $this->form->addItem($payment_noti);
2689 $inv_options = array(
2690 "1" => $lng->txt(
"yearly"),
2691 "2" => $lng->txt(
"monthly")
2693 include_once
'./Services/Payment/classes/class.ilUserDefinedInvoiceNumber.php';
2696 $inv_reset =
new ilSelectInputGUI($this->lng->txt(
"invoice_number_reset_period"),
"invoice_number_reset_period");
2698 $inv_reset->setInfo($this->lng->txt(
"invoice_number_reset_period_desc"));
2700 $this->form->addItem($inv_reset);
2704 $inv_info =
new ilNonEditableValueGUI($this->lng->txt(
'invoice_number_reset_period'),
'invoice_number_reset_period');
2705 $inv_info->
setInfo($lng->txt(
'payment_userdefined_invoice_number_not_activated'));
2706 $this->form->addItem($inv_info);
2710 $crsgrp_ntf =
new ilCheckboxInputGUI($this->lng->txt(
"enable_course_group_notifications"),
"crsgrp_ntf");
2711 $crsgrp_ntf->
setInfo($this->lng->txt(
"enable_course_group_notifications_desc"));
2712 if ($ilSetting->get(
'crsgrp_ntf'))
2714 $crsgrp_ntf->setChecked(
true);
2716 $this->form->addItem($crsgrp_ntf);
2718 $this->form->addCommandButton(
"saveCronJobs", $lng->txt(
"save"));
2720 $this->form->setTitle($lng->txt(
"cron_jobs"));
2721 $this->form->setDescription($lng->txt(
"cron_jobs_desc"));
2722 $this->form->setFormAction($this->ctrl->getFormAction($this));
2734 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2736 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2740 if ($this->form->checkInput())
2742 $ilSetting->set(
"cron_user_check",
$_POST[
"cron_user_check"]);
2743 $ilSetting->set(
"cron_link_check",
$_POST[
"cron_link_check"]);
2744 $ilSetting->set(
"cron_web_resource_check",
$_POST[
"cron_web_resource_check"]);
2745 $ilSetting->set(
"cron_lucene_index",
$_POST[
"cron_lucene_index"]);
2746 $ilSetting->set(
"forum_notification",
$_POST[
"forum_notification"]);
2747 $ilSetting->set(
"mail_notification",
$_POST[
"mail_notification"]);
2748 $ilSetting->set(
'mail_notification_message',
$_POST[
'mail_notification_message'] ? 1 : 0);
2750 $ilSetting->set(
'cron_inactive_user_delete',
$_POST[
'cron_inactive_user_delete']);
2751 $ilSetting->set(
'cron_inactive_user_delete_interval',
$_POST[
'cron_inactive_user_delete_interval']);
2752 $setting = implode(
',',
$_POST[
'cron_inactive_user_delete_include_roles']);
2753 if( !strlen($setting) ) $setting = null;
2754 $ilSetting->set(
'cron_inactive_user_delete_include_roles', $setting);
2755 $ilSetting->set(
'cron_inactive_user_delete_period',
$_POST[
'cron_inactive_user_delete_period']);
2757 $ilSetting->set(
'cron_inactivated_user_delete',
$_POST[
'cron_inactivated_user_delete']);
2758 $ilSetting->set(
'cron_inactivated_user_delete_interval',
$_POST[
'cron_inactivated_user_delete_interval']);
2759 $setting = implode(
',',
$_POST[
'cron_inactivated_user_delete_include_roles']);
2760 if( !strlen($setting) ) $setting = null;
2761 $ilSetting->set(
'cron_inactivated_user_delete_include_roles', $setting);
2762 $ilSetting->set(
'cron_inactivated_user_delete_period',
$_POST[
'cron_inactivated_user_delete_period']);
2765 $dq_settings =
new ilSetting(
'disk_quota');
2766 $dq_settings->set(
'enabled',
$_POST[
'enable_disk_quota'] ? 1 : 0);
2767 $dq_settings->set(
'reminder_mail_enabled',
$_POST[
'enable_disk_quota_reminder_mail'] ? 1 : 0);
2770 $dq_settings->set(
'summary_mail_enabled',
$_POST[
'enable_disk_quota_summary_mail'] ? 1 : 0);
2774 $ilSetting->set(
'payment_notification',
$_POST[
'payment_notification'] ? 1 : 0);
2775 $ilSetting->set(
'payment_notification_days',
$_POST[
'payment_notification_days']);
2777 $ilSetting->set(
'crsgrp_ntf',
$_POST[
'crsgrp_ntf']);
2780 $ilCtrl->redirect($this,
"showCronJobs");
2785 $this->form->setValuesByPost();
2786 $tpl->setContent($this->form->getHtml());
2805 $tpl->setContent($this->form->getHTML());
2815 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2819 $ti =
new ilTextInputGUI($this->lng->txt(
"firstname"),
"admin_firstname");
2822 $ti->setRequired(
true);
2823 $ti->setValue($ilSetting->get(
"admin_firstname"));
2824 $this->form->addItem($ti);
2827 $ti =
new ilTextInputGUI($this->lng->txt(
"lastname"),
"admin_lastname");
2830 $ti->setRequired(
true);
2831 $ti->setValue($ilSetting->get(
"admin_lastname"));
2832 $this->form->addItem($ti);
2835 $ti =
new ilTextInputGUI($this->lng->txt(
"title"),
"admin_title");
2838 $ti->setValue($ilSetting->get(
"admin_title"));
2839 $this->form->addItem($ti);
2842 $ti =
new ilTextInputGUI($this->lng->txt(
"position"),
"admin_position");
2845 $ti->setValue($ilSetting->get(
"admin_position"));
2846 $this->form->addItem($ti);
2849 $ti =
new ilTextInputGUI($this->lng->txt(
"institution"),
"admin_institution");
2852 $ti->setValue($ilSetting->get(
"admin_institution"));
2853 $this->form->addItem($ti);
2856 $ti =
new ilTextInputGUI($this->lng->txt(
"street"),
"admin_street");
2860 $ti->setValue($ilSetting->get(
"admin_street"));
2861 $this->form->addItem($ti);
2864 $ti =
new ilTextInputGUI($this->lng->txt(
"zipcode"),
"admin_zipcode");
2868 $ti->setValue($ilSetting->get(
"admin_zipcode"));
2869 $this->form->addItem($ti);
2876 $ti->setValue($ilSetting->get(
"admin_city"));
2877 $this->form->addItem($ti);
2880 $ti =
new ilTextInputGUI($this->lng->txt(
"country"),
"admin_country");
2884 $ti->setValue($ilSetting->get(
"admin_country"));
2885 $this->form->addItem($ti);
2888 $ti =
new ilTextInputGUI($this->lng->txt(
"phone"),
"admin_phone");
2892 $ti->setValue($ilSetting->get(
"admin_phone"));
2893 $this->form->addItem($ti);
2896 $ti =
new ilTextInputGUI($this->lng->txt(
"email"),
"admin_email");
2899 $ti->setRequired(
true);
2900 $ti->setValue($ilSetting->get(
"admin_email"));
2901 $this->form->addItem($ti);
2904 $ti =
new ilEmailInputGUI($this->lng->txt(
"feedback_recipient"),
"feedback_recipient");
2905 $ti->setInfo(sprintf($this->lng->txt(
"feedback_recipient_info"), $this->lng->txt(
"contact_sysadmin")));
2906 $ti->setRequired(
true);
2907 $ti->setValue($ilSetting->get(
"feedback_recipient"));
2908 $this->form->addItem($ti);
2911 $ti =
new ilEmailInputGUI($this->lng->txt(
"error_recipient"),
"error_recipient");
2912 $ti->setValue($ilSetting->get(
"error_recipient"));
2913 $this->form->addItem($ti);
2915 $this->form->addCommandButton(
"saveContactInformation", $lng->txt(
"save"));
2917 $this->form->setTitle($lng->txt(
"contact_data"));
2918 $this->form->setFormAction($this->ctrl->getFormAction($this));
2930 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
2932 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
2936 if ($this->form->checkInput())
2938 $fs = array(
"admin_firstname",
"admin_lastname",
"admin_title",
"admin_position",
2939 "admin_institution",
"admin_street",
"admin_zipcode",
"admin_city",
2940 "admin_country",
"admin_phone",
"admin_email",
2941 "feedback_recipient",
"error_recipient");
2944 $ilSetting->set($f,
$_POST[$f]);
2947 $ilCtrl->redirect($this,
"showContactInformation");
2952 $this->form->setValuesByPost();
2953 $tpl->setContent($this->form->getHtml());
2972 $tpl->setContent($this->form->getHTML());
2982 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
2986 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"soap_user_administration"),
"soap_user_administration");
2987 $cb->
setInfo($this->lng->txt(
"soap_user_administration_desc").$this->lng->txt(
'soap_user_administration_desc_extended'));
2988 if ($ilSetting->get(
"soap_user_administration"))
2990 $cb->setChecked(
true);
2992 $this->form->addItem($cb);
2995 $wsdl =
new ilTextInputGUI($this->lng->txt(
'soap_wsdl_path'),
'soap_wsdl_path');
2996 $wsdl->
setInfo(sprintf($this->lng->txt(
'soap_wsdl_path_info'),
"<br />'".ILIAS_HTTP_PATH.
"/webservice/soap/server.php?wsdl'"));
2997 $wsdl->setValue((
string)$ilSetting->get(
'soap_wsdl_path'));
2999 $wsdl->setMaxLength(255);
3000 $this->form->addItem($wsdl);
3003 $ctime =
new ilNumberInputGUI($this->lng->txt(
'soap_connect_timeout'),
'ctimeout');
3006 $ctime->setMaxLength(3);
3007 include_once
'./Services/WebServices/SOAP/classes/class.ilSoapClient.php';
3009 $ctime->setInfo($this->lng->txt(
'soap_connect_timeout_info'));
3010 $this->form->addItem($ctime);
3012 $this->form->addCommandButton(
"saveWebServices", $lng->txt(
"save"));
3014 $this->form->setTitle($lng->txt(
"webservices"));
3015 $this->form->setFormAction($this->ctrl->getFormAction($this));
3027 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
3029 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
3033 if ($this->form->checkInput())
3035 $ilSetting->set(
'soap_user_administration', $this->form->getInput(
'soap_user_administration'));
3036 $ilSetting->set(
'soap_wsdl_path', trim($this->form->getInput(
'soap_wsdl_path')));
3037 $ilSetting->set(
'soap_connect_timeout',$this->form->getInput(
'ctimeout'));
3040 $ilCtrl->redirect($this,
'showWebServices');
3045 $this->form->setValuesByPost();
3046 $tpl->setContent($this->form->getHtml());
3063 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.java_settings.html',
'Modules/SystemFolder');
3065 $GLOBALS[
'lng']->loadLanguageModule(
'search');
3067 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
3069 $toolbar->addButton($this->lng->txt(
'lucene_create_ini'),
3070 $this->ctrl->getLinkTarget($this,
'createJavaServerIni'));
3071 $tpl->setVariable(
'ACTION_BUTTONS',$toolbar->getHTML());
3075 $tpl->setVariable(
'SETTINGS_TABLE',$this->form->getHTML());
3086 $this->tpl->setContent($this->form->getHTML());
3091 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
3095 $GLOBALS[
'lng']->loadLanguageModule(
'search');
3097 $this->form->setTitle($this->lng->txt(
'lucene_tbl_create_ini'));
3098 $this->form->setFormAction($this->ctrl->getFormAction($this,
'createJavaServerIni'));
3099 $this->form->addCommandButton(
'downloadJavaServerIni',$this->lng->txt(
'lucene_download_ini'));
3100 $this->form->addCommandButton(
'showJavaServer', $this->lng->txt(
'cancel'));
3104 $ip->
setInfo($this->lng->txt(
'lucene_host_info'));
3105 $ip->setMaxLength(128);
3107 $ip->setRequired(
true);
3108 $this->form->addItem($ip);
3113 $port->setMinValue(1);
3114 $port->setMaxValue(65535);
3115 $port->setRequired(
true);
3116 $this->form->addItem($port);
3121 $path->setMaxLength(1024);
3122 $path->setInfo($this->lng->txt(
'lucene_index_path_info'));
3123 $path->setRequired(
true);
3124 $this->form->addItem(
$path);
3129 $log->setMaxLength(1024);
3130 $log->setInfo($this->lng->txt(
'lucene_log_info'));
3131 $log->setRequired(
true);
3132 $this->form->addItem(
$log);
3141 'FATAL' =>
'FATAL'));
3142 $lev->setValue(
'INFO');
3143 $lev->setRequired(
true);
3144 $this->form->addItem($lev);
3150 $cpu->setMaxLength(2);
3151 $cpu->setMinValue(1);
3152 $cpu->setRequired(
true);
3153 $this->form->addItem($cpu);
3157 $fs->
setInfo($this->lng->txt(
'lucene_max_fs_info'));
3160 $fs->setMaxLength(4);
3161 $fs->setMinValue(1);
3162 $fs->setRequired(
true);
3163 $this->form->addItem($fs);
3175 if($this->form->checkInput())
3177 include_once
'./Services/WebServices/RPC/classes/class.ilRpcIniFileWriter.php';
3179 $ini->setHost($this->form->getInput(
'ho'));
3180 $ini->setPort($this->form->getInput(
'po'));
3181 $ini->setIndexPath($this->form->getInput(
'in'));
3182 $ini->setLogPath($this->form->getInput(
'lo'));
3183 $ini->setLogLevel($this->form->getInput(
'le'));
3184 $ini->setNumThreads($this->form->getInput(
'cp'));
3185 $ini->setMaxFileSize($this->form->getInput(
'fs'));
3192 $this->form->setValuesByPost();
3195 $this->tpl->setContent($this->form->getHTML());
3206 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
3210 $ti =
new ilTextInputGUI($this->lng->txt(
"java_server_host"),
"rpc_server_host");
3213 $ti->setValue($ilSetting->get(
"rpc_server_host"));
3214 $this->form->addItem($ti);
3217 $ti =
new ilNumberInputGUI($this->lng->txt(
"java_server_port"),
"rpc_server_port");
3220 $ti->setValue($ilSetting->get(
"rpc_server_port"));
3221 $this->form->addItem($ti);
3225 $pdf->setTitle($this->lng->txt(
'rpc_pdf_generation'));
3226 $this->form->addItem($pdf);
3228 $pdf_font =
new ilTextInputGUI($this->lng->txt(
'rpc_pdf_font'),
'rpc_pdf_font');
3229 $pdf_font->
setInfo($this->lng->txt(
'rpc_pdf_font_info'));
3230 $pdf_font->setSize(64);
3231 $pdf_font->setMaxLength(1024);
3232 $pdf_font->setRequired(
true);
3233 $pdf_font->setValue(
3234 $ilSetting->get(
'rpc_pdf_font',
'Helvetica, unifont'));
3235 $this->form->addItem($pdf_font);
3239 $this->form->addCommandButton(
"saveJavaServer", $lng->txt(
"save"));
3241 $this->form->setTitle($lng->txt(
"java_server"));
3242 $this->form->setDescription($lng->txt(
"java_server_info").
3243 '<br /><a href="Services/WebServices/RPC/lib/README.txt" target="_blank">'.
3244 $lng->txt(
"java_server_readme").
'</a>');
3245 $this->form->setFormAction($this->ctrl->getFormAction($this));
3257 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
3259 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
3263 if ($this->form->checkInput())
3265 $ilSetting->set(
"rpc_server_host", trim(
$_POST[
"rpc_server_host"]));
3266 $ilSetting->set(
"rpc_server_port", trim(
$_POST[
"rpc_server_port"]));
3269 $ilCtrl->redirect($this,
"showJavaServer");
3276 $this->form->setValuesByPost();
3277 $tpl->setContent($this->form->getHtml());
3292 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
3294 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
3297 require_once
'./Services/Http/classes/class.ilProxySettings.php';
3300 $this->form->setValuesByArray(array(
3310 $tpl->setContent($this->form->getHTML());
3325 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
3327 $this->lng->txt(
'proxy_connectable')
3332 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
3334 $this->lng->txt(
'proxy_not_connectable')
3336 ilUtil::sendFailure($this->lng->txt(
'proxy_pear_net_socket_error').
': '.$e->getMessage());
3351 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
3353 $this->ilias->raiseError($lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
3356 require_once
'./Services/Http/classes/class.ilProxySettings.php';
3359 $isFormValid = $this->form->checkInput();
3361 ->setHost(trim($this->form->getInput(
'proxy_host')))
3362 ->setPort(trim($this->form->getInput(
'proxy_port')));
3369 $isFormValid =
false;
3370 $this->form->getItemByPostVar(
'proxy_host')->setAlert($lng->txt(
'msg_input_is_required'));
3374 $isFormValid =
false;
3375 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'msg_input_is_required'));
3381 $isFormValid =
false;
3382 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'proxy_port_numeric'));
3401 $this->form->setValuesByPost();
3402 $tpl->setContent($this->form->getHTML());
3418 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
3420 $this->form->setFormAction($ilCtrl->getFormAction($this,
'saveProxy'));
3424 $proxs->
setInfo($lng->txt(
'proxy_status_info'));
3425 $proxs->setValue(1);
3426 $this->form->addItem($proxs);
3430 $proxs->addSubItem($proxa);
3433 $prox =
new ilTextInputGUI($lng->txt(
'proxy_host'),
'proxy_host');
3434 $prox->
setInfo($lng->txt(
'proxy_host_info'));
3435 $proxs->addSubItem($prox);
3438 $proxp =
new ilTextInputGUI($lng->txt(
'proxy_port'),
'proxy_port');
3439 $proxp->
setInfo($lng->txt(
'proxy_port_info'));
3440 $proxp->setSize(10);
3441 $proxp->setMaxLength(10);
3442 $proxs->addSubItem($proxp);
3445 $this->form->addCommandButton(
'saveProxy', $lng->txt(
'save'));
3455 $a_target = SYSTEM_FOLDER_ID;
3457 if ($ilAccess->checkAccess(
"read",
"", $a_target))
3464 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
3471 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);