Update installer

merge-requests/54/head 3.0.5
Mike Koch 7 years ago
parent 10c7f00881
commit d90d09b9ce

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

@ -82,6 +82,8 @@ if ($version == 2) {
execute303Scripts();
} elseif ($version == 38) {
execute304Scripts();
} elseif ($version == 39) {
execute305Scripts();
} else {
$response = 'The version "' . $version . '" was not recognized. Check the value submitted and try again.';
print $response;

@ -47,6 +47,7 @@ $buildToVersionMap = array(
36 => '3.0.2',
37 => '3.0.3',
38 => '3.0.4',
39 => '3.0.5',
);
function echoInitialVersionRows($version, $build_to_version_map)

@ -110,6 +110,9 @@ function processUpdates(startingVersion) {
} else if (startingVersion < 38) {
startVersionUpgrade('304');
executeUpdate(38, '304', '3.0.4');
} else if (startingVersion < 39) {
startVersionUpgrade('305');
executeUpdate(39, '305', '3.0.5');
} 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="38">3.0.4</option>
<option value="37">3.0.3</option>
<option value="36">3.0.2</option>
<option value="35">3.0.1</option>

@ -965,4 +965,11 @@ function execute304Scripts() {
hesk_dbConnect();
updateVersion('3.0.4');
}
function execute305Scripts() {
global $hesk_settings;
hesk_dbConnect();
updateVersion('3.0.5');
}
Loading…
Cancel
Save