Update installer

master
Mike Koch 7 years ago
parent 9bffcfdf6a
commit c60d2ed866

@ -16,7 +16,7 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
// We will be installing this HESK version:
define('HESK_NEW_VERSION','2.7.3');
define('MODS_FOR_HESK_NEW_VERSION','3.1.0');
define('MODS_FOR_HESK_NEW_VERSION','3.1.1');
define('REQUIRE_PHP_VERSION','5.3.0');
define('REQUIRE_MYSQL_VERSION','5.0.7');

@ -90,6 +90,8 @@ if ($version == 2) {
execute307Scripts();
} elseif ($version == 42) {
execute310Scripts();
} elseif ($version == 43) {
execute311Scripts();
} else {
$response = 'The version "' . $version . '" was not recognized. Check the value submitted and try again.';
print $response;

@ -51,6 +51,7 @@ $buildToVersionMap = array(
40 => '3.0.6',
41 => '3.0.7',
42 => '3.1.0',
43 => '3.1.1',
);
function echoInitialVersionRows($version, $build_to_version_map)

@ -122,6 +122,9 @@ function processUpdates(startingVersion) {
} else if (startingVersion < 42) {
startVersionUpgrade('310');
executeUpdate(42, '310', '3.1.0');
} else if (startingVersion < 43) {
startVersionUpgrade('311');
executeUpdate(43, '311', '3.1.1');
} else {
installationFinished();
}

@ -118,6 +118,7 @@ hesk_dbConnect();
<select name="current-version" class="form-control">
<option disabled>Select One, or "No Previous Installation" Below</option>
<optgroup label="Mods for HESK 3">
<option value="42">3.1.0</option>
<option value="41">3.0.7</option>
<option value="40">3.0.6</option>
<option value="39">3.0.5</option>

@ -1123,4 +1123,11 @@ function execute310Scripts() {
executeQuery("DELETE FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` WHERE `Key` IN ('rtl', 'admin_color_scheme')");
updateVersion('3.1.0');
}
function execute311Scripts() {
global $hesk_settings;
hesk_dbConnect();
updateVersion('3.1.1');
}
Loading…
Cancel
Save