$errorMsg = ts("This version of CiviCRM can only be used with Drupal 6.x or 7.x. Please ensure that '%1' exists if you are running Drupal 7.0 and over.", array(1 => implode("' or '", $drupalVersionFiles)));
        errorDisplayPage($errorTitle, $errorMsg);
    }
} elseif ($installType == 'wordpress') {
    //HACK for now
    $civicrm_version['cms'] = 'WordPress';
    // Ensure that they have downloaded the correct version of CiviCRM
    if ($civicrm_version['cms'] != 'WordPress') {
        $errorTitle = ts("Oops! Incorrect CiviCRM version");
        $errorMsg = ts("This installer can only be used for the WordPress version of CiviCRM.");
        errorDisplayPage($errorTitle, $errorMsg);
    }
}
// Check requirements
$req = new InstallRequirements();
$req->check();
if ($req->hasErrors()) {
    $hasErrorOtherThanDatabase = TRUE;
}
if ($databaseConfig) {
    $dbReq = new InstallRequirements();
    $dbReq->checkdatabase($databaseConfig, 'CiviCRM');
    if ($installType == 'drupal') {
        $dbReq->checkdatabase($drupalConfig, 'Drupal');
    }
}
// Actual processor
if (isset($_POST['go']) && !$req->hasErrors() && !$dbReq->hasErrors()) {
    // Confirm before reinstalling
    if (!isset($_POST['force_reinstall']) && $alreadyInstalled) {
        include $installDirPath . 'template.html';