Ejemplo n.º 1
0
         }
     }
     // If some query failed
     if ($databaseFailedCount == 0) {
         $state = 'success';
     } else {
         $state = 'failed';
     }
     // Save the installation status to sessions, with database name, the prefix
     // used to during installation and how many queries where successful and failed
     SetDatabaseInstallStatus($dbase->GetDatabaseName(), $state, $keywords['connection']['dbprefix'], $databaseSuccessCount, $databaseFailedCount);
 }
 // Will contain the name of a valid database installations
 $successInstall = array();
 $failedInstall = array();
 $databaseList = $dbase->GetDatabaseNameList();
 // Go through the list of databases to see if any database has
 // gotten a "success" status, then installation is completed
 foreach (GetDatabaseInstallStatus() as $database => $status) {
     // Only list a database "valid install" if it still exists :)
     if (in_array($database, $databaseList)) {
         if ($status['state'] == 'success') {
             $successInstall[] = $database;
         } else {
             $failedInstall[] = $database;
         }
     }
 }
 unset($databaseList);
 // If there has not been any successful installation of database SQL queries yet, or this step is current
 if (count($successInstall) == 0 || $step == STEP_RUNSQL) {