Update installer for 3.0.0
This commit is contained in:
parent
177af6b0ec
commit
76d47a6f64
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Define the current build
|
// Define the current build
|
||||||
define('MODS_FOR_HESK_BUILD', 33);
|
define('MODS_FOR_HESK_BUILD', 34);
|
@ -37,7 +37,7 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
|
|||||||
|
|
||||||
// We will be installing this HESK version:
|
// We will be installing this HESK version:
|
||||||
define('HESK_NEW_VERSION','2.7.1');
|
define('HESK_NEW_VERSION','2.7.1');
|
||||||
define('MODS_FOR_HESK_NEW_VERSION','3.0.0 RC 1');
|
define('MODS_FOR_HESK_NEW_VERSION','3.0.0');
|
||||||
define('REQUIRE_PHP_VERSION','5.3.0');
|
define('REQUIRE_PHP_VERSION','5.3.0');
|
||||||
define('REQUIRE_MYSQL_VERSION','5.0.7');
|
define('REQUIRE_MYSQL_VERSION','5.0.7');
|
||||||
|
|
||||||
|
@ -72,6 +72,8 @@ if ($version == 2) {
|
|||||||
execute300Beta1Scripts();
|
execute300Beta1Scripts();
|
||||||
} elseif ($version == 33) {
|
} elseif ($version == 33) {
|
||||||
execute300RC1Scripts();
|
execute300RC1Scripts();
|
||||||
|
} elseif ($version == 34) {
|
||||||
|
execute300Scripts();
|
||||||
} else {
|
} else {
|
||||||
$response = 'The version "' . $version . '" was not recognized. Check the value submitted and try again.';
|
$response = 'The version "' . $version . '" was not recognized. Check the value submitted and try again.';
|
||||||
print $response;
|
print $response;
|
||||||
|
@ -42,6 +42,7 @@ $buildToVersionMap = array(
|
|||||||
31 => '2.6.4',
|
31 => '2.6.4',
|
||||||
32 => '3.0.0 beta 1',
|
32 => '3.0.0 beta 1',
|
||||||
33 => '3.0.0 RC 1',
|
33 => '3.0.0 RC 1',
|
||||||
|
34 => '3.0.0',
|
||||||
);
|
);
|
||||||
|
|
||||||
function echoInitialVersionRows($version, $build_to_version_map)
|
function echoInitialVersionRows($version, $build_to_version_map)
|
||||||
|
@ -95,6 +95,9 @@ function processUpdates(startingVersion) {
|
|||||||
} else if (startingVersion < 33) {
|
} else if (startingVersion < 33) {
|
||||||
startVersionUpgrade('300rc1');
|
startVersionUpgrade('300rc1');
|
||||||
executeUpdate(33, '300rc1', '3.0.0 RC 1');
|
executeUpdate(33, '300rc1', '3.0.0 RC 1');
|
||||||
|
} else if (startingVersion < 34) {
|
||||||
|
startVersionUpgrade('300');
|
||||||
|
executeUpdate(34, '300', '3.0.0');
|
||||||
} else {
|
} else {
|
||||||
installationFinished();
|
installationFinished();
|
||||||
}
|
}
|
||||||
|
@ -116,9 +116,9 @@ hesk_dbConnect();
|
|||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<select name="current-version" class="form-control">
|
<select name="current-version" class="form-control">
|
||||||
<optgroup label="Mods for HESK 3 (Pre-release Builds)">
|
<optgroup label="Mods for HESK 3">
|
||||||
<option value="33">3.0.0 RC 1</option>
|
<option value="33">3.0.0 RC 1 [Prerelease Build]</option>
|
||||||
<option value="32">3.0.0 beta 1</option>
|
<option value="32">3.0.0 beta 1 [Prerelease Build]</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="Mods for HESK 2">
|
<optgroup label="Mods for HESK 2">
|
||||||
<option value="31">2.6.4</option>
|
<option value="31">2.6.4</option>
|
||||||
|
@ -899,3 +899,10 @@ function execute300RC1Scripts() {
|
|||||||
|
|
||||||
updateVersion('3.0.0 RC 1');
|
updateVersion('3.0.0 RC 1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function execute300Scripts() {
|
||||||
|
global $hesk_settings;
|
||||||
|
hesk_dbConnect();
|
||||||
|
|
||||||
|
updateVersion('3.0.0');
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user