Ejemplo n.º 1
0
     if ($_POST["user"]) {
         $config["database"]["user"] = $_POST["user"];
     }
     if ($_POST["pass"]) {
         $config["database"]["passwd"] = $_POST["pass"];
     }
     if ($_POST["database"]) {
         $config["database"]["database"] = $_POST["database"];
     }
     if ($_POST["prefix"]) {
         $config["database"]["prefix"] = $_POST["prefix"];
     }
     if ($_POST["design"]) {
         $config["lansuite"]["default_design"] = $_POST["design"];
     }
     if (!$install->WriteConfig()) {
         $func->error(t('Datei \'config.php\' konnte <strong>nicht</strong> geschrieben werden.'));
     } else {
         $func->confirmation(t('Datei \'config.php\' wurde erfolgreich geschrieben.'), "index.php?mod=install&action=ls_conf");
     }
     break;
 default:
     $dsp->NewContent(t('Grundeinstellungen'), t('Bitte gib nun die Zugangsdaten zur Datenbank an.'));
     $dsp->SetForm("index.php?mod=install&action=ls_conf&step=2");
     if ($_POST["host"] == "") {
         $_POST["host"] = $config['database']['server'];
     }
     if ($_POST["user"] == "") {
         $_POST["user"] = $config['database']['user'];
     }
     if ($_POST["pass"] == "") {
Ejemplo n.º 2
0
     }
     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"] == "") {
         $_POST["host"] = $config['database']['server'];
     }
     if ($_POST["user"] == "") {
         $_POST["user"] = $config['database']['user'];
     }
     #        if ($_POST["database"] == "") $_POST["database"] = $config['database']['database'];
     if ($_POST["prefix"] == "") {
         $_POST["prefix"] = $config['database']['prefix'];
     }
     #### Database Access
     $dsp->AddSingleRow("<b>" . t('Datenbank-Zugangsdaten') . "</b>");