Update installer
This commit is contained in:
parent
9bffcfdf6a
commit
c60d2ed866
@ -16,7 +16,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.3');
|
define('HESK_NEW_VERSION','2.7.3');
|
||||||
define('MODS_FOR_HESK_NEW_VERSION','3.1.0');
|
define('MODS_FOR_HESK_NEW_VERSION','3.1.1');
|
||||||
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');
|
||||||
|
|
||||||
|
@ -90,6 +90,8 @@ if ($version == 2) {
|
|||||||
execute307Scripts();
|
execute307Scripts();
|
||||||
} elseif ($version == 42) {
|
} elseif ($version == 42) {
|
||||||
execute310Scripts();
|
execute310Scripts();
|
||||||
|
} elseif ($version == 43) {
|
||||||
|
execute311Scripts();
|
||||||
} 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;
|
||||||
|
@ -51,6 +51,7 @@ $buildToVersionMap = array(
|
|||||||
40 => '3.0.6',
|
40 => '3.0.6',
|
||||||
41 => '3.0.7',
|
41 => '3.0.7',
|
||||||
42 => '3.1.0',
|
42 => '3.1.0',
|
||||||
|
43 => '3.1.1',
|
||||||
);
|
);
|
||||||
|
|
||||||
function echoInitialVersionRows($version, $build_to_version_map)
|
function echoInitialVersionRows($version, $build_to_version_map)
|
||||||
|
@ -122,6 +122,9 @@ function processUpdates(startingVersion) {
|
|||||||
} else if (startingVersion < 42) {
|
} else if (startingVersion < 42) {
|
||||||
startVersionUpgrade('310');
|
startVersionUpgrade('310');
|
||||||
executeUpdate(42, '310', '3.1.0');
|
executeUpdate(42, '310', '3.1.0');
|
||||||
|
} else if (startingVersion < 43) {
|
||||||
|
startVersionUpgrade('311');
|
||||||
|
executeUpdate(43, '311', '3.1.1');
|
||||||
} else {
|
} else {
|
||||||
installationFinished();
|
installationFinished();
|
||||||
}
|
}
|
||||||
|
@ -118,6 +118,7 @@ hesk_dbConnect();
|
|||||||
<select name="current-version" class="form-control">
|
<select name="current-version" class="form-control">
|
||||||
<option disabled>Select One, or "No Previous Installation" Below</option>
|
<option disabled>Select One, or "No Previous Installation" Below</option>
|
||||||
<optgroup label="Mods for HESK 3">
|
<optgroup label="Mods for HESK 3">
|
||||||
|
<option value="42">3.1.0</option>
|
||||||
<option value="41">3.0.7</option>
|
<option value="41">3.0.7</option>
|
||||||
<option value="40">3.0.6</option>
|
<option value="40">3.0.6</option>
|
||||||
<option value="39">3.0.5</option>
|
<option value="39">3.0.5</option>
|
||||||
|
@ -1124,3 +1124,10 @@ function execute310Scripts() {
|
|||||||
|
|
||||||
updateVersion('3.1.0');
|
updateVersion('3.1.0');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function execute311Scripts() {
|
||||||
|
global $hesk_settings;
|
||||||
|
hesk_dbConnect();
|
||||||
|
|
||||||
|
updateVersion('3.1.1');
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user