add requirement for mbstring-extension as we need to be multibyte-character-safe in generatePassword(); adjust special-character-default setting to be the same as on a fresh install; outsource version-definition to separate file; set version to 0.9.34-dev3

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-02-23 12:23:44 +01:00
parent e132723475
commit fe718ef67f
11 changed files with 116 additions and 30 deletions

View File

@@ -2887,9 +2887,9 @@ if (isFroxlorVersion('0.9.33-rc2')) {
if (isFroxlorVersion('0.9.33-rc3')) {
showUpdateStep("Updating from 0.9.33-rc3 to 0.9.33 final");
lastStepStatus(0);
updateToVersion('0.9.33');
showUpdateStep("Updating from 0.9.33-rc3 to 0.9.33 final");
lastStepStatus(0);
updateToVersion('0.9.33');
}
@@ -2903,7 +2903,7 @@ if (isFroxlorVersion('0.9.33')) {
if (isFroxlorVersion('0.9.33.1')) {
showUpdateStep("Updating from 0.9.33.1 to 0.9.34-dev1");
showUpdateStep("Updating from 0.9.33.1 to 0.9.34-dev1", false);
showUpdateStep("Updating table structure of domains");
Database::query("ALTER TABLE `".TABLE_PANEL_DOMAINS."` MODIFY `parentdomainid` int(11) NOT NULL default '0'");
@@ -2940,7 +2940,7 @@ if (isFroxlorVersion('0.9.33.1')) {
if (isFroxlorVersion('0.9.34-dev1')) {
showUpdateStep("Updating from 0.9.34-dev1 to 0.9.34-dev2");
showUpdateStep("Updating from 0.9.34-dev1 to 0.9.34-dev2", false);
showUpdateStep("Adding new settings for apache-itk-mpm");
Settings::AddNew("system.apacheitksupport", '0');
@@ -2956,3 +2956,21 @@ if (isFroxlorVersion('0.9.34-dev1')) {
updateToVersion('0.9.34-dev2');
}
if (isFroxlorVersion('0.9.34-dev2')) {
showUpdateStep("Updating from 0.9.34-dev2 to 0.9.34-dev3", false);
$do_update = true;
showUpdateStep("Checking for required PHP mbstring-extension");
if (!extension_loaded('mbstring')) {
$do_update = false;
lastStepStatus(2, 'not installed');
} else {
lastStepStatus(0);
}
if ($do_update) {
updateToVersion('0.9.34-dev3');
}
}