From 1fb106723fbc234c1eb2d27672f0118995e4e9a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Mage?= Date: Sun, 14 Mar 2021 22:46:33 +0100 Subject: [PATCH] Version 1.5 Final --- docs/changelog.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ include/update.php | 4 ++-- xoops_version.php | 6 +++--- 3 files changed, 47 insertions(+), 5 deletions(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 0d616cc..26eb787 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -1,4 +1,46 @@ ------------------------------------------------- +Version: 1.5 Final +Date: 14.03.2021 +------------------------------------------------- +Bug fixes: + - The search ignored permissions. + - Tempaltes encoding problem. + - Fixed an error with xmdoc. + - Fixed an error with the content filter (admin). + +Improvements: + - Code optimization. + - Better integration of XMF. + - Added modification permission. + - The content is now editable from the user part. + - PHP8 compatibility. + - Integration of xmsocial to rate content and add social media. + - We can now include a page in another page. + +Security: + - Users who had the rights to edit content could change the permissions. + Now only those who have the right to administer the module can do it. + +Correction de bogues: + - La recherche ne tenait pas compte des permissions. + - Problème d'encodage des tempaltes. + - Correction d'une eerreur avec xmdoc. + - Correction d'une erreur avec le filtre de contenu (admin). + +Améliorations: + - Optimisation du code. + - Meilleure intégration de XMF. + - Ajout d'une permission de modifiaction. + - Le contenu est maintenant modifiable depuis la partie user. + - Compatibilité PHP8. + - Intégration de xmsocial pour noter les contenus et ajouter des médias sociaux. + - On peut maintenant inclure une page dans une autre page. + +Sécurités: + - Les utilisateurs qui avaient les droits pour éditer un contenu pouvaient changer les permissions. + Maintenant seul ceux qui ont le droit d'administration du module peuvent le faire. + +------------------------------------------------- Version: 1.0 Final Date: 10.05.2020 ------------------------------------------------- diff --git a/include/update.php b/include/update.php index dcf8314..1913b9a 100644 --- a/include/update.php +++ b/include/update.php @@ -82,8 +82,8 @@ function xoops_module_update_xmcontent(XoopsModule $module, $previousVersion = n $sql = "ALTER TABLE `" . $db->prefix('xmcontent_content') . "` ADD `content_logo` varchar(50) NOT NULL DEFAULT '';"; $db->query($sql); } - // Passage de la version 1.0 à 1.1 - if ($previousVersion <= 100) { + // Passage de la version 1.0 à 1.5 + if ($previousVersion <= 110) { $db = XoopsDatabaseFactory::getDatabaseConnection(); $sql = "ALTER TABLE `" . $db->prefix('xmcontent_content') . "` ADD `content_rating` double(6,4) NOT NULL DEFAULT '0.0000' AFTER `content_template`;"; $db->query($sql); diff --git a/xoops_version.php b/xoops_version.php index a8bcd9b..5e443f2 100644 --- a/xoops_version.php +++ b/xoops_version.php @@ -19,7 +19,7 @@ $modversion['dirname'] = basename(__DIR__); $modversion['name'] = ucfirst(basename(__DIR__)); -$modversion['version'] = '1.1'; +$modversion['version'] = '1.5'; $modversion['description'] = _MI_XMCONTENT_DESC; $modversion['credits'] = 'G. Mage'; $modversion['author'] = 'G. Mage'; @@ -34,10 +34,10 @@ $modversion['help'] = 'page=help'; //about -$modversion['release_date'] = '2020/00/00'; +$modversion['release_date'] = '2021/03/14'; $modversion['module_website_url'] = 'www.monxoops.fr/'; $modversion['module_website_name'] = 'MonXoops'; -$modversion['module_status'] = 'Alpha 1'; +$modversion['module_status'] = 'Final'; $modversion['min_php'] = '5.6'; $modversion['min_xoops'] = '2.5.10'; $modversion['min_db'] = array('mysql' => '5.0.7', 'mysqli' => '5.0.7');