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:
@@ -539,7 +539,7 @@ INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES
|
||||
('panel', 'password_numeric', '0'),
|
||||
('panel', 'password_special_char_required', '0'),
|
||||
('panel', 'password_special_char', '!?<>§$%+#=@'),
|
||||
('panel', 'version', '0.9.34-dev2');
|
||||
('panel', 'version', '0.9.34-dev3');
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS `panel_tasks`;
|
||||
|
||||
@@ -903,6 +903,16 @@ class FroxlorInstall {
|
||||
$content .= $this->_status_message('green', $this->_lng['requirements']['installed']);
|
||||
}
|
||||
|
||||
// check for bstring-extension
|
||||
$content .= $this->_status_message('begin', $this->_lng['requirements']['phpmbstring']);
|
||||
|
||||
if (!extension_loaded('mbstring')) {
|
||||
$content .= $this->_status_message('red', $this->_lng['requirements']['notinstalled']);
|
||||
$_die = true;
|
||||
} else {
|
||||
$content .= $this->_status_message('green', $this->_lng['requirements']['installed']);
|
||||
}
|
||||
|
||||
// check for bcmath extension
|
||||
$content .= $this->_status_message('begin', $this->_lng['requirements']['phpbcmath']);
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ $lng['requirements']['phpfilter'] = 'PHP filter-extension...';
|
||||
$lng['requirements']['phpposix'] = 'PHP posix-extension...';
|
||||
$lng['requirements']['phpbcmath'] = 'PHP bcmath-extension...';
|
||||
$lng['requirements']['phpcurl'] = 'PHP curl-extension...';
|
||||
$lng['requirements']['phpmbstring'] = 'PHP mbstring-extension...';
|
||||
$lng['requirements']['bcmathdescription'] = 'Traffic-calculation related functions will not work correctly!';
|
||||
$lng['requirements']['curldescription'] = 'Version-check and news-feed may not work correctly!';
|
||||
$lng['requirements']['openbasedir'] = 'open_basedir...';
|
||||
|
||||
@@ -32,6 +32,7 @@ $lng['requirements']['phpfilter'] = 'extension PHP filter ...';
|
||||
$lng['requirements']['phpposix'] = 'extension PHP posix ...';
|
||||
$lng['requirements']['phpbcmath'] = 'extension PHP bcmath ...';
|
||||
$lng['requirements']['phpcurl'] = 'extension PHP curl...';
|
||||
$lng['requirements']['phpmbstring'] = 'extension PHP mbstring...';
|
||||
$lng['requirements']['bcmathdescription'] = 'Les fonctions de calcul de traffic ne fonctionneront pas correctement!';
|
||||
$lng['requirements']['curldescription'] = 'Les vérifications de version et les flux d\'information peuvent ne pas fonctionner correctement!';
|
||||
$lng['requirements']['openbasedir'] = 'open_basedir...';
|
||||
|
||||
@@ -32,6 +32,7 @@ $lng['requirements']['phpfilter'] = 'PHP filter-Erweiterung...';
|
||||
$lng['requirements']['phpposix'] = 'PHP posix-Erweiterung...';
|
||||
$lng['requirements']['phpbcmath'] = 'PHP bcmath-Erweiterung...';
|
||||
$lng['requirements']['phpcurl'] = 'PHP curl-Erweiterung...';
|
||||
$lng['requirements']['phpmbstring'] = 'PHP mbstring-Erweiterung...';
|
||||
$lng['requirements']['bcmathdescription'] = 'Traffic-Berechnungs bezogene Funktionen stehen nicht vollständig zur Verfügung!';
|
||||
$lng['requirements']['curldescription'] = 'Versions-Prüfung und News-Feed stehen nicht vollständig zur Verfügung!';
|
||||
$lng['requirements']['openbasedir'] = 'open_basedir genutzt wird...';
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -686,4 +686,18 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version) {
|
||||
$question.= makeyesno('system_send_cron_errors', '1', '0', '0').'<br />';
|
||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
||||
}
|
||||
|
||||
if (versionInUpdate($current_version, '0.9.34-dev3')) {
|
||||
$has_preconfig = true;
|
||||
$description = 'Froxlor now requires the PHP mbstring-extension as we need to be multibyte-character safe in some cases';
|
||||
$question = '<strong>PHP mbstring</strong> is currently: ';
|
||||
if (!extension_loaded('mbstring')) {
|
||||
$question .= '<span class="red">not installed/loaded</span>';
|
||||
$question .= '<br>Please install the PHP mbstring extension in order to finish the update';
|
||||
} else {
|
||||
$question .= '<span class="green">installed/loaded</span>';
|
||||
}
|
||||
$question .= '<br>';
|
||||
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user