fix typo
This commit is contained in:
parent
5d464edb28
commit
876c524391
@ -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
|
httpPassword 1.5 - 2023.10.17
|
||||||
===========================================================
|
===========================================================
|
||||||
* Require Dotclear 2.28
|
* Require Dotclear 2.28
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# README
|
# README
|
||||||
|
|
||||||
[![Release](https://img.shields.io/badge/release-1.4-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/httpPassword/releases)
|
[![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.08.12-c44d58.svg)
|
![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)
|
[![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)
|
[![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)
|
[![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
|
* Dotclear 2.28
|
||||||
* PHP 8.1+
|
* PHP 8.1+
|
||||||
* Write permissions on blogs directories
|
* Dotclear write permissions on blogs directories
|
||||||
|
|
||||||
## USAGE
|
## 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))
|
* [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))
|
* [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))
|
* [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
|
## CONTRIBUTORS
|
||||||
|
|
||||||
|
10
_define.php
10
_define.php
@ -18,13 +18,13 @@ $this->registerModule(
|
|||||||
'Http password',
|
'Http password',
|
||||||
'Manage .htpasswd file to make the blog private',
|
'Manage .htpasswd file to make the blog private',
|
||||||
'Frederic PLE and contributors',
|
'Frederic PLE and contributors',
|
||||||
'1.5',
|
'1.5.1',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.28']],
|
'requires' => [['core', '2.28']],
|
||||||
'permissions' => 'My',
|
'permissions' => 'My',
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
|
'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
|
||||||
'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
|
'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',
|
'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="httpPassword">
|
<module id="httpPassword">
|
||||||
<name>Http password</name>
|
<name>Http password</name>
|
||||||
<version>1.5</version>
|
<version>1.5.1</version>
|
||||||
<author>Frederic PLE and contributors</author>
|
<author>Frederic PLE and contributors</author>
|
||||||
<desc>Manage .htpasswd file to make the blog private</desc>
|
<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:dcmin>2.28</da:dcmin>
|
||||||
<da:details>https://git.dotclear.watch/JcDenis/httpPassword/src/branch/master/README.md</da:details>
|
<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>
|
<da:support>https://git.dotclear.watch/JcDenis/httpPassword/issues</da:support>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Dotclear\Plugin\httpPassword;
|
namespace Dotclear\Plugin\httpPassword;
|
||||||
|
@ -75,7 +75,7 @@ class Frontend extends Process
|
|||||||
while ($logs->fetch()) {
|
while ($logs->fetch()) {
|
||||||
$ids[] = is_numeric($logs->f('log_id')) ? (int) $logs->f('log_id') : 0;
|
$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 = App::log()->openLogCursor();
|
||||||
$cursor->setField('log_table', My::id());
|
$cursor->setField('log_table', My::id());
|
||||||
|
@ -83,7 +83,7 @@ class Manage extends Process
|
|||||||
while ($logs->fetch()) {
|
while ($logs->fetch()) {
|
||||||
$ids[] = $logs->__get('log_id');
|
$ids[] = $logs->__get('log_id');
|
||||||
}
|
}
|
||||||
$logs = App::log()->delLogs($ids);
|
App::log()->delLogs($ids);
|
||||||
|
|
||||||
Notices::addSuccessNotice(
|
Notices::addSuccessNotice(
|
||||||
__('Logs successfully cleared.')
|
__('Logs successfully cleared.')
|
||||||
@ -190,7 +190,7 @@ class Manage extends Process
|
|||||||
// message
|
// message
|
||||||
(new Para())->items([
|
(new Para())->items([
|
||||||
(new Label(__('Authentication message:')))->for('message'),
|
(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 Div())->class('clear')->items([
|
||||||
(new Submit(['save']))->value(__('Save')),
|
(new Submit(['save']))->value(__('Save')),
|
||||||
@ -255,7 +255,7 @@ class Manage extends Process
|
|||||||
Html::escapeHTML($login) .
|
Html::escapeHTML($login) .
|
||||||
'</td>' .
|
'</td>' .
|
||||||
'<td class="nowrap">' .
|
'<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>' .
|
||||||
'<td class="nowrap">' .
|
'<td class="nowrap">' .
|
||||||
(new Submit(['edit[' . Html::escapeHTML($login) . ']']))->value(__('Change password'))->render() .
|
(new Submit(['edit[' . Html::escapeHTML($login) . ']']))->value(__('Change password'))->render() .
|
||||||
@ -292,12 +292,12 @@ class Manage extends Process
|
|||||||
// login
|
// login
|
||||||
(new Para())->items([
|
(new Para())->items([
|
||||||
(new Label(__('Login:')))->for('login'),
|
(new Label(__('Login:')))->for('login'),
|
||||||
(new Input('login'))->size(60)->maxlenght(255),
|
(new Input('login'))->size(60)->maxlength(255),
|
||||||
]),
|
]),
|
||||||
// password
|
// password
|
||||||
(new Para())->items([
|
(new Para())->items([
|
||||||
(new Label(__('Password:')))->for('password'),
|
(new Label(__('Password:')))->for('password'),
|
||||||
(new Input('password'))->size(60)->maxlenght(255),
|
(new Input('password'))->size(60)->maxlength(255),
|
||||||
]),
|
]),
|
||||||
(new Para())->items([
|
(new Para())->items([
|
||||||
(new Submit(['add']))->value(__('Save')),
|
(new Submit(['add']))->value(__('Save')),
|
||||||
|
Loading…
Reference in New Issue
Block a user