bayes 1.1.1: Add 80% barrier info, set PHP 7.2 as required

This commit is contained in:
onli 2020-10-04 17:41:35 +02:00
parent a1c4da2982
commit c7f2a00d52
6 changed files with 15 additions and 3 deletions

View file

@ -1,3 +1,7 @@
1.1.1:
* Set required PHP version to 7.2, b8 requires it
* Mention the 80% default barrier
1.1: 1.1:
* Fix creation of needed b8_wordlist table also when upgrading * Fix creation of needed b8_wordlist table also when upgrading
from an older version from an older version

View file

@ -67,4 +67,6 @@
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RATING', 'Bewertung'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RATING', 'Bewertung');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL', 'Papierkorb komplett leeren'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL', 'Papierkorb komplett leeren');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL_DESC', 'Lösche alle Kommentare im Papierkorb, nicht nur die auf der momentanen Seite.'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL_DESC', 'Lösche alle Kommentare im Papierkorb, nicht nur die auf der momentanen Seite.');
@define('PLUGIN_EVENT_SPAMBLOCK_METHOD_DESC', 'Ab einer Spambewertung von 80% werden Kommentare moderiert oder abgewiesen.');
?> ?>

View file

@ -51,7 +51,7 @@
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY', 'Empty Recycler'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY', 'Empty Recycler');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RESTORE', 'Restore'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RESTORE', 'Restore');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_MENU_ANALYSIS', 'Analysis'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_MENU_ANALYSIS', 'Analysis');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_DELETE', 'Recyler Bypass'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_DELETE', 'Recyler: Bypass');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_DELETE_DESC', 'Comments with a rating equal or higher this value will not be thrown into the recycler, they will be deleted. Example: 98'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_DELETE_DESC', 'Comments with a rating equal or higher this value will not be thrown into the recycler, they will be deleted. Example: 98');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_IGNORE', 'Ignore'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_IGNORE', 'Ignore');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_IGNORE_DESC', 'Parts of comments to be ignored. Possible values: ip, referer, author, body, email, url. Beispiel: "ip, referer".'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_IGNORE_DESC', 'Parts of comments to be ignored. Possible values: ip, referer, author, body, email, url. Beispiel: "ip, referer".');
@ -66,4 +66,5 @@
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RATING', 'Rating'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RATING', 'Rating');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL', 'Recycler: Empty Complete'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL', 'Recycler: Empty Complete');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL_DESC', 'When emptying the recycler, delete all comments, not only the ones on the current page.'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL_DESC', 'When emptying the recycler, delete all comments, not only the ones on the current page.');
@define('PLUGIN_EVENT_SPAMBLOCK_METHOD_DESC', 'When a comment is rated with 80% as spam, it will be blocked or moderated.');
?> ?>

View file

@ -67,4 +67,7 @@
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RATING', 'Bewertung'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RATING', 'Bewertung');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL', 'Papierkorb komplett leeren'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL', 'Papierkorb komplett leeren');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL_DESC', 'Lösche alle Kommentare im Papierkorb, nicht nur die auf der momentanen Seite.'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL_DESC', 'Lösche alle Kommentare im Papierkorb, nicht nur die auf der momentanen Seite.');
@define('PLUGIN_EVENT_SPAMBLOCK_METHOD_DESC', 'Ab einer Spambewertung von 80% werden Kommentare moderiert oder abgewiesen.');
?> ?>

View file

@ -66,4 +66,5 @@
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RATING', 'Rating'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RATING', 'Rating');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL', 'Recycler: Empty Complete'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL', 'Recycler: Empty Complete');
@define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL_DESC', 'When emptying the recycler, delete all comments, not only the ones on the current page.'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY_ALL_DESC', 'When emptying the recycler, delete all comments, not only the ones on the current page.');
@define('PLUGIN_EVENT_SPAMBLOCK_METHOD_DESC', 'When a comment is rated with 80% as spam, it will be blocked or moderated.');
?> ?>

View file

@ -19,7 +19,7 @@ class serendipity_event_spamblock_bayes extends serendipity_event {
$this->title = PLUGIN_EVENT_SPAMBLOCK_BAYES_NAME; $this->title = PLUGIN_EVENT_SPAMBLOCK_BAYES_NAME;
$propbag->add ( 'description', PLUGIN_EVENT_SPAMBLOCK_BAYES_DESC); $propbag->add ( 'description', PLUGIN_EVENT_SPAMBLOCK_BAYES_DESC);
$propbag->add ( 'name', $this->title); $propbag->add ( 'name', $this->title);
$propbag->add ( 'version', '1.1' ); $propbag->add ( 'version', '1.1.1' );
$propbag->add ( 'event_hooks', array ('frontend_saveComment' => true, $propbag->add ( 'event_hooks', array ('frontend_saveComment' => true,
'backend_comments_top' => true, 'backend_comments_top' => true,
'external_plugin' => true, 'external_plugin' => true,
@ -39,7 +39,7 @@ class serendipity_event_spamblock_bayes extends serendipity_event {
)); ));
$propbag->add('requirements', array( $propbag->add('requirements', array(
'serendipity' => '2.1', 'serendipity' => '2.1',
'php' => '7.0' 'php' => '7.2'
)); ));
$propbag->add('legal', array( $propbag->add('legal', array(
'services' => array( 'services' => array(
@ -67,6 +67,7 @@ class serendipity_event_spamblock_bayes extends serendipity_event {
case 'method': case 'method':
$propbag->add('type', 'select'); $propbag->add('type', 'select');
$propbag->add('name', PLUGIN_EVENT_SPAMBLOCK_METHOD); $propbag->add('name', PLUGIN_EVENT_SPAMBLOCK_METHOD);
$propbag->add('description', PLUGIN_EVENT_SPAMBLOCK_METHOD_DESC);
$propbag->add('select_values', array( $propbag->add('select_values', array(
'moderate' => PLUGIN_EVENT_SPAMBLOCK_BAYES_METHOD_MODERATE, 'moderate' => PLUGIN_EVENT_SPAMBLOCK_BAYES_METHOD_MODERATE,
'block' => PLUGIN_EVENT_SPAMBLOCK_BAYES_METHOD_BLOCK, 'block' => PLUGIN_EVENT_SPAMBLOCK_BAYES_METHOD_BLOCK,