=')) {
Database::query("SET SESSION character_set_server='utf8';");
Database::query("SET SESSION collation_server='utf8_general_ci';");
//Database::query("SET CHARACTER SET 'utf8';"); // See task #1802.
Database::query("SET NAMES 'utf8';");
}
switch ($my_old_version) {
case '1.6':
case '1.6.0':
case '1.6.1':
case '1.6.2':
case '1.6.3':
case '1.6.4':
case '1.6.5':
include 'update-db-1.6.x-1.8.0.inc.php';
include 'update-files-1.6.x-1.8.0.inc.php';
//intentionally no break to continue processing
case '1.8':
case '1.8.0':
include 'update-db-1.8.0-1.8.2.inc.php';
//intentionally no break to continue processing
case '1.8.2':
include 'update-db-1.8.2-1.8.3.inc.php';
//intentionally no break to continue processing
case '1.8.3':
include 'update-db-1.8.3-1.8.4.inc.php';
include 'update-files-1.8.3-1.8.4.inc.php';
case '1.8.4':
include 'update-db-1.8.4-1.8.5.inc.php';
include 'update-files-1.8.4-1.8.5.inc.php';
case '1.8.5':
include 'update-db-1.8.5-1.8.6.inc.php';
include 'update-files-1.8.5-1.8.6.inc.php';
case '1.8.6':
include 'update-db-1.8.6-1.8.6.1.inc.php';
include 'update-files-1.8.6-1.8.6.1.inc.php';
case '1.8.6.1':
include 'update-db-1.8.6.1-1.8.6.2.inc.php';
include 'update-files-1.8.6.1-1.8.6.2.inc.php';
case '1.8.6.2':
include 'update-db-1.8.6.2-1.8.7.inc.php';
include 'update-files-1.8.6.2-1.8.7.inc.php';
// After database conversion to UTF-8, new encoding initialization is necessary
// to be used for the next upgrade 1.8.7[.1] -> 1.8.8.
Database::query("SET SESSION character_set_server='utf8';");
Database::query("SET SESSION collation_server='utf8_general_ci';");
//Database::query("SET CHARACTER SET 'utf8';"); // See task #1802.
Database::query("SET NAMES 'utf8';");
case '1.8.7':
case '1.8.7.1':
include 'update-db-1.8.7-1.8.8.inc.php';
include 'update-files-1.8.7-1.8.8.inc.php';
case '1.8.8':
case '1.8.8.2':
//Only updates the configuration.inc.php with the new version
include 'update-configuration.inc.php';
case '1.8.8.4':
include 'update-db-1.8.8-1.9.0.inc.php';
//include 'update-files-1.8.8-1.9.0.inc.php';
//Only updates the configuration.inc.php with the new version
include 'update-configuration.inc.php';
break;
default:
break;
}
} else {
set_file_folder_permissions();
database_server_connect();
// Initialization of the database encoding to be used.
Database::query("SET storage_engine = MYISAM;");
Database::query("SET SESSION character_set_server='utf8';");
Database::query("SET SESSION collation_server='utf8_general_ci';");
//Database::query("SET CHARACTER SET 'utf8';"); // See task #1802.
Database::query("SET NAMES 'utf8';");
include 'install_db.inc.php';
include 'install_files.inc.php';
}
$current_step = 7;
display_after_install_message($installType);
} elseif (@$_POST['step1'] || $badUpdatePath) {
//STEP 1 : REQUIREMENTS
//make sure that proposed path is set, shouldn't be necessary but...
if (empty($proposedUpdatePath)) { $proposedUpdatePath = $_POST['updatePath']; }
display_requirements($installType, $badUpdatePath, $proposedUpdatePath, $update_from_version_8, $update_from_version_6);
} else {
// This is the start screen.
display_language_selection();
}
?>