diff --git a/serendipity_event_spamblock_bayes/ChangeLog b/serendipity_event_spamblock_bayes/ChangeLog index 7dbe42d1..c254bc08 100644 --- a/serendipity_event_spamblock_bayes/ChangeLog +++ b/serendipity_event_spamblock_bayes/ChangeLog @@ -1,3 +1,7 @@ +1.1.1: + * Set required PHP version to 7.2, b8 requires it + * Mention the 80% default barrier + 1.1: * Fix creation of needed b8_wordlist table also when upgrading from an older version diff --git a/serendipity_event_spamblock_bayes/UTF-8/lang_de.inc.php b/serendipity_event_spamblock_bayes/UTF-8/lang_de.inc.php index 216e6bb8..c7ae62c2 100644 --- a/serendipity_event_spamblock_bayes/UTF-8/lang_de.inc.php +++ b/serendipity_event_spamblock_bayes/UTF-8/lang_de.inc.php @@ -67,4 +67,6 @@ @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_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.'); + ?> diff --git a/serendipity_event_spamblock_bayes/UTF-8/lang_en.inc.php b/serendipity_event_spamblock_bayes/UTF-8/lang_en.inc.php index ea6b9bc1..f57a8f11 100644 --- a/serendipity_event_spamblock_bayes/UTF-8/lang_en.inc.php +++ b/serendipity_event_spamblock_bayes/UTF-8/lang_en.inc.php @@ -51,7 +51,7 @@ @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY', 'Empty Recycler'); @define('PLUGIN_EVENT_SPAMBLOCK_BAYES_RESTORE', 'Restore'); @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_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".'); @@ -66,4 +66,5 @@ @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_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.'); ?> diff --git a/serendipity_event_spamblock_bayes/lang_de.inc.php b/serendipity_event_spamblock_bayes/lang_de.inc.php index b711da79..bbef97b7 100644 --- a/serendipity_event_spamblock_bayes/lang_de.inc.php +++ b/serendipity_event_spamblock_bayes/lang_de.inc.php @@ -67,4 +67,7 @@ @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_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.'); + + ?> diff --git a/serendipity_event_spamblock_bayes/lang_en.inc.php b/serendipity_event_spamblock_bayes/lang_en.inc.php index 9c836ddc..f57a8f11 100644 --- a/serendipity_event_spamblock_bayes/lang_en.inc.php +++ b/serendipity_event_spamblock_bayes/lang_en.inc.php @@ -66,4 +66,5 @@ @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_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.'); ?> diff --git a/serendipity_event_spamblock_bayes/serendipity_event_spamblock_bayes.php b/serendipity_event_spamblock_bayes/serendipity_event_spamblock_bayes.php index 019f2493..2a067356 100644 --- a/serendipity_event_spamblock_bayes/serendipity_event_spamblock_bayes.php +++ b/serendipity_event_spamblock_bayes/serendipity_event_spamblock_bayes.php @@ -19,7 +19,7 @@ class serendipity_event_spamblock_bayes extends serendipity_event { $this->title = PLUGIN_EVENT_SPAMBLOCK_BAYES_NAME; $propbag->add ( 'description', PLUGIN_EVENT_SPAMBLOCK_BAYES_DESC); $propbag->add ( 'name', $this->title); - $propbag->add ( 'version', '1.1' ); + $propbag->add ( 'version', '1.1.1' ); $propbag->add ( 'event_hooks', array ('frontend_saveComment' => true, 'backend_comments_top' => true, 'external_plugin' => true, @@ -39,7 +39,7 @@ class serendipity_event_spamblock_bayes extends serendipity_event { )); $propbag->add('requirements', array( 'serendipity' => '2.1', - 'php' => '7.0' + 'php' => '7.2' )); $propbag->add('legal', array( 'services' => array( @@ -67,6 +67,7 @@ class serendipity_event_spamblock_bayes extends serendipity_event { case 'method': $propbag->add('type', 'select'); $propbag->add('name', PLUGIN_EVENT_SPAMBLOCK_METHOD); + $propbag->add('description', PLUGIN_EVENT_SPAMBLOCK_METHOD_DESC); $propbag->add('select_values', array( 'moderate' => PLUGIN_EVENT_SPAMBLOCK_BAYES_METHOD_MODERATE, 'block' => PLUGIN_EVENT_SPAMBLOCK_BAYES_METHOD_BLOCK,