Ejemplo n.º 1
0
         $prev = GetPrevStep(STEP_ADDEDINFO);
         if ($prev) {
             $page->FormButton('Back', array('step' => $prev));
         }
         $page->FormSubmit('Next');
         $page->FormClose();
         $page->ShowPage(STEP_ADDEDINFO);
     } else {
         $page->ClearHtmlQueue();
     }
 }
 /* ===================================================[ DATABASE CONNECTION ]=================================================== */
 if ($steps[STEP_DBCONNECT]['enabled']) {
     // Try to connect to database
     $login = $keywords['connection'];
     $dbase->Connect($login);
     // Clear the plain-text password if encryption is enabled
     if ($steps[STEP_DBCONNECT]['encryptlogin']) {
         $login['password'] = '';
     }
     // If connection cannot be made, force show "connection" step!
     if (!$dbase->IsConnected() || $step == STEP_DBCONNECT) {
         $page->MainTitle($steps[STEP_DBCONNECT]['title'], 'connection');
         // If the step is not STEP_DBCONNECT, then the installer was going
         // somewhere else - so error message should be displayed
         if ($step != STEP_DBCONNECT) {
             $page->WarningBox('Unable to establish a connection to <b>' . $login['hostname'] . '</b>. ' . 'Please fill in <i>hostname</i>, <i>username</i> and <i>password</i>.');
             if ($config['show_database_error_messages']) {
                 $page->ErrorDatabaseBox($dbase->GetDatabaseError());
             }
         } else {