示例#1
0
<?php

include_once 'modules/install/class_install.php';
$install = new Install();
$dsp->NewContent(t('Webserverkonfiguration und Systemvorraussetzungen überprüfen'), t('Hier kannst du testen, ob Lansuite auf deinem System evtl. Probleme haben wird und bekommst entsprechende Lösungsvorschläge angezeigt.'));
$install->envcheck();
$dsp->AddBackButton("index.php?mod=install");
$dsp->AddContent();
示例#2
0
     $lang_array = array();
     if ($language == "de") {
         $selected = 'selected';
     } else {
         $selected = '';
     }
     array_push($lang_array, "<option {$selected} value=\"de\">Deutsch</option>");
     if ($language == "en") {
         $selected = 'selected';
     } else {
         $selected = '';
     }
     array_push($lang_array, "<option {$selected} value=\"en\">English</option>");
     $dsp->AddDropDownFieldRow("language", t('Sprache'), $lang_array, "");
     $dsp->AddFormSubmitRow(t('Ändern'));
     $continue = $install->envcheck();
     if ($continue) {
         $dsp->AddDoubleRow("", $dsp->FetchSpanButton(t('Weiter'), "index.php?mod=install&action=wizard&step=2"));
     }
     $dsp->AddContent();
     break;
     // Setting up ls_conf
 // Setting up ls_conf
 case 2:
     // Reset DB-Config, for when reinstalling in new DB, the next step would connect to existing, old tables
     $config["database"]["database"] = '';
     $install->WriteConfig();
     $dsp->NewContent(t('Grundeinstellungen'), t('Bitte gib nun die Zugangsdaten zur Datenbank an.'));
     $dsp->SetForm("index.php?mod=install&action=wizard&step=3");
     // Set default settings from Config-File
     if ($_POST["host"] == "") {