4require_once
"./Services/Object/classes/class.ilObjectGUI.php";
5require_once(
'./Services/Repository/classes/class.ilObjectPlugin.php');
34 parent::__construct($a_data,$a_id,$a_call_by_reference,
false);
36 $this->lng->loadLanguageModule(
"administration");
37 $this->lng->loadLanguageModule(
"adm");
44 $next_class = $this->ctrl->getNextClass($this);
49 case 'ilpermissiongui':
50 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
52 $ret =& $this->ctrl->forwardCommand($perm_gui);
57 $ilTabs->clearTargets();
58 $ilTabs->setBackTarget($this->lng->txt(
"back"),
59 $this->ctrl->getLinkTarget($this,
""));
61 include_once(
"./Services/Imprint/classes/class.ilImprintGUI.php");
69 $igui->setEnableEditing(
false);
72 $ret = $this->ctrl->forwardCommand($igui);
75 $this->tpl->setContent(
$ret);
79 case "ilobjectownershipmanagementgui":
81 include_once(
"Services/Object/classes/class.ilObjectOwnershipManagementGUI.php");
83 $this->ctrl->forwardCommand($gui);
86 case "ilcronmanagergui":
87 $ilTabs->activateTab(
"cron_jobs");
88 include_once(
"Services/Cron/classes/class.ilCronManagerGUI.php");
90 $this->ctrl->forwardCommand($gui);
95 $cmd = $this->ctrl->getCmd(
"view");
115 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
119 return $this->showServerInfoObject();
134 $ilTabs->addSubTab(
"system_check_sub", $this->lng->txt(
"system_check"),
135 $ilCtrl->getLinkTarget($this,
"check"));
136 $ilTabs->addSubTab(
"no_owner", $this->lng->txt(
"system_check_no_owner"),
137 $ilCtrl->getLinkTargetByClass(
"ilObjectOwnershipManagementGUI"));
139 $ilTabs->setSubTabActive($a_activate);
140 $ilTabs->setTabActive(
"system_check");
154 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
156 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
160 if (
$_POST[
'count_limit'] !==
null ||
$_POST[
'age_limit'] !==
null ||
$_POST[
'type_limit'] !==
null)
162 $ilias->account->writePref(
'systemcheck_count_limit',
163 (is_numeric(
$_POST[
'count_limit']) &&
$_POST[
'count_limit'] > 0) ?
$_POST[
'count_limit'] :
''
165 $ilias->account->writePref(
'systemcheck_age_limit',
166 (is_numeric(
$_POST[
'age_limit']) &&
$_POST[
'age_limit'] > 0) ?
$_POST[
'age_limit'] :
'');
167 $ilias->account->writePref(
'systemcheck_type_limit', trim(
$_POST[
'type_limit']));
179 include_once
"./Services/Repository/classes/class.ilValidator.php";
181 $hasScanLog = $validator->hasScanLog();
183 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_check.html",
184 "Modules/SystemFolder");
188 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_last_log"));
191 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
192 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"systemcheck"));
193 $this->tpl->setVariable(
"COLSPAN", 3);
194 $this->tpl->setVariable(
"TXT_ANALYZE_TITLE", $this->lng->txt(
"analyze_data"));
195 $this->tpl->setVariable(
"TXT_ANALYSIS_OPTIONS", $this->lng->txt(
"analysis_options"));
196 $this->tpl->setVariable(
"TXT_REPAIR_OPTIONS", $this->lng->txt(
"repair_options"));
197 $this->tpl->setVariable(
"TXT_OUTPUT_OPTIONS", $this->lng->txt(
"output_options"));
198 $this->tpl->setVariable(
"TXT_SCAN", $this->lng->txt(
"scan"));
199 $this->tpl->setVariable(
"TXT_SCAN_DESC", $this->lng->txt(
"scan_desc"));
200 $this->tpl->setVariable(
"TXT_DUMP_TREE", $this->lng->txt(
"dump_tree"));
201 $this->tpl->setVariable(
"TXT_DUMP_TREE_DESC", $this->lng->txt(
"dump_tree_desc"));
202 $this->tpl->setVariable(
"TXT_CLEAN", $this->lng->txt(
"clean"));
203 $this->tpl->setVariable(
"TXT_CLEAN_DESC", $this->lng->txt(
"clean_desc"));
204 $this->tpl->setVariable(
"TXT_RESTORE", $this->lng->txt(
"restore_missing"));
205 $this->tpl->setVariable(
"TXT_RESTORE_DESC", $this->lng->txt(
"restore_missing_desc"));
206 $this->tpl->setVariable(
"TXT_PURGE", $this->lng->txt(
"purge_missing"));
207 $this->tpl->setVariable(
"TXT_PURGE_DESC", $this->lng->txt(
"purge_missing_desc"));
208 $this->tpl->setVariable(
"TXT_RESTORE_TRASH", $this->lng->txt(
"restore_trash"));
209 $this->tpl->setVariable(
"TXT_RESTORE_TRASH_DESC", $this->lng->txt(
"restore_trash_desc"));
210 $this->tpl->setVariable(
"TXT_PURGE_TRASH", $this->lng->txt(
"purge_trash"));
211 $this->tpl->setVariable(
"TXT_PURGE_TRASH_DESC", $this->lng->txt(
"purge_trash_desc"));
212 $this->tpl->setVariable(
"TXT_COUNT_LIMIT", $this->lng->txt(
"purge_count_limit"));
213 $this->tpl->setVariable(
"TXT_COUNT_LIMIT_DESC", $this->lng->txt(
"purge_count_limit_desc"));
214 $this->tpl->setVariable(
"COUNT_LIMIT_VALUE",
$ilias->account->getPref(
"systemcheck_count_limit"));
215 $this->tpl->setVariable(
"TXT_AGE_LIMIT", $this->lng->txt(
"purge_age_limit"));
216 $this->tpl->setVariable(
"TXT_AGE_LIMIT_DESC", $this->lng->txt(
"purge_age_limit_desc"));
217 $this->tpl->setVariable(
"AGE_LIMIT_VALUE",
$ilias->account->getPref(
"systemcheck_age_limit"));
218 $this->tpl->setVariable(
"TXT_TYPE_LIMIT", $this->lng->txt(
"purge_type_limit"));
219 $this->tpl->setVariable(
"TXT_TYPE_LIMIT_DESC", $this->lng->txt(
"purge_type_limit_desc"));
221 if(
$ilias->account->getPref(
'systemcheck_mode_scan'))
222 $this->tpl->touchBlock(
'mode_scan_checked');
223 if(
$ilias->account->getPref(
'systemcheck_mode_dump_tree'))
224 $this->tpl->touchBlock(
'mode_dump_tree_checked');
225 if(
$ilias->account->getPref(
'systemcheck_mode_clean'))
226 $this->tpl->touchBlock(
'mode_clean_checked');
227 if(
$ilias->account->getPref(
'systemcheck_mode_restore'))
229 $this->tpl->touchBlock(
'mode_restore_checked');
230 $this->tpl->touchBlock(
'mode_purge_disabled');
232 elseif(
$ilias->account->getPref(
'systemcheck_mode_purge'))
234 $this->tpl->touchBlock(
'mode_purge_checked');
235 $this->tpl->touchBlock(
'mode_restore_disabled');
237 if(
$ilias->account->getPref(
'systemcheck_mode_restore_trash'))
239 $this->tpl->touchBlock(
'mode_restore_trash_checked');
240 $this->tpl->touchBlock(
'mode_purge_trash_disabled');
242 elseif(
$ilias->account->getPref(
'systemcheck_mode_purge_trash'))
244 $this->tpl->touchBlock(
'mode_purge_trash_checked');
245 $this->tpl->touchBlock(
'mode_restore_trash_disabled');
247 if(
$ilias->account->getPref(
'systemcheck_log_scan'))
248 $this->tpl->touchBlock(
'log_scan_checked');
253 $obj_types_in_tree = array();
256 $set =
$ilDB->query(
'SELECT type FROM object_data od'.
257 ' JOIN object_reference ref ON (od.obj_id = ref.obj_id)'.
258 ' JOIN tree ON (tree.child = ref.ref_id)'.
259 ' WHERE tree.tree < 1'.
263 $obj_types_in_tree[] =
$row[
'type'];
267 $ts = array(
"" =>
"");
268 foreach ($types as
$t)
271 in_array(
$t, $obj_types_in_tree))
276 $ts[
$t] = $pl->txt(
"obj_".
$t);
280 $ts[
$t] = $this->lng->txt(
"obj_".
$t);
285 $this->tpl->setVariable(
"TYPE_LIMIT_CHOICE",
287 $ilias->account->getPref(
"systemcheck_type_limit"),
292 $this->tpl->setVariable(
"TXT_LOG_SCAN", $this->lng->txt(
"log_scan"));
293 $this->tpl->setVariable(
"TXT_LOG_SCAN_DESC", $this->lng->txt(
"log_scan_desc"));
294 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"start_scan"));
296 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save_params_for_cron"));
298 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
301 $cron_form->setFormAction($this->ctrl->getFormAction($this));
302 $cron_form->setTitle($this->lng->txt(
'systemcheck_cronform'));
305 $radio_group->setValue(
$ilSetting->get(
'systemcheck_cron') );
307 $radio_opt =
new ilRadioOption($this->lng->txt(
'disabled'),0);
308 $radio_group->addOption($radio_opt);
310 $radio_opt =
new ilRadioOption($this->lng->txt(
'enabled'),1);
311 $radio_group->addOption($radio_opt);
313 $cron_form->addItem($radio_group);
315 $cron_form->addCommandButton(
'saveCheckCron',$this->lng->txt(
'save'));
317 $this->tpl->setVariable(
'CRON_FORM',$cron_form->getHTML());
330 include_once
"./Services/Repository/classes/class.ilValidator.php";
332 $modes = $validator->getPossibleModes();
335 foreach($modes as $mode)
337 if( isset(
$_POST[
'mode'][$mode]) ) $value = (int)
$_POST[
'mode'][$mode];
339 $prefs[
'systemcheck_mode_'.$mode ] = $value;
342 if( isset(
$_POST[
'log_scan']) ) $value = (
int)
$_POST[
'log_scan'];
344 $prefs[
'systemcheck_log_scan'] = $value;
347 foreach($prefs as $key => $val)
357 $systemcheck_cron = (
$_POST[
'cronjob'] ? 1 : 0);
358 $ilSetting->set(
'systemcheck_cron',$systemcheck_cron);
371 global $rbacsystem, $styleDefinition;
373 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.header_title_edit.html",
374 "Modules/SystemFolder");
381 $_GET[
"mode"] =
"session";
386 if ((
$_GET[
"mode"] !=
"session"))
388 $data = $this->
object->getHeaderTitleTranslations();
392 elseif (
$_GET[
"entry"] != 0)
394 array_splice(
$_SESSION[
"translation_post"][
"Fobject"],
$_GET[
"entry"],1,array());
396 if (
$_GET[
"entry"] ==
$_SESSION[
"translation_post"][
"default_language"])
398 $_SESSION[
"translation_post"][
"default_language"] =
"";
405 if (!
$_GET[
"entry"] and $array_push)
407 $count = array_push(
$data[
"Fobject"],array(
"title" =>
"",
"desc" =>
""));
411 $count = count(
$data[
"Fobject"]);
415 $strip = isset(
$_SESSION[
"translation_post"]) ? true :
false;
417 foreach (
$data[
"Fobject"] as $key => $val)
420 if ($key == $count -1)
422 $this->tpl->setCurrentBlock(
"addTranslation");
423 $this->tpl->setVariable(
"TXT_ADD_TRANSLATION",$this->lng->txt(
"add_translation").
" >>");
424 $this->tpl->parseCurrentBlock();
430 $this->tpl->setCurrentBlock(
"removeTranslation");
431 $this->tpl->setVariable(
"TXT_REMOVE_TRANSLATION",$this->lng->txt(
"remove_translation"));
432 $this->ctrl->setParameter($this,
"entry", $key);
433 $this->ctrl->setParameter($this,
"mode",
"edit");
434 $this->tpl->setVariable(
"LINK_REMOVE_TRANSLATION",
435 $this->ctrl->getLinkTarget($this,
"removeTranslation"));
436 $this->tpl->parseCurrentBlock();
440 $this->tpl->addBlockFile(
"SEL_LANGUAGE",
"sel_language",
"tpl.lang_selection.html",
441 "Services/MetaData");
442 $this->tpl->setVariable(
"SEL_NAME",
"Fobject[".$key.
"][lang]");
444 include_once(
'Services/MetaData/classes/class.ilMDLanguageItem.php');
450 $this->tpl->setCurrentBlock(
"lg_option");
451 $this->tpl->setVariable(
"VAL_LG",
$code);
452 $this->tpl->setVariable(
"TXT_LG", $language);
454 if (
$code == $val[
"lang"])
456 $this->tpl->setVariable(
"SELECTED",
"selected=\"selected\"");
459 $this->tpl->parseCurrentBlock();
463 $this->tpl->setCurrentBlock(
"obj_form");
467 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"change_header_title"));
471 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"translation").
" ".$key);
474 if ($key ==
$data[
"default_language"])
476 $this->tpl->setVariable(
"CHECKED",
"checked=\"checked\"");
479 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
480 $this->tpl->setVariable(
"TXT_DESC", $this->lng->txt(
"desc"));
481 $this->tpl->setVariable(
"TXT_DEFAULT", $this->lng->txt(
"default"));
482 $this->tpl->setVariable(
"TXT_LANGUAGE", $this->lng->txt(
"language"));
485 $this->tpl->setVariable(
"NUM", $key);
486 $this->tpl->parseCurrentBlock();
490 $this->tpl->setCurrentBlock(
"adm_content");
492 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
493 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
494 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
495 $this->tpl->setVariable(
"CMD_SUBMIT",
"saveHeaderTitle");
496 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
507 if (!isset(
$data[
"default_language"]))
509 $this->
ilias->raiseError($this->lng->txt(
"msg_no_default_language"),$this->ilias->error_obj->MESSAGE);
513 foreach (
$data[
"Fobject"] as $key => $val)
515 $langs[$key] = $val[
"lang"];
518 $langs = array_count_values($langs);
521 if (array_key_exists(
"",$langs))
523 $this->
ilias->raiseError($this->lng->txt(
"msg_no_language_selected"),$this->ilias->error_obj->MESSAGE);
527 if (array_sum($langs) > count($langs))
529 $this->
ilias->raiseError($this->lng->txt(
"msg_multi_language_selected"),$this->ilias->error_obj->MESSAGE);
537 $this->
object->removeHeaderTitleTranslations();
540 foreach (
$data[
"Fobject"] as $key => $val)
542 if ($key ==
$data[
"default_language"])
556 $this->ctrl->redirect($this);
561 $this->ctrl->redirect($this,
"view");
573 $this->ctrl->setParameter($this,
"mode",
"session");
574 $this->ctrl->setParameter($this,
"entry",
"0");
575 $this->ctrl->redirect($this,
"changeHeaderTitle");
585 $this->ctrl->setParameter($this,
"entry",
$_GET[
"entry"]);
586 $this->ctrl->setParameter($this,
"mode",
"session");
587 $this->ctrl->redirect($this,
"changeHeaderTitle");
595 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
597 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
600 $logging = ($a_log) ?
true :
false;
601 include_once
"./Services/Repository/classes/class.ilValidator.php";
603 $validator->setMode(
"all",
false);
606 foreach ($a_mode as $mode => $value)
608 $validator->setMode($mode,(
bool) $value);
609 $modes[] = $mode.
'='.$value;
612 $scan_log = $validator->validate();
614 $mode = $this->lng->txt(
"scan_modes").
": ".implode(
', ',$modes);
617 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_scan.html",
618 "Modules/SystemFolder");
620 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
621 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scanning_system"));
622 $this->tpl->setVariable(
"COLSPAN", 3);
623 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
624 $this->tpl->setVariable(
"TXT_MODE", $mode);
626 if ($logging ===
true)
628 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_log"));
631 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
633 $validator->writeScanLogLine($mode);
638 include_once
"./Services/Repository/classes/class.ilValidator.php";
639 $validator =
new IlValidator();
640 $scan_log =& $validator->readScanLog();
642 if (is_array($scan_log))
644 $scan_log =
'<pre>'.implode(
"",$scan_log).
'</pre>';
645 $this->tpl->setVariable(
"ADM_CONTENT", $scan_log);
649 $scan_log =
"no scanlog found.";
653 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_scan.html",
654 "Modules/SystemFolder");
655 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scan_details"));
656 $this->tpl->setVariable(
"COLSPAN", 3);
657 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
658 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
669 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
671 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
676 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
681 $cb->setChecked(
$ilSetting->get(
"enable_db_bench"));
682 $cb->setInfo(
$lng->txt(
"adm_activate_db_benchmark_desc"));
683 $this->form->addItem($cb);
687 $ti->setValue(
$ilSetting->get(
"db_bench_user"));
688 $ti->setInfo(
$lng->txt(
"adm_db_benchmark_user_desc"));
689 $this->form->addItem($ti);
691 $this->form->addCommandButton(
"saveBenchSettings",
$lng->txt(
"save"));
693 $this->form->setTitle(
$lng->txt(
"adm_db_benchmark"));
694 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
696 $tpl->setContent($this->form->getHTML());
744 $rec =
$ilBench->getDbBenchRecords();
746 include_once(
"./Modules/SystemFolder/classes/class.ilBenchmarkTableGUI.php");
748 $tpl->setContent($table->getHTML());
761 $ilTabs->activateTab(
"benchmarks");
763 $ilTabs->addSubtab(
"settings",
764 $lng->txt(
"settings"),
765 $ilCtrl->getLinkTarget($this,
"benchmark"));
767 $rec =
$ilBench->getDbBenchRecords();
770 $ilTabs->addSubtab(
"chronological",
771 $lng->txt(
"adm_db_bench_chronological"),
772 $ilCtrl->getLinkTarget($this,
"showDbBenchChronological"));
773 $ilTabs->addSubtab(
"slowest_first",
774 $lng->txt(
"adm_db_bench_slowest_first"),
775 $ilCtrl->getLinkTarget($this,
"showDbBenchSlowestFirst"));
776 $ilTabs->addSubtab(
"sorted_by_sql",
777 $lng->txt(
"adm_db_bench_sorted_by_sql"),
778 $ilCtrl->getLinkTarget($this,
"showDbBenchSortedBySql"));
779 $ilTabs->addSubtab(
"by_first_table",
780 $lng->txt(
"adm_db_bench_by_first_table"),
781 $ilCtrl->getLinkTarget($this,
"showDbBenchByFirstTable"));
784 $ilTabs->activateSubTab($a_current);
795 if (
$_POST[
"enable_db_bench"])
806 $this->ctrl->redirect($this,
"benchmark");
817 $this->ctrl->setParameter($this,
'cur_mod',
$_POST[
'module']);
818 $this->ctrl->redirect($this,
"benchmark");
837 global $rbacsystem, $ilHelp;
841 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
844 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
846 $this->tabs_gui->addTarget(
"general_settings",
847 $this->ctrl->getLinkTarget($this,
"showBasicSettings"),
848 array(
"showBasicSettings",
"saveBasicSettings"), get_class($this));
852 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
854 $this->tabs_gui->addTarget(
"server",
855 $this->ctrl->getLinkTarget($this,
"showServerInfo"),
856 array(
"showServerInfo",
"view"), get_class($this));
859 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
861 $this->tabs_gui->addTarget(
"cron_jobs",
862 $this->ctrl->getLinkTargetByClass(
"ilCronManagerGUI",
""),
"", get_class($this));
867 $this->tabs_gui->addTarget(
"benchmarks",
868 $this->ctrl->getLinkTarget($this,
"benchmark"),
"benchmark", get_class($this));
871 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
873 $this->tabs_gui->addTarget(
"perm_settings",
874 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
898 global $ilTabs,
$ilCtrl, $rbacsystem;
900 $ilTabs->addSubTabTarget(
"server_data",
$ilCtrl->getLinkTarget($this,
"showServerInfo"));
902 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
904 $ilTabs->addSubTabTarget(
"adm_https",
$ilCtrl->getLinkTarget($this,
"showHTTPS"));
905 $ilTabs->addSubTabTarget(
"proxy",
$ilCtrl->getLinkTarget($this,
"showProxy"));
906 $ilTabs->addSubTabTarget(
"java_server",
$ilCtrl->getLinkTarget($this,
"showJavaServer"));
907 $ilTabs->addSubTabTarget(
"webservices",
$ilCtrl->getLinkTarget($this,
"showWebServices"));
910 $ilTabs->setSubTabActive($a_activate);
911 $ilTabs->setTabActive(
"server");
917 function showServerInfoObject()
927 require_once
'Services/UIComponent/Button/classes/class.ilLinkButton.php';
929 $button->setCaption(
'vc_information');
930 $button->setUrl($this->ctrl->getLinkTarget($this,
'showVcsInformation'));
931 $ilToolbar->addButtonInstance($button);
936 $btpl =
new ilTemplate(
"tpl.server_data.html",
true,
true,
"Modules/SystemFolder");
937 $btpl->setVariable(
"FORM", $this->form->getHTML());
938 $btpl->setVariable(
"PHP_INFO_TARGET",
$ilCtrl->getLinkTarget($this,
"showPHPInfo"));
939 $tpl->setContent($btpl->get());
951 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
956 $ne->setValue($ilClientIniFile->readVariable(
"client",
"name"));
957 $ne->setInfo($ilClientIniFile->readVariable(
"client",
"description"));
958 $this->form->addItem($ne);
962 $ne->setValue(CLIENT_ID);
963 $this->form->addItem($ne);
968 $this->form->addItem($ne);
974 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
975 $this->form->addItem($ne);
979 $ne->setValue(
$ilSetting->get(
"ilias_version"));
980 $this->form->addItem($ne);
984 $ne->setValue(
$_SERVER[
"SERVER_NAME"]);
985 $this->form->addItem($ne);
990 $this->form->addItem($ne);
994 $ne->setValue(
$_SERVER[
"SERVER_SOFTWARE"]);
995 $this->form->addItem($ne);
999 $ne->setValue(ILIAS_HTTP_PATH);
1000 $this->form->addItem($ne);
1004 $ne->setValue(ILIAS_ABSOLUTE_PATH);
1005 $this->form->addItem($ne);
1007 $not_set =
$lng->txt(
"path_not_set");
1011 $ne->setValue((PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1012 $this->form->addItem($ne);
1016 $ne->setValue((PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1017 $this->form->addItem($ne);
1021 $ne->setValue((PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1022 $this->form->addItem($ne);
1026 $ne->setValue((PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1027 $this->form->addItem($ne);
1031 $ne->setValue((PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
1032 $this->form->addItem($ne);
1036 $ne->setValue((URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1037 $this->form->addItem($ne);
1040 $this->form->setTitle(
$lng->txt(
"server_data"));
1041 $this->form->setFormAction($this->ctrl->getFormAction($this));
1058 $ilTabs->addSubTabTarget(
"basic_settings",
$ilCtrl->getLinkTarget($this,
"showBasicSettings"));
1059 $ilTabs->addSubTabTarget(
"header_title",
$ilCtrl->getLinkTarget($this,
"showHeaderTitle"));
1060 $ilTabs->addSubTabTarget(
"contact_data",
$ilCtrl->getLinkTarget($this,
"showContactInformation"));
1061 $ilTabs->addSubTabTarget(
"adm_imprint",
$ilCtrl->getLinkTargetByClass(
"ilimprintgui",
"preview"));
1063 $ilTabs->setSubTabActive($a_activate);
1064 $ilTabs->setTabActive(
"general_settings");
1080 $this->initBasicSettingsForm();
1083 $tpl->setContent($this->form->getHTML());
1090 public function initBasicSettingsForm()
1098 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1100 $lng->loadLanguageModule(
"pd");
1103 $ti =
new ilTextInputGUI($this->lng->txt(
"short_inst_name"),
"short_inst_name");
1104 $ti->setMaxLength(200);
1106 $ti->setValue(
$ilSetting->get(
"short_inst_name"));
1107 $ti->setInfo($this->lng->txt(
"short_inst_name_info"));
1108 $this->form->addItem($ti);
1112 $cb->setInfo(
$lng->txt(
"pub_section_info"));
1115 $cb->setChecked(
true);
1117 $this->form->addItem($cb);
1121 $cb_prop->setInfo(
$lng->txt(
'pd_enable_user_publish_info'));
1122 $cb_prop->setChecked(
$ilSetting->get(
'enable_global_profiles'));
1123 $cb->addSubItem($cb_prop);
1126 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
1129 $cb2->setInfo($this->lng->txt(
"enable_search_engine"));
1130 $this->form->addItem($cb2);
1132 if(!$robot_settings->checkRewrite())
1134 $cb2->setAlert(
$lng->txt(
"allow_override_alert"));
1135 $cb2->setChecked(
false);
1136 $cb2->setDisabled(
true);
1142 $cb2->setChecked(
true);
1147 $ti =
new ilTextInputGUI($this->lng->txt(
"adm_locale"),
"locale");
1148 $ti->setMaxLength(80);
1150 $ti->setInfo($this->lng->txt(
"adm_locale_info"));
1152 $this->form->addItem($ti);
1155 include_once
"Services/User/classes/class.ilUserUtil.php";
1157 $si->setRequired(
true);
1158 $si->setInfo($this->lng->txt(
"adm_user_starting_point_info"));
1163 $si->addOption($opt);
1165 if(!in_array($value,
$valid))
1167 $opt->setInfo($this->lng->txt(
"adm_user_starting_point_invalid_info"));
1171 $this->form->addItem(
$si);
1175 $repobj_id =
new ilTextInputGUI(
$lng->txt(
"adm_user_starting_point_ref_id"),
"usr_start_ref_id");
1176 $repobj_id->setRequired(
true);
1177 $repobj_id->setSize(5);
1181 $repobj_id->setValue($start_ref_id);
1187 $repobj_id->setInfo(
$lng->txt(
"obj_".ilObject::_lookupType($start_obj_id)).
1188 ": ".ilObject::_lookupTitle($start_obj_id));
1192 $repobj->addSubItem($repobj_id);
1193 $si->addOption($repobj);
1197 $startp->setInfo(
$lng->txt(
"adm_user_starting_point_personal_info"));
1199 $si->addSubItem($startp);
1203 $this->form->addCommandButton(
"saveBasicSettings",
$lng->txt(
"save"));
1205 $this->form->setTitle(
$lng->txt(
"basic_settings"));
1206 $this->form->setFormAction($this->ctrl->getFormAction($this));
1218 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1220 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1223 $this->initBasicSettingsForm();
1224 if ($this->form->checkInput())
1229 $global_profiles = (
$_POST[
"pub_section"])
1230 ? (
int)
$_POST[
'enable_global_profiles']
1232 $ilSetting->set(
'enable_global_profiles', $global_profiles);
1237 include_once
"Services/User/classes/class.ilUserUtil.php";
1242 $ilCtrl->redirect($this,
"showBasicSettings");
1245 $this->form->setValuesByPost();
1246 $tpl->setContent($this->form->getHtml());
1263 include_once(
"./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
1265 if ($a_get_post_values)
1268 foreach(
$_POST[
"title"] as $k => $v)
1270 $vals[] = array(
"title" => $v,
1271 "desc" =>
$_POST[
"desc"][$k],
1272 "lang" =>
$_POST[
"lang"][$k],
1273 "default" => (
$_POST[
"default"] == $k));
1275 $table->setData($vals);
1279 $data = $this->
object->getHeaderTitleTranslations();
1280 if (is_array(
$data[
"Fobject"]))
1282 foreach(
$data[
"Fobject"] as $k => $v)
1284 if ($k ==
$data[
"default_language"])
1286 $data[
"Fobject"][$k][
"default"] =
true;
1290 $data[
"Fobject"][$k][
"default"] =
false;
1296 $data[
"Fobject"] = array();
1298 $table->setData(
$data[
"Fobject"]);
1300 $tpl->setContent($table->getHTML());
1310 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1312 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1318 if (!isset(
$_POST[
"default"]) && count(
$_POST[
"lang"]) > 0)
1325 if (array_key_exists(
"",
$_POST[
"lang"]))
1332 if (count(array_unique(
$_POST[
"lang"])) < count(
$_POST[
"lang"]))
1339 $this->
object->removeHeaderTitleTranslations();
1340 foreach(
$_POST[
"title"] as $k => $v)
1342 $this->
object->addHeaderTitleTranslation(
1346 (
$_POST[
"default"] == $k));
1350 $ilCtrl->redirect($this,
"showHeaderTitle");
1360 if (is_array(
$_POST[
"title"]))
1362 foreach(
$_POST[
"title"] as $k => $v) {}
1365 $_POST[
"title"][$k] =
"";
1376 foreach(
$_POST[
"title"] as $k => $v)
1380 unset(
$_POST[
"title"][$k]);
1381 unset(
$_POST[
"desc"][$k]);
1382 unset(
$_POST[
"lang"][$k]);
1383 if ($k ==
$_POST[
"default"])
1385 unset(
$_POST[
"default"]);
1418 $this->ctrl->redirectByClass(
"ilCronManagerGUI",
"render");
1437 $tpl->setContent($this->form->getHTML());
1447 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1451 $ti =
new ilTextInputGUI($this->lng->txt(
"firstname"),
"admin_firstname");
1452 $ti->setMaxLength(64);
1454 $ti->setRequired(
true);
1455 $ti->setValue(
$ilSetting->get(
"admin_firstname"));
1456 $this->form->addItem($ti);
1459 $ti =
new ilTextInputGUI($this->lng->txt(
"lastname"),
"admin_lastname");
1460 $ti->setMaxLength(64);
1462 $ti->setRequired(
true);
1463 $ti->setValue(
$ilSetting->get(
"admin_lastname"));
1464 $this->form->addItem($ti);
1467 $ti =
new ilTextInputGUI($this->lng->txt(
"title"),
"admin_title");
1468 $ti->setMaxLength(64);
1470 $ti->setValue(
$ilSetting->get(
"admin_title"));
1471 $this->form->addItem($ti);
1474 $ti =
new ilTextInputGUI($this->lng->txt(
"position"),
"admin_position");
1475 $ti->setMaxLength(64);
1477 $ti->setValue(
$ilSetting->get(
"admin_position"));
1478 $this->form->addItem($ti);
1481 $ti =
new ilTextInputGUI($this->lng->txt(
"institution"),
"admin_institution");
1482 $ti->setMaxLength(200);
1484 $ti->setValue(
$ilSetting->get(
"admin_institution"));
1485 $this->form->addItem($ti);
1488 $ti =
new ilTextInputGUI($this->lng->txt(
"street"),
"admin_street");
1489 $ti->setMaxLength(64);
1492 $ti->setValue(
$ilSetting->get(
"admin_street"));
1493 $this->form->addItem($ti);
1496 $ti =
new ilTextInputGUI($this->lng->txt(
"zipcode"),
"admin_zipcode");
1497 $ti->setMaxLength(10);
1500 $ti->setValue(
$ilSetting->get(
"admin_zipcode"));
1501 $this->form->addItem($ti);
1505 $ti->setMaxLength(64);
1508 $ti->setValue(
$ilSetting->get(
"admin_city"));
1509 $this->form->addItem($ti);
1512 $ti =
new ilTextInputGUI($this->lng->txt(
"country"),
"admin_country");
1513 $ti->setMaxLength(64);
1516 $ti->setValue(
$ilSetting->get(
"admin_country"));
1517 $this->form->addItem($ti);
1520 $ti =
new ilTextInputGUI($this->lng->txt(
"phone"),
"admin_phone");
1521 $ti->setMaxLength(64);
1524 $ti->setValue(
$ilSetting->get(
"admin_phone"));
1525 $this->form->addItem($ti);
1528 $ti =
new ilEmailInputGUI($this->lng->txt(
"email"),
"admin_email");
1529 $ti->setMaxLength(64);
1531 $ti->setRequired(
true);
1532 $ti->allowRFC822(
true);
1533 $ti->setValue(
$ilSetting->get(
"admin_email"));
1534 $this->form->addItem($ti);
1551 include_once(
"./Modules/SystemFolder/classes/class.ilSystemSupportContacts.php");
1552 $ti =
new ilTextInputGUI($this->lng->txt(
"adm_support_contacts"),
"adm_support_contacts");
1553 $ti->setMaxLength(500);
1556 $ti->setInfo($this->lng->txt(
"adm_support_contacts_info"));
1557 $this->form->addItem($ti);
1568 $this->form->addCommandButton(
"saveContactInformation",
$lng->txt(
"save"));
1570 $this->form->setTitle(
$lng->txt(
"contact_data"));
1571 $this->form->setFormAction($this->ctrl->getFormAction($this));
1583 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1585 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1589 if ($this->form->checkInput())
1591 $fs = array(
"admin_firstname",
"admin_lastname",
"admin_title",
"admin_position",
1592 "admin_institution",
"admin_street",
"admin_zipcode",
"admin_city",
1593 "admin_country",
"admin_phone",
"admin_email");
1599 include_once(
"./Modules/SystemFolder/classes/class.ilSystemSupportContacts.php");
1603 $ilCtrl->redirect($this,
"showContactInformation");
1608 $this->form->setValuesByPost();
1609 $tpl->setContent($this->form->getHtml());
1628 $tpl->setContent($this->form->getHTML());
1638 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1642 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"soap_user_administration"),
"soap_user_administration");
1643 $cb->setInfo($this->lng->txt(
"soap_user_administration_desc"));
1644 if (
$ilSetting->get(
"soap_user_administration"))
1646 $cb->setChecked(
true);
1648 $this->form->addItem($cb);
1651 $wsdl =
new ilTextInputGUI($this->lng->txt(
'soap_wsdl_path'),
'soap_wsdl_path');
1652 $wsdl->setInfo(
sprintf($this->lng->txt(
'soap_wsdl_path_info'),
"<br />'".ILIAS_HTTP_PATH.
"/webservice/soap/server.php?wsdl'"));
1653 $wsdl->setValue((
string)
$ilSetting->get(
'soap_wsdl_path'));
1655 $wsdl->setMaxLength(255);
1656 $this->form->addItem($wsdl);
1659 $ctime =
new ilNumberInputGUI($this->lng->txt(
'soap_connect_timeout'),
'ctimeout');
1660 $ctime->setMinValue(1);
1662 $ctime->setMaxLength(3);
1663 include_once
'./Services/WebServices/SOAP/classes/class.ilSoapClient.php';
1665 $ctime->setInfo($this->lng->txt(
'soap_connect_timeout_info'));
1666 $this->form->addItem($ctime);
1668 $this->form->addCommandButton(
"saveWebServices",
$lng->txt(
"save"));
1670 $this->form->setTitle(
$lng->txt(
"webservices"));
1671 $this->form->setFormAction($this->ctrl->getFormAction($this));
1683 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1685 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1689 if ($this->form->checkInput())
1691 $ilSetting->set(
'soap_user_administration', $this->form->getInput(
'soap_user_administration'));
1692 $ilSetting->set(
'soap_wsdl_path', trim($this->form->getInput(
'soap_wsdl_path')));
1693 $ilSetting->set(
'soap_connect_timeout',$this->form->getInput(
'ctimeout'));
1696 $ilCtrl->redirect($this,
'showWebServices');
1701 $this->form->setValuesByPost();
1702 $tpl->setContent($this->form->getHtml());
1719 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.java_settings.html',
'Modules/SystemFolder');
1721 $GLOBALS[
'lng']->loadLanguageModule(
'search');
1723 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
1725 $toolbar->addButton($this->lng->txt(
'lucene_create_ini'),
1726 $this->ctrl->getLinkTarget($this,
'createJavaServerIni'));
1727 $tpl->setVariable(
'ACTION_BUTTONS',$toolbar->getHTML());
1731 $tpl->setVariable(
'SETTINGS_TABLE',$this->form->getHTML());
1742 $this->tpl->setContent($this->form->getHTML());
1747 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
1751 $GLOBALS[
'lng']->loadLanguageModule(
'search');
1753 $this->form->setTitle($this->lng->txt(
'lucene_tbl_create_ini'));
1754 $this->form->setFormAction($this->ctrl->getFormAction($this,
'createJavaServerIni'));
1755 $this->form->addCommandButton(
'downloadJavaServerIni',$this->lng->txt(
'lucene_download_ini'));
1756 $this->form->addCommandButton(
'showJavaServer', $this->lng->txt(
'cancel'));
1760 $ip->setInfo($this->lng->txt(
'lucene_host_info'));
1761 $ip->setMaxLength(128);
1763 $ip->setRequired(
true);
1764 $this->form->addItem($ip);
1769 $port->setMinValue(1);
1770 $port->setMaxValue(65535);
1771 $port->setRequired(
true);
1772 $this->form->addItem($port);
1777 $path->setMaxLength(1024);
1778 $path->setInfo($this->lng->txt(
'lucene_index_path_info'));
1779 $path->setRequired(
true);
1780 $this->form->addItem(
$path);
1785 $log->setMaxLength(1024);
1786 $log->setInfo($this->lng->txt(
'lucene_log_info'));
1787 $log->setRequired(
true);
1788 $this->form->addItem(
$log);
1792 $lev->setOptions(array(
1797 'FATAL' =>
'FATAL'));
1798 $lev->setValue(
'INFO');
1799 $lev->setRequired(
true);
1800 $this->form->addItem($lev);
1806 $cpu->setMaxLength(2);
1807 $cpu->setMinValue(1);
1808 $cpu->setRequired(
true);
1809 $this->form->addItem($cpu);
1813 $fs->setInfo($this->lng->txt(
'lucene_max_fs_info'));
1816 $fs->setMaxLength(4);
1817 $fs->setMinValue(1);
1818 $fs->setRequired(
true);
1819 $this->form->addItem($fs);
1831 if($this->form->checkInput())
1833 include_once
'./Services/WebServices/RPC/classes/class.ilRpcIniFileWriter.php';
1835 $ini->setHost($this->form->getInput(
'ho'));
1836 $ini->setPort($this->form->getInput(
'po'));
1837 $ini->setIndexPath($this->form->getInput(
'in'));
1838 $ini->setLogPath($this->form->getInput(
'lo'));
1839 $ini->setLogLevel($this->form->getInput(
'le'));
1840 $ini->setNumThreads($this->form->getInput(
'cp'));
1841 $ini->setMaxFileSize($this->form->getInput(
'fs'));
1848 $this->form->setValuesByPost();
1851 $this->tpl->setContent($this->form->getHTML());
1862 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1866 $ti =
new ilTextInputGUI($this->lng->txt(
"java_server_host"),
"rpc_server_host");
1867 $ti->setMaxLength(64);
1869 $ti->setValue(
$ilSetting->get(
"rpc_server_host"));
1870 $this->form->addItem($ti);
1873 $ti =
new ilNumberInputGUI($this->lng->txt(
"java_server_port"),
"rpc_server_port");
1874 $ti->setMaxLength(5);
1876 $ti->setValue(
$ilSetting->get(
"rpc_server_port"));
1877 $this->form->addItem($ti);
1881 $pdf->setTitle($this->lng->txt(
'rpc_pdf_generation'));
1882 $this->form->addItem(
$pdf);
1884 $pdf_font =
new ilTextInputGUI($this->lng->txt(
'rpc_pdf_font'),
'rpc_pdf_font');
1885 $pdf_font->setInfo($this->lng->txt(
'rpc_pdf_font_info'));
1886 $pdf_font->setSize(64);
1887 $pdf_font->setMaxLength(1024);
1888 $pdf_font->setRequired(
true);
1889 $pdf_font->setValue(
1890 $ilSetting->get(
'rpc_pdf_font',
'Helvetica, unifont'));
1891 $this->form->addItem($pdf_font);
1895 $this->form->addCommandButton(
"saveJavaServer",
$lng->txt(
"save"));
1897 $this->form->setTitle(
$lng->txt(
"java_server"));
1898 $this->form->setDescription(
$lng->txt(
"java_server_info").
1899 '<br /><a href="Services/WebServices/RPC/lib/README.txt" target="_blank">'.
1900 $lng->txt(
"java_server_readme").
'</a>');
1901 $this->form->setFormAction($this->ctrl->getFormAction($this));
1913 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1915 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
1919 if ($this->form->checkInput())
1925 $ilCtrl->redirect($this,
"showJavaServer");
1932 $this->form->setValuesByPost();
1933 $tpl->setContent($this->form->getHtml());
1948 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
1950 $this->
ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
1953 require_once
'./Services/Http/classes/class.ilProxySettings.php';
1956 $this->form->setValuesByArray(array(
1966 $tpl->setContent($this->form->getHTML());
1981 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
1983 $this->lng->txt(
'proxy_connectable')
1988 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
1990 $this->lng->txt(
'proxy_not_connectable')
2007 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
2009 $this->
ilias->raiseError($lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
2012 require_once
'./Services/Http/classes/class.ilProxySettings.php';
2015 $isFormValid = $this->form->checkInput();
2017 ->setHost(trim($this->form->getInput(
'proxy_host')))
2018 ->setPort(trim($this->form->getInput(
'proxy_port')));
2025 $isFormValid =
false;
2026 $this->form->getItemByPostVar(
'proxy_host')->setAlert(
$lng->txt(
'msg_input_is_required'));
2030 $isFormValid =
false;
2031 $this->form->getItemByPostVar(
'proxy_port')->setAlert(
$lng->txt(
'msg_input_is_required'));
2037 $isFormValid =
false;
2038 $this->form->getItemByPostVar(
'proxy_port')->setAlert(
$lng->txt(
'proxy_port_numeric'));
2057 $this->form->setValuesByPost();
2058 $tpl->setContent($this->form->getHTML());
2074 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
2076 $this->form->setFormAction(
$ilCtrl->getFormAction($this,
'saveProxy'));
2080 $proxs->setInfo(
$lng->txt(
'proxy_status_info'));
2081 $proxs->setValue(1);
2082 $this->form->addItem($proxs);
2086 $proxs->addSubItem($proxa);
2090 $prox->setInfo(
$lng->txt(
'proxy_host_info'));
2091 $proxs->addSubItem($prox);
2095 $proxp->setInfo(
$lng->txt(
'proxy_port_info'));
2096 $proxp->setSize(10);
2097 $proxp->setMaxLength(10);
2098 $proxs->addSubItem($proxp);
2101 $this->form->addCommandButton(
'saveProxy',
$lng->txt(
'save'));
2106 global
$tpl, $ilAccess;
2108 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
2110 $this->
ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
2114 $tpl->setContent($form->getHTML());
2122 if($form->checkInput())
2127 $security->setHTTPSEnabled(
$_POST[
"https_enabled"]);
2129 if($security->validate($form))
2134 $ilCtrl->redirect($this,
"showHTTPS");
2138 $form->setValuesByPost();
2139 $tpl->setContent($form->getHTML());
2148 $lng->loadLanguageModule(
'ps');
2150 include_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
2153 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
2155 $form->setTitle(
$lng->txt(
"adm_https"));
2156 $form->setFormAction(
$ilCtrl->getFormAction($this,
'saveHTTPS'));
2159 $check2->setChecked($security->isHTTPSEnabled() ? 1 : 0);
2160 $check2->setValue(1);
2161 $form->addItem($check2);
2164 $form->addCommandButton(
'saveHTTPS',
$lng->txt(
'save'));
2175 include_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
2180 $fields[
'activate_https'] =
2183 return array(
"general_settings" => array(
"showHTTPS", $fields));
2194 $a_target = SYSTEM_FOLDER_ID;
2196 if ($ilAccess->checkAccess(
"read",
"", $a_target))
2203 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
2220 require_once
'Services/Administration/classes/class.ilSubversionInformation.php';
2221 require_once
'Services/Administration/classes/class.ilGitInformation.php';
2225 $html = $vc->getInformationAsHtml();
2241 $this->showServerInfoObject();
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
This class represents a non editable value in a property form.
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
Class ilObjSystemFolderGUI.
showWebServicesObject()
Show Web Services.
setServerInfoSubTabs($a_activate)
Set sub tabs for server info.
showProxyObject()
Show proxy settings.
setSystemCheckSubTabs($a_activate)
Set sub tabs for general settings.
downloadJavaServerIniObject()
Create and offer server ini file for download.
showContactInformationObject()
Show contact information.
initContactInformationForm()
Init contact information form.
startValidator($a_mode, $a_log)
static _goto()
goto target group
__construct($a_data, $a_id, $a_call_by_reference)
Constructor @access public.
saveHeaderTitlesObject()
Save header titles.
benchmarkSubTabs($a_current)
Benchmark sub tabs.
showDbBenchResults($a_mode)
Show Db Benchmark Results.
showJavaServerObject()
Show Java Server Settings.
saveJavaServerObject()
Save java server form.
initWebServicesForm()
Init web services form.
saveWebServicesObject()
Save web services form.
executeCommand()
execute command
switchBenchModuleObject()
save benchmark settings
createJavaServerIniObject()
Create a server ini file.
benchmarkObject()
Benchmark settings.
addToExternalSettingsForm($a_form_id)
deleteHeaderTitlesObject()
Remove header titles.
showPHPInfoObject()
Show PHP Information.
showDbBenchSortedBySqlObject()
Show db benchmark results.
showDbBenchSlowestFirstObject()
Show db benchmark results.
addHeaderTitleTranslationObject()
adds a translation form & save post vars to session
saveBenchSettingsObject()
Save benchmark settings.
addHeaderTitleObject()
Add a header title.
saveProxyObject()
Save proxy settings.
showDbBenchChronologicalObject()
Show db benchmark results.
checkObject()
displays system check menu
cancelObject()
cancel action and go back to previous page @access public
changeHeaderTitleObject()
edit header title form
saveContactInformationObject()
Save contact information form.
saveBasicSettingsObject()
Save basic settings form.
printProxyStatus()
Print proxy settings.
removeTranslationObject()
removes a translation form & save post vars to session
initProxyForm()
Initialize proxy settings form.
clearBenchObject()
delete all benchmark records
showHeaderTitleObject($a_get_post_values=false)
Show header title.
viewObject()
show admin subpanels and basic settings form
showBasicSettingsObject()
Show basic settings.
saveHeaderTitleObject()
save header title
showVcsInformationObject()
showDbBenchByFirstTableObject()
Show db benchmark results.
setGeneralSettingsSubTabs($a_activate)
Set sub tabs for general settings.
initJavaServerForm()
Init java server form.
initServerInfoForm()
Init server info form.
getAdminTabs()
administration tabs show only permissions and trash folder
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput($a_show_subobjects=true)
prepare output
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
Class ilObjectOwnershipManagementGUI.
static getRepoPluginObjectByType($type)
Return either a repoObject plugin or a orgunit extension plugin or null if the type is not a plugin.
TableGUI class for title/description translations.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
Class for proxy related exception handling in ILIAS.
static _getInstance()
Getter for unique instance.
This class represents an option in a radio group.
static _getInstance()
Get instance.
@classDescription Creates a java server ini file for the current client
static _getInstance()
Get instance of ilSecuritySettings.
const DEFAULT_CONNECT_TIMEOUT
special template class to simplify handling of ITX/PEAR
This class represents a text property in a property form.
static getPossibleStartingPoints($a_force_all=false)
Get all valid starting points.
static hasPersonalStartingPoint()
Can starting point be personalized?
static togglePersonalStartingPoint($a_value)
Toggle personal starting point setting.
static getStartingPoint()
Get current starting point setting.
static getStartingObject()
Get ref id of starting object.
const START_REPOSITORY_OBJ
static setStartingPoint($a_value, $a_ref_id=null)
Set starting point setting.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static redirect($a_script)
http redirect to other script
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static deliverData($a_data, $a_filename, $mime="application/octet-stream", $charset="")
deliver data for download via browser.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static formSelect($selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
ILIAS Data Validator & Recovery Tool.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
redirection script todo: (a better solution should control the processing via a xml file)
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']