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->activateTab(
"benchmarks");
760 $ilTabs->addSubtab(
"settings",
761 $lng->txt(
"settings"),
762 $ilCtrl->getLinkTarget($this,
"benchmark"));
764 $rec = $ilBench->getDbBenchRecords();
767 $ilTabs->addSubtab(
"chronological",
768 $lng->txt(
"adm_db_bench_chronological"),
769 $ilCtrl->getLinkTarget($this,
"showDbBenchChronological"));
770 $ilTabs->addSubtab(
"slowest_first",
771 $lng->txt(
"adm_db_bench_slowest_first"),
772 $ilCtrl->getLinkTarget($this,
"showDbBenchSlowestFirst"));
773 $ilTabs->addSubtab(
"sorted_by_sql",
774 $lng->txt(
"adm_db_bench_sorted_by_sql"),
775 $ilCtrl->getLinkTarget($this,
"showDbBenchSortedBySql"));
776 $ilTabs->addSubtab(
"by_first_table",
777 $lng->txt(
"adm_db_bench_by_first_table"),
778 $ilCtrl->getLinkTarget($this,
"showDbBenchByFirstTable"));
781 $ilTabs->activateSubTab($a_current);
792 if (
$_POST[
"enable_db_bench"])
798 $ilBench->enableDbBench(
false);
803 $this->ctrl->redirect($this,
"benchmark");
814 $this->ctrl->setParameter($this,
'cur_mod',
$_POST[
'module']);
815 $this->ctrl->redirect($this,
"benchmark");
826 $ilBench->clearData();
834 global $rbacsystem, $ilHelp;
838 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
841 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
843 $tabs_gui->addTarget(
"general_settings",
844 $this->ctrl->getLinkTarget($this,
"showBasicSettings"),
845 array(
"showBasicSettings",
"saveBasicSettings"), get_class($this));
849 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
851 $tabs_gui->addTarget(
"server",
852 $this->ctrl->getLinkTarget($this,
"showServerInfo"),
853 array(
"showServerInfo",
"view"), get_class($this));
856 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
858 $tabs_gui->addTarget(
"cron_jobs",
859 $this->ctrl->getLinkTargetByClass(
"ilCronManagerGUI",
""),
"", get_class($this));
861 $tabs_gui->addTarget(
"system_check",
862 $this->ctrl->getLinkTarget($this,
"check"), array(
"check",
"viewScanLog",
"saveCheckParams",
"saveCheckCron"), get_class($this));
864 $tabs_gui->addTarget(
"benchmarks",
865 $this->ctrl->getLinkTarget($this,
"benchmark"),
"benchmark", get_class($this));
868 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
870 $tabs_gui->addTarget(
"perm_settings",
871 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
895 global $ilTabs,
$ilCtrl, $rbacsystem;
897 $ilTabs->addSubTabTarget(
"server_data", $ilCtrl->getLinkTarget($this,
"showServerInfo"));
899 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
901 $ilTabs->addSubTabTarget(
"adm_https", $ilCtrl->getLinkTarget($this,
"showHTTPS"));
902 $ilTabs->addSubTabTarget(
"proxy", $ilCtrl->getLinkTarget($this,
"showProxy"));
903 $ilTabs->addSubTabTarget(
"java_server", $ilCtrl->getLinkTarget($this,
"showJavaServer"));
904 $ilTabs->addSubTabTarget(
"webservices", $ilCtrl->getLinkTarget($this,
"showWebServices"));
907 $ilTabs->setSubTabActive($a_activate);
908 $ilTabs->setTabActive(
"server");
914 function showServerInfoObject()
924 require_once
'Services/UIComponent/Button/classes/class.ilLinkButton.php';
926 $button->setCaption(
'vc_information');
927 $button->setUrl($this->ctrl->getLinkTarget($this,
'showVcsInformation'));
928 $ilToolbar->addButtonInstance($button);
933 $btpl =
new ilTemplate(
"tpl.server_data.html",
true,
true,
"Modules/SystemFolder");
934 $btpl->setVariable(
"FORM", $this->form->getHTML());
935 $btpl->setVariable(
"PHP_INFO_TARGET", $ilCtrl->getLinkTarget($this,
"showPHPInfo"));
936 $tpl->setContent($btpl->get());
948 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
953 $ne->
setValue($ilClientIniFile->readVariable(
"client",
"name"));
954 $ne->setInfo($ilClientIniFile->readVariable(
"client",
"description"));
955 $this->form->addItem($ne);
960 $this->form->addItem($ne);
964 $ne->
setValue($ilSetting->get(
"inst_id"));
965 $this->form->addItem($ne);
969 $ne->
setValue($ilSetting->get(
"db_version"));
971 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
972 $this->form->addItem($ne);
976 $ne->
setValue($ilSetting->get(
"ilias_version"));
977 $this->form->addItem($ne);
981 $ne->
setValue($_SERVER[
"SERVER_NAME"]);
982 $this->form->addItem($ne);
986 $ne->
setValue($_SERVER[
"SERVER_ADDR"].
":".$_SERVER[
"SERVER_PORT"]);
987 $this->form->addItem($ne);
991 $ne->
setValue($_SERVER[
"SERVER_SOFTWARE"]);
992 $this->form->addItem($ne);
997 $this->form->addItem($ne);
1002 $this->form->addItem($ne);
1004 $not_set = $lng->txt(
"path_not_set");
1008 $ne->
setValue((PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1009 $this->form->addItem($ne);
1013 $ne->
setValue((PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1014 $this->form->addItem($ne);
1018 $ne->
setValue((PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1019 $this->form->addItem($ne);
1023 $ne->
setValue((PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1024 $this->form->addItem($ne);
1028 $ne->
setValue((PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
1029 $this->form->addItem($ne);
1033 $ne->
setValue((PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
1034 $this->form->addItem($ne);
1038 $ne->
setValue((URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1039 $this->form->addItem($ne);
1042 $this->form->setTitle($lng->txt(
"server_data"));
1043 $this->form->setFormAction($this->ctrl->getFormAction($this));
1060 $ilTabs->addSubTabTarget(
"basic_settings", $ilCtrl->getLinkTarget($this,
"showBasicSettings"));
1061 $ilTabs->addSubTabTarget(
"header_title", $ilCtrl->getLinkTarget($this,
"showHeaderTitle"));
1062 $ilTabs->addSubTabTarget(
"contact_data", $ilCtrl->getLinkTarget($this,
"showContactInformation"));
1063 $ilTabs->addSubTabTarget(
"adm_imprint", $ilCtrl->getLinkTargetByClass(
"ilimprintgui",
"preview"));
1065 $ilTabs->setSubTabActive($a_activate);
1066 $ilTabs->setTabActive(
"general_settings");
1082 $this->initBasicSettingsForm();
1085 $tpl->setContent($this->form->getHTML());
1092 public function initBasicSettingsForm()
1100 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1102 $lng->loadLanguageModule(
"pd");
1105 $ti =
new ilTextInputGUI($this->lng->txt(
"short_inst_name"),
"short_inst_name");
1108 $ti->setValue($ilSetting->get(
"short_inst_name"));
1109 $ti->setInfo($this->lng->txt(
"short_inst_name_info"));
1110 $this->form->addItem($ti);
1114 $cb->
setInfo($lng->txt(
"pub_section_info"));
1115 if ($ilSetting->get(
"pub_section"))
1117 $cb->setChecked(
true);
1119 $this->form->addItem($cb);
1122 $cb_prop =
new ilCheckboxInputGUI($lng->txt(
'pd_enable_user_publish'),
'enable_global_profiles');
1123 $cb_prop->
setInfo($lng->txt(
'pd_enable_user_publish_info'));
1124 $cb_prop->setChecked($ilSetting->get(
'enable_global_profiles'));
1125 $cb->addSubItem($cb_prop);
1128 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
1131 $cb2->
setInfo($this->lng->txt(
"enable_search_engine"));
1132 $this->form->addItem($cb2);
1134 if(!$robot_settings->checkRewrite())
1136 $cb2->setAlert($lng->txt(
"allow_override_alert"));
1137 $cb2->setChecked(
false);
1138 $cb2->setDisabled(
true);
1142 if ($ilSetting->get(
"open_google"))
1144 $cb2->setChecked(
true);
1149 $ti =
new ilTextInputGUI($this->lng->txt(
"adm_locale"),
"locale");
1152 $ti->setInfo($this->lng->txt(
"adm_locale_info"));
1153 $ti->setValue($ilSetting->get(
"locale"));
1154 $this->form->addItem($ti);
1157 include_once
"Services/User/classes/class.ilUserUtil.php";
1159 $si->setRequired(
true);
1160 $si->setInfo($this->lng->txt(
"adm_user_starting_point_info"));
1165 $si->addOption($opt);
1167 if(!in_array($value,
$valid))
1169 $opt->setInfo($this->lng->txt(
"adm_user_starting_point_invalid_info"));
1173 $this->form->addItem(
$si);
1177 $repobj_id =
new ilTextInputGUI($lng->txt(
"adm_user_starting_point_ref_id"),
"usr_start_ref_id");
1178 $repobj_id->setRequired(
true);
1179 $repobj_id->setSize(5);
1183 $repobj_id->
setValue($start_ref_id);
1189 $repobj_id->
setInfo($lng->txt(
"obj_".ilObject::_lookupType($start_obj_id)).
1194 $repobj->addSubItem($repobj_id);
1195 $si->addOption($repobj);
1198 $startp =
new ilCheckboxInputGUI($lng->txt(
"adm_user_starting_point_personal"),
"usr_start_pers");
1199 $startp->
setInfo($lng->txt(
"adm_user_starting_point_personal_info"));
1201 $si->addSubItem($startp);
1205 $this->form->addCommandButton(
"saveBasicSettings", $lng->txt(
"save"));
1207 $this->form->setTitle($lng->txt(
"basic_settings"));
1208 $this->form->setFormAction($this->ctrl->getFormAction($this));
1220 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1222 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1225 $this->initBasicSettingsForm();
1226 if ($this->form->checkInput())
1228 $ilSetting->set(
"short_inst_name",
$_POST[
"short_inst_name"]);
1229 $ilSetting->set(
"pub_section",
$_POST[
"pub_section"]);
1231 $global_profiles = (
$_POST[
"pub_section"])
1232 ? (
int)
$_POST[
'enable_global_profiles']
1234 $ilSetting->set(
'enable_global_profiles', $global_profiles);
1236 $ilSetting->set(
"open_google",
$_POST[
"open_google"]);
1237 $ilSetting->set(
"locale",
$_POST[
"locale"]);
1239 include_once
"Services/User/classes/class.ilUserUtil.php";
1244 $ilCtrl->redirect($this,
"showBasicSettings");
1247 $this->form->setValuesByPost();
1248 $tpl->setContent($this->form->getHtml());
1265 include_once(
"./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
1267 if ($a_get_post_values)
1270 foreach(
$_POST[
"title"] as $k => $v)
1272 $vals[] = array(
"title" => $v,
1273 "desc" =>
$_POST[
"desc"][$k],
1274 "lang" =>
$_POST[
"lang"][$k],
1275 "default" => (
$_POST[
"default"] == $k));
1277 $table->setData($vals);
1281 $data = $this->
object->getHeaderTitleTranslations();
1282 if (is_array(
$data[
"Fobject"]))
1284 foreach(
$data[
"Fobject"] as $k => $v)
1286 if ($k ==
$data[
"default_language"])
1288 $data[
"Fobject"][$k][
"default"] =
true;
1292 $data[
"Fobject"][$k][
"default"] =
false;
1298 $data[
"Fobject"] = array();
1300 $table->setData(
$data[
"Fobject"]);
1302 $tpl->setContent($table->getHTML());
1312 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1314 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1320 if (!isset(
$_POST[
"default"]) && count(
$_POST[
"lang"]) > 0)
1327 if (array_key_exists(
"",
$_POST[
"lang"]))
1334 if (count(array_unique(
$_POST[
"lang"])) < count(
$_POST[
"lang"]))
1341 $this->
object->removeHeaderTitleTranslations();
1342 foreach(
$_POST[
"title"] as $k => $v)
1344 $this->
object->addHeaderTitleTranslation(
1348 (
$_POST[
"default"] == $k));
1352 $ilCtrl->redirect($this,
"showHeaderTitle");
1362 if (is_array(
$_POST[
"title"]))
1364 foreach(
$_POST[
"title"] as $k => $v) {}
1367 $_POST[
"title"][$k] =
"";
1378 foreach(
$_POST[
"title"] as $k => $v)
1382 unset(
$_POST[
"title"][$k]);
1383 unset(
$_POST[
"desc"][$k]);
1384 unset(
$_POST[
"lang"][$k]);
1385 if ($k ==
$_POST[
"default"])
1387 unset(
$_POST[
"default"]);
1421 $this->ctrl->redirectByClass(
"ilCronManagerGUI",
"render");
1440 $tpl->setContent($this->form->getHTML());
1450 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1454 $ti =
new ilTextInputGUI($this->lng->txt(
"firstname"),
"admin_firstname");
1457 $ti->setRequired(
true);
1458 $ti->setValue($ilSetting->get(
"admin_firstname"));
1459 $this->form->addItem($ti);
1462 $ti =
new ilTextInputGUI($this->lng->txt(
"lastname"),
"admin_lastname");
1465 $ti->setRequired(
true);
1466 $ti->setValue($ilSetting->get(
"admin_lastname"));
1467 $this->form->addItem($ti);
1470 $ti =
new ilTextInputGUI($this->lng->txt(
"title"),
"admin_title");
1473 $ti->setValue($ilSetting->get(
"admin_title"));
1474 $this->form->addItem($ti);
1477 $ti =
new ilTextInputGUI($this->lng->txt(
"position"),
"admin_position");
1480 $ti->setValue($ilSetting->get(
"admin_position"));
1481 $this->form->addItem($ti);
1484 $ti =
new ilTextInputGUI($this->lng->txt(
"institution"),
"admin_institution");
1487 $ti->setValue($ilSetting->get(
"admin_institution"));
1488 $this->form->addItem($ti);
1491 $ti =
new ilTextInputGUI($this->lng->txt(
"street"),
"admin_street");
1495 $ti->setValue($ilSetting->get(
"admin_street"));
1496 $this->form->addItem($ti);
1499 $ti =
new ilTextInputGUI($this->lng->txt(
"zipcode"),
"admin_zipcode");
1503 $ti->setValue($ilSetting->get(
"admin_zipcode"));
1504 $this->form->addItem($ti);
1511 $ti->setValue($ilSetting->get(
"admin_city"));
1512 $this->form->addItem($ti);
1515 $ti =
new ilTextInputGUI($this->lng->txt(
"country"),
"admin_country");
1519 $ti->setValue($ilSetting->get(
"admin_country"));
1520 $this->form->addItem($ti);
1523 $ti =
new ilTextInputGUI($this->lng->txt(
"phone"),
"admin_phone");
1527 $ti->setValue($ilSetting->get(
"admin_phone"));
1528 $this->form->addItem($ti);
1531 $ti =
new ilEmailInputGUI($this->lng->txt(
"email"),
"admin_email");
1532 $ti->setMaxLength(64);
1534 $ti->setRequired(
true);
1535 $ti->allowRFC822(
true);
1536 $ti->setValue($ilSetting->get(
"admin_email"));
1537 $this->form->addItem($ti);
1540 $ti =
new ilEmailInputGUI($this->lng->txt(
"feedback_recipient"),
"feedback_recipient");
1541 $ti->setInfo(sprintf($this->lng->txt(
"feedback_recipient_info"), $this->lng->txt(
"contact_sysadmin")));
1542 $ti->setMaxLength(64);
1544 $ti->setRequired(
true);
1545 $ti->allowRFC822(
true);
1546 $ti->setValue($ilSetting->get(
"feedback_recipient"));
1547 $this->form->addItem($ti);
1550 $ti =
new ilEmailInputGUI($this->lng->txt(
"error_recipient"),
"error_recipient");
1551 $ti->setMaxLength(64);
1553 $ti->allowRFC822(
true);
1554 $ti->setValue($ilSetting->get(
"error_recipient"));
1555 $this->form->addItem($ti);
1557 $this->form->addCommandButton(
"saveContactInformation", $lng->txt(
"save"));
1559 $this->form->setTitle($lng->txt(
"contact_data"));
1560 $this->form->setFormAction($this->ctrl->getFormAction($this));
1572 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1574 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1578 if ($this->form->checkInput())
1580 $fs = array(
"admin_firstname",
"admin_lastname",
"admin_title",
"admin_position",
1581 "admin_institution",
"admin_street",
"admin_zipcode",
"admin_city",
1582 "admin_country",
"admin_phone",
"admin_email",
1583 "feedback_recipient",
"error_recipient");
1586 $ilSetting->set($f,
$_POST[$f]);
1589 $ilCtrl->redirect($this,
"showContactInformation");
1594 $this->form->setValuesByPost();
1595 $tpl->setContent($this->form->getHtml());
1614 $tpl->setContent($this->form->getHTML());
1624 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1628 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"soap_user_administration"),
"soap_user_administration");
1629 $cb->
setInfo($this->lng->txt(
"soap_user_administration_desc"));
1630 if ($ilSetting->get(
"soap_user_administration"))
1632 $cb->setChecked(
true);
1634 $this->form->addItem($cb);
1637 $wsdl =
new ilTextInputGUI($this->lng->txt(
'soap_wsdl_path'),
'soap_wsdl_path');
1638 $wsdl->
setInfo(sprintf($this->lng->txt(
'soap_wsdl_path_info'),
"<br />'".ILIAS_HTTP_PATH.
"/webservice/soap/server.php?wsdl'"));
1639 $wsdl->setValue((
string)$ilSetting->get(
'soap_wsdl_path'));
1641 $wsdl->setMaxLength(255);
1642 $this->form->addItem($wsdl);
1645 $ctime =
new ilNumberInputGUI($this->lng->txt(
'soap_connect_timeout'),
'ctimeout');
1648 $ctime->setMaxLength(3);
1649 include_once
'./Services/WebServices/SOAP/classes/class.ilSoapClient.php';
1651 $ctime->setInfo($this->lng->txt(
'soap_connect_timeout_info'));
1652 $this->form->addItem($ctime);
1654 $this->form->addCommandButton(
"saveWebServices", $lng->txt(
"save"));
1656 $this->form->setTitle($lng->txt(
"webservices"));
1657 $this->form->setFormAction($this->ctrl->getFormAction($this));
1669 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1671 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1675 if ($this->form->checkInput())
1677 $ilSetting->set(
'soap_user_administration', $this->form->getInput(
'soap_user_administration'));
1678 $ilSetting->set(
'soap_wsdl_path', trim($this->form->getInput(
'soap_wsdl_path')));
1679 $ilSetting->set(
'soap_connect_timeout',$this->form->getInput(
'ctimeout'));
1682 $ilCtrl->redirect($this,
'showWebServices');
1687 $this->form->setValuesByPost();
1688 $tpl->setContent($this->form->getHtml());
1705 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.java_settings.html',
'Modules/SystemFolder');
1707 $GLOBALS[
'lng']->loadLanguageModule(
'search');
1709 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
1711 $toolbar->addButton($this->lng->txt(
'lucene_create_ini'),
1712 $this->ctrl->getLinkTarget($this,
'createJavaServerIni'));
1713 $tpl->setVariable(
'ACTION_BUTTONS',$toolbar->getHTML());
1717 $tpl->setVariable(
'SETTINGS_TABLE',$this->form->getHTML());
1728 $this->tpl->setContent($this->form->getHTML());
1733 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
1737 $GLOBALS[
'lng']->loadLanguageModule(
'search');
1739 $this->form->setTitle($this->lng->txt(
'lucene_tbl_create_ini'));
1740 $this->form->setFormAction($this->ctrl->getFormAction($this,
'createJavaServerIni'));
1741 $this->form->addCommandButton(
'downloadJavaServerIni',$this->lng->txt(
'lucene_download_ini'));
1742 $this->form->addCommandButton(
'showJavaServer', $this->lng->txt(
'cancel'));
1746 $ip->
setInfo($this->lng->txt(
'lucene_host_info'));
1747 $ip->setMaxLength(128);
1749 $ip->setRequired(
true);
1750 $this->form->addItem($ip);
1755 $port->setMinValue(1);
1756 $port->setMaxValue(65535);
1757 $port->setRequired(
true);
1758 $this->form->addItem($port);
1763 $path->setMaxLength(1024);
1764 $path->setInfo($this->lng->txt(
'lucene_index_path_info'));
1765 $path->setRequired(
true);
1766 $this->form->addItem(
$path);
1771 $log->setMaxLength(1024);
1772 $log->setInfo($this->lng->txt(
'lucene_log_info'));
1773 $log->setRequired(
true);
1774 $this->form->addItem(
$log);
1783 'FATAL' =>
'FATAL'));
1784 $lev->setValue(
'INFO');
1785 $lev->setRequired(
true);
1786 $this->form->addItem($lev);
1792 $cpu->setMaxLength(2);
1793 $cpu->setMinValue(1);
1794 $cpu->setRequired(
true);
1795 $this->form->addItem($cpu);
1799 $fs->
setInfo($this->lng->txt(
'lucene_max_fs_info'));
1802 $fs->setMaxLength(4);
1803 $fs->setMinValue(1);
1804 $fs->setRequired(
true);
1805 $this->form->addItem($fs);
1817 if($this->form->checkInput())
1819 include_once
'./Services/WebServices/RPC/classes/class.ilRpcIniFileWriter.php';
1821 $ini->setHost($this->form->getInput(
'ho'));
1822 $ini->setPort($this->form->getInput(
'po'));
1823 $ini->setIndexPath($this->form->getInput(
'in'));
1824 $ini->setLogPath($this->form->getInput(
'lo'));
1825 $ini->setLogLevel($this->form->getInput(
'le'));
1826 $ini->setNumThreads($this->form->getInput(
'cp'));
1827 $ini->setMaxFileSize($this->form->getInput(
'fs'));
1834 $this->form->setValuesByPost();
1837 $this->tpl->setContent($this->form->getHTML());
1848 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1852 $ti =
new ilTextInputGUI($this->lng->txt(
"java_server_host"),
"rpc_server_host");
1855 $ti->setValue($ilSetting->get(
"rpc_server_host"));
1856 $this->form->addItem($ti);
1859 $ti =
new ilNumberInputGUI($this->lng->txt(
"java_server_port"),
"rpc_server_port");
1862 $ti->setValue($ilSetting->get(
"rpc_server_port"));
1863 $this->form->addItem($ti);
1867 $pdf->setTitle($this->lng->txt(
'rpc_pdf_generation'));
1868 $this->form->addItem($pdf);
1870 $pdf_font =
new ilTextInputGUI($this->lng->txt(
'rpc_pdf_font'),
'rpc_pdf_font');
1871 $pdf_font->
setInfo($this->lng->txt(
'rpc_pdf_font_info'));
1872 $pdf_font->setSize(64);
1873 $pdf_font->setMaxLength(1024);
1874 $pdf_font->setRequired(
true);
1875 $pdf_font->setValue(
1876 $ilSetting->get(
'rpc_pdf_font',
'Helvetica, unifont'));
1877 $this->form->addItem($pdf_font);
1881 $this->form->addCommandButton(
"saveJavaServer", $lng->txt(
"save"));
1883 $this->form->setTitle($lng->txt(
"java_server"));
1884 $this->form->setDescription($lng->txt(
"java_server_info").
1885 '<br /><a href="Services/WebServices/RPC/lib/README.txt" target="_blank">'.
1886 $lng->txt(
"java_server_readme").
'</a>');
1887 $this->form->setFormAction($this->ctrl->getFormAction($this));
1899 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1901 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1905 if ($this->form->checkInput())
1907 $ilSetting->set(
"rpc_server_host", trim(
$_POST[
"rpc_server_host"]));
1908 $ilSetting->set(
"rpc_server_port", trim(
$_POST[
"rpc_server_port"]));
1911 $ilCtrl->redirect($this,
"showJavaServer");
1918 $this->form->setValuesByPost();
1919 $tpl->setContent($this->form->getHtml());
1934 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
1936 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
1939 require_once
'./Services/Http/classes/class.ilProxySettings.php';
1942 $this->form->setValuesByArray(array(
1952 $tpl->setContent($this->form->getHTML());
1967 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
1969 $this->lng->txt(
'proxy_connectable')
1974 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
1976 $this->lng->txt(
'proxy_not_connectable')
1978 ilUtil::sendFailure($this->lng->txt(
'proxy_pear_net_socket_error').
': '.$e->getMessage());
1993 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
1995 $this->ilias->raiseError($lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
1998 require_once
'./Services/Http/classes/class.ilProxySettings.php';
2001 $isFormValid = $this->form->checkInput();
2003 ->setHost(trim($this->form->getInput(
'proxy_host')))
2004 ->setPort(trim($this->form->getInput(
'proxy_port')));
2011 $isFormValid =
false;
2012 $this->form->getItemByPostVar(
'proxy_host')->setAlert($lng->txt(
'msg_input_is_required'));
2016 $isFormValid =
false;
2017 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'msg_input_is_required'));
2023 $isFormValid =
false;
2024 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'proxy_port_numeric'));
2043 $this->form->setValuesByPost();
2044 $tpl->setContent($this->form->getHTML());
2060 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
2062 $this->form->setFormAction($ilCtrl->getFormAction($this,
'saveProxy'));
2066 $proxs->
setInfo($lng->txt(
'proxy_status_info'));
2067 $proxs->setValue(1);
2068 $this->form->addItem($proxs);
2072 $proxs->addSubItem($proxa);
2075 $prox =
new ilTextInputGUI($lng->txt(
'proxy_host'),
'proxy_host');
2076 $prox->
setInfo($lng->txt(
'proxy_host_info'));
2077 $proxs->addSubItem($prox);
2080 $proxp =
new ilTextInputGUI($lng->txt(
'proxy_port'),
'proxy_port');
2081 $proxp->
setInfo($lng->txt(
'proxy_port_info'));
2082 $proxp->setSize(10);
2083 $proxp->setMaxLength(10);
2084 $proxs->addSubItem($proxp);
2087 $this->form->addCommandButton(
'saveProxy', $lng->txt(
'save'));
2092 global
$tpl, $ilAccess;
2094 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
2096 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
2100 $tpl->setContent($form->getHTML());
2108 if($form->checkInput())
2113 $security->setHTTPSEnabled(
$_POST[
"https_enabled"]);
2115 if($security->validate($form))
2120 $ilCtrl->redirect($this,
"showHTTPS");
2124 $form->setValuesByPost();
2125 $tpl->setContent($form->getHTML());
2134 $lng->loadLanguageModule(
'ps');
2136 include_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
2139 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
2141 $form->setTitle($lng->txt(
"adm_https"));
2142 $form->setFormAction($ilCtrl->getFormAction($this,
'saveHTTPS'));
2145 $check2->
setChecked($security->isHTTPSEnabled() ? 1 : 0);
2146 $check2->setValue(1);
2147 $form->addItem($check2);
2150 $form->addCommandButton(
'saveHTTPS', $lng->txt(
'save'));
2161 include_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
2166 $fields[
'activate_https'] =
2169 return array(
"general_settings" => array(
"showHTTPS", $fields));
2180 $a_target = SYSTEM_FOLDER_ID;
2182 if ($ilAccess->checkAccess(
"read",
"", $a_target))
2189 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
2196 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
2206 require_once
'Services/Administration/classes/class.ilSubversionInformation.php';
2207 require_once
'Services/Administration/classes/class.ilGitInformation.php';
2211 $html = $vc->getInformationAsHtml();
2227 $this->showServerInfoObject();