Update installer
This commit is contained in:
parent
e0e748c5d8
commit
84e560e6ba
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
|
||||
// Define the current build
|
||||
define('MODS_FOR_HESK_BUILD', 30);
|
||||
define('MODS_FOR_HESK_BUILD', 31);
|
@ -37,8 +37,8 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
|
||||
|
||||
// We will be installing this HESK version:
|
||||
define('HESK_NEW_VERSION','2.6.7');
|
||||
define('MODS_FOR_HESK_NEW_VERSION','2.6.3');
|
||||
define('REQUIRE_PHP_VERSION','5.0.0');
|
||||
define('MODS_FOR_HESK_NEW_VERSION','2.6.4');
|
||||
define('REQUIRE_PHP_VERSION','5.3.0');
|
||||
define('REQUIRE_MYSQL_VERSION','5.0.7');
|
||||
|
||||
// Other required files and settings
|
||||
|
@ -66,6 +66,8 @@ if ($version == 2) {
|
||||
execute262Scripts();
|
||||
} elseif ($version == 30) {
|
||||
execute263Scripts();
|
||||
} elseif ($version == 31) {
|
||||
execute264Scripts();
|
||||
} else {
|
||||
$response = 'The version "' . $version . '" was not recognized. Check the value submitted and try again.';
|
||||
print $response;
|
||||
|
@ -39,6 +39,7 @@ $buildToVersionMap = array(
|
||||
28 => '2.6.1',
|
||||
29 => '2.6.2',
|
||||
30 => '2.6.3',
|
||||
31 => '2.6.4',
|
||||
);
|
||||
|
||||
function echoInitialVersionRows($version, $build_to_version_map)
|
||||
|
@ -86,6 +86,9 @@ function processUpdates(startingVersion) {
|
||||
} else if (startingVersion < 30) {
|
||||
startVersionUpgrade('263');
|
||||
executeUpdate(30, '263', '2.6.3');
|
||||
} else if (startingVersion < 31) {
|
||||
startVersionUpgrade('264');
|
||||
executeUpdate(31, '264', '2.6.4');
|
||||
} else {
|
||||
installationFinished();
|
||||
}
|
||||
|
@ -117,6 +117,7 @@ hesk_dbConnect();
|
||||
<div class="col-md-8">
|
||||
<select name="current-version" class="form-control">
|
||||
<optgroup label="Mods for HESK 2">
|
||||
<option value="30">2.6.3</option>
|
||||
<option value="29">2.6.2</option>
|
||||
<option value="28">2.6.1</option>
|
||||
<option value="27">2.6.0</option>
|
||||
|
@ -814,6 +814,14 @@ function execute263Scripts() {
|
||||
updateVersion('2.6.3');
|
||||
}
|
||||
|
||||
// Version 2.6.4
|
||||
function execute264Scripts() {
|
||||
global $hesk_settings;
|
||||
hesk_dbConnect();
|
||||
|
||||
updateVersion('2.6.4');
|
||||
}
|
||||
|
||||
function execute270Scripts() {
|
||||
global $hesk_settings;
|
||||
hesk_dbConnect();
|
||||
|
Loading…
x
Reference in New Issue
Block a user