diff --git a/CHANGES.md b/CHANGES.md index 74f586fa..aefab1b5 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,12 @@ - Gestion des module dans l'interface d'administration. - à compléter.. +## version 10.4.04 +- Correction : + - Module Blog : balise non fermée dans les commentaires. +- Modifications : + -Constantes de modules. + ## version 10.4.03 - Corrections : - En-tête html : absence de la langue. diff --git a/README.md b/README.md index 487b18c0..7a84065d 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# ZwiiCMS 10.4.03 +# ZwiiCMS 10.4.04 Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation. diff --git a/module/blog/blog.php b/module/blog/blog.php index c9307f7c..86d5f64d 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -15,6 +15,14 @@ class blog extends common { + const VERSION = '4.4'; + const REALNAME = 'Blog'; + const DELETE = true; + const UPDATE = true; + const DATADIRECTORY = [ + 'fr/module.json' + ]; + const EDIT_OWNER = 'owner'; const EDIT_GROUP = 'group'; const EDIT_ALL = 'all'; @@ -88,9 +96,6 @@ class blog extends common { public static $users = []; - const VERSION = '4.3'; - const REALNAME = 'Blog'; - /** * Flux RSS */ diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index 6706ffa4..aa19fe55 100755 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -144,6 +144,7 @@ ? strftime('%d %B %Y - %H:%M', $comment['createdOn']) : utf8_encode(strftime('%d %B %Y - %H:%M', $comment['createdOn'])); ?> + diff --git a/module/form/form.php b/module/form/form.php index f8fea92a..282f4ce7 100755 --- a/module/form/form.php +++ b/module/form/form.php @@ -16,6 +16,14 @@ class form extends common { + const VERSION = '2.8'; + const REALNAME = 'Formulaire'; + const DELETE = true; + const UPDATE = true; + const DATADIRECTORY = [ + 'fr/module.json' + ]; + public static $actions = [ 'config' => self::GROUP_MODERATOR, 'data' => self::GROUP_MODERATOR, @@ -32,8 +40,6 @@ class form extends common { public static $pagination; - const VERSION = '2.7'; - const REALNAME = 'Formulaire'; // Objets const TYPE_MAIL = 'mail'; diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index a99b62db..e8a2c7f3 100755 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -16,12 +16,19 @@ class gallery extends common { + + const VERSION = '2.6'; + const REALNAME = 'Galerie'; + const DELETE = true; + const UPDATE = true; + const DATADIRECTORY = [ + 'fr/module.json' + ]; + const SORT_ASC = 'SORT_ASC'; const SORT_DSC = 'SORT_DSC'; const SORT_HAND = 'SORT_HAND'; - const VERSION = '2.5'; - const REALNAME = 'Galerie'; public static $directories = []; diff --git a/module/news/news.php b/module/news/news.php index c31aaeb3..63be7158 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -15,6 +15,14 @@ class news extends common { + const VERSION = '2.1'; + const REALNAME = 'Actualités'; + const DELETE = true; + const UPDATE = true; + const DATADIRECTORY = [ + 'fr/module.json' + ]; + public static $actions = [ 'add' => self::GROUP_MODERATOR, 'config' => self::GROUP_MODERATOR, diff --git a/module/redirection/redirection.php b/module/redirection/redirection.php index 6ff54002..4cb55900 100755 --- a/module/redirection/redirection.php +++ b/module/redirection/redirection.php @@ -15,13 +15,19 @@ class redirection extends common { + const VERSION = '1.5'; + const REALNAME = 'Redirection'; + const DELETE = true; + const UPDATE = true; + const DATADIRECTORY = [ + 'fr/module.json' + ]; + public static $actions = [ 'config' => self::GROUP_MODERATOR, 'index' => self::GROUP_VISITOR ]; - const VERSION = '1.4'; - const REALNAME = 'Redirection'; /** * Configuration diff --git a/module/search/search.php b/module/search/search.php index fb1d22c7..74c5d46e 100755 --- a/module/search/search.php +++ b/module/search/search.php @@ -18,6 +18,14 @@ class search extends common { + const VERSION = '1.3'; + const REALNAME = 'Recherche'; + const DELETE = true; + const UPDATE = true; + const DATADIRECTORY = [ + 'fr/module.json' + ]; + public static $actions = [ 'index' => self::GROUP_VISITOR, 'config' => self::GROUP_MODERATOR @@ -38,8 +46,6 @@ class search extends common { 400 => '400 caractères', ]; - const VERSION = '1.2'; - const REALNAME = 'Recherche'; // Configuration vide public function config() {