예제 #1
0
                         $page->Quotation('There are no databases available on ' . $login['hostname']);
                     }
                     DatabaseManualBoxForm('Enter database name manually:');
                 }
             }
         }
         // -------------------( Option B: Create new database )-------------------//
         if ($steps[STEP_DBSELECT]['allowcreate']) {
             $page->Paragraph(' ');
             $page->MainTitle('Create new database', 'dbnew');
             if (is_array($msg)) {
                 foreach ($msg as $item) {
                     $page->AddToQueue($item);
                 }
             }
             $page->Bookmark('newdb');
             $page->Paragraph('Create new database which the system will be installed on.');
             $page->FormStart(array('step' => STEP_DBSELECT), array('#' => 'newdb'));
             $page->Label('Database name:');
             $page->FormInput($newdb, 'createdb', array(), 'mediumbox');
             $page->FormSubmit('Create new');
             $page->FormClose();
         }
         $page->ShowPage(STEP_DBSELECT);
     }
 }
 /* ===================================================[ DATABASE ACCESS TESTING ]=================================================== */
 // Only continue with this step if enabled. NOTE: $dbtest is kept
 // outside this 'if' statement because it could be used in
 // below steps, so this is done to keep the installer stable!
 if ($steps[STEP_DBACCESS]['enabled']) {