4require_once 
"./Services/Object/classes/class.ilObjectGUI.php";
 
    5require_once(
'./Services/Repository/classes/class.ilObjectPlugin.php');
 
   76    public function __construct($a_data, $a_id, $a_call_by_reference)
 
   80        $this->tabs = 
$DIC->tabs();
 
   81        $this->access = 
$DIC->access();
 
   82        $this->ctrl = 
$DIC->ctrl();
 
   83        $this->rbacsystem = 
$DIC->rbac()->system();
 
   84        $this->
user = $DIC->user();
 
   85        $this->obj_definition = 
$DIC[
"objDefinition"];
 
   87        $this->
error = $DIC[
"ilErr"];
 
   88        $this->db = 
$DIC->database();
 
   89        $this->style_definition = 
$DIC[
"styleDefinition"];
 
   90        $this->lng = 
$DIC->language();
 
   91        $this->tpl = 
$DIC[
"tpl"];
 
   92        $this->help = 
$DIC[
"ilHelp"];
 
   93        $this->toolbar = 
$DIC->toolbar();
 
   94        $this->client_ini = 
$DIC[
"ilClientIniFile"];
 
   96        $this->bench = 
$DIC[
"ilBench"];
 
   97        parent::__construct($a_data, $a_id, $a_call_by_reference, 
false);
 
   99        $this->lng->loadLanguageModule(
"administration");
 
  100        $this->lng->loadLanguageModule(
"adm");
 
  107        $next_class = $this->ctrl->getNextClass($this);
 
  110        switch ($next_class) {
 
  111            case 'ilpermissiongui':
 
  112                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
  114                $ret = &$this->ctrl->forwardCommand($perm_gui);
 
  119                $ilTabs->clearTargets();
 
  120                $ilTabs->setBackTarget(
 
  121                    $this->lng->txt(
"back"),
 
  122                    $this->ctrl->getLinkTarget($this, 
"")
 
  125                include_once(
"./Services/Imprint/classes/class.ilImprintGUI.php");
 
  132                    $igui->setEnableEditing(
false);
 
  135                $ret = $this->ctrl->forwardCommand($igui);
 
  137                    $this->tpl->setContent(
$ret);
 
  141            case "ilobjectownershipmanagementgui":
 
  143                include_once(
"Services/Object/classes/class.ilObjectOwnershipManagementGUI.php");
 
  145                $this->ctrl->forwardCommand($gui);
 
  148            case "ilcronmanagergui":
 
  149                $ilTabs->activateTab(
"cron_jobs");
 
  150                include_once(
"Services/Cron/classes/class.ilCronManagerGUI.php");
 
  152                $this->ctrl->forwardCommand($gui);
 
  157                $cmd = $this->ctrl->getCmd(
"view");
 
  177        if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
 
  180        return $this->showServerInfoObject();
 
  198            $this->lng->txt(
"system_check"),
 
  199            $ilCtrl->getLinkTarget($this, 
"check")
 
  203            $this->lng->txt(
"system_check_no_owner"),
 
  204            $ilCtrl->getLinkTargetByClass(
"ilObjectOwnershipManagementGUI")
 
  207        $ilTabs->setSubTabActive($a_activate);
 
  208        $ilTabs->setTabActive(
"system_check");
 
  226        if (!
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  227            $ilErr->raiseError($this->lng->txt(
"permission_denied"), 
$ilErr->MESSAGE);
 
  231        if (
$_POST[
'count_limit'] !== 
null || 
$_POST[
'age_limit'] !== 
null || 
$_POST[
'type_limit'] !== 
null) {
 
  233                'systemcheck_count_limit',
 
  234                (is_numeric(
$_POST[
'count_limit']) && 
$_POST[
'count_limit'] > 0) ? 
$_POST[
'count_limit'] : 
'' 
  237                'systemcheck_age_limit',
 
  238                (is_numeric(
$_POST[
'age_limit']) && 
$_POST[
'age_limit'] > 0) ? 
$_POST[
'age_limit'] : 
'' 
  240            $ilUser->writePref(
'systemcheck_type_limit', trim(
$_POST[
'type_limit']));
 
  249            include_once 
"./Services/Repository/classes/class.ilValidator.php";
 
  251            $hasScanLog = $validator->hasScanLog();
 
  253            $this->tpl->addBlockFile(
 
  256                "tpl.adm_check.html",
 
  257                "Modules/SystemFolder" 
  261                $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_last_log"));
 
  264            $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
 
  265            $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"systemcheck"));
 
  266            $this->tpl->setVariable(
"COLSPAN", 3);
 
  267            $this->tpl->setVariable(
"TXT_ANALYZE_TITLE", $this->lng->txt(
"analyze_data"));
 
  268            $this->tpl->setVariable(
"TXT_ANALYSIS_OPTIONS", $this->lng->txt(
"analysis_options"));
 
  269            $this->tpl->setVariable(
"TXT_REPAIR_OPTIONS", $this->lng->txt(
"repair_options"));
 
  270            $this->tpl->setVariable(
"TXT_OUTPUT_OPTIONS", $this->lng->txt(
"output_options"));
 
  271            $this->tpl->setVariable(
"TXT_SCAN", $this->lng->txt(
"scan"));
 
  272            $this->tpl->setVariable(
"TXT_SCAN_DESC", $this->lng->txt(
"scan_desc"));
 
  273            $this->tpl->setVariable(
"TXT_DUMP_TREE", $this->lng->txt(
"dump_tree"));
 
  274            $this->tpl->setVariable(
"TXT_DUMP_TREE_DESC", $this->lng->txt(
"dump_tree_desc"));
 
  275            $this->tpl->setVariable(
"TXT_CLEAN", $this->lng->txt(
"clean"));
 
  276            $this->tpl->setVariable(
"TXT_CLEAN_DESC", $this->lng->txt(
"clean_desc"));
 
  277            $this->tpl->setVariable(
"TXT_RESTORE", $this->lng->txt(
"restore_missing"));
 
  278            $this->tpl->setVariable(
"TXT_RESTORE_DESC", $this->lng->txt(
"restore_missing_desc"));
 
  279            $this->tpl->setVariable(
"TXT_PURGE", $this->lng->txt(
"purge_missing"));
 
  280            $this->tpl->setVariable(
"TXT_PURGE_DESC", $this->lng->txt(
"purge_missing_desc"));
 
  281            $this->tpl->setVariable(
"TXT_RESTORE_TRASH", $this->lng->txt(
"restore_trash"));
 
  282            $this->tpl->setVariable(
"TXT_RESTORE_TRASH_DESC", $this->lng->txt(
"restore_trash_desc"));
 
  283            $this->tpl->setVariable(
"TXT_PURGE_TRASH", $this->lng->txt(
"purge_trash"));
 
  284            $this->tpl->setVariable(
"TXT_PURGE_TRASH_DESC", $this->lng->txt(
"purge_trash_desc"));
 
  285            $this->tpl->setVariable(
"TXT_COUNT_LIMIT", $this->lng->txt(
"purge_count_limit"));
 
  286            $this->tpl->setVariable(
"TXT_COUNT_LIMIT_DESC", $this->lng->txt(
"purge_count_limit_desc"));
 
  287            $this->tpl->setVariable(
"COUNT_LIMIT_VALUE", 
$ilUser->getPref(
"systemcheck_count_limit"));
 
  288            $this->tpl->setVariable(
"TXT_AGE_LIMIT", $this->lng->txt(
"purge_age_limit"));
 
  289            $this->tpl->setVariable(
"TXT_AGE_LIMIT_DESC", $this->lng->txt(
"purge_age_limit_desc"));
 
  290            $this->tpl->setVariable(
"AGE_LIMIT_VALUE", 
$ilUser->getPref(
"systemcheck_age_limit"));
 
  291            $this->tpl->setVariable(
"TXT_TYPE_LIMIT", $this->lng->txt(
"purge_type_limit"));
 
  292            $this->tpl->setVariable(
"TXT_TYPE_LIMIT_DESC", $this->lng->txt(
"purge_type_limit_desc"));
 
  294            if (
$ilUser->getPref(
'systemcheck_mode_scan')) {
 
  295                $this->tpl->touchBlock(
'mode_scan_checked');
 
  297            if (
$ilUser->getPref(
'systemcheck_mode_dump_tree')) {
 
  298                $this->tpl->touchBlock(
'mode_dump_tree_checked');
 
  300            if (
$ilUser->getPref(
'systemcheck_mode_clean')) {
 
  301                $this->tpl->touchBlock(
'mode_clean_checked');
 
  303            if (
$ilUser->getPref(
'systemcheck_mode_restore')) {
 
  304                $this->tpl->touchBlock(
'mode_restore_checked');
 
  305                $this->tpl->touchBlock(
'mode_purge_disabled');
 
  306            } elseif (
$ilUser->getPref(
'systemcheck_mode_purge')) {
 
  307                $this->tpl->touchBlock(
'mode_purge_checked');
 
  308                $this->tpl->touchBlock(
'mode_restore_disabled');
 
  310            if (
$ilUser->getPref(
'systemcheck_mode_restore_trash')) {
 
  311                $this->tpl->touchBlock(
'mode_restore_trash_checked');
 
  312                $this->tpl->touchBlock(
'mode_purge_trash_disabled');
 
  313            } elseif (
$ilUser->getPref(
'systemcheck_mode_purge_trash')) {
 
  314                $this->tpl->touchBlock(
'mode_purge_trash_checked');
 
  315                $this->tpl->touchBlock(
'mode_restore_trash_disabled');
 
  317            if (
$ilUser->getPref(
'systemcheck_log_scan')) {
 
  318                $this->tpl->touchBlock(
'log_scan_checked');
 
  324            $obj_types_in_tree = array();
 
  327            $set = 
$ilDB->query(
'SELECT type FROM object_data od' .
 
  328                ' JOIN object_reference ref ON (od.obj_id = ref.obj_id)' .
 
  329                ' JOIN tree ON (tree.child = ref.ref_id)' .
 
  330                ' WHERE tree.tree < 1' .
 
  333                $obj_types_in_tree[] = 
$row[
'type'];
 
  337            $ts = array(
"" => 
"");
 
  338            foreach ($types as 
$t) {
 
  340                    in_array(
$t, $obj_types_in_tree)) {
 
  343                        $ts[
$t] = $pl->txt(
"obj_" . 
$t);
 
  345                        $ts[
$t] = $this->lng->txt(
"obj_" . 
$t);
 
  350            $this->tpl->setVariable(
 
  353                    $ilUser->getPref(
"systemcheck_type_limit"),
 
  360            $this->tpl->setVariable(
"TXT_LOG_SCAN", $this->lng->txt(
"log_scan"));
 
  361            $this->tpl->setVariable(
"TXT_LOG_SCAN_DESC", $this->lng->txt(
"log_scan_desc"));
 
  362            $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"start_scan"));
 
  364            $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save_params_for_cron"));
 
  366            include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  369            $cron_form->setFormAction($this->ctrl->getFormAction($this));
 
  370            $cron_form->setTitle($this->lng->txt(
'systemcheck_cronform'));
 
  373            $radio_group->setValue(
$ilSetting->get(
'systemcheck_cron'));
 
  375            $radio_opt = 
new ilRadioOption($this->lng->txt(
'disabled'), 0);
 
  376            $radio_group->addOption($radio_opt);
 
  378            $radio_opt = 
new ilRadioOption($this->lng->txt(
'enabled'), 1);
 
  379            $radio_group->addOption($radio_opt);
 
  381            $cron_form->addItem($radio_group);
 
  383            $cron_form->addCommandButton(
'saveCheckCron', $this->lng->txt(
'save'));
 
  385            $this->tpl->setVariable(
'CRON_FORM', $cron_form->getHTML());
 
  398        include_once 
"./Services/Repository/classes/class.ilValidator.php";
 
  400        $modes = $validator->getPossibleModes();
 
  403        foreach ($modes as $mode) {
 
  404            if (isset(
$_POST[
'mode'][$mode])) {
 
  405                $value = (int) 
$_POST[
'mode'][$mode];
 
  409            $prefs[ 
'systemcheck_mode_' . $mode ] = $value;
 
  412        if (isset(
$_POST[
'log_scan'])) {
 
  413            $value = (int) 
$_POST[
'log_scan'];
 
  417        $prefs[
'systemcheck_log_scan'] = $value;
 
  420        foreach ($prefs as 
$key => $val) {
 
  429        $systemcheck_cron = (
$_POST[
'cronjob'] ? 1 : 0);
 
  430        $ilSetting->set(
'systemcheck_cron', $systemcheck_cron);
 
  446        $this->tpl->addBlockFile(
 
  449            "tpl.header_title_edit.html",
 
  450            "Modules/SystemFolder" 
  457            $_GET[
"mode"] = 
"session";
 
  462        if ((
$_GET[
"mode"] != 
"session")) {
 
  463            $data = $this->
object->getHeaderTitleTranslations();
 
  467        elseif (
$_GET[
"entry"] != 0) {
 
  468            array_splice(
$_SESSION[
"translation_post"][
"Fobject"], 
$_GET[
"entry"], 1, array());
 
  470            if (
$_GET[
"entry"] == 
$_SESSION[
"translation_post"][
"default_language"]) {
 
  471                $_SESSION[
"translation_post"][
"default_language"] = 
"";
 
  478        if (!
$_GET[
"entry"] and $array_push) {
 
  479            $count = array_push(
$data[
"Fobject"], array(
"title" => 
"",
"desc" => 
""));
 
  481            $count = count(
$data[
"Fobject"]);
 
  485        $strip = isset(
$_SESSION[
"translation_post"]) ? true : 
false;
 
  487        foreach (
$data[
"Fobject"] as 
$key => $val) {
 
  489            if (
$key == $count - 1) {
 
  490                $this->tpl->setCurrentBlock(
"addTranslation");
 
  491                $this->tpl->setVariable(
"TXT_ADD_TRANSLATION", $this->lng->txt(
"add_translation") . 
" >>");
 
  492                $this->tpl->parseCurrentBlock();
 
  497                $this->tpl->setCurrentBlock(
"removeTranslation");
 
  498                $this->tpl->setVariable(
"TXT_REMOVE_TRANSLATION", $this->lng->txt(
"remove_translation"));
 
  499                $this->ctrl->setParameter($this, 
"entry", 
$key);
 
  500                $this->ctrl->setParameter($this, 
"mode", 
"edit");
 
  501                $this->tpl->setVariable(
 
  502                    "LINK_REMOVE_TRANSLATION",
 
  503                    $this->ctrl->getLinkTarget($this, 
"removeTranslation")
 
  505                $this->tpl->parseCurrentBlock();
 
  509            $this->tpl->addBlockFile(
 
  512                "tpl.lang_selection.html",
 
  515            $this->tpl->setVariable(
"SEL_NAME", 
"Fobject[" . 
$key . 
"][lang]");
 
  517            include_once(
'Services/MetaData/classes/class.ilMDLanguageItem.php');
 
  522                $this->tpl->setCurrentBlock(
"lg_option");
 
  523                $this->tpl->setVariable(
"VAL_LG", 
$code);
 
  524                $this->tpl->setVariable(
"TXT_LG", 
$language);
 
  526                if (
$code == $val[
"lang"]) {
 
  527                    $this->tpl->setVariable(
"SELECTED", 
"selected=\"selected\"");
 
  530                $this->tpl->parseCurrentBlock();
 
  534            $this->tpl->setCurrentBlock(
"obj_form");
 
  537                $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"change_header_title"));
 
  539                $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"translation") . 
" " . 
$key);
 
  543                $this->tpl->setVariable(
"CHECKED", 
"checked=\"checked\"");
 
  546            $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"title"));
 
  547            $this->tpl->setVariable(
"TXT_DESC", $this->lng->txt(
"desc"));
 
  548            $this->tpl->setVariable(
"TXT_DEFAULT", $this->lng->txt(
"default"));
 
  549            $this->tpl->setVariable(
"TXT_LANGUAGE", $this->lng->txt(
"language"));
 
  552            $this->tpl->setVariable(
"NUM", 
$key);
 
  553            $this->tpl->parseCurrentBlock();
 
  557        $this->tpl->setCurrentBlock(
"adm_content");
 
  559        $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
 
  560        $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
 
  561        $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt(
"save"));
 
  562        $this->tpl->setVariable(
"CMD_SUBMIT", 
"saveHeaderTitle");
 
  563        $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
 
  576        if (!isset(
$data[
"default_language"])) {
 
  577            $ilErr->raiseError($this->lng->txt(
"msg_no_default_language"), 
$ilErr->MESSAGE);
 
  581        foreach (
$data[
"Fobject"] as 
$key => $val) {
 
  582            $langs[
$key] = $val[
"lang"];
 
  585        $langs = array_count_values($langs);
 
  588        if (array_key_exists(
"", $langs)) {
 
  589            $ilErr->raiseError($this->lng->txt(
"msg_no_language_selected"), 
$ilErr->MESSAGE);
 
  593        if (array_sum($langs) > count($langs)) {
 
  594            $ilErr->raiseError($this->lng->txt(
"msg_multi_language_selected"), 
$ilErr->MESSAGE);
 
  602        $this->
object->removeHeaderTitleTranslations();
 
  605        foreach (
$data[
"Fobject"] as 
$key => $val) {
 
  615        ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"), 
true);
 
  617        $this->ctrl->redirect($this);
 
  622        $this->ctrl->redirect($this, 
"view");
 
  634        $this->ctrl->setParameter($this, 
"mode", 
"session");
 
  635        $this->ctrl->setParameter($this, 
"entry", 
"0");
 
  636        $this->ctrl->redirect($this, 
"changeHeaderTitle");
 
  646        $this->ctrl->setParameter($this, 
"entry", 
$_GET[
"entry"]);
 
  647        $this->ctrl->setParameter($this, 
"mode", 
"session");
 
  648        $this->ctrl->redirect($this, 
"changeHeaderTitle");
 
  657        if (!
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  658            $ilErr->raiseError($this->lng->txt(
"permission_denied"), 
$ilErr->MESSAGE);
 
  661        $logging = ($a_log) ? 
true : 
false;
 
  662        include_once 
"./Services/Repository/classes/class.ilValidator.php";
 
  664        $validator->setMode(
"all", 
false);
 
  667        foreach ($a_mode as $mode => $value) {
 
  668            $validator->setMode($mode, (
bool) $value);
 
  669            $modes[] = $mode . 
'=' . $value;
 
  672        $scan_log = $validator->validate();
 
  674        $mode = $this->lng->txt(
"scan_modes") . 
": " . implode(
', ', $modes);
 
  677        $this->tpl->addBlockFile(
 
  681            "Modules/SystemFolder" 
  684        $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
 
  685        $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scanning_system"));
 
  686        $this->tpl->setVariable(
"COLSPAN", 3);
 
  687        $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
 
  688        $this->tpl->setVariable(
"TXT_MODE", $mode);
 
  690        if ($logging === 
true) {
 
  691            $this->tpl->setVariable(
"TXT_VIEW_LOG", $this->lng->txt(
"view_log"));
 
  694        $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
 
  696        $validator->writeScanLogLine($mode);
 
  701        include_once 
"./Services/Repository/classes/class.ilValidator.php";
 
  702        $validator = 
new IlValidator();
 
  703        $scan_log = &$validator->readScanLog();
 
  705        if (is_array($scan_log)) {
 
  706            $scan_log = 
'<pre>' . implode(
"", $scan_log) . 
'</pre>';
 
  707            $this->tpl->setVariable(
"ADM_CONTENT", $scan_log);
 
  709            $scan_log = 
"no scanlog found.";
 
  713        $this->tpl->addBlockFile(
 
  717            "Modules/SystemFolder" 
  719        $this->tpl->setVariable(
"TXT_TITLE", $this->lng->txt(
"scan_details"));
 
  720        $this->tpl->setVariable(
"COLSPAN", 3);
 
  721        $this->tpl->setVariable(
"TXT_SCAN_LOG", $scan_log);
 
  722        $this->tpl->setVariable(
"TXT_DONE", $this->lng->txt(
"done"));
 
  738        if (!
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  739            $ilErr->raiseError($this->lng->txt(
"permission_denied"), 
$ilErr->MESSAGE);
 
  744        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  749        $cb->setChecked(
$ilSetting->get(
"enable_db_bench"));
 
  750        $cb->setInfo(
$lng->txt(
"adm_activate_db_benchmark_desc"));
 
  751        $this->form->addItem($cb);
 
  755        $ti->setValue(
$ilSetting->get(
"db_bench_user"));
 
  756        $ti->setInfo(
$lng->txt(
"adm_db_benchmark_user_desc"));
 
  757        $this->form->addItem($ti);
 
  759        $this->form->addCommandButton(
"saveBenchSettings", 
$lng->txt(
"save"));
 
  761        $this->form->setTitle(
$lng->txt(
"adm_db_benchmark"));
 
  762        $this->form->setFormAction(
$ilCtrl->getFormAction($this));
 
  764        $tpl->setContent($this->form->getHTML());
 
  813        $rec = 
$ilBench->getDbBenchRecords();
 
  815        include_once(
"./Modules/SystemFolder/classes/class.ilBenchmarkTableGUI.php");
 
  833        $ilTabs->activateTab(
"benchmarks"); 
 
  837            $lng->txt(
"settings"),
 
  838            $ilCtrl->getLinkTarget($this, 
"benchmark")
 
  841        $rec = 
$ilBench->getDbBenchRecords();
 
  842        if (count($rec) > 0) {
 
  845                $lng->txt(
"adm_db_bench_chronological"),
 
  846                $ilCtrl->getLinkTarget($this, 
"showDbBenchChronological")
 
  850                $lng->txt(
"adm_db_bench_slowest_first"),
 
  851                $ilCtrl->getLinkTarget($this, 
"showDbBenchSlowestFirst")
 
  855                $lng->txt(
"adm_db_bench_sorted_by_sql"),
 
  856                $ilCtrl->getLinkTarget($this, 
"showDbBenchSortedBySql")
 
  860                $lng->txt(
"adm_db_bench_by_first_table"),
 
  861                $ilCtrl->getLinkTarget($this, 
"showDbBenchByFirstTable")
 
  865        $ilTabs->activateSubTab($a_current);
 
  875        if (
$_POST[
"enable_db_bench"]) {
 
  881        ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"), 
true);
 
  883        $this->ctrl->redirect($this, 
"benchmark");
 
  892        $this->ctrl->setParameter($this, 
'cur_mod', 
$_POST[
'module']);
 
  893        $this->ctrl->redirect($this, 
"benchmark");
 
  915        $this->ctrl->setParameter($this, 
"ref_id", $this->object->getRefId());
 
  918        if (
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
  919            $this->tabs_gui->addTarget(
 
  921                $this->ctrl->getLinkTarget($this, 
"showBasicSettings"),
 
  922                array(
"showBasicSettings", 
"saveBasicSettings"),
 
  928        if (
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  929            $this->tabs_gui->addTarget(
 
  931                $this->ctrl->getLinkTarget($this, 
"showServerInfo"),
 
  932                array(
"showServerInfo", 
"view"),
 
  937        if (
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
  938            $this->tabs_gui->addTarget(
 
  940                $this->ctrl->getLinkTargetByClass(
"ilCronManagerGUI", 
""),
 
  948            $this->tabs_gui->addTarget(
 
  950                $this->ctrl->getLinkTarget($this, 
"benchmark"),
 
  956        if (
$rbacsystem->checkAccess(
'edit_permission', $this->object->getRefId())) {
 
  957            $this->tabs_gui->addTarget(
 
  959                $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'), 
"perm"),
 
  960                array(
"perm",
"info",
"owner"),
 
  990        $ilTabs->addSubTabTarget(
"server_data", 
$ilCtrl->getLinkTarget($this, 
"showServerInfo"));
 
  992        if (
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
  993            $ilTabs->addSubTabTarget(
"adm_https", 
$ilCtrl->getLinkTarget($this, 
"showHTTPS"));
 
  994            $ilTabs->addSubTabTarget(
"proxy", 
$ilCtrl->getLinkTarget($this, 
"showProxy"));
 
  995            $ilTabs->addSubTabTarget(
"java_server", 
$ilCtrl->getLinkTarget($this, 
"showJavaServer"));
 
  996            $ilTabs->addSubTabTarget(
"webservices", 
$ilCtrl->getLinkTarget($this, 
"showWebServices"));
 
  999        $ilTabs->setSubTabActive($a_activate);
 
 1000        $ilTabs->setTabActive(
"server");
 
 1006    public function showServerInfoObject()
 
 1019        require_once 
'Services/UIComponent/Button/classes/class.ilLinkButton.php';
 
 1021        $button->setCaption(
'vc_information');
 
 1022        $button->setUrl($this->ctrl->getLinkTarget($this, 
'showVcsInformation'));
 
 1023        $ilToolbar->addButtonInstance($button);
 
 1028        $btpl = 
new ilTemplate(
"tpl.server_data.html", 
true, 
true, 
"Modules/SystemFolder");
 
 1029        $btpl->setVariable(
"FORM", $this->form->getHTML());
 
 1030        $btpl->setVariable(
"PHP_INFO_TARGET", 
$ilCtrl->getLinkTarget($this, 
"showPHPInfo"));
 
 1031        $tpl->setContent($btpl->get());
 
 1045        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1050        $ne->setValue($ilClientIniFile->readVariable(
"client", 
"name"));
 
 1051        $ne->setInfo($ilClientIniFile->readVariable(
"client", 
"description"));
 
 1052        $this->form->addItem($ne);
 
 1056        $ne->setValue(CLIENT_ID);
 
 1057        $this->form->addItem($ne);
 
 1062        $this->form->addItem($ne);
 
 1066        $ne->setValue(
$ilSetting->get(
"db_version"));
 
 1068        include_once(
"./Services/Database/classes/class.ilDBUpdate.php");
 
 1069        $this->form->addItem($ne);
 
 1073        $ne->setValue(
$ilSetting->get(
"ilias_version"));
 
 1074        $this->form->addItem($ne);
 
 1078        $ne->setValue(
$_SERVER[
"SERVER_NAME"]);
 
 1079        $this->form->addItem($ne);
 
 1084        $this->form->addItem($ne);
 
 1088        $ne->setValue(
$_SERVER[
"SERVER_SOFTWARE"]);
 
 1089        $this->form->addItem($ne);
 
 1093        $ne->setValue(ILIAS_HTTP_PATH);
 
 1094        $this->form->addItem($ne);
 
 1098        $ne->setValue(ILIAS_ABSOLUTE_PATH);
 
 1099        $this->form->addItem($ne);
 
 1101        $not_set = 
$lng->txt(
"path_not_set");
 
 1105        $ne->setValue((PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
 
 1106        $this->form->addItem($ne);
 
 1110        $ne->setValue((PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
 
 1111        $this->form->addItem($ne);
 
 1115        $ne->setValue((PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
 
 1116        $this->form->addItem($ne);
 
 1120        $ne->setValue((PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
 
 1121        $this->form->addItem($ne);
 
 1125        $ne->setValue((PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
 
 1126        $this->form->addItem($ne);
 
 1130        $ne->setValue((URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
 
 1131        $this->form->addItem($ne);
 
 1134        $this->form->setTitle(
$lng->txt(
"server_data"));
 
 1135        $this->form->setFormAction($this->ctrl->getFormAction($this));
 
 1152        $ilTabs->addSubTabTarget(
"basic_settings", 
$ilCtrl->getLinkTarget($this, 
"showBasicSettings"));
 
 1153        $ilTabs->addSubTabTarget(
"header_title", 
$ilCtrl->getLinkTarget($this, 
"showHeaderTitle"));
 
 1154        $ilTabs->addSubTabTarget(
"contact_data", 
$ilCtrl->getLinkTarget($this, 
"showContactInformation"));
 
 1155        $ilTabs->addSubTabTarget(
"adm_imprint", 
$ilCtrl->getLinkTargetByClass(
"ilimprintgui", 
"preview"));
 
 1157        $ilTabs->setSubTabActive($a_activate);
 
 1158        $ilTabs->setTabActive(
"general_settings");
 
 1174        $this->initBasicSettingsForm();
 
 1177        $tpl->setContent($this->form->getHTML());
 
 1184    public function initBasicSettingsForm()
 
 1193        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1195        $lng->loadLanguageModule(
"pd");
 
 1198        $ti = 
new ilTextInputGUI($this->lng->txt(
"short_inst_name"), 
"short_inst_name");
 
 1199        $ti->setMaxLength(200);
 
 1201        $ti->setValue(
$ilSetting->get(
"short_inst_name"));
 
 1202        $ti->setInfo($this->lng->txt(
"short_inst_name_info"));
 
 1203        $this->form->addItem($ti);
 
 1207        $cb->setInfo(
$lng->txt(
"pub_section_info"));
 
 1209            $cb->setChecked(
true);
 
 1211        $this->form->addItem($cb);
 
 1213        $this->lng->loadLanguageModule(
'administration');
 
 1214        $domains = 
new ilTextInputGUI($this->lng->txt(
'adm_pub_section_domain_filter'), 
'public_section_domains');
 
 1215        $domains->setInfo($this->lng->txt(
'adm_pub_section_domain_filter_info'));
 
 1216        $domains->setMulti(
true);
 
 1220        $cb->addSubItem($domains);
 
 1225        $cb_prop->setInfo(
$lng->txt(
'pd_enable_user_publish_info'));
 
 1226        $cb_prop->setChecked(
$ilSetting->get(
'enable_global_profiles'));
 
 1227        $cb->addSubItem($cb_prop);
 
 1230        include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
 
 1233        $cb2->setInfo($this->lng->txt(
"enable_search_engine"));
 
 1234        $this->form->addItem($cb2);
 
 1236        if (!$robot_settings->checkRewrite()) {
 
 1237            $cb2->setAlert(
$lng->txt(
"allow_override_alert"));
 
 1238            $cb2->setChecked(
false);
 
 1239            $cb2->setDisabled(
true);
 
 1242                $cb2->setChecked(
true);
 
 1247        $ti = 
new ilTextInputGUI($this->lng->txt(
"adm_locale"), 
"locale");
 
 1248        $ti->setMaxLength(80);
 
 1250        $ti->setInfo($this->lng->txt(
"adm_locale_info"));
 
 1252        $this->form->addItem($ti);
 
 1255        $this->form->addCommandButton(
"saveBasicSettings", 
$lng->txt(
"save"));
 
 1257        $this->form->setTitle(
$lng->txt(
"basic_settings"));
 
 1258        $this->form->setFormAction($this->ctrl->getFormAction($this));
 
 1274        if (!
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
 1275            $ilErr->raiseError($this->lng->txt(
"permission_denied"), 
$ilErr->MESSAGE);
 
 1278        $this->initBasicSettingsForm();
 
 1279        if ($this->form->checkInput()) {
 
 1283            $public_section->setEnabled($this->form->getInput(
'pub_section'));
 
 1286            foreach ((array) $this->form->getInput(
'public_section_domains') as 
$domain) {
 
 1291            $public_section->setDomains($domains);
 
 1292            $public_section->save();
 
 1294            $global_profiles = (
$_POST[
"pub_section"])
 
 1295                ? (
int) 
$_POST[
'enable_global_profiles']
 
 1297            $ilSetting->set(
'enable_global_profiles', $global_profiles);
 
 1302            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1303            $ilCtrl->redirect($this, 
"showBasicSettings");
 
 1306        $this->form->setValuesByPost();
 
 1307        $tpl->setContent($this->form->getHtml());
 
 1324        include_once(
"./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
 
 1326        if ($a_get_post_values) {
 
 1328            foreach (
$_POST[
"title"] as $k => $v) {
 
 1329                $vals[] = array(
"title" => $v,
 
 1330                    "desc" => 
$_POST[
"desc"][$k],
 
 1331                    "lang" => 
$_POST[
"lang"][$k],
 
 1332                    "default" => (
$_POST[
"default"] == $k));
 
 1336            $data = $this->
object->getHeaderTitleTranslations();
 
 1337            if (is_array(
$data[
"Fobject"])) {
 
 1338                foreach (
$data[
"Fobject"] as $k => $v) {
 
 1339                    if ($k == 
$data[
"default_language"]) {
 
 1340                        $data[
"Fobject"][$k][
"default"] = 
true;
 
 1342                        $data[
"Fobject"][$k][
"default"] = 
false;
 
 1346                $data[
"Fobject"] = array();
 
 1363        if (!
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
 1364            $ilErr->raiseError($this->lng->txt(
"permission_denied"), 
$ilErr->MESSAGE);
 
 1370        if (!isset(
$_POST[
"default"]) && count(
$_POST[
"lang"]) > 0) {
 
 1376        if (array_key_exists(
"", 
$_POST[
"lang"])) {
 
 1382        if (count(array_unique(
$_POST[
"lang"])) < count(
$_POST[
"lang"])) {
 
 1388        $this->
object->removeHeaderTitleTranslations();
 
 1389        foreach (
$_POST[
"title"] as $k => $v) {
 
 1390            $this->
object->addHeaderTitleTranslation(
 
 1394                (
$_POST[
"default"] == $k)
 
 1398        ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1399        $ilCtrl->redirect($this, 
"showHeaderTitle");
 
 1410        if (is_array(
$_POST[
"title"])) {
 
 1411            foreach (
$_POST[
"title"] as $k => $v) {
 
 1415        $_POST[
"title"][$k] = 
"";
 
 1427        foreach (
$_POST[
"title"] as $k => $v) {
 
 1428            if (
$_POST[
"check"][$k]) {
 
 1429                unset(
$_POST[
"title"][$k]);
 
 1430                unset(
$_POST[
"desc"][$k]);
 
 1431                unset(
$_POST[
"lang"][$k]);
 
 1432                if ($k == 
$_POST[
"default"]) {
 
 1433                    unset(
$_POST[
"default"]);
 
 1466        $this->ctrl->redirectByClass(
"ilCronManagerGUI", 
"render");
 
 1485        $tpl->setContent($this->form->getHTML());
 
 1496        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1500        $ti = 
new ilTextInputGUI($this->lng->txt(
"firstname"), 
"admin_firstname");
 
 1501        $ti->setMaxLength(64);
 
 1503        $ti->setRequired(
true);
 
 1504        $ti->setValue(
$ilSetting->get(
"admin_firstname"));
 
 1505        $this->form->addItem($ti);
 
 1508        $ti = 
new ilTextInputGUI($this->lng->txt(
"lastname"), 
"admin_lastname");
 
 1509        $ti->setMaxLength(64);
 
 1511        $ti->setRequired(
true);
 
 1512        $ti->setValue(
$ilSetting->get(
"admin_lastname"));
 
 1513        $this->form->addItem($ti);
 
 1516        $ti = 
new ilTextInputGUI($this->lng->txt(
"title"), 
"admin_title");
 
 1517        $ti->setMaxLength(64);
 
 1519        $ti->setValue(
$ilSetting->get(
"admin_title"));
 
 1520        $this->form->addItem($ti);
 
 1523        $ti = 
new ilTextInputGUI($this->lng->txt(
"position"), 
"admin_position");
 
 1524        $ti->setMaxLength(64);
 
 1526        $ti->setValue(
$ilSetting->get(
"admin_position"));
 
 1527        $this->form->addItem($ti);
 
 1530        $ti = 
new ilTextInputGUI($this->lng->txt(
"institution"), 
"admin_institution");
 
 1531        $ti->setMaxLength(200);
 
 1533        $ti->setValue(
$ilSetting->get(
"admin_institution"));
 
 1534        $this->form->addItem($ti);
 
 1537        $ti = 
new ilTextInputGUI($this->lng->txt(
"street"), 
"admin_street");
 
 1538        $ti->setMaxLength(64);
 
 1541        $ti->setValue(
$ilSetting->get(
"admin_street"));
 
 1542        $this->form->addItem($ti);
 
 1545        $ti = 
new ilTextInputGUI($this->lng->txt(
"zipcode"), 
"admin_zipcode");
 
 1546        $ti->setMaxLength(10);
 
 1549        $ti->setValue(
$ilSetting->get(
"admin_zipcode"));
 
 1550        $this->form->addItem($ti);
 
 1554        $ti->setMaxLength(64);
 
 1557        $ti->setValue(
$ilSetting->get(
"admin_city"));
 
 1558        $this->form->addItem($ti);
 
 1561        $ti = 
new ilTextInputGUI($this->lng->txt(
"country"), 
"admin_country");
 
 1562        $ti->setMaxLength(64);
 
 1565        $ti->setValue(
$ilSetting->get(
"admin_country"));
 
 1566        $this->form->addItem($ti);
 
 1569        $ti = 
new ilTextInputGUI($this->lng->txt(
"phone"), 
"admin_phone");
 
 1570        $ti->setMaxLength(64);
 
 1573        $ti->setValue(
$ilSetting->get(
"admin_phone"));
 
 1574        $this->form->addItem($ti);
 
 1577        $ti = 
new ilEmailInputGUI($this->lng->txt(
"email"), 
"admin_email");
 
 1578        $ti->setMaxLength(64);
 
 1580        $ti->setRequired(
true);
 
 1581        $ti->allowRFC822(
true);
 
 1582        $ti->setValue(
$ilSetting->get(
"admin_email"));
 
 1583        $this->form->addItem($ti);
 
 1600        include_once(
"./Modules/SystemFolder/classes/class.ilSystemSupportContacts.php");
 
 1601        $ti = 
new ilTextInputGUI($this->lng->txt(
"adm_support_contacts"), 
"adm_support_contacts");
 
 1602        $ti->setMaxLength(500);
 
 1605        $ti->setInfo($this->lng->txt(
"adm_support_contacts_info"));
 
 1606        $this->form->addItem($ti);
 
 1617        $this->form->addCommandButton(
"saveContactInformation", 
$lng->txt(
"save"));
 
 1619        $this->form->setTitle(
$lng->txt(
"contact_data"));
 
 1620        $this->form->setFormAction($this->ctrl->getFormAction($this));
 
 1636        if (!
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
 1637            $ilErr->raiseError($this->lng->txt(
"permission_denied"), 
$ilErr->MESSAGE);
 
 1641        if ($this->form->checkInput()) {
 
 1642            $fs = array(
"admin_firstname", 
"admin_lastname", 
"admin_title", 
"admin_position",
 
 1643                "admin_institution", 
"admin_street", 
"admin_zipcode", 
"admin_city",
 
 1644                "admin_country", 
"admin_phone", 
"admin_email");
 
 1645            foreach ($fs as 
$f) {
 
 1649            include_once(
"./Modules/SystemFolder/classes/class.ilSystemSupportContacts.php");
 
 1652            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1653            $ilCtrl->redirect($this, 
"showContactInformation");
 
 1656            $this->form->setValuesByPost();
 
 1657            $tpl->setContent($this->form->getHtml());
 
 1676        $tpl->setContent($this->form->getHTML());
 
 1687        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1691        $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"soap_user_administration"), 
"soap_user_administration");
 
 1692        $cb->setInfo($this->lng->txt(
"soap_user_administration_desc"));
 
 1693        if (
$ilSetting->get(
"soap_user_administration")) {
 
 1694            $cb->setChecked(
true);
 
 1696        $this->form->addItem($cb);
 
 1699        $wsdl = 
new ilTextInputGUI($this->lng->txt(
'soap_wsdl_path'), 
'soap_wsdl_path');
 
 1700        $wsdl->setInfo(sprintf($this->lng->txt(
'soap_wsdl_path_info'), 
"<br />'" . ILIAS_HTTP_PATH . 
"/webservice/soap/server.php?wsdl'"));
 
 1701        $wsdl->setValue((
string) 
$ilSetting->get(
'soap_wsdl_path'));
 
 1703        $wsdl->setMaxLength(255);
 
 1704        $this->form->addItem($wsdl);
 
 1707        $ctime = 
new ilNumberInputGUI($this->lng->txt(
'soap_connect_timeout'), 
'ctimeout');
 
 1708        $ctime->setMinValue(1);
 
 1710        $ctime->setMaxLength(3);
 
 1711        include_once 
'./Services/WebServices/SOAP/classes/class.ilSoapClient.php';
 
 1713        $ctime->setInfo($this->lng->txt(
'soap_connect_timeout_info'));
 
 1714        $this->form->addItem($ctime);
 
 1716        $this->form->addCommandButton(
"saveWebServices", 
$lng->txt(
"save"));
 
 1718        $this->form->setTitle(
$lng->txt(
"webservices"));
 
 1719        $this->form->setFormAction($this->ctrl->getFormAction($this));
 
 1735        if (!
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
 1736            $ilErr->raiseError($this->lng->txt(
"permission_denied"), 
$ilErr->MESSAGE);
 
 1740        if ($this->form->checkInput()) {
 
 1741            $ilSetting->set(
'soap_user_administration', $this->form->getInput(
'soap_user_administration'));
 
 1742            $ilSetting->set(
'soap_wsdl_path', trim($this->form->getInput(
'soap_wsdl_path')));
 
 1743            $ilSetting->set(
'soap_connect_timeout', $this->form->getInput(
'ctimeout'));
 
 1745            ilUtil::sendSuccess(
$lng->txt(
'msg_obj_modified'), 
true);
 
 1746            $ilCtrl->redirect($this, 
'showWebServices');
 
 1749            $this->form->setValuesByPost();
 
 1750            $tpl->setContent($this->form->getHtml());
 
 1767        $tpl->addBlockFile(
'ADM_CONTENT', 
'adm_content', 
'tpl.java_settings.html', 
'Modules/SystemFolder');
 
 1769        $GLOBALS[
'lng']->loadLanguageModule(
'search');
 
 1771        include_once 
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
 
 1774            $this->lng->txt(
'lucene_create_ini'),
 
 1775            $this->ctrl->getLinkTarget($this, 
'createJavaServerIni')
 
 1777        $tpl->setVariable(
'ACTION_BUTTONS', 
$toolbar->getHTML());
 
 1781        $tpl->setVariable(
'SETTINGS_TABLE', $this->form->getHTML());
 
 1792        $this->tpl->setContent($this->form->getHTML());
 
 1797        include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
 1801        $GLOBALS[
'lng']->loadLanguageModule(
'search');
 
 1803        $this->form->setTitle($this->lng->txt(
'lucene_tbl_create_ini'));
 
 1804        $this->form->setFormAction($this->ctrl->getFormAction($this, 
'createJavaServerIni'));
 
 1805        $this->form->addCommandButton(
'downloadJavaServerIni', $this->lng->txt(
'lucene_download_ini'));
 
 1806        $this->form->addCommandButton(
'showJavaServer', $this->lng->txt(
'cancel'));
 
 1810        $ip->setInfo($this->lng->txt(
'lucene_host_info'));
 
 1811        $ip->setMaxLength(128);
 
 1813        $ip->setRequired(
true);
 
 1814        $this->form->addItem($ip);
 
 1819        $port->setMinValue(1);
 
 1820        $port->setMaxValue(65535);
 
 1821        $port->setRequired(
true);
 
 1822        $this->form->addItem($port);
 
 1827        $path->setMaxLength(1024);
 
 1828        $path->setInfo($this->lng->txt(
'lucene_index_path_info'));
 
 1829        $path->setRequired(
true);
 
 1830        $this->form->addItem(
$path);
 
 1835        $log->setMaxLength(1024);
 
 1836        $log->setInfo($this->lng->txt(
'lucene_log_info'));
 
 1837        $log->setRequired(
true);
 
 1838        $this->form->addItem(
$log);
 
 1842        $lev->setOptions(array(
 
 1847            'FATAL' => 
'FATAL'));
 
 1848        $lev->setValue(
'INFO');
 
 1849        $lev->setRequired(
true);
 
 1850        $this->form->addItem($lev);
 
 1856        $cpu->setMaxLength(2);
 
 1857        $cpu->setMinValue(1);
 
 1858        $cpu->setRequired(
true);
 
 1859        $this->form->addItem($cpu);
 
 1863        $fs->setInfo($this->lng->txt(
'lucene_max_fs_info'));
 
 1866        $fs->setMaxLength(4);
 
 1867        $fs->setMinValue(1);
 
 1868        $fs->setRequired(
true);
 
 1869        $this->form->addItem($fs);
 
 1881        if ($this->form->checkInput()) {
 
 1882            include_once 
'./Services/WebServices/RPC/classes/class.ilRpcIniFileWriter.php';
 
 1884            $ini->setHost($this->form->getInput(
'ho'));
 
 1885            $ini->setPort($this->form->getInput(
'po'));
 
 1886            $ini->setIndexPath($this->form->getInput(
'in'));
 
 1887            $ini->setLogPath($this->form->getInput(
'lo'));
 
 1888            $ini->setLogLevel($this->form->getInput(
'le'));
 
 1889            $ini->setNumThreads($this->form->getInput(
'cp'));
 
 1890            $ini->setMaxFileSize($this->form->getInput(
'fs'));
 
 1897        $this->form->setValuesByPost();
 
 1900        $this->tpl->setContent($this->form->getHTML());
 
 1912        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1916        $ti = 
new ilTextInputGUI($this->lng->txt(
"java_server_host"), 
"rpc_server_host");
 
 1917        $ti->setMaxLength(64);
 
 1919        $ti->setValue(
$ilSetting->get(
"rpc_server_host"));
 
 1920        $this->form->addItem($ti);
 
 1923        $ti = 
new ilNumberInputGUI($this->lng->txt(
"java_server_port"), 
"rpc_server_port");
 
 1924        $ti->setMaxLength(5);
 
 1926        $ti->setValue(
$ilSetting->get(
"rpc_server_port"));
 
 1927        $this->form->addItem($ti);
 
 1931        $pdf->setTitle($this->lng->txt(
'rpc_pdf_generation'));
 
 1932        $this->form->addItem(
$pdf);
 
 1934        $pdf_font = 
new ilTextInputGUI($this->lng->txt(
'rpc_pdf_font'), 
'rpc_pdf_font');
 
 1935        $pdf_font->setInfo($this->lng->txt(
'rpc_pdf_font_info'));
 
 1936        $pdf_font->setSize(64);
 
 1937        $pdf_font->setMaxLength(1024);
 
 1938        $pdf_font->setRequired(
true);
 
 1939        $pdf_font->setValue(
 
 1940            $ilSetting->get(
'rpc_pdf_font', 
'Helvetica, unifont')
 
 1942        $this->form->addItem($pdf_font);
 
 1946        $this->form->addCommandButton(
"saveJavaServer", 
$lng->txt(
"save"));
 
 1948        $this->form->setTitle(
$lng->txt(
"java_server"));
 
 1949        $this->form->setDescription(
$lng->txt(
"java_server_info") .
 
 1950            '<br /><a href="Services/WebServices/RPC/lib/README.md" target="_blank">' .
 
 1951            $lng->txt(
"java_server_readme") . 
'</a>');
 
 1952        $this->form->setFormAction($this->ctrl->getFormAction($this));
 
 1968        if (!
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
 
 1969            $ilErr->raiseError($this->lng->txt(
"permission_denied"), 
$ilErr->MESSAGE);
 
 1973        if ($this->form->checkInput()) {
 
 1977            ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"), 
true);
 
 1978            $ilCtrl->redirect($this, 
"showJavaServer");
 
 1983            $this->form->setValuesByPost();
 
 1984            $tpl->setContent($this->form->getHtml());
 
 2001        if (!$ilAccess->checkAccess(
'write', 
'', $this->object->getRefId())) {
 
 2002            $ilErr->raiseError($this->lng->txt(
'permission_denied'), 
$ilErr->MESSAGE);
 
 2005        require_once 
'./Services/Http/classes/class.ilProxySettings.php';
 
 2008        $this->form->setValuesByArray(array(
 
 2017        $tpl->setContent($this->form->getHTML());
 
 2031            $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
 
 2033                $this->lng->txt(
'proxy_connectable')
 
 2036            $this->form->getItemByPostVar(
'proxy_availability')->setHTML(
 
 2038                $this->lng->txt(
'proxy_not_connectable')
 
 2058        if (!$ilAccess->checkAccess(
'write', 
'', $this->object->getRefId())) {
 
 2062        require_once 
'./Services/Http/classes/class.ilProxySettings.php';
 
 2065        $isFormValid = $this->form->checkInput();
 
 2067                                       ->setHost(trim($this->form->getInput(
'proxy_host')))
 
 2068                                        ->setPort(trim($this->form->getInput(
'proxy_port')));
 
 2072                    $isFormValid = 
false;
 
 2073                    $this->form->getItemByPostVar(
'proxy_host')->setAlert(
$lng->txt(
'msg_input_is_required'));
 
 2076                    $isFormValid = 
false;
 
 2077                    $this->form->getItemByPostVar(
'proxy_port')->setAlert(
$lng->txt(
'msg_input_is_required'));
 
 2082                    $isFormValid = 
false;
 
 2083                    $this->form->getItemByPostVar(
'proxy_port')->setAlert(
$lng->txt(
'proxy_port_numeric'));
 
 2089                ilUtil::sendSuccess(
$lng->txt(
'saved_successfully'));
 
 2098        $this->form->setValuesByPost();
 
 2099        $tpl->setContent($this->form->getHTML());
 
 2116        include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
 
 2118        $this->form->setFormAction(
$ilCtrl->getFormAction($this, 
'saveProxy'));
 
 2122        $proxs->setInfo(
$lng->txt(
'proxy_status_info'));
 
 2123        $proxs->setValue(1);
 
 2124        $this->form->addItem($proxs);
 
 2128        $proxs->addSubItem($proxa);
 
 2132        $prox->setInfo(
$lng->txt(
'proxy_host_info'));
 
 2133        $proxs->addSubItem($prox);
 
 2137        $proxp->setInfo(
$lng->txt(
'proxy_port_info'));
 
 2138        $proxp->setSize(10);
 
 2139        $proxp->setMaxLength(10);
 
 2140        $proxs->addSubItem($proxp);
 
 2143        $this->form->addCommandButton(
'saveProxy', 
$lng->txt(
'save'));
 
 2152        if (!$ilAccess->checkAccess(
'write', 
'', $this->object->getRefId())) {
 
 2153            $ilErr->raiseError($this->lng->txt(
'permission_denied'), 
$ilErr->MESSAGE);
 
 2167        if (
$form->checkInput()) {
 
 2171            $security->setHTTPSEnabled(
$_POST[
"https_enabled"]);
 
 2173            if ($security->validate(
$form)) {
 
 2176                ilUtil::sendSuccess(
$lng->txt(
'saved_successfully'), 
true);
 
 2177                $ilCtrl->redirect($this, 
"showHTTPS");
 
 2181        $form->setValuesByPost();
 
 2192        $lng->loadLanguageModule(
'ps');
 
 2194        include_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
 
 2197        include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
 
 2199        $form->setTitle(
$lng->txt(
"adm_https"));
 
 2200        $form->setFormAction(
$ilCtrl->getFormAction($this, 
'saveHTTPS'));
 
 2203        $check2->setChecked($security->isHTTPSEnabled() ? 1 : 0);
 
 2204        $check2->setValue(1);
 
 2205        $form->addItem($check2);
 
 2208        $form->addCommandButton(
'saveHTTPS', 
$lng->txt(
'save'));
 
 2215        switch ($a_form_id) {
 
 2218                include_once(
'./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
 
 2223                $fields[
'activate_https'] =
 
 2226                return array(
"general_settings" => array(
"showHTTPS", $fields));
 
 2237        $ilAccess = 
$DIC->access();
 
 2241        $a_target = SYSTEM_FOLDER_ID;
 
 2243        if ($ilAccess->checkAccess(
"read", 
"", $a_target)) {
 
 2247            if ($ilAccess->checkAccess(
"read", 
"", ROOT_FOLDER_ID)) {
 
 2249                    $lng->txt(
"msg_no_perm_read_item"),
 
 2265        require_once 
'Services/Administration/classes/class.ilSubversionInformation.php';
 
 2266        require_once 
'Services/Administration/classes/class.ilGitInformation.php';
 
 2269            $html = $vc->getInformationAsHtml();
 
 2281        $this->showServerInfoObject();
 
if(!array_key_exists('domain', $_REQUEST)) $domain
An exception for terminatinating execution or to throw for unit testing.
error($a_errmsg)
set error message @access public
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 getPluginObjectByType($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.
static getInstance()
Get 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 redirect($a_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 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 sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
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['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
if(empty($password)) $table
if(isset($_POST['submit'])) $form
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']