Update installer
This commit is contained in:
parent
85861897a5
commit
262e0b5fc7
@ -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.6.7');
|
define('HESK_NEW_VERSION','2.6.7');
|
||||||
define('MODS_FOR_HESK_NEW_VERSION','2.6.2');
|
define('MODS_FOR_HESK_NEW_VERSION','2.6.3');
|
||||||
define('REQUIRE_PHP_VERSION','5.0.0');
|
define('REQUIRE_PHP_VERSION','5.0.0');
|
||||||
define('REQUIRE_MYSQL_VERSION','5.0.7');
|
define('REQUIRE_MYSQL_VERSION','5.0.7');
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@ if ($version == 2) {
|
|||||||
execute261Scripts();
|
execute261Scripts();
|
||||||
} elseif ($version == 29) {
|
} elseif ($version == 29) {
|
||||||
execute262Scripts();
|
execute262Scripts();
|
||||||
|
} elseif ($version == 30) {
|
||||||
|
execute263Scripts();
|
||||||
} 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;
|
||||||
|
@ -38,6 +38,7 @@ $buildToVersionMap = array(
|
|||||||
27 => '2.6.0',
|
27 => '2.6.0',
|
||||||
28 => '2.6.1',
|
28 => '2.6.1',
|
||||||
29 => '2.6.2',
|
29 => '2.6.2',
|
||||||
|
30 => '2.6.3',
|
||||||
);
|
);
|
||||||
|
|
||||||
function echoInitialVersionRows($version, $build_to_version_map)
|
function echoInitialVersionRows($version, $build_to_version_map)
|
||||||
|
@ -83,6 +83,9 @@ function processUpdates(startingVersion) {
|
|||||||
} else if (startingVersion < 29) {
|
} else if (startingVersion < 29) {
|
||||||
startVersionUpgrade('262');
|
startVersionUpgrade('262');
|
||||||
executeUpdate(29, '262', '2.6.2');
|
executeUpdate(29, '262', '2.6.2');
|
||||||
|
} else if (startingVersion < 30) {
|
||||||
|
startVersionUpgrade('263');
|
||||||
|
executeUpdate(30, '263', '2.6.3');
|
||||||
} 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="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>
|
||||||
<option value="26">2.5.5</option>
|
<option value="26">2.5.5</option>
|
||||||
|
@ -806,6 +806,14 @@ function execute262Scripts() {
|
|||||||
updateVersion('2.6.2');
|
updateVersion('2.6.2');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Version 2.6.3
|
||||||
|
function execute263Scripts() {
|
||||||
|
global $hesk_settings;
|
||||||
|
hesk_dbConnect();
|
||||||
|
|
||||||
|
updateVersion('2.6.3');
|
||||||
|
}
|
||||||
|
|
||||||
function execute270Scripts() {
|
function execute270Scripts() {
|
||||||
global $hesk_settings;
|
global $hesk_settings;
|
||||||
hesk_dbConnect();
|
hesk_dbConnect();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user