Update installer

This commit is contained in:
Mike Koch 2017-08-12 21:57:41 -04:00
parent 9bffcfdf6a
commit c60d2ed866
6 changed files with 15 additions and 1 deletions

View File

@ -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');

View File

@ -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;

View File

@ -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)

View File

@ -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();
} }

View File

@ -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>

View File

@ -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');
}