From 5e68594f22a8728d0c00eefe87c8c26c0d0a4def Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 13 Aug 2023 00:16:19 +0200 Subject: [PATCH] release 1.4 --- CHANGELOG.md | 108 ++++++++++++++++++++++++++++++--------------------- README.md | 33 ++++++++-------- _define.php | 15 ++++--- dcstore.xml | 10 ++--- 4 files changed, 92 insertions(+), 74 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a890e3d..6f0744d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,59 +1,79 @@ -1.3 - 2023.05.13 -- require dotclear 2.26 -- fix type hint and nullsafe warnings +httpPassword 1.4 - 2023.08.12 +=========================================================== +* Require Dotclear 2.27 +* Require PHP 7.4+ +* Upgrade to Dotclear 2.27 +* Remove custom permission, only admin can handle httpPassword +* Move third party repository +* Use Dotclear style for CHANGELOG -1.2 - 2023.04.22 -- require dotclear 2.26 -- add plugin Uninstaller features -- use latest dotclear namespace -- fix static init -- fix permission -- code doc and review +httpPassword 1.3 - 2023.05.13 +=========================================================== +* require dotclear 2.26 +* fix type hint and nullsafe warnings -1.1 - 2023.03.25 -- require dotclear 2.26 -- use namespace +httpPassword 1.2 - 2023.04.22 +=========================================================== +* require dotclear 2.26 +* add plugin Uninstaller features +* use latest dotclear namespace +* fix static init +* fix permission +* code doc and review -1.0 - 2022.12.30 -- update to dotclear 2.24 -- change settings names -- remove debug mode -- use dcLog table for last logins +httpPassword 1.1 - 2023.03.25 +=========================================================== +* require dotclear 2.26 +* use namespace -0.5.10 -- fix typo -- fix for PHP 5.3 compliance +httpPassword 1.0 - 2022.12.30 +=========================================================== +* update to dotclear 2.24 +* change settings names +* remove debug mode +* use dcLog table for last logins -0.5.9 -- fix bug in history page (PHP errors when history was empty) -- add page "debug" in plugin page in order to get infos about hosting setup (when plugins fails to authenticate users) +httpPassword 0.5.10 +=========================================================== +* fix typo +* fix for PHP 5.3 compliance -0.5 -- deep rewrite : HTTP auth is not directly handled by apache anymore but by a dotclear behavior -- add support of multiblog installation (thanks to Stephanie "piloue" and Gabriel for being so patient and their helpfull tests) -- add support PHP running as CGI (tested with OVH hosting services) -- auto-detect crypt functions available and let user choose it -- HTTP auth is not required in order to access to blog admin -- plugin admin page with tabs -- plugin imported to dotclear lab +httpPassword 0.5.9 +=========================================================== +* fix bug in history page (PHP errors when history was empty) +* add page "debug" in plugin page in order to get infos about hosting setup (when plugins fails to authenticate users) + +httpPassword 0.5 +=========================================================== +* deep rewrite : HTTP auth is not directly handled by apache anymore but by a dotclear behavior +* add support of multiblog installation (thanks to Stephanie "piloue" and Gabriel for being so patient and their helpfull tests) +* add support PHP running as CGI (tested with OVH hosting services) +* auto-detect crypt functions available and let user choose it +* HTTP auth is not required in order to access to blog admin +* plugin admin page with tabs +* plugin imported to dotclear lab Known issues : This plugin does not protect non-php files (images, css, js) -0.4 -- check filepermission when running -- add free.fr support +httpPassword 0.4 +=========================================================== +* check filepermission when running +* add free.fr support -0.3 -- add last connection tracker +httpPassword 0.3 +=========================================================== +* add last connection tracker -0.2 - 2008.11.22 -- _install.php added -- password crypt function setting added -- password crypt function can be choose within trim, crypt, md5, sha1 -- remonte crypt function added as rcrypt rmd5 and rsha1 : crypt function +httpPassword 0.2 - 2008.11.22 +=========================================================== +* _install.php added +* password crypt function setting added +* password crypt function can be choose within trim, crypt, md5, sha1 +* remonte crypt function added as rcrypt rmd5 and rsha1 : crypt function is called over http://frederic.ple.name/.... This feature can ensure plugin running on php restricted environment (ex: OVH.COM) -0.1 : 2008-11-17 -- INITIAL public release +httpPassword 0.1 : 2008-11-17 +=========================================================== +* INITIAL public release diff --git a/README.md b/README.md index ab0ca08..ce93924 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # README -[![Release](https://img.shields.io/github/v/release/JcDenis/httpPassword)](https://github.com/JcDenis/httpPassword/releases) -[![Date](https://img.shields.io/github/release-date/JcDenis/httpPassword)](https://github.com/JcDenis/httpPassword/releases) -[![Issues](https://img.shields.io/github/issues/JcDenis/httpPassword)](https://github.com/JcDenis/httpPassword/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.26-blue.svg)](https://fr.dotclear.org/download) -[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/httpPassword) -[![License](https://img.shields.io/github/license/JcDenis/httpPassword)](https://github.com/JcDenis/httpPassword/blob/master/LICENSE) +[![Release](https://img.shields.io/badge/release-1.4-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/httpPassword/releases) +[![Date](https://img.shields.io/badge/date-2023.08.12-c44d58.svg)](https://git.dotclear.watch/JcDenis/httpPassword/releases) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-137bbb.svg)](https://fr.dotclear.org/download) +[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/httpPassword) +[![License](https://img.shields.io/github/license/JcDenis/httpPassword)](https://git.dotclear.watch/JcDenis/httpPassword/blob/master/LICENSE) ## WHAT IS HTTPPASSWORD ? @@ -16,11 +15,11 @@ Its helps to manage .httppassword files to make a blog private. ## REQUIREMENTS - _httpPassword_ requires: +_httpPassword_ requires: - * httpPassword permission to configure - * Dotclear 2.26 - * Write permissions on blogs directories +* Dotclear 2.27 +* PHP 7.4+ +* Write permissions on blogs directories ## USAGE @@ -31,14 +30,14 @@ Manage settings, last logins, authorized users from sidebar menu _Http password_ ## LINKS - * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) - * Source & contribution : [GitHub Page](https://github.com/JcDenis/kUtRL) - * Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/kUtRL) - * Discussion & Help: [Dotclear Forum](http://forum.dotclear.org/viewtopic.php?pid=331158) +* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) +* Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/httpPassword) or [GitHub Page](https://github.com/JcDenis/httpPassword) +* Packages & details: [Gitea Page](https://git.dotclear.watch/JcDenis/httpPassword/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/httpPassword) +* Discussion & Help: [Dotclear Forum](http://forum.dotclear.org/viewtopic.php?pid=331158) ## CONTRIBUTORS - * Frederic PLE (author) - * Jean-Christian Denis +* Frederic PLE (author) +* Jean-Christian Denis - You are welcome to contribute to this code. +You are welcome to contribute to this code. diff --git a/_define.php b/_define.php index b691007..03d324b 100644 --- a/_define.php +++ b/_define.php @@ -10,7 +10,7 @@ * @copyright Jean-Christian Denis * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html */ -if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) { +if (!defined('DC_RC_PATH')) { return null; } @@ -18,16 +18,15 @@ $this->registerModule( 'Http password', 'Manage .htpasswd file to make the blog private', 'Frederic PLE and contributors', - '1.3', + '1.4', [ - 'requires' => [['core', '2.26']], + 'requires' => [['core', '2.27']], 'permissions' => dcCore::app()->auth->makePermissions([ - dcCore::app()->auth::PERMISSION_USAGE, - initHttpPassword::PERMISSION, + dcCore::app()->auth::PERMISSION_ADMIN, ]), 'type' => 'plugin', - 'support' => 'https://github.com/JcDenis/' . basename(__DIR__), - 'details' => 'http://plugins.dotaddict.org/dc2/details/' . basename(__DIR__), - 'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml', + 'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues', + 'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md', + 'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml', ] ); diff --git a/dcstore.xml b/dcstore.xml index b5f4d88..bda8182 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,12 +2,12 @@ Http password - 1.3 + 1.4 Frederic PLE and contributors Manage .htpasswd file to make the blog private - https://github.com/JcDenis/httpPassword/releases/download/v1.3/plugin-httpPassword.zip - 2.26 - http://plugins.dotaddict.org/dc2/details/httpPassword - https://github.com/JcDenis/httpPassword + https://git.dotclear.watch/JcDenis/httpPassword/releases/download/v1.4/plugin-httpPassword.zip + 2.27 + https://git.dotclear.watch/JcDenis/httpPassword/src/branch/master/README.md + https://git.dotclear.watch/JcDenis/httpPassword/issues