Update installer
This commit is contained in:
parent
e0e748c5d8
commit
84e560e6ba
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Define the current build
|
// 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:
|
// We will be installing this HESK version:
|
||||||
define('HESK_NEW_VERSION','2.6.7');
|
define('HESK_NEW_VERSION','2.6.7');
|
||||||
define('MODS_FOR_HESK_NEW_VERSION','2.6.3');
|
define('MODS_FOR_HESK_NEW_VERSION','2.6.4');
|
||||||
define('REQUIRE_PHP_VERSION','5.0.0');
|
define('REQUIRE_PHP_VERSION','5.3.0');
|
||||||
define('REQUIRE_MYSQL_VERSION','5.0.7');
|
define('REQUIRE_MYSQL_VERSION','5.0.7');
|
||||||
|
|
||||||
// Other required files and settings
|
// Other required files and settings
|
||||||
|
@ -66,6 +66,8 @@ if ($version == 2) {
|
|||||||
execute262Scripts();
|
execute262Scripts();
|
||||||
} elseif ($version == 30) {
|
} elseif ($version == 30) {
|
||||||
execute263Scripts();
|
execute263Scripts();
|
||||||
|
} elseif ($version == 31) {
|
||||||
|
execute264Scripts();
|
||||||
} 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;
|
||||||
|
@ -39,6 +39,7 @@ $buildToVersionMap = array(
|
|||||||
28 => '2.6.1',
|
28 => '2.6.1',
|
||||||
29 => '2.6.2',
|
29 => '2.6.2',
|
||||||
30 => '2.6.3',
|
30 => '2.6.3',
|
||||||
|
31 => '2.6.4',
|
||||||
);
|
);
|
||||||
|
|
||||||
function echoInitialVersionRows($version, $build_to_version_map)
|
function echoInitialVersionRows($version, $build_to_version_map)
|
||||||
|
@ -86,6 +86,9 @@ function processUpdates(startingVersion) {
|
|||||||
} else if (startingVersion < 30) {
|
} else if (startingVersion < 30) {
|
||||||
startVersionUpgrade('263');
|
startVersionUpgrade('263');
|
||||||
executeUpdate(30, '263', '2.6.3');
|
executeUpdate(30, '263', '2.6.3');
|
||||||
|
} else if (startingVersion < 31) {
|
||||||
|
startVersionUpgrade('264');
|
||||||
|
executeUpdate(31, '264', '2.6.4');
|
||||||
} else {
|
} else {
|
||||||
installationFinished();
|
installationFinished();
|
||||||
}
|
}
|
||||||
|
@ -117,6 +117,7 @@ hesk_dbConnect();
|
|||||||
<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 2">
|
<optgroup label="Mods for HESK 2">
|
||||||
|
<option value="30">2.6.3</option>
|
||||||
<option value="29">2.6.2</option>
|
<option value="29">2.6.2</option>
|
||||||
<option value="28">2.6.1</option>
|
<option value="28">2.6.1</option>
|
||||||
<option value="27">2.6.0</option>
|
<option value="27">2.6.0</option>
|
||||||
|
@ -814,6 +814,14 @@ function execute263Scripts() {
|
|||||||
updateVersion('2.6.3');
|
updateVersion('2.6.3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Version 2.6.4
|
||||||
|
function execute264Scripts() {
|
||||||
|
global $hesk_settings;
|
||||||
|
hesk_dbConnect();
|
||||||
|
|
||||||
|
updateVersion('2.6.4');
|
||||||
|
}
|
||||||
|
|
||||||
function execute270Scripts() {
|
function execute270Scripts() {
|
||||||
global $hesk_settings;
|
global $hesk_settings;
|
||||||
hesk_dbConnect();
|
hesk_dbConnect();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user