fix typo
This commit is contained in:
parent
5d464edb28
commit
876c524391
7 changed files with 23 additions and 17 deletions
|
@ -1,3 +1,9 @@
|
|||
httpPassword 1.5.1 - 2023.11.04
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
* Require PHP 8.1
|
||||
* Fix typo
|
||||
|
||||
httpPassword 1.5 - 2023.10.17
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# README
|
||||
|
||||
[![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)
|
||||
[![Release](https://img.shields.io/badge/release-1.5.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/httpPassword/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.10.04-c44d58.svg)
|
||||
[![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/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/httpPassword/src/branch/master/LICENSE)
|
||||
|
@ -16,7 +16,7 @@ _httpPassword_ is a plugin for the open-source web publishing software called [D
|
|||
|
||||
* Dotclear 2.28
|
||||
* PHP 8.1+
|
||||
* Write permissions on blogs directories
|
||||
* Dotclear write permissions on blogs directories
|
||||
|
||||
## USAGE
|
||||
|
||||
|
@ -31,7 +31,6 @@ Manage settings, last logins, authorized users from sidebar menu _Http password_
|
|||
* [Packages & details](https://git.dotclear.watch/JcDenis/httpPassword/releases) (or on [Dotaddict](https://plugins.dotaddict.org/dc2/details/httpPassword))
|
||||
* [Sources & contributions](https://git.dotclear.watch/JcDenis/httpPassword) (or on [GitHub](https://github.com/JcDenis/httpPassword))
|
||||
* [Issues & security](https://git.dotclear.watch/JcDenis/httpPassword/issues) (or on [GitHub](https://github.com/JcDenis/httpPassword/issues))
|
||||
* [Discuss & Help](http://forum.dotclear.org/viewtopic.php?pid=331158)
|
||||
|
||||
## CONTRIBUTORS
|
||||
|
||||
|
|
10
_define.php
10
_define.php
|
@ -18,13 +18,13 @@ $this->registerModule(
|
|||
'Http password',
|
||||
'Manage .htpasswd file to make the blog private',
|
||||
'Frederic PLE and contributors',
|
||||
'1.5',
|
||||
'1.5.1',
|
||||
[
|
||||
'requires' => [['core', '2.28']],
|
||||
'permissions' => 'My',
|
||||
'type' => 'plugin',
|
||||
'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',
|
||||
'type' => 'plugin',
|
||||
'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',
|
||||
]
|
||||
);
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="httpPassword">
|
||||
<name>Http password</name>
|
||||
<version>1.5</version>
|
||||
<version>1.5.1</version>
|
||||
<author>Frederic PLE and contributors</author>
|
||||
<desc>Manage .htpasswd file to make the blog private</desc>
|
||||
<file>https://git.dotclear.watch/JcDenis/httpPassword/releases/download/v1.5/plugin-httpPassword.zip</file>
|
||||
<file>https://git.dotclear.watch/JcDenis/httpPassword/releases/download/v1.5.1/plugin-httpPassword.zip</file>
|
||||
<da:dcmin>2.28</da:dcmin>
|
||||
<da:details>https://git.dotclear.watch/JcDenis/httpPassword/src/branch/master/README.md</da:details>
|
||||
<da:support>https://git.dotclear.watch/JcDenis/httpPassword/issues</da:support>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\httpPassword;
|
||||
|
|
|
@ -75,7 +75,7 @@ class Frontend extends Process
|
|||
while ($logs->fetch()) {
|
||||
$ids[] = is_numeric($logs->f('log_id')) ? (int) $logs->f('log_id') : 0;
|
||||
}
|
||||
$logs = App::log()->delLogs($ids);
|
||||
App::log()->delLogs($ids);
|
||||
}
|
||||
$cursor = App::log()->openLogCursor();
|
||||
$cursor->setField('log_table', My::id());
|
||||
|
|
|
@ -83,7 +83,7 @@ class Manage extends Process
|
|||
while ($logs->fetch()) {
|
||||
$ids[] = $logs->__get('log_id');
|
||||
}
|
||||
$logs = App::log()->delLogs($ids);
|
||||
App::log()->delLogs($ids);
|
||||
|
||||
Notices::addSuccessNotice(
|
||||
__('Logs successfully cleared.')
|
||||
|
@ -190,7 +190,7 @@ class Manage extends Process
|
|||
// message
|
||||
(new Para())->items([
|
||||
(new Label(__('Authentication message:')))->for('message'),
|
||||
(new Input('message'))->size(60)->maxlenght(255)->value(Utils::httpMessage()),
|
||||
(new Input('message'))->size(60)->maxlength(255)->value(Utils::httpMessage()),
|
||||
]),
|
||||
(new Div())->class('clear')->items([
|
||||
(new Submit(['save']))->value(__('Save')),
|
||||
|
@ -255,7 +255,7 @@ class Manage extends Process
|
|||
Html::escapeHTML($login) .
|
||||
'</td>' .
|
||||
'<td class="nowrap">' .
|
||||
(new Input(['newpassword[' . Html::escapeHTML($login) . ']']))->size(60)->maxlenght(255)->render() .
|
||||
(new Input(['newpassword[' . Html::escapeHTML($login) . ']']))->size(60)->maxlength(255)->render() .
|
||||
'</td>' .
|
||||
'<td class="nowrap">' .
|
||||
(new Submit(['edit[' . Html::escapeHTML($login) . ']']))->value(__('Change password'))->render() .
|
||||
|
@ -292,12 +292,12 @@ class Manage extends Process
|
|||
// login
|
||||
(new Para())->items([
|
||||
(new Label(__('Login:')))->for('login'),
|
||||
(new Input('login'))->size(60)->maxlenght(255),
|
||||
(new Input('login'))->size(60)->maxlength(255),
|
||||
]),
|
||||
// password
|
||||
(new Para())->items([
|
||||
(new Label(__('Password:')))->for('password'),
|
||||
(new Input('password'))->size(60)->maxlenght(255),
|
||||
(new Input('password'))->size(60)->maxlength(255),
|
||||
]),
|
||||
(new Para())->items([
|
||||
(new Submit(['add']))->value(__('Save')),
|
||||
|
|
Loading…
Reference in a new issue