Ejemplo n.º 1
0
                 $serp = ', ';
             }
             $str = substr($str, strlen($serp));
         }
     }
     $page->SuccessBox('Database setup has been completed successfully on ' . $str);
 }
 // Only allow manual selection
 if ($steps[STEP_DBSELECT]['selecttype'] == 'manual') {
     // Display some text on what the user is supposed to do
     $page->Paragraph('Enter the name of the database to use with this installation.');
     DatabaseManualBoxForm('Database name:');
 } else {
     if ($steps[STEP_DBSELECT]['selecttype'] == 'dblist' || $steps[STEP_DBSELECT]['selecttype'] == 'both') {
         // Get the list of databases (if possible)
         $dblist = $dbase->GetDatabaseList();
         if (count($dblist) > 0) {
             // Display some text on what the user is supposed to do
             $both = $steps[STEP_DBSELECT]['selecttype'] == 'both' ? ', or enter the name manually in the box below' : '';
             $page->Paragraph('Select a database from a list of databases whitin the server ' . 'you have logged on' . $both . '.');
             $page->Label('Database list:');
             DatabaseSelectionListForm();
             // Only show the manual box if set to 'both'
             if ($steps[STEP_DBSELECT]['selecttype'] == 'both') {
                 DatabaseManualBoxForm('Or enter a database name manually:');
             }
         } else {
             $page->Paragraph('Enter the name of the database to use with this installation.');
             $page->Label('Database list:');
             // If database error messages should be displayed
             $error = $dbase->GetDatabaseError();