Update installer
This commit is contained in:
parent
10c7f00881
commit
d90d09b9ce
@ -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.7.2');
|
define('HESK_NEW_VERSION','2.7.2');
|
||||||
define('MODS_FOR_HESK_NEW_VERSION','3.0.4');
|
define('MODS_FOR_HESK_NEW_VERSION','3.0.5');
|
||||||
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');
|
||||||
|
|
||||||
|
@ -82,6 +82,8 @@ if ($version == 2) {
|
|||||||
execute303Scripts();
|
execute303Scripts();
|
||||||
} elseif ($version == 38) {
|
} elseif ($version == 38) {
|
||||||
execute304Scripts();
|
execute304Scripts();
|
||||||
|
} elseif ($version == 39) {
|
||||||
|
execute305Scripts();
|
||||||
} 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;
|
||||||
|
@ -47,6 +47,7 @@ $buildToVersionMap = array(
|
|||||||
36 => '3.0.2',
|
36 => '3.0.2',
|
||||||
37 => '3.0.3',
|
37 => '3.0.3',
|
||||||
38 => '3.0.4',
|
38 => '3.0.4',
|
||||||
|
39 => '3.0.5',
|
||||||
);
|
);
|
||||||
|
|
||||||
function echoInitialVersionRows($version, $build_to_version_map)
|
function echoInitialVersionRows($version, $build_to_version_map)
|
||||||
|
@ -110,6 +110,9 @@ function processUpdates(startingVersion) {
|
|||||||
} else if (startingVersion < 38) {
|
} else if (startingVersion < 38) {
|
||||||
startVersionUpgrade('304');
|
startVersionUpgrade('304');
|
||||||
executeUpdate(38, '304', '3.0.4');
|
executeUpdate(38, '304', '3.0.4');
|
||||||
|
} else if (startingVersion < 39) {
|
||||||
|
startVersionUpgrade('305');
|
||||||
|
executeUpdate(39, '305', '3.0.5');
|
||||||
} 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="38">3.0.4</option>
|
||||||
<option value="37">3.0.3</option>
|
<option value="37">3.0.3</option>
|
||||||
<option value="36">3.0.2</option>
|
<option value="36">3.0.2</option>
|
||||||
<option value="35">3.0.1</option>
|
<option value="35">3.0.1</option>
|
||||||
|
@ -966,3 +966,10 @@ function execute304Scripts() {
|
|||||||
|
|
||||||
updateVersion('3.0.4');
|
updateVersion('3.0.4');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function execute305Scripts() {
|
||||||
|
global $hesk_settings;
|
||||||
|
hesk_dbConnect();
|
||||||
|
|
||||||
|
updateVersion('3.0.5');
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user