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");
36 $this->lng->loadLanguageModule(
"adm");
43 $next_class = $this->ctrl->getNextClass($this);
48 case 'ilpermissiongui':
49 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
51 $ret =& $this->ctrl->forwardCommand($perm_gui);
56 $ilTabs->clearTargets();
57 $ilTabs->setBackTarget($this->lng->txt(
"back"),
58 $this->ctrl->getLinkTarget($this,
""));
60 include_once(
"./Services/Imprint/classes/class.ilImprintGUI.php");
68 $igui->setEnableEditing(
false);
71 $ret = $this->ctrl->forwardCommand($igui);
74 $this->tpl->setContent(
$ret);
78 case "ilobjectownershipmanagementgui":
80 include_once(
"Services/Object/classes/class.ilObjectOwnershipManagementGUI.php");
82 $this->ctrl->forwardCommand($gui);
85 case "ilcronmanagergui":
86 $ilTabs->activateTab(
"cron_jobs");
87 include_once(
"Services/Cron/classes/class.ilCronManagerGUI.php");
89 $this->ctrl->forwardCommand($gui);
94 $cmd = $this->ctrl->getCmd(
"view");
114 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
118 return $this->showServerInfoObject();
133 $ilTabs->addSubTab(
"system_check_sub", $this->lng->txt(
"system_check"),
134 $ilCtrl->getLinkTarget($this,
"check"));
135 $ilTabs->addSubTab(
"no_owner", $this->lng->txt(
"system_check_no_owner"),
136 $ilCtrl->getLinkTargetByClass(
"ilObjectOwnershipManagementGUI"));
138 $ilTabs->setSubTabActive($a_activate);
139 $ilTabs->setTabActive(
"system_check");
153 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
155 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->
ilias->error_obj->MESSAGE);
159 if (
$_POST[
'count_limit'] !== null ||
$_POST[
'age_limit'] !== null ||
$_POST[
'type_limit'] !== null)
161 $ilias->account->writePref(
'systemcheck_count_limit',
162 (is_numeric(
$_POST[
'count_limit']) &&
$_POST[
'count_limit'] > 0) ?
$_POST[
'count_limit'] :
'' 164 $ilias->account->writePref(
'systemcheck_age_limit',
165 (is_numeric(
$_POST[
'age_limit']) &&
$_POST[
'age_limit'] > 0) ?
$_POST[
'age_limit'] :
'');
166 $ilias->account->writePref(
'systemcheck_type_limit', trim(
$_POST[
'type_limit']));
178 include_once
"./Services/Repository/classes/class.ilValidator.php";
180 $hasScanLog = $validator->hasScanLog();
182 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_check.html",
183 "Modules/SystemFolder");
187 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_last_log"));
190 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
191 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"systemcheck"));
192 $this->tpl->setVariable(
"COLSPAN", 3);
193 $this->tpl->setVariable(
"TXT_ANALYZE_TITLE", $this->lng->txt(
"analyze_data"));
194 $this->tpl->setVariable(
"TXT_ANALYSIS_OPTIONS", $this->lng->txt(
"analysis_options"));
195 $this->tpl->setVariable(
"TXT_REPAIR_OPTIONS", $this->lng->txt(
"repair_options"));
196 $this->tpl->setVariable(
"TXT_OUTPUT_OPTIONS", $this->lng->txt(
"output_options"));
197 $this->tpl->setVariable(
"TXT_SCAN", $this->lng->txt(
"scan"));
198 $this->tpl->setVariable(
"TXT_SCAN_DESC", $this->lng->txt(
"scan_desc"));
199 $this->tpl->setVariable(
"TXT_DUMP_TREE", $this->lng->txt(
"dump_tree"));
200 $this->tpl->setVariable(
"TXT_DUMP_TREE_DESC", $this->lng->txt(
"dump_tree_desc"));
201 $this->tpl->setVariable(
"TXT_CLEAN", $this->lng->txt(
"clean"));
202 $this->tpl->setVariable(
"TXT_CLEAN_DESC", $this->lng->txt(
"clean_desc"));
203 $this->tpl->setVariable(
"TXT_RESTORE", $this->lng->txt(
"restore_missing"));
204 $this->tpl->setVariable(
"TXT_RESTORE_DESC", $this->lng->txt(
"restore_missing_desc"));
205 $this->tpl->setVariable(
"TXT_PURGE", $this->lng->txt(
"purge_missing"));
206 $this->tpl->setVariable(
"TXT_PURGE_DESC", $this->lng->txt(
"purge_missing_desc"));
207 $this->tpl->setVariable(
"TXT_RESTORE_TRASH", $this->lng->txt(
"restore_trash"));
208 $this->tpl->setVariable(
"TXT_RESTORE_TRASH_DESC", $this->lng->txt(
"restore_trash_desc"));
209 $this->tpl->setVariable(
"TXT_PURGE_TRASH", $this->lng->txt(
"purge_trash"));
210 $this->tpl->setVariable(
"TXT_PURGE_TRASH_DESC", $this->lng->txt(
"purge_trash_desc"));
211 $this->tpl->setVariable(
"TXT_COUNT_LIMIT", $this->lng->txt(
"purge_count_limit"));
212 $this->tpl->setVariable(
"TXT_COUNT_LIMIT_DESC", $this->lng->txt(
"purge_count_limit_desc"));
213 $this->tpl->setVariable(
"COUNT_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_count_limit"));
214 $this->tpl->setVariable(
"TXT_AGE_LIMIT", $this->lng->txt(
"purge_age_limit"));
215 $this->tpl->setVariable(
"TXT_AGE_LIMIT_DESC", $this->lng->txt(
"purge_age_limit_desc"));
216 $this->tpl->setVariable(
"AGE_LIMIT_VALUE", $ilias->account->getPref(
"systemcheck_age_limit"));
217 $this->tpl->setVariable(
"TXT_TYPE_LIMIT", $this->lng->txt(
"purge_type_limit"));
218 $this->tpl->setVariable(
"TXT_TYPE_LIMIT_DESC", $this->lng->txt(
"purge_type_limit_desc"));
220 if($ilias->account->getPref(
'systemcheck_mode_scan'))
221 $this->tpl->touchBlock(
'mode_scan_checked');
222 if($ilias->account->getPref(
'systemcheck_mode_dump_tree'))
223 $this->tpl->touchBlock(
'mode_dump_tree_checked');
224 if($ilias->account->getPref(
'systemcheck_mode_clean'))
225 $this->tpl->touchBlock(
'mode_clean_checked');
226 if($ilias->account->getPref(
'systemcheck_mode_restore'))
228 $this->tpl->touchBlock(
'mode_restore_checked');
229 $this->tpl->touchBlock(
'mode_purge_disabled');
231 elseif($ilias->account->getPref(
'systemcheck_mode_purge'))
233 $this->tpl->touchBlock(
'mode_purge_checked');
234 $this->tpl->touchBlock(
'mode_restore_disabled');
236 if($ilias->account->getPref(
'systemcheck_mode_restore_trash'))
238 $this->tpl->touchBlock(
'mode_restore_trash_checked');
239 $this->tpl->touchBlock(
'mode_purge_trash_disabled');
241 elseif($ilias->account->getPref(
'systemcheck_mode_purge_trash'))
243 $this->tpl->touchBlock(
'mode_purge_trash_checked');
244 $this->tpl->touchBlock(
'mode_restore_trash_disabled');
246 if($ilias->account->getPref(
'systemcheck_log_scan'))
247 $this->tpl->touchBlock(
'log_scan_checked');
252 $obj_types_in_tree = array();
255 $set = $ilDB->query(
'SELECT type FROM object_data od'.
256 ' JOIN object_reference ref ON (od.obj_id = ref.obj_id)'.
257 ' JOIN tree ON (tree.child = ref.ref_id)'.
258 ' WHERE tree.tree < 1'.
260 while(
$row = $ilDB->fetchAssoc($set))
262 $obj_types_in_tree[] =
$row[
'type'];
265 $types = $objDefinition->getAllObjects();
266 $ts = array(
"" =>
"");
267 foreach ($types as
$t)
269 if ($t !=
"" && !$objDefinition->isSystemObject($t) && $t !=
"root" &&
270 in_array($t, $obj_types_in_tree))
272 if ($objDefinition->isPlugin($t))
278 $ts[
$t] = $this->lng->txt(
"obj_".$t);
283 $this->tpl->setVariable(
"TYPE_LIMIT_CHOICE",
285 $ilias->account->getPref(
"systemcheck_type_limit"),
290 $this->tpl->setVariable(
"TXT_LOG_SCAN", $this->lng->txt(
"log_scan"));
291 $this->tpl->setVariable(
"TXT_LOG_SCAN_DESC", $this->lng->txt(
"log_scan_desc"));
292 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"start_scan"));
294 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save_params_for_cron"));
296 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
299 $cron_form->setFormAction($this->ctrl->getFormAction($this));
300 $cron_form->setTitle($this->lng->txt(
'systemcheck_cronform'));
303 $radio_group->
setValue( $ilSetting->get(
'systemcheck_cron') );
305 $radio_opt =
new ilRadioOption($this->lng->txt(
'disabled'),0);
306 $radio_group->addOption($radio_opt);
308 $radio_opt =
new ilRadioOption($this->lng->txt(
'enabled'),1);
309 $radio_group->addOption($radio_opt);
311 $cron_form->addItem($radio_group);
313 $cron_form->addCommandButton(
'saveCheckCron',$this->lng->txt(
'save'));
315 $this->tpl->setVariable(
'CRON_FORM',$cron_form->getHTML());
328 include_once
"./Services/Repository/classes/class.ilValidator.php";
330 $modes = $validator->getPossibleModes();
333 foreach($modes as $mode)
335 if( isset(
$_POST[
'mode'][$mode]) ) $value = (int)
$_POST[
'mode'][$mode];
337 $prefs[
'systemcheck_mode_'.$mode ] = $value;
340 if( isset(
$_POST[
'log_scan']) ) $value = (
int)
$_POST[
'log_scan'];
342 $prefs[
'systemcheck_log_scan'] = $value;
345 foreach($prefs as $key => $val)
347 $ilUser->writePref($key,$val);
355 $systemcheck_cron = (
$_POST[
'cronjob'] ? 1 : 0);
356 $ilSetting->set(
'systemcheck_cron',$systemcheck_cron);
369 global $rbacsystem, $styleDefinition;
371 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.header_title_edit.html",
372 "Modules/SystemFolder");
379 $_GET[
"mode"] =
"session";
384 if ((
$_GET[
"mode"] !=
"session"))
386 $data = $this->
object->getHeaderTitleTranslations();
390 elseif (
$_GET[
"entry"] != 0)
392 array_splice(
$_SESSION[
"translation_post"][
"Fobject"],
$_GET[
"entry"],1,array());
394 if (
$_GET[
"entry"] ==
$_SESSION[
"translation_post"][
"default_language"])
396 $_SESSION[
"translation_post"][
"default_language"] =
"";
403 if (!
$_GET[
"entry"] and $array_push)
405 $count = array_push(
$data[
"Fobject"],array(
"title" =>
"",
"desc" =>
""));
409 $count = count(
$data[
"Fobject"]);
413 $strip = isset(
$_SESSION[
"translation_post"]) ? true :
false;
415 foreach (
$data[
"Fobject"] as $key => $val)
418 if ($key == $count -1)
420 $this->tpl->setCurrentBlock(
"addTranslation");
421 $this->tpl->setVariable(
"TXT_ADD_TRANSLATION",$this->lng->txt(
"add_translation").
" >>");
422 $this->tpl->parseCurrentBlock();
428 $this->tpl->setCurrentBlock(
"removeTranslation");
429 $this->tpl->setVariable(
"TXT_REMOVE_TRANSLATION",$this->lng->txt(
"remove_translation"));
430 $this->ctrl->setParameter($this,
"entry", $key);
431 $this->ctrl->setParameter($this,
"mode",
"edit");
432 $this->tpl->setVariable(
"LINK_REMOVE_TRANSLATION",
433 $this->ctrl->getLinkTarget($this,
"removeTranslation"));
434 $this->tpl->parseCurrentBlock();
438 $this->tpl->addBlockFile(
"SEL_LANGUAGE",
"sel_language",
"tpl.lang_selection.html",
439 "Services/MetaData");
440 $this->tpl->setVariable(
"SEL_NAME",
"Fobject[".$key.
"][lang]");
442 include_once(
'Services/MetaData/classes/class.ilMDLanguageItem.php');
446 foreach ($languages as
$code => $language)
448 $this->tpl->setCurrentBlock(
"lg_option");
449 $this->tpl->setVariable(
"VAL_LG",
$code);
450 $this->tpl->setVariable(
"TXT_LG", $language);
452 if (
$code == $val[
"lang"])
454 $this->tpl->setVariable(
"SELECTED",
"selected=\"selected\"");
457 $this->tpl->parseCurrentBlock();
461 $this->tpl->setCurrentBlock(
"obj_form");
465 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"change_header_title"));
469 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"translation").
" ".$key);
472 if ($key ==
$data[
"default_language"])
474 $this->tpl->setVariable(
"CHECKED",
"checked=\"checked\"");
477 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
478 $this->tpl->setVariable(
"TXT_DESC", $this->lng->txt(
"desc"));
479 $this->tpl->setVariable(
"TXT_DEFAULT", $this->lng->txt(
"default"));
480 $this->tpl->setVariable(
"TXT_LANGUAGE", $this->lng->txt(
"language"));
483 $this->tpl->setVariable(
"NUM", $key);
484 $this->tpl->parseCurrentBlock();
488 $this->tpl->setCurrentBlock(
"adm_content");
490 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
491 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
492 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
493 $this->tpl->setVariable(
"CMD_SUBMIT",
"saveHeaderTitle");
494 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
505 if (!isset(
$data[
"default_language"]))
507 $this->
ilias->raiseError($this->lng->txt(
"msg_no_default_language"),$this->
ilias->error_obj->MESSAGE);
511 foreach (
$data[
"Fobject"] as $key => $val)
513 $langs[$key] = $val[
"lang"];
516 $langs = array_count_values($langs);
519 if (array_key_exists(
"",$langs))
521 $this->
ilias->raiseError($this->lng->txt(
"msg_no_language_selected"),$this->
ilias->error_obj->MESSAGE);
525 if (array_sum($langs) > count($langs))
527 $this->
ilias->raiseError($this->lng->txt(
"msg_multi_language_selected"),$this->
ilias->error_obj->MESSAGE);
532 $_POST[
"Fobject"][
"desc"] = $_POST[
"Fobject"][$_POST[
"default_language"]][
"desc"];
535 $this->
object->removeHeaderTitleTranslations();
538 foreach (
$data[
"Fobject"] as $key => $val)
540 if ($key ==
$data[
"default_language"])
554 $this->ctrl->redirect($this);
559 $this->ctrl->redirect($this,
"view");
571 $this->ctrl->setParameter($this,
"mode",
"session");
572 $this->ctrl->setParameter($this,
"entry",
"0");
573 $this->ctrl->redirect($this,
"changeHeaderTitle");
583 $this->ctrl->setParameter($this,
"entry",
$_GET[
"entry"]);
584 $this->ctrl->setParameter($this,
"mode",
"session");
585 $this->ctrl->redirect($this,
"changeHeaderTitle");
593 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
595 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->
ilias->error_obj->MESSAGE);
598 $logging = ($a_log) ?
true :
false;
599 include_once
"./Services/Repository/classes/class.ilValidator.php";
601 $validator->setMode(
"all",
false);
604 foreach ($a_mode as $mode => $value)
606 $validator->setMode($mode,(
bool) $value);
607 $modes[] = $mode.
'='.$value;
610 $scan_log = $validator->validate();
612 $mode = $this->lng->txt(
"scan_modes").
": ".implode(
', ',$modes);
615 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_scan.html",
616 "Modules/SystemFolder");
618 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
619 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scanning_system"));
620 $this->tpl->setVariable(
"COLSPAN", 3);
621 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
622 $this->tpl->setVariable(
"TXT_MODE", $mode);
624 if ($logging ===
true)
626 $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_log"));
629 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
631 $validator->writeScanLogLine($mode);
636 include_once
"./Services/Repository/classes/class.ilValidator.php";
637 $validator =
new IlValidator();
638 $scan_log =& $validator->readScanLog();
640 if (is_array($scan_log))
642 $scan_log =
'<pre>'.implode(
"",$scan_log).
'</pre>';
643 $this->tpl->setVariable(
"ADM_CONTENT", $scan_log);
647 $scan_log =
"no scanlog found.";
651 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.adm_scan.html",
652 "Modules/SystemFolder");
653 $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scan_details"));
654 $this->tpl->setVariable(
"COLSPAN", 3);
655 $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
656 $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
667 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
669 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->
ilias->error_obj->MESSAGE);
674 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
678 $cb =
new ilCheckboxInputGUI($lng->txt(
"adm_activate_db_benchmark"),
"enable_db_bench");
679 $cb->
setChecked($ilSetting->get(
"enable_db_bench"));
680 $cb->setInfo($lng->txt(
"adm_activate_db_benchmark_desc"));
681 $this->form->addItem($cb);
684 $ti =
new ilTextInputGUI($lng->txt(
"adm_db_benchmark_user"),
"db_bench_user");
685 $ti->
setValue($ilSetting->get(
"db_bench_user"));
686 $ti->setInfo($lng->txt(
"adm_db_benchmark_user_desc"));
687 $this->form->addItem($ti);
689 $this->form->addCommandButton(
"saveBenchSettings", $lng->txt(
"save"));
691 $this->form->setTitle($lng->txt(
"adm_db_benchmark"));
692 $this->form->setFormAction($ilCtrl->getFormAction($this));
694 $tpl->setContent($this->form->getHTML());
742 $rec = $ilBench->getDbBenchRecords();
744 include_once(
"./Modules/SystemFolder/classes/class.ilBenchmarkTableGUI.php");
746 $tpl->setContent($table->getHTML());
759 $ilTabs->activateTab(
"benchmarks");
761 $ilTabs->addSubtab(
"settings",
762 $lng->txt(
"settings"),
763 $ilCtrl->getLinkTarget($this,
"benchmark"));
765 $rec = $ilBench->getDbBenchRecords();
768 $ilTabs->addSubtab(
"chronological",
769 $lng->txt(
"adm_db_bench_chronological"),
770 $ilCtrl->getLinkTarget($this,
"showDbBenchChronological"));
771 $ilTabs->addSubtab(
"slowest_first",
772 $lng->txt(
"adm_db_bench_slowest_first"),
773 $ilCtrl->getLinkTarget($this,
"showDbBenchSlowestFirst"));
774 $ilTabs->addSubtab(
"sorted_by_sql",
775 $lng->txt(
"adm_db_bench_sorted_by_sql"),
776 $ilCtrl->getLinkTarget($this,
"showDbBenchSortedBySql"));
777 $ilTabs->addSubtab(
"by_first_table",
778 $lng->txt(
"adm_db_bench_by_first_table"),
779 $ilCtrl->getLinkTarget($this,
"showDbBenchByFirstTable"));
782 $ilTabs->activateSubTab($a_current);
793 if (
$_POST[
"enable_db_bench"])
799 $ilBench->enableDbBench(
false);
804 $this->ctrl->redirect($this,
"benchmark");
815 $this->ctrl->setParameter($this,
'cur_mod',
$_POST[
'module']);
816 $this->ctrl->redirect($this,
"benchmark");
827 $ilBench->clearData();
835 global $rbacsystem, $ilHelp;
839 $this->ctrl->setParameter($this,
"ref_id",$this->object->getRefId());
842 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
844 $tabs_gui->addTarget(
"general_settings",
845 $this->ctrl->getLinkTarget($this,
"showBasicSettings"),
846 array(
"showBasicSettings",
"saveBasicSettings"), get_class($this));
850 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
852 $tabs_gui->addTarget(
"server",
853 $this->ctrl->getLinkTarget($this,
"showServerInfo"),
854 array(
"showServerInfo",
"view"), get_class($this));
857 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
859 $tabs_gui->addTarget(
"cron_jobs",
860 $this->ctrl->getLinkTargetByClass(
"ilCronManagerGUI",
""),
"", get_class($this));
865 $tabs_gui->addTarget(
"benchmarks",
866 $this->ctrl->getLinkTarget($this,
"benchmark"),
"benchmark", get_class($this));
869 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
871 $tabs_gui->addTarget(
"perm_settings",
872 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
896 global $ilTabs,
$ilCtrl, $rbacsystem;
898 $ilTabs->addSubTabTarget(
"server_data", $ilCtrl->getLinkTarget($this,
"showServerInfo"));
900 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
902 $ilTabs->addSubTabTarget(
"adm_https", $ilCtrl->getLinkTarget($this,
"showHTTPS"));
903 $ilTabs->addSubTabTarget(
"proxy", $ilCtrl->getLinkTarget($this,
"showProxy"));
904 $ilTabs->addSubTabTarget(
"java_server", $ilCtrl->getLinkTarget($this,
"showJavaServer"));
905 $ilTabs->addSubTabTarget(
"webservices", $ilCtrl->getLinkTarget($this,
"showWebServices"));
908 $ilTabs->setSubTabActive($a_activate);
909 $ilTabs->setTabActive(
"server");
915 function showServerInfoObject()
925 require_once
'Services/UIComponent/Button/classes/class.ilLinkButton.php';
927 $button->setCaption(
'vc_information');
928 $button->setUrl($this->ctrl->getLinkTarget($this,
'showVcsInformation'));
929 $ilToolbar->addButtonInstance($button);
934 $btpl =
new ilTemplate(
"tpl.server_data.html",
true,
true,
"Modules/SystemFolder");
935 $btpl->setVariable(
"FORM", $this->form->getHTML());
936 $btpl->setVariable(
"PHP_INFO_TARGET", $ilCtrl->getLinkTarget($this,
"showPHPInfo"));
937 $tpl->setContent($btpl->get());
949 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
954 $ne->
setValue($ilClientIniFile->readVariable(
"client",
"name"));
955 $ne->setInfo($ilClientIniFile->readVariable(
"client",
"description"));
956 $this->form->addItem($ne);
961 $this->form->addItem($ne);
965 $ne->
setValue($ilSetting->get(
"inst_id"));
966 $this->form->addItem($ne);
970 $ne->
setValue($ilSetting->get(
"db_version"));
972 include_once (
"./Services/Database/classes/class.ilDBUpdate.php");
973 $this->form->addItem($ne);
977 $ne->
setValue($ilSetting->get(
"ilias_version"));
978 $this->form->addItem($ne);
983 $this->form->addItem($ne);
988 $this->form->addItem($ne);
992 $ne->
setValue($_SERVER[
"SERVER_SOFTWARE"]);
993 $this->form->addItem($ne);
998 $this->form->addItem($ne);
1003 $this->form->addItem($ne);
1005 $not_set = $lng->txt(
"path_not_set");
1009 $ne->
setValue((PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
1010 $this->form->addItem($ne);
1014 $ne->
setValue((PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
1015 $this->form->addItem($ne);
1019 $ne->
setValue((PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
1020 $this->form->addItem($ne);
1024 $ne->
setValue((PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
1025 $this->form->addItem($ne);
1029 $ne->
setValue((PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
1030 $this->form->addItem($ne);
1034 $ne->
setValue((PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
1035 $this->form->addItem($ne);
1039 $ne->
setValue((URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
1040 $this->form->addItem($ne);
1043 $this->form->setTitle($lng->txt(
"server_data"));
1044 $this->form->setFormAction($this->ctrl->getFormAction($this));
1061 $ilTabs->addSubTabTarget(
"basic_settings", $ilCtrl->getLinkTarget($this,
"showBasicSettings"));
1062 $ilTabs->addSubTabTarget(
"header_title", $ilCtrl->getLinkTarget($this,
"showHeaderTitle"));
1063 $ilTabs->addSubTabTarget(
"contact_data", $ilCtrl->getLinkTarget($this,
"showContactInformation"));
1064 $ilTabs->addSubTabTarget(
"adm_imprint", $ilCtrl->getLinkTargetByClass(
"ilimprintgui",
"preview"));
1066 $ilTabs->setSubTabActive($a_activate);
1067 $ilTabs->setTabActive(
"general_settings");
1083 $this->initBasicSettingsForm();
1086 $tpl->setContent($this->form->getHTML());
1093 public function initBasicSettingsForm()
1101 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1103 $lng->loadLanguageModule(
"pd");
1106 $ti =
new ilTextInputGUI($this->lng->txt(
"short_inst_name"),
"short_inst_name");
1109 $ti->setValue($ilSetting->get(
"short_inst_name"));
1110 $ti->setInfo($this->lng->txt(
"short_inst_name_info"));
1111 $this->form->addItem($ti);
1115 $cb->
setInfo($lng->txt(
"pub_section_info"));
1116 if ($ilSetting->get(
"pub_section"))
1118 $cb->setChecked(
true);
1120 $this->form->addItem($cb);
1123 $cb_prop =
new ilCheckboxInputGUI($lng->txt(
'pd_enable_user_publish'),
'enable_global_profiles');
1124 $cb_prop->
setInfo($lng->txt(
'pd_enable_user_publish_info'));
1125 $cb_prop->setChecked($ilSetting->get(
'enable_global_profiles'));
1126 $cb->addSubItem($cb_prop);
1129 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
1132 $cb2->
setInfo($this->lng->txt(
"enable_search_engine"));
1133 $this->form->addItem($cb2);
1135 if(!$robot_settings->checkRewrite())
1137 $cb2->setAlert($lng->txt(
"allow_override_alert"));
1138 $cb2->setChecked(
false);
1139 $cb2->setDisabled(
true);
1143 if ($ilSetting->get(
"open_google"))
1145 $cb2->setChecked(
true);
1150 $ti =
new ilTextInputGUI($this->lng->txt(
"adm_locale"),
"locale");
1153 $ti->setInfo($this->lng->txt(
"adm_locale_info"));
1154 $ti->setValue($ilSetting->get(
"locale"));
1155 $this->form->addItem($ti);
1158 include_once
"Services/User/classes/class.ilUserUtil.php";
1160 $si->setRequired(
true);
1161 $si->setInfo($this->lng->txt(
"adm_user_starting_point_info"));
1166 $si->addOption($opt);
1168 if(!in_array($value,
$valid))
1170 $opt->setInfo($this->lng->txt(
"adm_user_starting_point_invalid_info"));
1174 $this->form->addItem(
$si);
1178 $repobj_id =
new ilTextInputGUI($lng->txt(
"adm_user_starting_point_ref_id"),
"usr_start_ref_id");
1179 $repobj_id->setRequired(
true);
1180 $repobj_id->setSize(5);
1184 $repobj_id->
setValue($start_ref_id);
1190 $repobj_id->
setInfo($lng->txt(
"obj_".ilObject::_lookupType($start_obj_id)).
1195 $repobj->addSubItem($repobj_id);
1196 $si->addOption($repobj);
1199 $startp =
new ilCheckboxInputGUI($lng->txt(
"adm_user_starting_point_personal"),
"usr_start_pers");
1200 $startp->
setInfo($lng->txt(
"adm_user_starting_point_personal_info"));
1202 $si->addSubItem($startp);
1206 $this->form->addCommandButton(
"saveBasicSettings", $lng->txt(
"save"));
1208 $this->form->setTitle($lng->txt(
"basic_settings"));
1209 $this->form->setFormAction($this->ctrl->getFormAction($this));
1221 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1223 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->
ilias->error_obj->MESSAGE);
1226 $this->initBasicSettingsForm();
1227 if ($this->form->checkInput())
1229 $ilSetting->set(
"short_inst_name",
$_POST[
"short_inst_name"]);
1230 $ilSetting->set(
"pub_section",
$_POST[
"pub_section"]);
1232 $global_profiles = (
$_POST[
"pub_section"])
1233 ? (
int)
$_POST[
'enable_global_profiles']
1235 $ilSetting->set(
'enable_global_profiles', $global_profiles);
1237 $ilSetting->set(
"open_google",
$_POST[
"open_google"]);
1238 $ilSetting->set(
"locale",
$_POST[
"locale"]);
1240 include_once
"Services/User/classes/class.ilUserUtil.php";
1245 $ilCtrl->redirect($this,
"showBasicSettings");
1248 $this->form->setValuesByPost();
1249 $tpl->setContent($this->form->getHtml());
1266 include_once(
"./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
1268 if ($a_get_post_values)
1271 foreach(
$_POST[
"title"] as $k => $v)
1273 $vals[] = array(
"title" => $v,
1274 "desc" =>
$_POST[
"desc"][$k],
1275 "lang" =>
$_POST[
"lang"][$k],
1276 "default" => (
$_POST[
"default"] == $k));
1278 $table->setData($vals);
1282 $data = $this->
object->getHeaderTitleTranslations();
1283 if (is_array(
$data[
"Fobject"]))
1285 foreach(
$data[
"Fobject"] as $k => $v)
1287 if ($k ==
$data[
"default_language"])
1289 $data[
"Fobject"][$k][
"default"] =
true;
1293 $data[
"Fobject"][$k][
"default"] =
false;
1299 $data[
"Fobject"] = array();
1301 $table->setData(
$data[
"Fobject"]);
1303 $tpl->setContent($table->getHTML());
1313 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1315 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->
ilias->error_obj->MESSAGE);
1321 if (!isset(
$_POST[
"default"]) && count(
$_POST[
"lang"]) > 0)
1328 if (array_key_exists(
"",
$_POST[
"lang"]))
1335 if (count(array_unique(
$_POST[
"lang"])) < count(
$_POST[
"lang"]))
1342 $this->
object->removeHeaderTitleTranslations();
1343 foreach(
$_POST[
"title"] as $k => $v)
1345 $this->
object->addHeaderTitleTranslation(
1349 (
$_POST[
"default"] == $k));
1353 $ilCtrl->redirect($this,
"showHeaderTitle");
1363 if (is_array(
$_POST[
"title"]))
1365 foreach(
$_POST[
"title"] as $k => $v) {}
1368 $_POST[
"title"][$k] =
"";
1379 foreach(
$_POST[
"title"] as $k => $v)
1383 unset(
$_POST[
"title"][$k]);
1384 unset(
$_POST[
"desc"][$k]);
1385 unset(
$_POST[
"lang"][$k]);
1386 if ($k ==
$_POST[
"default"])
1388 unset(
$_POST[
"default"]);
1422 $this->ctrl->redirectByClass(
"ilCronManagerGUI",
"render");
1441 $tpl->setContent($this->form->getHTML());
1451 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1455 $ti =
new ilTextInputGUI($this->lng->txt(
"firstname"),
"admin_firstname");
1458 $ti->setRequired(
true);
1459 $ti->setValue($ilSetting->get(
"admin_firstname"));
1460 $this->form->addItem($ti);
1463 $ti =
new ilTextInputGUI($this->lng->txt(
"lastname"),
"admin_lastname");
1466 $ti->setRequired(
true);
1467 $ti->setValue($ilSetting->get(
"admin_lastname"));
1468 $this->form->addItem($ti);
1471 $ti =
new ilTextInputGUI($this->lng->txt(
"title"),
"admin_title");
1474 $ti->setValue($ilSetting->get(
"admin_title"));
1475 $this->form->addItem($ti);
1478 $ti =
new ilTextInputGUI($this->lng->txt(
"position"),
"admin_position");
1481 $ti->setValue($ilSetting->get(
"admin_position"));
1482 $this->form->addItem($ti);
1485 $ti =
new ilTextInputGUI($this->lng->txt(
"institution"),
"admin_institution");
1488 $ti->setValue($ilSetting->get(
"admin_institution"));
1489 $this->form->addItem($ti);
1492 $ti =
new ilTextInputGUI($this->lng->txt(
"street"),
"admin_street");
1496 $ti->setValue($ilSetting->get(
"admin_street"));
1497 $this->form->addItem($ti);
1500 $ti =
new ilTextInputGUI($this->lng->txt(
"zipcode"),
"admin_zipcode");
1504 $ti->setValue($ilSetting->get(
"admin_zipcode"));
1505 $this->form->addItem($ti);
1512 $ti->setValue($ilSetting->get(
"admin_city"));
1513 $this->form->addItem($ti);
1516 $ti =
new ilTextInputGUI($this->lng->txt(
"country"),
"admin_country");
1520 $ti->setValue($ilSetting->get(
"admin_country"));
1521 $this->form->addItem($ti);
1524 $ti =
new ilTextInputGUI($this->lng->txt(
"phone"),
"admin_phone");
1528 $ti->setValue($ilSetting->get(
"admin_phone"));
1529 $this->form->addItem($ti);
1532 $ti =
new ilEmailInputGUI($this->lng->txt(
"email"),
"admin_email");
1533 $ti->setMaxLength(64);
1535 $ti->setRequired(
true);
1536 $ti->allowRFC822(
true);
1537 $ti->setValue($ilSetting->get(
"admin_email"));
1538 $this->form->addItem($ti);
1555 include_once(
"./Modules/SystemFolder/classes/class.ilSystemSupportContacts.php");
1556 $ti =
new ilTextInputGUI($this->lng->txt(
"adm_support_contacts"),
"adm_support_contacts");
1560 $ti->setInfo($this->lng->txt(
"adm_support_contacts_info"));
1561 $this->form->addItem($ti);
1572 $this->form->addCommandButton(
"saveContactInformation", $lng->txt(
"save"));
1574 $this->form->setTitle($lng->txt(
"contact_data"));
1575 $this->form->setFormAction($this->ctrl->getFormAction($this));
1587 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1589 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->
ilias->error_obj->MESSAGE);
1593 if ($this->form->checkInput())
1595 $fs = array(
"admin_firstname",
"admin_lastname",
"admin_title",
"admin_position",
1596 "admin_institution",
"admin_street",
"admin_zipcode",
"admin_city",
1597 "admin_country",
"admin_phone",
"admin_email");
1600 $ilSetting->set($f,
$_POST[$f]);
1603 include_once(
"./Modules/SystemFolder/classes/class.ilSystemSupportContacts.php");
1607 $ilCtrl->redirect($this,
"showContactInformation");
1612 $this->form->setValuesByPost();
1613 $tpl->setContent($this->form->getHtml());
1632 $tpl->setContent($this->form->getHTML());
1642 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1646 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"soap_user_administration"),
"soap_user_administration");
1647 $cb->
setInfo($this->lng->txt(
"soap_user_administration_desc"));
1648 if ($ilSetting->get(
"soap_user_administration"))
1650 $cb->setChecked(
true);
1652 $this->form->addItem($cb);
1655 $wsdl =
new ilTextInputGUI($this->lng->txt(
'soap_wsdl_path'),
'soap_wsdl_path');
1656 $wsdl->
setInfo(sprintf($this->lng->txt(
'soap_wsdl_path_info'),
"<br />'".ILIAS_HTTP_PATH.
"/webservice/soap/server.php?wsdl'"));
1657 $wsdl->setValue((
string)$ilSetting->get(
'soap_wsdl_path'));
1659 $wsdl->setMaxLength(255);
1660 $this->form->addItem($wsdl);
1663 $ctime =
new ilNumberInputGUI($this->lng->txt(
'soap_connect_timeout'),
'ctimeout');
1666 $ctime->setMaxLength(3);
1667 include_once
'./Services/WebServices/SOAP/classes/class.ilSoapClient.php';
1669 $ctime->setInfo($this->lng->txt(
'soap_connect_timeout_info'));
1670 $this->form->addItem($ctime);
1672 $this->form->addCommandButton(
"saveWebServices", $lng->txt(
"save"));
1674 $this->form->setTitle($lng->txt(
"webservices"));
1675 $this->form->setFormAction($this->ctrl->getFormAction($this));
1687 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1689 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->
ilias->error_obj->MESSAGE);
1693 if ($this->form->checkInput())
1695 $ilSetting->set(
'soap_user_administration', $this->form->getInput(
'soap_user_administration'));
1696 $ilSetting->set(
'soap_wsdl_path', trim($this->form->getInput(
'soap_wsdl_path')));
1697 $ilSetting->set(
'soap_connect_timeout',$this->form->getInput(
'ctimeout'));
1700 $ilCtrl->redirect($this,
'showWebServices');
1705 $this->form->setValuesByPost();
1706 $tpl->setContent($this->form->getHtml());
1723 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.java_settings.html',
'Modules/SystemFolder');
1725 $GLOBALS[
'lng']->loadLanguageModule(
'search');
1727 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
1729 $toolbar->addButton($this->lng->txt(
'lucene_create_ini'),
1730 $this->ctrl->getLinkTarget($this,
'createJavaServerIni'));
1731 $tpl->setVariable(
'ACTION_BUTTONS',$toolbar->getHTML());
1735 $tpl->setVariable(
'SETTINGS_TABLE',$this->form->getHTML());
1746 $this->tpl->setContent($this->form->getHTML());
1751 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
1755 $GLOBALS[
'lng']->loadLanguageModule(
'search');
1757 $this->form->setTitle($this->lng->txt(
'lucene_tbl_create_ini'));
1758 $this->form->setFormAction($this->ctrl->getFormAction($this,
'createJavaServerIni'));
1759 $this->form->addCommandButton(
'downloadJavaServerIni',$this->lng->txt(
'lucene_download_ini'));
1760 $this->form->addCommandButton(
'showJavaServer', $this->lng->txt(
'cancel'));
1764 $ip->
setInfo($this->lng->txt(
'lucene_host_info'));
1765 $ip->setMaxLength(128);
1767 $ip->setRequired(
true);
1768 $this->form->addItem($ip);
1773 $port->setMinValue(1);
1774 $port->setMaxValue(65535);
1775 $port->setRequired(
true);
1776 $this->form->addItem($port);
1781 $path->setMaxLength(1024);
1782 $path->setInfo($this->lng->txt(
'lucene_index_path_info'));
1783 $path->setRequired(
true);
1784 $this->form->addItem(
$path);
1789 $log->setMaxLength(1024);
1790 $log->setInfo($this->lng->txt(
'lucene_log_info'));
1791 $log->setRequired(
true);
1792 $this->form->addItem(
$log);
1801 'FATAL' =>
'FATAL'));
1802 $lev->setValue(
'INFO');
1803 $lev->setRequired(
true);
1804 $this->form->addItem($lev);
1810 $cpu->setMaxLength(2);
1811 $cpu->setMinValue(1);
1812 $cpu->setRequired(
true);
1813 $this->form->addItem($cpu);
1817 $fs->
setInfo($this->lng->txt(
'lucene_max_fs_info'));
1820 $fs->setMaxLength(4);
1821 $fs->setMinValue(1);
1822 $fs->setRequired(
true);
1823 $this->form->addItem($fs);
1835 if($this->form->checkInput())
1837 include_once
'./Services/WebServices/RPC/classes/class.ilRpcIniFileWriter.php';
1839 $ini->setHost($this->form->getInput(
'ho'));
1840 $ini->setPort($this->form->getInput(
'po'));
1841 $ini->setIndexPath($this->form->getInput(
'in'));
1842 $ini->setLogPath($this->form->getInput(
'lo'));
1843 $ini->setLogLevel($this->form->getInput(
'le'));
1844 $ini->setNumThreads($this->form->getInput(
'cp'));
1845 $ini->setMaxFileSize($this->form->getInput(
'fs'));
1852 $this->form->setValuesByPost();
1855 $this->tpl->setContent($this->form->getHTML());
1866 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1870 $ti =
new ilTextInputGUI($this->lng->txt(
"java_server_host"),
"rpc_server_host");
1873 $ti->setValue($ilSetting->get(
"rpc_server_host"));
1874 $this->form->addItem($ti);
1877 $ti =
new ilNumberInputGUI($this->lng->txt(
"java_server_port"),
"rpc_server_port");
1880 $ti->setValue($ilSetting->get(
"rpc_server_port"));
1881 $this->form->addItem($ti);
1885 $pdf->setTitle($this->lng->txt(
'rpc_pdf_generation'));
1886 $this->form->addItem(
$pdf);
1888 $pdf_font =
new ilTextInputGUI($this->lng->txt(
'rpc_pdf_font'),
'rpc_pdf_font');
1889 $pdf_font->
setInfo($this->lng->txt(
'rpc_pdf_font_info'));
1890 $pdf_font->setSize(64);
1891 $pdf_font->setMaxLength(1024);
1892 $pdf_font->setRequired(
true);
1893 $pdf_font->setValue(
1894 $ilSetting->get(
'rpc_pdf_font',
'Helvetica, unifont'));
1895 $this->form->addItem($pdf_font);
1899 $this->form->addCommandButton(
"saveJavaServer", $lng->txt(
"save"));
1901 $this->form->setTitle($lng->txt(
"java_server"));
1902 $this->form->setDescription($lng->txt(
"java_server_info").
1903 '<br /><a href="Services/WebServices/RPC/lib/README.txt" target="_blank">'.
1904 $lng->txt(
"java_server_readme").
'</a>');
1905 $this->form->setFormAction($this->ctrl->getFormAction($this));
1917 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
1919 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->
ilias->error_obj->MESSAGE);
1923 if ($this->form->checkInput())
1925 $ilSetting->set(
"rpc_server_host", trim(
$_POST[
"rpc_server_host"]));
1926 $ilSetting->set(
"rpc_server_port", trim(
$_POST[
"rpc_server_port"]));
1929 $ilCtrl->redirect($this,
"showJavaServer");
1936 $this->form->setValuesByPost();
1937 $tpl->setContent($this->form->getHtml());
1952 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
1954 $this->
ilias->raiseError($this->lng->txt(
'permission_denied'), $this->
ilias->error_obj->MESSAGE);
1957 require_once
'./Services/Http/classes/class.ilProxySettings.php';
1960 $this->form->setValuesByArray(array(
1970 $tpl->setContent($this->form->getHTML());
1985 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
1987 $this->lng->txt(
'proxy_connectable')
1992 $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
1994 $this->lng->txt(
'proxy_not_connectable')
1996 ilUtil::sendFailure($this->lng->txt(
'proxy_pear_net_socket_error').
': '.$e->getMessage());
2011 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
2013 $this->
ilias->raiseError($lng->txt(
'permission_denied'), $this->
ilias->error_obj->MESSAGE);
2016 require_once
'./Services/Http/classes/class.ilProxySettings.php';
2019 $isFormValid = $this->form->checkInput();
2021 ->setHost(trim($this->form->getInput(
'proxy_host')))
2022 ->setPort(trim($this->form->getInput(
'proxy_port')));
2029 $isFormValid =
false;
2030 $this->form->getItemByPostVar(
'proxy_host')->setAlert($lng->txt(
'msg_input_is_required'));
2034 $isFormValid =
false;
2035 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'msg_input_is_required'));
2041 $isFormValid =
false;
2042 $this->form->getItemByPostVar(
'proxy_port')->setAlert($lng->txt(
'proxy_port_numeric'));
2061 $this->form->setValuesByPost();
2062 $tpl->setContent($this->form->getHTML());
2078 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
2080 $this->form->setFormAction($ilCtrl->getFormAction($this,
'saveProxy'));
2084 $proxs->
setInfo($lng->txt(
'proxy_status_info'));
2085 $proxs->setValue(1);
2086 $this->form->addItem($proxs);
2090 $proxs->addSubItem($proxa);
2093 $prox =
new ilTextInputGUI($lng->txt(
'proxy_host'),
'proxy_host');
2094 $prox->
setInfo($lng->txt(
'proxy_host_info'));
2095 $proxs->addSubItem($prox);
2098 $proxp =
new ilTextInputGUI($lng->txt(
'proxy_port'),
'proxy_port');
2099 $proxp->
setInfo($lng->txt(
'proxy_port_info'));
2100 $proxp->setSize(10);
2101 $proxp->setMaxLength(10);
2102 $proxs->addSubItem($proxp);
2105 $this->form->addCommandButton(
'saveProxy', $lng->txt(
'save'));
2110 global
$tpl, $ilAccess;
2112 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
2114 $this->
ilias->raiseError($this->lng->txt(
'permission_denied'), $this->
ilias->error_obj->MESSAGE);
2118 $tpl->setContent($form->getHTML());
2126 if($form->checkInput())
2131 $security->setHTTPSEnabled(
$_POST[
"https_enabled"]);
2133 if($security->validate($form))
2138 $ilCtrl->redirect($this,
"showHTTPS");
2142 $form->setValuesByPost();
2143 $tpl->setContent($form->getHTML());
2152 $lng->loadLanguageModule(
'ps');
2154 include_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
2157 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
2159 $form->setTitle($lng->txt(
"adm_https"));
2160 $form->setFormAction($ilCtrl->getFormAction($this,
'saveHTTPS'));
2163 $check2->
setChecked($security->isHTTPSEnabled() ? 1 : 0);
2164 $check2->setValue(1);
2165 $form->addItem($check2);
2168 $form->addCommandButton(
'saveHTTPS', $lng->txt(
'save'));
2179 include_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
2184 $fields[
'activate_https'] =
2187 return array(
"general_settings" => array(
"showHTTPS", $fields));
2198 $a_target = SYSTEM_FOLDER_ID;
2200 if ($ilAccess->checkAccess(
"read",
"", $a_target))
2207 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
2214 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
2224 require_once
'Services/Administration/classes/class.ilSubversionInformation.php';
2225 require_once
'Services/Administration/classes/class.ilGitInformation.php';
2229 $html = $vc->getInformationAsHtml();
2245 $this->showServerInfoObject();
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
saveJavaServerObject()
Save java server form.
initWebServicesForm()
Init web services form.
addHeaderTitleTranslationObject()
adds a translation form & save post vars to session
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
This class represents an option in a radio group.
static deliverData($a_data, $a_filename, $mime="application/octet-stream", $charset="")
deliver data for download via browser.
showWebServicesObject()
Show Web Services.
switchBenchModuleObject()
save benchmark settings
showPHPInfoObject()
Show PHP Information.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
benchmarkSubTabs($a_current)
Benchmark sub tabs.
setValue($a_value)
Set Value.
showContactInformationObject()
Show contact information.
initJavaServerForm()
Init java server form.
startValidator($a_mode, $a_log)
showProxyObject()
Show proxy settings.
saveBasicSettingsObject()
Save basic settings form.
addToExternalSettingsForm($a_form_id)
saveProxyObject()
Save proxy settings.
showHeaderTitleObject($a_get_post_values=false)
Show header title.
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
benchmarkObject()
Benchmark settings.
changeHeaderTitleObject()
edit header title form
ilObjectGUI($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor public.
static _lookupTitle($a_id)
lookup object title
const DEFAULT_CONNECT_TIMEOUT
deleteHeaderTitlesObject()
Remove header titles.
clearBenchObject()
delete all benchmark records
static getStartingPoint()
Get current starting point setting.
removeTranslationObject()
removes a translation form & save post vars to session
Class for proxy related exception handling in ILIAS.
setInfo($a_info)
Set Info.
Class ilObjectOwnershipManagementGUI.
saveContactInformationObject()
Save contact information form.
ilObjSystemFolderGUI($a_data, $a_id, $a_call_by_reference)
Constructor public.
Class ilObjSystemFolderGUI.
Creates a java server ini file for the current client
static hasPersonalStartingPoint()
Can starting point be personalized?
static getPossibleStartingPoints($a_force_all=false)
Get all valid starting points.
showDbBenchResults($a_mode)
Show Db Benchmark Results.
static _getInstance()
Get instance.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
showDbBenchByFirstTableObject()
Show db benchmark results.
static lookupTxt($a_mod_prefix, $a_pl_id, $a_lang_var)
Lookup language text.
checkObject()
displays system check menu
showDbBenchSortedBySqlObject()
Show db benchmark results.
setValue($a_value)
Set Value.
printProxyStatus()
Print proxy settings.
saveHeaderTitlesObject()
Save header titles.
showDbBenchChronologicalObject()
Show db benchmark results.
const ILIAS_ABSOLUTE_PATH
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
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.
Class ilObjectGUI Basic methods of all Output classes.
static _lookupObjId($a_id)
special template class to simplify handling of ITX/PEAR
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
static getStartingObject()
Get ref id of starting object.
This class represents a text property in a property form.
redirection script todo: (a better solution should control the processing via a xml file) ...
downloadJavaServerIniObject()
Create and offer server ini file for download.
setMaxLength($a_maxlength)
Set Max Length.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
addHeaderTitleObject()
Add a header title.
prepareOutput()
prepare output
setSystemCheckSubTabs($a_activate)
Set sub tabs for general settings.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
showDbBenchSlowestFirstObject()
Show db benchmark results.
static _goto()
goto target group
setServerInfoSubTabs($a_activate)
Set sub tabs for server info.
saveHeaderTitleObject()
save header title
TableGUI class for title/description translations.
saveWebServicesObject()
Save web services form.
initContactInformationForm()
Init contact information form.
This class represents a non editable value in a property form.
initProxyForm()
Initialize proxy settings form.
initServerInfoForm()
Init server info form.
showVcsInformationObject()
const START_REPOSITORY_OBJ
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
showJavaServerObject()
Show Java Server Settings.
setGeneralSettingsSubTabs($a_activate)
Set sub tabs for general settings.
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
createJavaServerIniObject()
Create a server ini file.
ILIAS Data Validator & Recovery Tool.
viewObject()
show admin subpanels and basic settings form
static setStartingPoint($a_value, $a_ref_id=null)
Set starting point setting.
setValue($a_value)
Set Value.
static redirect($a_script)
http redirect to other script
static togglePersonalStartingPoint($a_value)
Toggle personal starting point setting.
static _getInstance()
Getter for unique instance.
static _getInstance()
Get instance of ilSecuritySettings.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
saveBenchSettingsObject()
Save benchmark settings.
showBasicSettingsObject()
Show basic settings.