From 7e8764689fd4ba3cb1b195d76a6446e9db12080a Mon Sep 17 00:00:00 2001 From: Ulrich Block Date: Sun, 22 Dec 2013 22:47:29 +0100 Subject: [PATCH] 4.20 update --- web/install/update.php | 3 + web/install/update_411-420.php | 182 ++++++++++++++++++++++++++++----- web/stuff/init_admin.php | 4 +- 3 files changed, 163 insertions(+), 26 deletions(-) diff --git a/web/install/update.php b/web/install/update.php index a92abfe2..7206acd1 100644 --- a/web/install/update.php +++ b/web/install/update.php @@ -232,6 +232,9 @@ if (versioncheck ($version, '4.10', 'update_400-410.php', $response)) { if (versioncheck ($version, '4.11', 'update_410-411.php', $response)) { $version = '4.11'; } +if (versioncheck ($version, '4.20', 'update_411-420.php', $response)) { + $version = '4.20'; +} $response->add('Repairing tables if needed.'); diff --git a/web/install/update_411-420.php b/web/install/update_411-420.php index c57adaeb..1a2a03e2 100644 --- a/web/install/update_411-420.php +++ b/web/install/update_411-420.php @@ -40,43 +40,177 @@ if (isset($include) and $include == true) { $query = $sql->prepare("INSERT INTO `easywi_version` (`version`,`de`,`en`) VALUES -('4.11','
15.12.2013
-Leider haben sich in der 4.10 einige Fehler eingeschlichen. Dazu hat sie deutlich aufgezeigt, das viele Admins noch alte PHP Versionen nutzen und Easy-WI inkompatibel geworden ist.
-
-4.11 ist ein Hotfix Release, dass diese Probleme addressiert.
-
+('4.20','
22.12.2013
Änderungen:


Bugfixes:
-','
12.15.2013
-Unfortunately errors have slipped in 4.10. In addition the update revealed that there are still admins with old PHP versions around. Those admins could not login anymore since.
-
-4.11 is a hotfix release which addresses these problems.
-
+','
12.22.2013
Changes:


Bugfixes:
')"); $query->execute(); diff --git a/web/stuff/init_admin.php b/web/stuff/init_admin.php index f8c63ce6..13821510 100644 --- a/web/stuff/init_admin.php +++ b/web/stuff/init_admin.php @@ -54,9 +54,9 @@ $vserver_module = (is_numeric($licenceDetails['mVs']) and $licenceDetails['mVs'] $voserver_module = (is_numeric($licenceDetails['mVo']) and $licenceDetails['mVo'] == 0) ? false : true; $dediserver_module = (is_numeric($licenceDetails['mD']) and $licenceDetails['mD'] == 0) ? false : true; -$ewVersions['files'] = '4.11'; +$ewVersions['files'] = '4.20'; -$vcsprache = getlanguagefile('versioncheck',$user_language,$reseller_id); +$vcsprache = getlanguagefile('versioncheck', $user_language, $reseller_id); $query = $sql->prepare("SELECT `version` FROM `easywi_version` ORDER BY `id` DESC LIMIT 1"); $query->execute(); $ewVersions['cVersion'] = $query->fetchColumn();