4 require_once
"./Services/Object/classes/class.ilObjectGUI.php";
33 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,
false);
35 $this->lng->loadLanguageModule(
"administration");
42 $next_class = $this->ctrl->getNextClass($this);
47 case 'ilpermissiongui':
48 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
50 $ret =& $this->ctrl->forwardCommand($perm_gui);
55 $ilTabs->clearTargets();
56 $ilTabs->setBackTarget($this->lng->txt(
"back"),
57 $this->ctrl->getLinkTarget($this,
""));
59 include_once(
"./Services/Imprint/classes/class.ilImprintGUI.php");
67 $igui->setEnableEditing(
false);
70 $ret = $this->ctrl->forwardCommand($igui);
73 $this->tpl->setContent(
$ret);
77 case "ilobjectownershipmanagementgui":
79 include_once(
"Services/Object/classes/class.ilObjectOwnershipManagementGUI.php");
81 $this->ctrl->forwardCommand($gui);
84 case "ilcronmanagergui":
85 $ilTabs->activateTab(
"cron_jobs");
86 include_once(
"Services/Cron/classes/class.ilCronManagerGUI.php");
88 $this->ctrl->forwardCommand($gui);
93 $cmd = $this->ctrl->getCmd(
"view");
113 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
117 return $this->showServerInfoObject();
132 $ilTabs->addSubTab(
"system_check_sub", $this->lng->txt(
"system_check"),
133 $ilCtrl->getLinkTarget($this,
"check"));
134 $ilTabs->addSubTab(
"no_owner", $this->lng->txt(
"system_check_no_owner"),
135 $ilCtrl->getLinkTargetByClass(
"ilObjectOwnershipManagementGUI"));
137 $ilTabs->setSubTabActive($a_activate);
138 $ilTabs->setTabActive(
"system_check");
152 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
154 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
158 if (
$_POST[
'count_limit'] !== null ||
$_POST[
'age_limit'] !== null ||
$_POST[
'type_limit'] !== null)
160 $ilias->account->writePref(
'systemcheck_count_limit',
161 (is_numeric(
$_POST[
'count_limit']) &&
$_POST[
'count_limit'] > 0) ?
$_POST[
'count_limit'] :
''
163 $ilias->account->writePref(
'systemcheck_age_limit',
164 (is_numeric(
$_POST[
'age_limit']) &&
$_POST[
'age_limit'] > 0) ?
$_POST[
'age_limit'] :
'');
165 $ilias->account->writePref(
'systemcheck_type_limit', trim(
$_POST[
'type_limit']));
177 include_once
"./Services/Repository/classes/class.ilValidator.php";
179 $hasScanLog = $validator->hasScanLog();
181 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_check.html",
182 "Modules/SystemFolder");
186 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_last_log"));
189 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
190 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"systemcheck"));
191 $this->tpl->setVariable(
"COLSPAN", 3);
192 $this->tpl->setVariable(
"TXT_ANALYZE_TITLE", $this->lng->txt(
"analyze_data"));
193 $this->tpl->setVariable(
"TXT_ANALYSIS_OPTIONS", $this->lng->txt(
"analysis_options"));
194 $this->tpl->setVariable(
"TXT_REPAIR_OPTIONS", $this->lng->txt(
"repair_options"));
195 $this->tpl->setVariable(
"TXT_OUTPUT_OPTIONS", $this->lng->txt(
"output_options"));
196 $this->tpl->setVariable(
"TXT_SCAN", $this->lng->txt(
"scan"));
197 $this->tpl->setVariable(
"TXT_SCAN_DESC", $this->lng->txt(
"scan_desc"));
198 $this->tpl->setVariable(
"TXT_DUMP_TREE", $this->lng->txt(
"dump_tree"));
199 $this->tpl->setVariable(
"TXT_DUMP_TREE_DESC", $this->lng->txt(
"dump_tree_desc"));
200 $this->tpl->setVariable(
"TXT_CLEAN", $this->lng->txt(
"clean"));
201 $this->tpl->setVariable(
"TXT_CLEAN_DESC", $this->lng->txt(
"clean_desc"));
202 $this->tpl->setVariable(
"TXT_RESTORE", $this->lng->txt(
"restore_missing"));
203 $this->tpl->setVariable(
"TXT_RESTORE_DESC", $this->lng->txt(
"restore_missing_desc"));
204 $this->tpl->setVariable(
"TXT_PURGE", $this->lng->txt(
"purge_missing"));
205 $this->tpl->setVariable(
"TXT_PURGE_DESC", $this->lng->txt(
"purge_missing_desc"));
206 $this->tpl->setVariable(
"TXT_RESTORE_TRASH", $this->lng->txt(
"restore_trash"));
207 $this->tpl->setVariable(
"TXT_RESTORE_TRASH_DESC", $this->lng->txt(
"restore_trash_desc"));
208 $this->tpl->setVariable(
"TXT_PURGE_TRASH", $this->lng->txt(
"purge_trash"));
209 $this->tpl->setVariable(
"TXT_PURGE_TRASH_DESC", $this->lng->txt(
"purge_trash_desc"));
210 $this->tpl->setVariable(
"TXT_COUNT_LIMIT", $this->lng->txt(
"purge_count_limit"));
211 $this->tpl->setVariable(
"TXT_COUNT_LIMIT_DESC", $this->lng->txt(
"purge_count_limit_desc"));
212 $this->tpl->setVariable(
"COUNT_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_count_limit"));
213 $this->tpl->setVariable(
"TXT_AGE_LIMIT", $this->lng->txt(
"purge_age_limit"));
214 $this->tpl->setVariable(
"TXT_AGE_LIMIT_DESC", $this->lng->txt(
"purge_age_limit_desc"));
215 $this->tpl->setVariable(
"AGE_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_age_limit"));
216 $this->tpl->setVariable(
"TXT_TYPE_LIMIT", $this->lng->txt(
"purge_type_limit"));
217 $this->tpl->setVariable(
"TXT_TYPE_LIMIT_DESC", $this->lng->txt(
"purge_type_limit_desc"));
219 if($ilias->account->getPref(
'systemcheck_mode_scan'))
220 $this->tpl->touchBlock(
'mode_scan_checked');
221 if($ilias->account->getPref(
'systemcheck_mode_dump_tree'))
222 $this->tpl->touchBlock(
'mode_dump_tree_checked');
223 if($ilias->account->getPref(
'systemcheck_mode_clean'))
224 $this->tpl->touchBlock(
'mode_clean_checked');
225 if($ilias->account->getPref(
'systemcheck_mode_restore'))
227 $this->tpl->touchBlock(
'mode_restore_checked');
228 $this->tpl->touchBlock(
'mode_purge_disabled');
230 elseif($ilias->account->getPref(
'systemcheck_mode_purge'))
232 $this->tpl->touchBlock(
'mode_purge_checked');
233 $this->tpl->touchBlock(
'mode_restore_disabled');
235 if($ilias->account->getPref(
'systemcheck_mode_restore_trash'))
237 $this->tpl->touchBlock(
'mode_restore_trash_checked');
238 $this->tpl->touchBlock(
'mode_purge_trash_disabled');
240 elseif($ilias->account->getPref(
'systemcheck_mode_purge_trash'))
242 $this->tpl->touchBlock(
'mode_purge_trash_checked');
243 $this->tpl->touchBlock(
'mode_restore_trash_disabled');
245 if($ilias->account->getPref(
'systemcheck_log_scan'))
246 $this->tpl->touchBlock(
'log_scan_checked');
251 $obj_types_in_tree = array();
254 $set = $ilDB->query(
'SELECT type FROM object_data od'.
255 ' JOIN object_reference ref ON (od.obj_id = ref.obj_id)'.
256 ' JOIN tree ON (tree.child = ref.ref_id)'.
257 ' WHERE tree.tree < 1'.
259 while(
$row = $ilDB->fetchAssoc($set))
261 $obj_types_in_tree[] =
$row[
'type'];
264 $types = $objDefinition->getAllObjects();
265 $ts = array(
"" =>
"");
266 foreach ($types as
$t)
268 if ($t !=
"" && !$objDefinition->isSystemObject($t) && $t !=
"root" &&
269 in_array($t, $obj_types_in_tree))
271 if ($objDefinition->isPlugin($t))
277 $ts[
$t] = $this->lng->txt(
"obj_".$t);
282 $this->tpl->setVariable(
"TYPE_LIMIT_CHOICE",
284 $ilias->account->getPref(
"systemcheck_type_limit"),
289 $this->tpl->setVariable(
"TXT_LOG_SCAN", $this->lng->txt(
"log_scan"));
290 $this->tpl->setVariable(
"TXT_LOG_SCAN_DESC", $this->lng->txt(
"log_scan_desc"));
291 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"start_scan"));
293 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save_params_for_cron"));
295 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
298 $cron_form->setFormAction($this->ctrl->getFormAction($this));
299 $cron_form->setTitle($this->lng->txt(
'systemcheck_cronform'));
302 $radio_group->
setValue( $ilSetting->get(
'systemcheck_cron') );
304 $radio_opt =
new ilRadioOption($this->lng->txt(
'disabled'),0);
305 $radio_group->addOption($radio_opt);
307 $radio_opt =
new ilRadioOption($this->lng->txt(
'enabled'),1);
308 $radio_group->addOption($radio_opt);
310 $cron_form->addItem($radio_group);
312 $cron_form->addCommandButton(
'saveCheckCron',$this->lng->txt(
'save'));
314 $this->tpl->setVariable(
'CRON_FORM',$cron_form->getHTML());
327 include_once
"./Services/Repository/classes/class.ilValidator.php";
329 $modes = $validator->getPossibleModes();
332 foreach($modes as $mode)
334 if( isset(
$_POST[
'mode'][$mode]) ) $value = (int)
$_POST[
'mode'][$mode];
336 $prefs[
'systemcheck_mode_'.$mode ] = $value;
339 if( isset(
$_POST[
'log_scan']) ) $value = (
int)
$_POST[
'log_scan'];
341 $prefs[
'systemcheck_log_scan'] = $value;
344 foreach($prefs as $key => $val)
346 $ilUser->writePref($key,$val);
354 $systemcheck_cron = (
$_POST[
'cronjob'] ? 1 : 0);
355 $ilSetting->set(
'systemcheck_cron',$systemcheck_cron);
368 global $rbacsystem, $styleDefinition;
370 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.header_title_edit.html",
371 "Modules/SystemFolder");
378 $_GET[
"mode"] =
"session";
383 if ((
$_GET[
"mode"] !=
"session"))
385 $data = $this->
object->getHeaderTitleTranslations();
389 elseif (
$_GET[
"entry"] != 0)
391 array_splice(
$_SESSION[
"translation_post"][
"Fobject"],
$_GET[
"entry"],1,array());
393 if (
$_GET[
"entry"] ==
$_SESSION[
"translation_post"][
"default_language"])
395 $_SESSION[
"translation_post"][
"default_language"] =
"";
402 if (!
$_GET[
"entry"] and $array_push)
404 $count = array_push(
$data[
"Fobject"],array(
"title" =>
"",
"desc" =>
""));
408 $count = count(
$data[
"Fobject"]);
412 $strip = isset(
$_SESSION[
"translation_post"]) ?
true :
false;
414 foreach (
$data[
"Fobject"] as $key => $val)
417 if ($key == $count -1)
419 $this->tpl->setCurrentBlock(
"addTranslation");
420 $this->tpl->setVariable(
"TXT_ADD_TRANSLATION",$this->lng->txt(
"add_translation").
" >>");
421 $this->tpl->parseCurrentBlock();
427 $this->tpl->setCurrentBlock(
"removeTranslation");
428 $this->tpl->setVariable(
"TXT_REMOVE_TRANSLATION",$this->lng->txt(
"remove_translation"));
429 $this->ctrl->setParameter($this,
"entry", $key);
430 $this->ctrl->setParameter($this,
"mode",
"edit");
431 $this->tpl->setVariable(
"LINK_REMOVE_TRANSLATION",
432 $this->ctrl->getLinkTarget($this,
"removeTranslation"));
433 $this->tpl->parseCurrentBlock();
437 $this->tpl->addBlockFile(
"SEL_LANGUAGE",
"sel_language",
"tpl.lang_selection.html",
438 "Services/MetaData");
439 $this->tpl->setVariable(
"SEL_NAME",
"Fobject[".$key.
"][lang]");
441 include_once(
'Services/MetaData/classes/class.ilMDLanguageItem.php');
445 foreach ($languages as $code => $language)
447 $this->tpl->setCurrentBlock(
"lg_option");
448 $this->tpl->setVariable(
"VAL_LG", $code);
449 $this->tpl->setVariable(
"TXT_LG", $language);
451 if ($code == $val[
"lang"])
453 $this->tpl->setVariable(
"SELECTED",
"selected=\"selected\"");
456 $this->tpl->parseCurrentBlock();
460 $this->tpl->setCurrentBlock(
"obj_form");
464 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"change_header_title"));
468 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"translation").
" ".$key);
471 if ($key ==
$data[
"default_language"])
473 $this->tpl->setVariable(
"CHECKED",
"checked=\"checked\"");
476 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
477 $this->tpl->setVariable(
"TXT_DESC", $this->lng->txt(
"desc"));
478 $this->tpl->setVariable(
"TXT_DEFAULT", $this->lng->txt(
"default"));
479 $this->tpl->setVariable(
"TXT_LANGUAGE", $this->lng->txt(
"language"));
482 $this->tpl->setVariable(
"NUM", $key);
483 $this->tpl->parseCurrentBlock();
487 $this->tpl->setCurrentBlock(
"adm_content");
489 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
490 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
491 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
492 $this->tpl->setVariable(
"CMD_SUBMIT",
"saveHeaderTitle");
493 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
504 if (!isset(
$data[
"default_language"]))
506 $this->ilias->raiseError($this->lng->txt(
"msg_no_default_language"),$this->ilias->error_obj->MESSAGE);
510 foreach (
$data[
"Fobject"] as $key => $val)
512 $langs[$key] = $val[
"lang"];
515 $langs = array_count_values($langs);
518 if (array_key_exists(
"",$langs))
520 $this->ilias->raiseError($this->lng->txt(
"msg_no_language_selected"),$this->ilias->error_obj->MESSAGE);
524 if (array_sum($langs) > count($langs))
526 $this->ilias->raiseError($this->lng->txt(
"msg_multi_language_selected"),$this->ilias->error_obj->MESSAGE);
531 $_POST[
"Fobject"][
"desc"] = $_POST[
"Fobject"][$_POST[
"default_language"]][
"desc"];
534 $this->
object->removeHeaderTitleTranslations();
537 foreach (
$data[
"Fobject"] as $key => $val)
539 if ($key ==
$data[
"default_language"])
553 $this->ctrl->redirect($this);
558 $this->ctrl->redirect($this,
"view");
570 $this->ctrl->setParameter($this,
"mode",
"session");
571 $this->ctrl->setParameter($this,
"entry",
"0");
572 $this->ctrl->redirect($this,
"changeHeaderTitle");
582 $this->ctrl->setParameter($this,
"entry",
$_GET[
"entry"]);
583 $this->ctrl->setParameter($this,
"mode",
"session");
584 $this->ctrl->redirect($this,
"changeHeaderTitle");
592 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
594 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
597 $logging = ($a_log) ?
true :
false;
598 include_once
"./Services/Repository/classes/class.ilValidator.php";
600 $validator->setMode(
"all",
false);
603 foreach ($a_mode as $mode => $value)
605 $validator->setMode($mode,(
bool) $value);
606 $modes[] = $mode.
'='.$value;
609 $scan_log = $validator->validate();
611 $mode = $this->lng->txt(
"scan_modes").
": ".implode(
', ',$modes);
614 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_scan.html",
615 "Modules/SystemFolder");
617 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
618 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scanning_system"));
619 $this->tpl->setVariable(
"COLSPAN", 3);
620 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
621 $this->tpl->setVariable(
"TXT_MODE", $mode);
623 if ($logging ===
true)
625 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_log"));
628 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
630 $validator->writeScanLogLine($mode);
635 include_once
"./Services/Repository/classes/class.ilValidator.php";
636 $validator =
new IlValidator();
637 $scan_log =& $validator->readScanLog();
639 if (is_array($scan_log))
641 $scan_log =
'<pre>'.implode(
"",$scan_log).
'</pre>';
642 $this->tpl->setVariable(
"ADM_CONTENT", $scan_log);
646 $scan_log =
"no scanlog found.";
650 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_scan.html",
651 "Modules/SystemFolder");
652 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scan_details"));
653 $this->tpl->setVariable(
"COLSPAN", 3);
654 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
655 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
666 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
668 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
673 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
677 $cb =
new ilCheckboxInputGUI($lng->txt(
"adm_activate_db_benchmark"),
"enable_db_bench");
678 $cb->
setChecked($ilSetting->get(
"enable_db_bench"));
679 $cb->setInfo($lng->txt(
"adm_activate_db_benchmark_desc"));
680 $this->form->addItem($cb);
683 $ti =
new ilTextInputGUI($lng->txt(
"adm_db_benchmark_user"),
"db_bench_user");
684 $ti->
setValue($ilSetting->get(
"db_bench_user"));
685 $ti->setInfo($lng->txt(
"adm_db_benchmark_user_desc"));
686 $this->form->addItem($ti);
688 $this->form->addCommandButton(
"saveBenchSettings", $lng->txt(
"save"));
690 $this->form->setTitle($lng->txt(
"adm_db_benchmark"));
691 $this->form->setFormAction($ilCtrl->getFormAction($this));
693 $tpl->setContent($this->form->getHTML());
741 $rec = $ilBench->getDbBenchRecords();
743 include_once(
"./Modules/SystemFolder/classes/class.ilBenchmarkTableGUI.php");
745 $tpl->setContent($table->getHTML());
758 $ilTabs->addSubtab(
"settings",
759 $lng->txt(
"settings"),
760 $ilCtrl->getLinkTarget($this,
"benchmark"));
762 $rec = $ilBench->getDbBenchRecords();
765 $ilTabs->addSubtab(
"chronological",
766 $lng->txt(
"adm_db_bench_chronological"),
767 $ilCtrl->getLinkTarget($this,
"showDbBenchChronological"));
768 $ilTabs->addSubtab(
"slowest_first",
769 $lng->txt(
"adm_db_bench_slowest_first"),
770 $ilCtrl->getLinkTarget($this,
"showDbBenchSlowestFirst"));
771 $ilTabs->addSubtab(
"sorted_by_sql",
772 $lng->txt(
"adm_db_bench_sorted_by_sql"),
773 $ilCtrl->getLinkTarget($this,
"showDbBenchSortedBySql"));
774 $ilTabs->addSubtab(
"by_first_table",
775 $lng->txt(
"adm_db_bench_by_first_table"),
776 $ilCtrl->getLinkTarget($this,
"showDbBenchByFirstTable"));
779 $ilTabs->activateSubTab($a_current);
790 if (
$_POST[
"enable_db_bench"])
796 $ilBench->enableDbBench(
false);
801 $this->ctrl->redirect($this,
"benchmark");
812 $this->ctrl->setParameter($this,
'cur_mod',
$_POST[
'module']);
813 $this->ctrl->redirect($this,
"benchmark");
824 $ilBench->clearData();
832 global $rbacsystem, $ilHelp;
836 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
839 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
841 $tabs_gui->addTarget(
"general_settings",
842 $this->ctrl->getLinkTarget($this,
"showBasicSettings"),
843 array(
"showBasicSettings",
"saveBasicSettings"), get_class($this));
847 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
849 $tabs_gui->addTarget(
"server",
850 $this->ctrl->getLinkTarget($this,
"showServerInfo"),
851 array(
"showServerInfo",
"view"), get_class($this));
854 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
856 $tabs_gui->addTarget(
"cron_jobs",
857 $this->ctrl->getLinkTargetByClass(
"ilCronManagerGUI",
""),
"", get_class($this));
859 $tabs_gui->addTarget(
"system_check",
860 $this->ctrl->getLinkTarget($this,
"check"), array(
"check",
"viewScanLog",
"saveCheckParams",
"saveCheckCron"), get_class($this));
862 $tabs_gui->addTarget(
"benchmarks",
863 $this->ctrl->getLinkTarget($this,
"benchmark"),
"benchmark", get_class($this));
866 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
868 $tabs_gui->addTarget(
"perm_settings",
869 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
893 global $ilTabs,
$ilCtrl, $rbacsystem;
895 $ilTabs->addSubTabTarget(
"server_data", $ilCtrl->getLinkTarget($this,
"showServerInfo"));
897 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
899 $ilTabs->addSubTabTarget(
"adm_https", $ilCtrl->getLinkTarget($this,
"showHTTPS"));
900 $ilTabs->addSubTabTarget(
"proxy", $ilCtrl->getLinkTarget($this,
"showProxy"));
901 $ilTabs->addSubTabTarget(
"java_server", $ilCtrl->getLinkTarget($this,
"showJavaServer"));
902 $ilTabs->addSubTabTarget(
"webservices", $ilCtrl->getLinkTarget($this,
"showWebServices"));
905 $ilTabs->setSubTabActive($a_activate);
906 $ilTabs->setTabActive(
"server");
912 function showServerInfoObject()
922 $ilToolbar->addButton($lng->txt(
'vc_information'), $this->ctrl->getLinkTarget($this,
'showVcsInformation'));
927 $btpl =
new ilTemplate(
"tpl.server_data.html",
true,
true,
"Modules/SystemFolder");
928 $btpl->setVariable(
"FORM", $this->form->getHTML());
929 $btpl->setVariable(
"PHP_INFO_TARGET", $ilCtrl->getLinkTarget($this,
"showPHPInfo"));
930 $tpl->setContent($btpl->get());
942 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
947 $ne->
setValue($ilClientIniFile->readVariable(
"client",
"name"));
948 $ne->setInfo($ilClientIniFile->readVariable(
"client",
"description"));
949 $this->form->addItem($ne);
954 $this->form->addItem($ne);
958 $ne->
setValue($ilSetting->get(
"inst_id"));
959 $this->form->addItem($ne);
963 $ne->
setValue($ilSetting->get(
"db_version"));
965 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
966 $this->form->addItem($ne);
970 $ne->
setValue($ilSetting->get(
"ilias_version"));
971 $this->form->addItem($ne);
975 $ne->
setValue($_SERVER[
"SERVER_NAME"]);
976 $this->form->addItem($ne);
980 $ne->
setValue($_SERVER[
"SERVER_ADDR"].
":".$_SERVER[
"SERVER_PORT"]);
981 $this->form->addItem($ne);
985 $ne->
setValue($_SERVER[
"SERVER_SOFTWARE"]);
986 $this->form->addItem($ne);
991 $this->form->addItem($ne);
996 $this->form->addItem($ne);
998 $not_set = $lng->txt(
"path_not_set");
1002 $ne->
setValue((PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1003 $this->form->addItem($ne);
1007 $ne->
setValue((PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1008 $this->form->addItem($ne);
1012 $ne->
setValue((PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1013 $this->form->addItem($ne);
1017 $ne->
setValue((PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1018 $this->form->addItem($ne);
1022 $ne->
setValue((PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
1023 $this->form->addItem($ne);
1027 $ne->
setValue((PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
1028 $this->form->addItem($ne);
1032 $ne->
setValue((URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1033 $this->form->addItem($ne);
1036 $this->form->setTitle($lng->txt(
"server_data"));
1037 $this->form->setFormAction($this->ctrl->getFormAction($this));
1054 $ilTabs->addSubTabTarget(
"basic_settings", $ilCtrl->getLinkTarget($this,
"showBasicSettings"));
1055 $ilTabs->addSubTabTarget(
"header_title", $ilCtrl->getLinkTarget($this,
"showHeaderTitle"));
1056 $ilTabs->addSubTabTarget(
"contact_data", $ilCtrl->getLinkTarget($this,
"showContactInformation"));
1057 $ilTabs->addSubTabTarget(
"adm_imprint", $ilCtrl->getLinkTargetByClass(
"ilimprintgui",
"preview"));
1059 $ilTabs->setSubTabActive($a_activate);
1060 $ilTabs->setTabActive(
"general_settings");
1076 $this->initBasicSettingsForm();
1079 $tpl->setContent($this->form->getHTML());
1086 public function initBasicSettingsForm()
1094 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1096 $lng->loadLanguageModule(
"pd");
1099 $ti =
new ilTextInputGUI($this->lng->txt(
"short_inst_name"),
"short_inst_name");
1102 $ti->setValue($ilSetting->get(
"short_inst_name"));
1103 $ti->setInfo($this->lng->txt(
"short_inst_name_info"));
1104 $this->form->addItem($ti);
1108 $cb->
setInfo($lng->txt(
"pub_section_info"));
1109 if ($ilSetting->get(
"pub_section"))
1111 $cb->setChecked(
true);
1113 $this->form->addItem($cb);
1116 $cb_prop =
new ilCheckboxInputGUI($lng->txt(
'pd_enable_user_publish'),
'enable_global_profiles');
1117 $cb_prop->
setInfo($lng->txt(
'pd_enable_user_publish_info'));
1118 $cb_prop->setChecked($ilSetting->get(
'enable_global_profiles'));
1119 $cb->addSubItem($cb_prop);
1122 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
1125 $cb2->
setInfo($this->lng->txt(
"enable_search_engine"));
1126 $this->form->addItem($cb2);
1128 if(!$robot_settings->checkRewrite())
1130 $cb2->setAlert($lng->txt(
"allow_override_alert"));
1131 $cb2->setChecked(
false);
1132 $cb2->setDisabled(
true);
1136 if ($ilSetting->get(
"open_google"))
1138 $cb2->setChecked(
true);
1143 $ti =
new ilTextInputGUI($this->lng->txt(
"adm_locale"),
"locale");
1146 $ti->setInfo($this->lng->txt(
"adm_locale_info"));
1147 $ti->setValue($ilSetting->get(
"locale"));
1148 $this->form->addItem($ti);
1151 include_once
"Services/User/classes/class.ilUserUtil.php";
1153 $si->setRequired(
true);
1154 $si->setInfo($this->lng->txt(
"adm_user_starting_point_info"));
1159 $si->addOption($opt);
1161 if(!in_array($value,
$valid))
1163 $opt->setInfo($this->lng->txt(
"adm_user_starting_point_invalid_info"));
1167 $this->form->addItem(
$si);
1171 $repobj_id =
new ilTextInputGUI($lng->txt(
"adm_user_starting_point_ref_id"),
"usr_start_ref_id");
1172 $repobj_id->setRequired(
true);
1173 $repobj_id->setSize(5);
1177 $repobj_id->
setValue($start_ref_id);
1183 $repobj_id->
setInfo($lng->txt(
"obj_".ilObject::_lookupType($start_obj_id)).
1188 $repobj->addSubItem($repobj_id);
1189 $si->addOption($repobj);
1192 $startp =
new ilCheckboxInputGUI($lng->txt(
"adm_user_starting_point_personal"),
"usr_start_pers");
1193 $startp->
setInfo($lng->txt(
"adm_user_starting_point_personal_info"));
1195 $si->addSubItem($startp);
1199 $this->form->addCommandButton(
"saveBasicSettings", $lng->txt(
"save"));
1201 $this->form->setTitle($lng->txt(
"basic_settings"));
1202 $this->form->setFormAction($this->ctrl->getFormAction($this));
1214 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1216 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1219 $this->initBasicSettingsForm();
1220 if ($this->form->checkInput())
1222 $ilSetting->set(
"short_inst_name",
$_POST[
"short_inst_name"]);
1223 $ilSetting->set(
"pub_section",
$_POST[
"pub_section"]);
1225 $global_profiles = (
$_POST[
"pub_section"])
1226 ? (
int)
$_POST[
'enable_global_profiles']
1228 $ilSetting->set(
'enable_global_profiles', $global_profiles);
1230 $ilSetting->set(
"open_google",
$_POST[
"open_google"]);
1231 $ilSetting->set(
"locale",
$_POST[
"locale"]);
1233 include_once
"Services/User/classes/class.ilUserUtil.php";
1238 $ilCtrl->redirect($this,
"showBasicSettings");
1241 $this->form->setValuesByPost();
1242 $tpl->setContent($this->form->getHtml());
1259 include_once(
"./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
1261 if ($a_get_post_values)
1264 foreach(
$_POST[
"title"] as $k => $v)
1266 $vals[] = array(
"title" => $v,
1267 "desc" =>
$_POST[
"desc"][$k],
1268 "lang" =>
$_POST[
"lang"][$k],
1269 "default" => (
$_POST[
"default"] == $k));
1271 $table->setData($vals);
1275 $data = $this->
object->getHeaderTitleTranslations();
1276 if (is_array(
$data[
"Fobject"]))
1278 foreach(
$data[
"Fobject"] as $k => $v)
1280 if ($k ==
$data[
"default_language"])
1282 $data[
"Fobject"][$k][
"default"] =
true;
1286 $data[
"Fobject"][$k][
"default"] =
false;
1292 $data[
"Fobject"] = array();
1294 $table->setData(
$data[
"Fobject"]);
1296 $tpl->setContent($table->getHTML());
1306 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1308 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1314 if (!isset(
$_POST[
"default"]) && count(
$_POST[
"lang"]) > 0)
1321 if (array_key_exists(
"",
$_POST[
"lang"]))
1328 if (count(array_unique(
$_POST[
"lang"])) < count(
$_POST[
"lang"]))
1335 $this->
object->removeHeaderTitleTranslations();
1336 foreach(
$_POST[
"title"] as $k => $v)
1338 $this->
object->addHeaderTitleTranslation(
1342 (
$_POST[
"default"] == $k));
1346 $ilCtrl->redirect($this,
"showHeaderTitle");
1356 if (is_array(
$_POST[
"title"]))
1358 foreach(
$_POST[
"title"] as $k => $v) {}
1361 $_POST[
"title"][$k] =
"";
1372 foreach(
$_POST[
"title"] as $k => $v)
1376 unset(
$_POST[
"title"][$k]);
1377 unset(
$_POST[
"desc"][$k]);
1378 unset(
$_POST[
"lang"][$k]);
1379 if ($k ==
$_POST[
"default"])
1381 unset(
$_POST[
"default"]);
1415 $this->ctrl->redirectByClass(
"ilCronManagerGUI",
"render");
1434 $tpl->setContent($this->form->getHTML());
1444 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1448 $ti =
new ilTextInputGUI($this->lng->txt(
"firstname"),
"admin_firstname");
1451 $ti->setRequired(
true);
1452 $ti->setValue($ilSetting->get(
"admin_firstname"));
1453 $this->form->addItem($ti);
1456 $ti =
new ilTextInputGUI($this->lng->txt(
"lastname"),
"admin_lastname");
1459 $ti->setRequired(
true);
1460 $ti->setValue($ilSetting->get(
"admin_lastname"));
1461 $this->form->addItem($ti);
1464 $ti =
new ilTextInputGUI($this->lng->txt(
"title"),
"admin_title");
1467 $ti->setValue($ilSetting->get(
"admin_title"));
1468 $this->form->addItem($ti);
1471 $ti =
new ilTextInputGUI($this->lng->txt(
"position"),
"admin_position");
1474 $ti->setValue($ilSetting->get(
"admin_position"));
1475 $this->form->addItem($ti);
1478 $ti =
new ilTextInputGUI($this->lng->txt(
"institution"),
"admin_institution");
1481 $ti->setValue($ilSetting->get(
"admin_institution"));
1482 $this->form->addItem($ti);
1485 $ti =
new ilTextInputGUI($this->lng->txt(
"street"),
"admin_street");
1489 $ti->setValue($ilSetting->get(
"admin_street"));
1490 $this->form->addItem($ti);
1493 $ti =
new ilTextInputGUI($this->lng->txt(
"zipcode"),
"admin_zipcode");
1497 $ti->setValue($ilSetting->get(
"admin_zipcode"));
1498 $this->form->addItem($ti);
1505 $ti->setValue($ilSetting->get(
"admin_city"));
1506 $this->form->addItem($ti);
1509 $ti =
new ilTextInputGUI($this->lng->txt(
"country"),
"admin_country");
1513 $ti->setValue($ilSetting->get(
"admin_country"));
1514 $this->form->addItem($ti);
1517 $ti =
new ilTextInputGUI($this->lng->txt(
"phone"),
"admin_phone");
1521 $ti->setValue($ilSetting->get(
"admin_phone"));
1522 $this->form->addItem($ti);
1525 $ti =
new ilTextInputGUI($this->lng->txt(
"email"),
"admin_email");
1528 $ti->setRequired(
true);
1529 $ti->setValue($ilSetting->get(
"admin_email"));
1530 $this->form->addItem($ti);
1533 $ti =
new ilEmailInputGUI($this->lng->txt(
"feedback_recipient"),
"feedback_recipient");
1534 $ti->setInfo(sprintf($this->lng->txt(
"feedback_recipient_info"), $this->lng->txt(
"contact_sysadmin")));
1535 $ti->setRequired(
true);
1536 $ti->setValue($ilSetting->get(
"feedback_recipient"));
1537 $this->form->addItem($ti);
1540 $ti =
new ilEmailInputGUI($this->lng->txt(
"error_recipient"),
"error_recipient");
1541 $ti->setValue($ilSetting->get(
"error_recipient"));
1542 $this->form->addItem($ti);
1544 $this->form->addCommandButton(
"saveContactInformation", $lng->txt(
"save"));
1546 $this->form->setTitle($lng->txt(
"contact_data"));
1547 $this->form->setFormAction($this->ctrl->getFormAction($this));
1559 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1561 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1565 if ($this->form->checkInput())
1567 $fs = array(
"admin_firstname",
"admin_lastname",
"admin_title",
"admin_position",
1568 "admin_institution",
"admin_street",
"admin_zipcode",
"admin_city",
1569 "admin_country",
"admin_phone",
"admin_email",
1570 "feedback_recipient",
"error_recipient");
1573 $ilSetting->set($f,
$_POST[$f]);
1576 $ilCtrl->redirect($this,
"showContactInformation");
1581 $this->form->setValuesByPost();
1582 $tpl->setContent($this->form->getHtml());
1601 $tpl->setContent($this->form->getHTML());
1611 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1615 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"soap_user_administration"),
"soap_user_administration");
1616 $cb->
setInfo($this->lng->txt(
"soap_user_administration_desc"));
1617 if ($ilSetting->get(
"soap_user_administration"))
1619 $cb->setChecked(
true);
1621 $this->form->addItem($cb);
1624 $wsdl =
new ilTextInputGUI($this->lng->txt(
'soap_wsdl_path'),
'soap_wsdl_path');
1625 $wsdl->
setInfo(sprintf($this->lng->txt(
'soap_wsdl_path_info'),
"<br />'".ILIAS_HTTP_PATH.
"/webservice/soap/server.php?wsdl'"));
1626 $wsdl->setValue((
string)$ilSetting->get(
'soap_wsdl_path'));
1628 $wsdl->setMaxLength(255);
1629 $this->form->addItem($wsdl);
1632 $ctime =
new ilNumberInputGUI($this->lng->txt(
'soap_connect_timeout'),
'ctimeout');
1635 $ctime->setMaxLength(3);
1636 include_once
'./Services/WebServices/SOAP/classes/class.ilSoapClient.php';
1638 $ctime->setInfo($this->lng->txt(
'soap_connect_timeout_info'));
1639 $this->form->addItem($ctime);
1641 $this->form->addCommandButton(
"saveWebServices", $lng->txt(
"save"));
1643 $this->form->setTitle($lng->txt(
"webservices"));
1644 $this->form->setFormAction($this->ctrl->getFormAction($this));
1656 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1658 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1662 if ($this->form->checkInput())
1664 $ilSetting->set(
'soap_user_administration', $this->form->getInput(
'soap_user_administration'));
1665 $ilSetting->set(
'soap_wsdl_path', trim($this->form->getInput(
'soap_wsdl_path')));
1666 $ilSetting->set(
'soap_connect_timeout',$this->form->getInput(
'ctimeout'));
1669 $ilCtrl->redirect($this,
'showWebServices');
1674 $this->form->setValuesByPost();
1675 $tpl->setContent($this->form->getHtml());
1692 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.java_settings.html',
'Modules/SystemFolder');
1694 $GLOBALS[
'lng']->loadLanguageModule(
'search');
1696 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
1698 $toolbar->addButton($this->lng->txt(
'lucene_create_ini'),
1699 $this->ctrl->getLinkTarget($this,
'createJavaServerIni'));
1700 $tpl->setVariable(
'ACTION_BUTTONS',$toolbar->getHTML());
1704 $tpl->setVariable(
'SETTINGS_TABLE',$this->form->getHTML());
1715 $this->tpl->setContent($this->form->getHTML());
1720 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
1724 $GLOBALS[
'lng']->loadLanguageModule(
'search');
1726 $this->form->setTitle($this->lng->txt(
'lucene_tbl_create_ini'));
1727 $this->form->setFormAction($this->ctrl->getFormAction($this,
'createJavaServerIni'));
1728 $this->form->addCommandButton(
'downloadJavaServerIni',$this->lng->txt(
'lucene_download_ini'));
1729 $this->form->addCommandButton(
'showJavaServer', $this->lng->txt(
'cancel'));
1733 $ip->
setInfo($this->lng->txt(
'lucene_host_info'));
1734 $ip->setMaxLength(128);
1736 $ip->setRequired(
true);
1737 $this->form->addItem($ip);
1742 $port->setMinValue(1);
1743 $port->setMaxValue(65535);
1744 $port->setRequired(
true);
1745 $this->form->addItem($port);
1750 $path->setMaxLength(1024);
1751 $path->setInfo($this->lng->txt(
'lucene_index_path_info'));
1752 $path->setRequired(
true);
1753 $this->form->addItem(
$path);
1758 $log->setMaxLength(1024);
1759 $log->setInfo($this->lng->txt(
'lucene_log_info'));
1760 $log->setRequired(
true);
1761 $this->form->addItem(
$log);
1770 'FATAL' =>
'FATAL'));
1771 $lev->setValue(
'INFO');
1772 $lev->setRequired(
true);
1773 $this->form->addItem($lev);
1779 $cpu->setMaxLength(2);
1780 $cpu->setMinValue(1);
1781 $cpu->setRequired(
true);
1782 $this->form->addItem($cpu);
1786 $fs->
setInfo($this->lng->txt(
'lucene_max_fs_info'));
1789 $fs->setMaxLength(4);
1790 $fs->setMinValue(1);
1791 $fs->setRequired(
true);
1792 $this->form->addItem($fs);
1804 if($this->form->checkInput())
1806 include_once
'./Services/WebServices/RPC/classes/class.ilRpcIniFileWriter.php';
1808 $ini->setHost($this->form->getInput(
'ho'));
1809 $ini->setPort($this->form->getInput(
'po'));
1810 $ini->setIndexPath($this->form->getInput(
'in'));
1811 $ini->setLogPath($this->form->getInput(
'lo'));
1812 $ini->setLogLevel($this->form->getInput(
'le'));
1813 $ini->setNumThreads($this->form->getInput(
'cp'));
1814 $ini->setMaxFileSize($this->form->getInput(
'fs'));
1821 $this->form->setValuesByPost();
1824 $this->tpl->setContent($this->form->getHTML());
1835 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1839 $ti =
new ilTextInputGUI($this->lng->txt(
"java_server_host"),
"rpc_server_host");
1842 $ti->setValue($ilSetting->get(
"rpc_server_host"));
1843 $this->form->addItem($ti);
1846 $ti =
new ilNumberInputGUI($this->lng->txt(
"java_server_port"),
"rpc_server_port");
1849 $ti->setValue($ilSetting->get(
"rpc_server_port"));
1850 $this->form->addItem($ti);
1854 $pdf->setTitle($this->lng->txt(
'rpc_pdf_generation'));
1855 $this->form->addItem($pdf);
1857 $pdf_font =
new ilTextInputGUI($this->lng->txt(
'rpc_pdf_font'),
'rpc_pdf_font');
1858 $pdf_font->
setInfo($this->lng->txt(
'rpc_pdf_font_info'));
1859 $pdf_font->setSize(64);
1860 $pdf_font->setMaxLength(1024);
1861 $pdf_font->setRequired(
true);
1862 $pdf_font->setValue(
1863 $ilSetting->get(
'rpc_pdf_font',
'Helvetica, unifont'));
1864 $this->form->addItem($pdf_font);
1868 $this->form->addCommandButton(
"saveJavaServer", $lng->txt(
"save"));
1870 $this->form->setTitle($lng->txt(
"java_server"));
1871 $this->form->setDescription($lng->txt(
"java_server_info").
1872 '<br /><a href="Services/WebServices/RPC/lib/README.txt" target="_blank">'.
1873 $lng->txt(
"java_server_readme").
'</a>');
1874 $this->form->setFormAction($this->ctrl->getFormAction($this));
1886 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1888 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1892 if ($this->form->checkInput())
1894 $ilSetting->set(
"rpc_server_host", trim(
$_POST[
"rpc_server_host"]));
1895 $ilSetting->set(
"rpc_server_port", trim(
$_POST[
"rpc_server_port"]));
1898 $ilCtrl->redirect($this,
"showJavaServer");
1905 $this->form->setValuesByPost();
1906 $tpl->setContent($this->form->getHtml());
1921 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
1923 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
1926 require_once
'./Services/Http/classes/class.ilProxySettings.php';
1929 $this->form->setValuesByArray(array(
1939 $tpl->setContent($this->form->getHTML());
1954 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
1956 $this->lng->txt(
'proxy_connectable')
1961 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
1963 $this->lng->txt(
'proxy_not_connectable')
1965 ilUtil::sendFailure($this->lng->txt(
'proxy_pear_net_socket_error').
': '.$e->getMessage());
1980 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
1982 $this->ilias->raiseError($lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
1985 require_once
'./Services/Http/classes/class.ilProxySettings.php';
1988 $isFormValid = $this->form->checkInput();
1990 ->setHost(trim($this->form->getInput(
'proxy_host')))
1991 ->setPort(trim($this->form->getInput(
'proxy_port')));
1998 $isFormValid =
false;
1999 $this->form->getItemByPostVar(
'proxy_host')->setAlert($lng->txt(
'msg_input_is_required'));
2003 $isFormValid =
false;
2004 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'msg_input_is_required'));
2010 $isFormValid =
false;
2011 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'proxy_port_numeric'));
2030 $this->form->setValuesByPost();
2031 $tpl->setContent($this->form->getHTML());
2047 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
2049 $this->form->setFormAction($ilCtrl->getFormAction($this,
'saveProxy'));
2053 $proxs->
setInfo($lng->txt(
'proxy_status_info'));
2054 $proxs->setValue(1);
2055 $this->form->addItem($proxs);
2059 $proxs->addSubItem($proxa);
2062 $prox =
new ilTextInputGUI($lng->txt(
'proxy_host'),
'proxy_host');
2063 $prox->
setInfo($lng->txt(
'proxy_host_info'));
2064 $proxs->addSubItem($prox);
2067 $proxp =
new ilTextInputGUI($lng->txt(
'proxy_port'),
'proxy_port');
2068 $proxp->
setInfo($lng->txt(
'proxy_port_info'));
2069 $proxp->setSize(10);
2070 $proxp->setMaxLength(10);
2071 $proxs->addSubItem($proxp);
2074 $this->form->addCommandButton(
'saveProxy', $lng->txt(
'save'));
2079 global
$tpl, $ilAccess;
2081 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
2083 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
2087 $tpl->setContent($form->getHTML());
2095 if($form->checkInput())
2100 $security->setAutomaticHTTPSEnabled((
int)
$_POST[
"auto_https_detect_enabled"]);
2101 $security->setAutomaticHTTPSHeaderName(
ilUtil::stripSlashes($_POST[
"auto_https_detect_header_name"]));
2102 $security->setAutomaticHTTPSHeaderValue(
ilUtil::stripSlashes($_POST[
"auto_https_detect_header_value"]));
2105 $security->setHTTPSEnabled($_POST[
"https_enabled"]);
2107 if($security->validate($form))
2112 $ilCtrl->redirect($this,
"showHTTPS");
2116 $form->setValuesByPost();
2117 $tpl->setContent($form->getHTML());
2126 $lng->loadLanguageModule(
'ps');
2128 include_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
2131 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
2133 $form->setTitle($lng->txt(
"adm_https"));
2134 $form->setFormAction($ilCtrl->getFormAction($this,
'saveHTTPS'));
2136 $check =
new ilCheckboxInputGUI($lng->txt(
'ps_auto_https'),
'auto_https_detect_enabled');
2138 $check->setChecked($security->isAutomaticHTTPSEnabled() ? 1 : 0);
2139 $check->setValue(1);
2141 $text =
new ilTextInputGUI($lng->txt(
'ps_auto_https_header_name'),
'auto_https_detect_header_name');
2142 $text->
setValue($security->getAutomaticHTTPSHeaderName());
2144 $text->setMaxLength(64);
2145 $text->setRequired(
true);
2146 $check->addSubItem($text);
2148 $text =
new ilTextInputGUI($lng->txt(
'ps_auto_https_header_value'),
'auto_https_detect_header_value');
2149 $text->
setValue($security->getAutomaticHTTPSHeaderValue());
2151 $text->setMaxLength(64);
2152 $text->setRequired(
true);
2153 $check->addSubItem($text);
2155 $form->addItem($check);
2158 $check2->
setChecked($security->isHTTPSEnabled() ? 1 : 0);
2159 $check2->setValue(1);
2160 $form->addItem($check2);
2163 $form->addCommandButton(
'saveHTTPS', $lng->txt(
'save'));
2174 include_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
2178 if($security->isAutomaticHTTPSEnabled())
2181 'ps_auto_https_header_name' => $security->getAutomaticHTTPSHeaderName(),
2182 'ps_auto_https_header_value' => $security->getAutomaticHTTPSHeaderValue()
2185 $fields = array(
'ps_auto_https' =>
2189 $fields[
'activate_https'] =
2192 return array(
"general_settings" => array(
"showHTTPS", $fields));
2203 $a_target = SYSTEM_FOLDER_ID;
2205 if ($ilAccess->checkAccess(
"read",
"", $a_target))
2212 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
2219 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
2229 require_once
'Services/Administration/classes/class.ilSubversionInformation.php';
2230 require_once
'Services/Administration/classes/class.ilGitInformation.php';
2234 $html = $vc->getInformationAsHtml();
2250 $this->showServerInfoObject();