first
This commit is contained in:
716
wp-content/plugins/antispam-bee/CHANGELOG.md
Normal file
716
wp-content/plugins/antispam-bee/CHANGELOG.md
Normal file
@ -0,0 +1,716 @@
|
||||
## Changelog ##
|
||||
|
||||
### 2.11.5 ###
|
||||
IMPORTANT: If you use the country check and are behind a proxy or similar, you need to use the `antispam_bee_trusted_ip` filter to get the correct IP from a header like `HTTP_X_FORWARDED` (don’t return an empty value here, otherwise all comments are marked as spam).
|
||||
WICHTIG: Wenn du den Spam-Check für bestimmte Länder verwendest und hinter einem Proxy oder ähnlich bist, musst du den `antispam_bee_trusted_ip`-Filter verwenden, um die richtige Adresse des Users von einem Header wie `HTTP_X_FORWARDED` zu bekommen (hier darfst du keinen leeren String zurückgeben, sonst werden alle Kommentare als Spam markiert).
|
||||
* **English**
|
||||
* Fix: Usage of core filter `pre_comment_user_ip` breaks ASB if the IP address is removed for GDPR compliance
|
||||
|
||||
* **Deutsch**
|
||||
* Fix: Die Verwendung des Core-Filters `pre_comment_user_ip` sorgt für Fehler, wenn die IP-Adresse für die Einhaltung der DSGVO entfernt wird
|
||||
|
||||
### 2.11.4 ###
|
||||
IMPORTANT: If you use the country check and are behind a proxy or similar, you need to use the `pre_comment_user_ip` filter to get the correct IP from a header like `HTTP_X_FORWARDED`.
|
||||
WICHTIG: Wenn du den Spam-Check für bestimmte Länder verwendest und hinter einem Proxy oder ähnlich bist, musst du den `pre_comment_user_ip`-Filter verwenden, um die richtige Adresse des Users von einem Header wie `HTTP_X_FORWARDED` zu bekommen.
|
||||
* **English**
|
||||
* Fix: Read client IP for country check from `REMOTE_ADDR` only (filterable via `pre_comment_user_ip`)
|
||||
* Fix: No spam reason in spam notification email, and related PHP warning
|
||||
* Fix: Remove outdated info from readme
|
||||
* Enhancement: Show upgrade notice on plugin overview page
|
||||
* Maintenance: Tested up to WordPress 6.3
|
||||
|
||||
* **Deutsch**
|
||||
* Fix: Client-IP wird nur noch aus `REMOTE_ADDR` ermittelt (filterbar über `pre_comment_user_ip`)
|
||||
* Fix: Der Spam-Grund wird wieder korrekt in der Benachrichtigungs-E-Mail zu Spam angezeigt und die damit zusammenhängende PHP-Warning behoben
|
||||
* Fix: Veraltete Infos aus der Readme wurden entfernt
|
||||
* Verbesserung: Upgrade-Hinweis wird auch in der Plugin-Übersicht angezeigt
|
||||
* Wartung: Getestet mit WordPress 6.3
|
||||
|
||||
### 2.11.3 ###
|
||||
* **English**
|
||||
* Fix: Multiselect for "Delete comments by spam reasons" was not saving values
|
||||
* Fix: Fix broken link for ISO country codes
|
||||
* Maintenance: Added test for PHP 8.2
|
||||
* Maintenance: Tested up to WordPress 6.2
|
||||
|
||||
* **Deutsch**
|
||||
* Behoben: Multiselect für "Kommentare aus Spamgründen löschen" speicherte keine Werte
|
||||
* Fix: Fehlerhafter Link für ISO-Ländercodes behoben
|
||||
* Wartung: Test für PHP 8.2 hinzugefügt
|
||||
* Wartung: Getestet mit WordPress 6.2
|
||||
|
||||
### 2.11.2 ###
|
||||
* **English**
|
||||
* Tweak: remove superfluous translations
|
||||
* Tweak: make FAQ link an anchor link
|
||||
* Fix: spam counter no longer raises a warning with PHP 8.1 if no spam is present yet
|
||||
* Fix: spam reasons are now localized correctly
|
||||
* Fix: Translations were loaded twice on some admin pages
|
||||
* Maintenance: Tested up to WordPress 6.1
|
||||
|
||||
* **Deutsch**
|
||||
* Tweak: Überflüssige Übersetzungen entfernt
|
||||
* Tweak: Link zu den FAQ ist jetzt ein Anker-Link
|
||||
* Fix: Der Spam-Zähler erzeugt mit PHP 8.1 keine Warnung mehr, wenn noch kein Spam vorhanden ist
|
||||
* Fix: Spam-Gründe werden nun korrekt übersetzt
|
||||
* Fix: Übersetzungen wurden auf einzelnen Adminseiten doppelt geladen
|
||||
* Wartung: Getestet mit WordPress 6.1
|
||||
|
||||
### 2.11.1 ###
|
||||
* **English**
|
||||
* Tweak: remove superfluous type attribute from inline script tag
|
||||
* Maintenance: Tested up to WordPress 6.0
|
||||
|
||||
* **Deutsch**
|
||||
* Tweak: Überflüssiges type-Attribut von script-Tag entfernt
|
||||
* Wartung: Getestet mit WordPress 6.0
|
||||
|
||||
### 2.11.0 ###
|
||||
* **English**
|
||||
* Fix: Allow empty comments if `allow_empty_comment` is set to true
|
||||
* Fix: Add `aria-label` to work around bug in a11y testing tools
|
||||
* Fix: Change priority for `comment_form_field_comment` from 10 to 99
|
||||
* Tweak: Updated some FAQ entries
|
||||
* Tweak: Updated build tooling
|
||||
|
||||
* **Deutsch**
|
||||
* Fix: Leere Kommentare erlauben, wenn der Filter `allow_empty_comment` gesetzt ist
|
||||
* Fix: Ein `aria-label` hinzugefügt, um einen bekannten Fehler bei Tests zu umgehen
|
||||
* Fix: Änderung der Priorität vom Filter `comment_form_field_comment` von 10 auf 99
|
||||
* Tweak: Aktualisierungen in der FAQ
|
||||
* Tweak: Optimierungen am Build-Prozess
|
||||
|
||||
### 2.10.0 ###
|
||||
* **English**
|
||||
* Fix: Switch from ip2country.info to iplocate.io for country check
|
||||
* Enhancement: Use filter to add the honeypot field instead of output buffering for new installations and added option to switch between the both ways
|
||||
* Tweak: Added comment user agent to regex pattern check
|
||||
* Tweak: Make the ping detection filterable to support new comment types
|
||||
* Tweak: Updated internal documentation links
|
||||
* Tweak: Several updates and optimizations in the testing process
|
||||
* Tweak: Adjust color palette to recent WP version
|
||||
* Tweak: Adjust wording in variables and option names
|
||||
* Readme: Add new contributor and clean up unused code
|
||||
|
||||
* **Deutsch**
|
||||
* Fix: Wechsel von ip2country.info zu iplocate.io für die Länderprüfung
|
||||
* Verbesserung: Bei neuen Installationen wird ein Filter zum Hinzufügen des Honeypot-Felds genutzt statt Output-Buffering. Es wurde eine Option hinzugefügt, zwischen den beiden Wegen zu wechseln
|
||||
* Tweak: Kommentar User-Agent zu Regex-Pattern hinzugefügt
|
||||
* Tweak: Die Ping-Erkennung ist jetzt filterbar, um neue Kommentartypen zu unterstützen
|
||||
* Tweak: Aktualisierte Links zur internen Dokumentation
|
||||
* Tweak: Verschiedene Aktualisierungen und Optimierungen im Testprozess
|
||||
* Tweak: Farbpalette an aktuelle WP-Version anpassen
|
||||
* Tweak: Wortlaut in Variablen und Optionsnamen wurden angepasst
|
||||
* Readme: Neuer Contributor hinzugefügt und unbenutzten Code bereinigt
|
||||
|
||||
### 2.9.4 ###
|
||||
* **English**
|
||||
* Enhancement: Add filter to allow ajax calls
|
||||
* Tweak: Better wording for BBCode feature in plugin description
|
||||
* Tweak: Better screenshots in the plugin directory
|
||||
* Maintenance: Tested up to WordPress 5.7
|
||||
|
||||
* **Deutsch**
|
||||
* Verbesserung: Filter hinzugefügt, um Ajax-Aufrufe zuzulassen
|
||||
* Tweak: Bessere Formulierung für BBCode-Funktion in Plugin-Beschreibung
|
||||
* Tweak: Bessere Screenshots im Plugin-Verzeichnis
|
||||
* Wartung: Getestet mit WordPress 5.7
|
||||
|
||||
### 2.9.3 ###
|
||||
* **English**
|
||||
* Fixed: Compatibility with WordPress 5.5
|
||||
* Fixed: Undefined index on spam list page
|
||||
* Tweak: Better wording on settings page
|
||||
* Tweak: AMP compatibility
|
||||
* Tweak: Protect CSS from overwrite through bad themes
|
||||
|
||||
* **Deutsch**
|
||||
* Fix: Kompatibilität mit WordPress 5.5
|
||||
* Fix: Undefined index in Spamliste
|
||||
* Tweak: Inklusivere Sprache unter Einstellungen
|
||||
* Tweak: AMP-Kompatibilität
|
||||
* Tweak: Schütze CSS besser vor Überschreiben durch schlechte Themes
|
||||
|
||||
### 2.9.2 ###
|
||||
* **English**
|
||||
* Fix: Delete comment meta for deleted old spam. For the cleanup of older orphaned comment meta we suggest the usage of [WP Sweep](https://wordpress.org/plugins/wp-sweep/)
|
||||
* Fix: Statistic in dashboard showed wrong value
|
||||
* Tweak: Change autocomplete attribute to "new-password"
|
||||
* Tweak: Autoptimize compatibility improved
|
||||
* Tweak: Renamed blacklist/whitelist to a better phrase
|
||||
* Tweak: Added new pattern
|
||||
* Tweak: UI and text optimizations
|
||||
* Tweak: Better compatibility with some server configurations
|
||||
* Tweak: Make spam reason sortable and filterable
|
||||
* Tweak: Add spam reason for manually marked spam
|
||||
* Maintenance: Deleted unused code
|
||||
* Maintenance: Removed Fake IP check (unreliable and producing false positives)
|
||||
* Maintenance: Fix some coding standard issues
|
||||
* Maintenance: Tested up to WordPress 5.4
|
||||
* Maintenance: Tested up to PHP 7.4
|
||||
|
||||
|
||||
* **Deutsch**
|
||||
* Fix: Lösche Kommentarmeta beim Löschen von Spamkommentaren. Für das Aufräumen alter verwaister Kommentarmetas empfehlen wir die Verwendung von [WP Sweep](https://de.wordpress.org/plugins/wp-sweep/)
|
||||
* Fix: Dashboard Statistiken zeigten falschen Wert
|
||||
* Tweak: Änderung des autocomplete Attributs zu "new-password"
|
||||
* Tweak: Kompatibilität mit Autoptimize verbessert
|
||||
* Tweak: "Blacklist/Whitelist" umbenannt
|
||||
* Tweak: Neue Spamerkennungsmuster hinzugefügt
|
||||
* Tweak: UI und Textverbesserungen
|
||||
* Tweak: Erhöhte Kompatibilität mit einigen Serverkonfigurationen
|
||||
* Tweak: Kommentare nach Spamgrund sortier- und filterbar gemacht
|
||||
* Tweak: Neuer Spamgrund für manuell markierten Spam eingeführt
|
||||
* Maintenance: Ungenutzter Code wurde gelöscht
|
||||
* Maintenance: Der Fake IP check wurde entfernt. Dieser war unzuverlässig und produzierte falsche Ergebnisse
|
||||
* Maintenance: Einige Probleme mit unseren Coding standards wurden gefixt
|
||||
* Maintenance: Getestet bis WordPress 5.4
|
||||
* Maintenance: Getestet bis PHP 7.4
|
||||
|
||||
### 2.9.1 ###
|
||||
* **English**
|
||||
* Improved backend accessibility
|
||||
* Prefilled comment textareas do now work with the honeypot
|
||||
* Compatible with the AMP plugin (https://wordpress.org/plugins/amp/)
|
||||
* Improved dashboard tooltips
|
||||
* Improvements for the language detection API
|
||||
* Scalable IP look up for local spam database
|
||||
|
||||
|
||||
* **Deutsch**
|
||||
* Verbesserte Barrierefreiheit im Backend
|
||||
* Vorausgefüllte Kommentarfelder arbeiten jetzt mit dem Honeypot zusammen
|
||||
* Kompatibel mit dem AMP Plugin (https://wordpress.org/plugins/amp/)
|
||||
* Verbesserte Tooltips im Dashboard
|
||||
* Verbesserte Kommunikation mit der Spracherkennungs-API
|
||||
* Skalierbarer IP-Abgleich für den lokalen Datenbank-Check.
|
||||
|
||||
### 2.9.0 ###
|
||||
* **English**
|
||||
* Introduction of coding standards.
|
||||
* Switch to franc language detection API for the language check.
|
||||
* Do not longer overwrite the IP address WordPress saves with the comment by using `pre_comment_user_ip`.
|
||||
* Do not show "Trust commenters with a Gravatar" if the "Show Gravatar" option is not set.
|
||||
* Skip the checks, when I ping myself.
|
||||
* Fixes some wrong usages of the translation functions.
|
||||
* Use the regular expressions check also for trackbacks.
|
||||
* Add option to delete Antispam Bee related data when plugin gets deleted via the admin interface.
|
||||
* Save a hashed + salted IP for every comment
|
||||
* New check for incoming Trackbacks.
|
||||
* Introduction of behat tests.
|
||||
* Updates the used JavaScript library for the statistics widget.
|
||||
* Bugfix in the "Comment form used outside of posts" option.
|
||||
|
||||
* **Deutsch**
|
||||
* Einführung von Coding Standards.
|
||||
* Wechsel auf die Franc Spracherkennungs API für den Sprach-Check.
|
||||
* Beendet das Überschreiben der IP Adresse via `pre_comment_user_ip`, welche WordPress mit dem Kommentar speichert.
|
||||
* Zeige die Option "Vertraue Kommentaren mit Gravatar" nur an wenn die Option "Zeige Gravatar" aktiviert ist.
|
||||
* Überspringe die Filter, wenn ich mich selbst anpinge.
|
||||
* Repariert einige falsche Verwendungsweisen der Übersetzungsfunktionalitäten.
|
||||
* Wende den reguläre Ausdrücke Check auch auf Trackbacks an.
|
||||
* Option hinzugefügt, dass Daten von Antispam Bee gelöscht werden, wenn das Plugin über das Admin Interface gelöscht wird.
|
||||
* Speichere für jeden Kommentar eine salted Hash der IP Adresse.
|
||||
* Ein neuer Check für eingehende Trackbacks.
|
||||
* Einführung von Behat tests.
|
||||
* Aktualisiert die genutzte JavaScript Bibliothek für das Statistik Widget.
|
||||
* Bugfix in der "Kommentarformular wird außerhalb von Beiträgen verwendet" Einstellung
|
||||
|
||||
### 2.8.1 ###
|
||||
|
||||
* **English**
|
||||
* PHP 5.3 compatibility
|
||||
* Bugfix where a spam trackback produced a fatal error
|
||||
* For more details see https://github.com/pluginkollektiv/antispam-bee/milestone/8?closed=1
|
||||
|
||||
* **Deutsch**
|
||||
* PHP 5.3 Kompatibilität wieder hergestellt
|
||||
* Bugfix: Ein Spam Trackback produzierte einen Fatal Error
|
||||
* Mehr Details: https://github.com/pluginkollektiv/antispam-bee/milestone/8?closed=1
|
||||
|
||||
### 2.8.0 ###
|
||||
|
||||
* **English**
|
||||
* Removed stopforumspam.com to avoid potential GDPR violation
|
||||
* Improves IP handling to comply with GDPR
|
||||
* Improves PHP7.2 compatibility
|
||||
* Fixes small bug on mobile views
|
||||
* Allow more than one language in language check
|
||||
* Minor interface improvements
|
||||
* Remove old russian and Dutch translation files
|
||||
* For more details see https://github.com/pluginkollektiv/antispam-bee/milestone/4?closed=1
|
||||
|
||||
* **Deutsch**
|
||||
- Entfernt stopforumspam.com zur Vorbeugung möglicher DSGVO-Verletzungen
|
||||
- Verändert den Umgang mit IP-Adressen um der DSGVO zu entsprechen
|
||||
- Verbessert PHP7.2-Kompatibilität
|
||||
- Behebt einen CSS-Bugfix der mobilen Darstellung
|
||||
- Erlaube mehr als eine Sprache im Sprachencheck
|
||||
- Verberesserungen an der Benutzeroberfläche
|
||||
- Entfernt alte russische und holländische Sprachversionen
|
||||
- Mehr Details: https://github.com/pluginkollektiv/antispam-bee/milestone/4?closed=1
|
||||
|
||||
### 2.7.1 ###
|
||||
|
||||
* **English**
|
||||
* Fixes an incompatibility with Chrome autofill
|
||||
* Fixes some incompatibilities with other plugins/themes where the comment field was left empty
|
||||
* Support for RTL
|
||||
* Solve some translation/language issues
|
||||
* A new filter to add languages to the language check
|
||||
* For more details see https://github.com/pluginkollektiv/antispam-bee/milestone/6?closed=1
|
||||
* **Deutsch**
|
||||
- Behebt eine Inkompatibilität mit Chromes Autofill-Funktion
|
||||
- Behebt einige Inkompatibilitäten mit anderen Plugins/Themes, wo das Kommentarfeld leer bliebt
|
||||
- Unterstützt RTL-Sprachen
|
||||
- Behebt einige Probleme im Bereich Sprache/Übersetzung
|
||||
- Bietet einen neuen Filter zum HInzufügen von Sprachen zum Sprach-Check
|
||||
- Mehr Details: https://github.com/pluginkollektiv/antispam-bee/milestone/6?closed=1
|
||||
|
||||
### 2.7.0 ###
|
||||
* **English**
|
||||
* Country check is back again (thanks to Sergej Müller for his amazing work and the service page)
|
||||
* Improved Honeypot
|
||||
* Language check through Google Translate API is back again (thanks to [Simon Kraft](https://simonkraft.de/) for offering to cover the costs)
|
||||
* More default Regexes
|
||||
* Unit Test Framework
|
||||
* Accessibility and GUI improvements
|
||||
* An [english documentation](https://github.com/pluginkollektiv/antispam-bee/wiki) is now available, too. Some corrections in the german documentation.
|
||||
* Some bugfixes - Among other things for WPML compatibility
|
||||
* For more details see https://github.com/pluginkollektiv/antispam-bee/milestone/3?closed=1
|
||||
|
||||
* **Deutsch**
|
||||
* Die Länderprüfung ist wieder zurück (dank an Sergej Müller für seine fantastische Arbeit und die Service-Seite)
|
||||
* Der Honeypot wurde verbessert
|
||||
* Die Sprachenprüfung über die Google Translate API ist wieder zurück (Dank an [Simon Kraft](https://simonkraft.de/), der sich angeboten hat, die Kosten zu übernehmen)
|
||||
* Mehr Standard-Regexe
|
||||
* Verbesserungen an Barrierefreiheit und Benutzer-Oberfläche
|
||||
* Eine [englische Dokumentation](https://github.com/pluginkollektiv/antispam-bee/wiki) ist jetzt verfügbar. Einige Korrekturen in der deutschen Dokumentation.
|
||||
* Einige Fehlerkorrekturen - Unter anderem für WPML-Kompatibilität
|
||||
* Mehr Details: https://github.com/pluginkollektiv/antispam-bee/milestone/3?closed=1
|
||||
|
||||
### 2.6.9 ###
|
||||
* **English**
|
||||
* Updates donation links throughout the plugin
|
||||
* Fixes an error were JavaScript on the dashboard was erroneously being enqueued
|
||||
* Ensures compatibility with the latest WordPress version
|
||||
* **Deutsch**
|
||||
* Aktualisierung der Spenden Links im gesamten Plugin
|
||||
* Behebt einen Fehler, durch den auf dem Dashboard fälschlicherweise JavaScript geladen wird
|
||||
* Gewährleistet die Kompatibilität mit der neuesten WordPress-Version
|
||||
|
||||
### 2.6.8 ###
|
||||
* **English**
|
||||
* added a POT file
|
||||
* updated German translation, added formal version
|
||||
* updated plugin text domain to include a dash instead of an underscore
|
||||
* updated, translated + formatted README.md
|
||||
* updated expired link URLs in plugin and languages files
|
||||
* updated [plugin authors](https://gist.github.com/glueckpress/f058c0ab973d45a72720)
|
||||
* **Deutsch**
|
||||
* eine POT-Datei hinzugefügt
|
||||
* deutsche Übersetzung aktualisiert, formale Version hinzugefügt
|
||||
* Die Text Domain des Plugins in der ReadMe aktualisiert. Statt einem Unterstrich enthält der Name nun ein Bindestrich.
|
||||
* README.md aktualisiert, übersetzt und formatiert
|
||||
* verwaiste Link-Adressen in dem Plugin und den Sprachdateien aktualisiert
|
||||
* [Plugin Autor](https://gist.github.com/glueckpress/f058c0ab973d45a72720) aktualisiert
|
||||
|
||||
### 2.6.7 ###
|
||||
* **English**
|
||||
* Removal of functions *Block comments from specific countries* and *Allow comments only in certain language* for financial reasons
|
||||
* **Deutsch**
|
||||
* Entfernung der Funktionen *Kommentare nur in einer Sprache zulassen* und *Bestimmte Länder blockieren bzw. erlauben* aus finanziellen Gründen - [Hintergrund-Informationen](https://antispambee.pluginkollektiv.org/news/2015/removal-of-allow-comments-only-in-certain-language/)
|
||||
|
||||
### 2.6.6 ###
|
||||
* **English**
|
||||
* Switch to the official Google Translation API
|
||||
* *Release time investment (Development & QA): 2.5 h*
|
||||
* **Deutsch**
|
||||
* (Testweise) Umstellung auf die offizielle Google Translation API
|
||||
* *Release-Zeitaufwand (Development & QA): 2,5 Stunden*
|
||||
|
||||
### 2.6.5 ###
|
||||
* **English**
|
||||
* Fix: Return parameters on `dashboard_glance_items` callback / thx [@toscho](https://twitter.com/toscho)
|
||||
* New function: [Trust commenters with a Gravatar](https://antispambee.pluginkollektiv.org/documentation#gravatar) / thx [@glueckpress](https://twitter.com/glueckpress)
|
||||
* Additional plausibility checks and filters
|
||||
* *Release time investment (Development & QA): 12 h*
|
||||
* **Deutsch**
|
||||
* Fix: Parameter-Rückgabe bei `dashboard_glance_items` / thx [@toscho](https://twitter.com/toscho)
|
||||
* Neue Funktion: [Kommentatoren mit Gravatar vertrauen](https://antispambee.pluginkollektiv.org/de/dokumentation#gravatar) / thx [@glueckpress](https://twitter.com/glueckpress)
|
||||
* Zusätzliche Plausibilitätsprüfungen und Filter
|
||||
* *Release-Zeitaufwand (Development & QA): 12 Stunden*
|
||||
|
||||
### 2.6.4 ###
|
||||
* **English**
|
||||
* Consideration of the comment time (Spam if a comment was written in less than 5 seconds)
|
||||
* *Release time investment (Development & QA): 6.25 h*
|
||||
* **Deutsch**
|
||||
* Berücksichtigung der Kommentarzeit (Spam, wenn ein Kommentar in unter 5 Sekunden verfasst) - [Hintergrund-Informationen](https://antispambee.pluginkollektiv.org/news/2014/antispam-bee-2-6-4/)
|
||||
* *Release-Zeitaufwand (Development & QA): 6,25 Stunden*
|
||||
|
||||
### 2.6.3 ###
|
||||
* **English**
|
||||
* Sorting for the Antispam Bee column in the spam comments overview
|
||||
* Code refactoring around the use of REQUEST_URI
|
||||
* *Release time investment (Development & QA): 2.75 h*
|
||||
* **Deutsch**
|
||||
* Sortierung für die Antispam Bee Spalte in der Spam-Übersicht
|
||||
* Code-Refactoring rund um die Nutzung von REQUEST_URI
|
||||
* *Release-Zeitaufwand (Development & QA): 2,75 Stunden*
|
||||
|
||||
### 2.6.2 ###
|
||||
* **English**
|
||||
* Improving detection of fake IPs
|
||||
* *Release time investment (Development & QA): 11 h*
|
||||
* **Deutsch**
|
||||
* Überarbeitung der Erkennung von gefälschten IPs
|
||||
* *Release-Zeitaufwand (Development & QA): 11 Stunden*
|
||||
|
||||
### 2.6.1 ###
|
||||
* **English**
|
||||
* Code refactoring of options management
|
||||
* Support for `HTTP_FORWARDED_FOR` header
|
||||
* *Release time investment (Development & QA): 8.5 h*
|
||||
* **Deutsch**
|
||||
* Überarbeitung der Optionen-Verwaltung
|
||||
* Berücksichtigung der Header `HTTP_FORWARDED_FOR`
|
||||
* *Release-Zeitaufwand (Development & QA): 8,5 Stunden*
|
||||
|
||||
### 2.6.0 ###
|
||||
* **English**
|
||||
* Optimizations for WordPress 3.8
|
||||
* Clear invalid UTF-8 characters in comment fields
|
||||
* Spam reason as a column in the table with spam comments
|
||||
* **Deutsch**
|
||||
* Optimierungen für WordPress 3.8
|
||||
* Zusatzprüfung auf Nicht-UTF-8-Zeichen in Kommentardaten
|
||||
* Spamgrund als Spalte in der Übersicht mit Spamkommentaren
|
||||
|
||||
### 2.5.9 ###
|
||||
* **English**
|
||||
* Dashboard widget changes to work with [Statify](http://statify.de)
|
||||
* **Deutsch**
|
||||
* Anpassung des Dashboard-Skriptes für die Zusammenarbeit mit [Statify](http://statify.de)
|
||||
|
||||
### 2.5.8 ###
|
||||
* **English**
|
||||
* Switch from TornevallDNSBL to [Stop Forum Spam](http://www.stopforumspam.com)
|
||||
* New JS library for the Antispam Bee dashboard chart
|
||||
* **Deutsch**
|
||||
* Umstellung von TornevallDNSBL zu [Stop Forum Spam](http://www.stopforumspam.com)
|
||||
* Neue JS-Bibliothek für das Dashboard-Widget
|
||||
|
||||
### 2.5.7 ###
|
||||
* **English**
|
||||
* Optional logfile with spam entries e.g. for [Fail2Ban](https://help.ubuntu.com/community/Fail2ban)
|
||||
* Filter `antispam_bee_notification_subject` for a custom subject in notifications
|
||||
* **Deutsch**
|
||||
* Optionale Spam-Logdatei z.B. für [Fail2Ban](https://wiki.ubuntuusers.de/fail2ban/)
|
||||
* Filter `antispam_bee_notification_subject` für eigenen Betreff in Benachrichtigungen
|
||||
|
||||
### 2.5.6 ###
|
||||
* **English**
|
||||
* [Added new detection/patterns for spam comments](https://antispambee.pluginkollektiv.org/news/2013/new-patterns-in-antispam-bee-2-5-6/)
|
||||
* **Deutsch**
|
||||
* [Neue Erkennungsmuster für Spam hinzugefügt](https://antispambee.pluginkollektiv.org/de/news/2013/neue-erkennungsmuster-in-antispam-bee-2-5-6/)
|
||||
|
||||
### 2.5.5 ###
|
||||
* **English**
|
||||
* Detection and filtering of spam comments that try to exploit the latest [W3 Total Cache and WP Super Cache Vulnerability](http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html).
|
||||
* **Deutsch**
|
||||
* Erkennung und Ausfilterung von Spam-Kommentaren, die versuchen, [Sicherheitslücken von W3 Total Cache und WP Super Cache](http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html) auszunutzen. [Ausführliche Informationen](https://antispambee.pluginkollektiv.org/de/news/2013/antispam-bee-nun-auch-als-antimalware-plugin/).
|
||||
|
||||
### 2.5.4 ###
|
||||
* **English**
|
||||
* Jubilee edition
|
||||
* New mascot for Antispam Bee
|
||||
* Advanced Scanning on IP, URL and e-mail address of incoming comments in local blog spam database
|
||||
* **Deutsch**
|
||||
* Jubiläumsausgabe: [Details zum Update](https://plus.googlehttps://antispambee.pluginkollektiv.org/de/news/2013/jubilaeumsausgabe-antispam-bee-2-5-4/)
|
||||
* Neues Maskottchen für Antispam Bee
|
||||
* Erweiterte Prüfung eingehender Kommentare in lokaler Blog-Spamdatenbank auf IP, URL und E-Mail-Adresse
|
||||
|
||||
### 2.5.3 ###
|
||||
* **English**
|
||||
* Optimization of regular expression
|
||||
* **Deutsch**
|
||||
* Optimierung des Regulären Ausdrucks
|
||||
|
||||
### 2.5.2 ###
|
||||
* **English**
|
||||
* New: Use of regular expressions with predefined and own identification patterns
|
||||
* Change the filter order
|
||||
* Improvements to the language file
|
||||
* **Deutsch**
|
||||
* Neu: [Reguläre Ausdrücke anwenden](hhttps://antispambee.pluginkollektiv.org/de/dokumentation#regex) mit vordefinierten und eigenen Erkennungsmustern
|
||||
* Änderung der Filter-Reihenfolge
|
||||
* Verbesserungen an der Sprachdatei
|
||||
|
||||
### 2.5.1 ###
|
||||
* **English**
|
||||
* Treat BBCode as spam
|
||||
* IP anonymization in the country evaluation
|
||||
* More transparency by added Privacy Policy
|
||||
* PHP 5.2.4 as a requirement (is also the prerequisite for WP 3.4)
|
||||
* **Deutsch**
|
||||
* [BBCode im Kommentar als Spamgrund](hhttps://antispambee.pluginkollektiv.org/de/dokumentation#bbcode)
|
||||
* IP-Anonymisierung bei der Länderprüfung
|
||||
* [Mehr Transparenz](https://antispambee.pluginkollektiv.org/de/news/2012/datenschutz-update/) durch hinzugefügte Datenschutzhinweise
|
||||
* PHP 5.2.4 als Voraussetzung (ist zugleich die Voraussetzung für WP 3.4)
|
||||
|
||||
### 2.5.0 ###
|
||||
* **English**
|
||||
* [Edition 2012](https://antispambee.pluginkollektiv.org/news/2012/edition-2012/)
|
||||
* **Deutsch**
|
||||
* [Edition 2012](https://antispambee.pluginkollektiv.org/de/news/2012/edition-2012/)
|
||||
|
||||
### 2.4.6 ###
|
||||
* **English**
|
||||
* Russian translation
|
||||
* Change the secret string
|
||||
* **Deutsch**
|
||||
* Russische Übersetzung
|
||||
* Veränderung der Secret-Zeichenfolge
|
||||
|
||||
### 2.4.5 ###
|
||||
* **English**
|
||||
* Revised layout settings
|
||||
* Deletion of Project Honey Pot
|
||||
* TornevallNET as new DNSBL service
|
||||
* WordPress 3.4 as a minimum requirement
|
||||
* WordPress 3.5 support
|
||||
* Recast of the online manual
|
||||
* **Deutsch**
|
||||
* Überarbeitetes Layout der Einstellungen
|
||||
* Streichung von Project Honey Pot
|
||||
* TornevallNET als neuer DNSBL-Dienst
|
||||
* WordPress 3.4 als Mindestvoraussetzung
|
||||
* WordPress 3.5 Unterstützung
|
||||
* Neufassung des Online-Handbuchs
|
||||
|
||||
### 2.4.4 ###
|
||||
* **English**
|
||||
* Technical and visual support for WordPress 3.5
|
||||
* Modification of the file structure: from `xyz.dev.css` to `xyz.min.css`
|
||||
* Retina screenshot
|
||||
* **Deutsch**
|
||||
* Technische und optische Unterstützung für WordPress 3.5
|
||||
* Änderung der Dateistruktur: von `xyz.dev.css` zu `xyz.min.css`
|
||||
* Retina Bildschirmfoto
|
||||
|
||||
### 2.4.3 ###
|
||||
* **English**
|
||||
* Check for basic requirements
|
||||
* Remove the sidebar plugin icon
|
||||
* Set the Google API calls to SSL
|
||||
* Compatibility with WordPress 3.4
|
||||
* Add retina plugin icon on options
|
||||
* Depending on WordPress settings: anonymous comments allowed
|
||||
* **Deutsch**
|
||||
* Mindestvoraussetzungen werden nun überprüft
|
||||
* Entfernung des Plugin Icons in der Sidebar
|
||||
* Google API Aufrufe auf SSL umgestellt
|
||||
* Kompatibilität mit WordPress 3.4
|
||||
* Retina Plugin Icon in den Einstellungen hinzugefügt
|
||||
* In Abhängigkeit zu den Wordpress-Einstellungen: anonyme Kommentare erlauben
|
||||
|
||||
### 2.4.2 ###
|
||||
* **English**
|
||||
* New geo ip location service (without the api key)
|
||||
* Code cleanup: Replacement of `@` characters by a function
|
||||
* JS-Fallback for missing jQuery UI
|
||||
* **Deutsch**
|
||||
* Neuer IP-Geolocation-Dienst (ohne api key)
|
||||
* Quelltext aufgeräumt: Austausch von `@` Zeichen durch eine Funktion
|
||||
* S-Fallback für fehlende jQuery UI
|
||||
|
||||
### 2.4.1 ###
|
||||
* **English**
|
||||
* Add russian translation
|
||||
* Fix for the textarea replace
|
||||
* Detect and hide admin notices
|
||||
* **Deutsch**
|
||||
* Russian Übersetzung hinzugefügt
|
||||
* Fehlerbehebung bei dem ersetzten Textfeld
|
||||
* Erkennen und verstecken von Admin-Mitteilungen
|
||||
|
||||
### 2.4 ###
|
||||
* **English**
|
||||
* Support for IPv6
|
||||
* Source code revision
|
||||
* Delete spam by reason
|
||||
* Changing the user interface
|
||||
* Requirements: PHP 5.1.2 and WordPress 3.3
|
||||
* **Deutsch**
|
||||
* Unterstützung für IPv6
|
||||
* Quellcode Überarbeitung
|
||||
* Spam mit Begründung löschen
|
||||
* Änderung der Benutzeroberfläche
|
||||
* Voraussetzungen: PHP 5.1.2 und WordPress 3.3
|
||||
|
||||
### 2.3 ###
|
||||
* **English**
|
||||
* Xmas Edition
|
||||
* **Deutsch**
|
||||
* Weihnachtsausgabe
|
||||
|
||||
### 2.2 ###
|
||||
* **English**
|
||||
* Interactive Dashboard Stats
|
||||
* **Deutsch**
|
||||
* Interaktive Dashboard Statistik
|
||||
|
||||
### 2.1 ###
|
||||
* **English**
|
||||
* Remove Google Translate API support
|
||||
* **Deutsch**
|
||||
* Google Translate API Unterstützung entfernt
|
||||
|
||||
### 2.0 ###
|
||||
* **English**
|
||||
* Allow comments only in certain language (English/German)
|
||||
* Consider comments which are already marked as spam
|
||||
* Dashboard Stats: Change from canvas to image format
|
||||
* System requirements: WordPress 2.8
|
||||
* Removal of the migration script
|
||||
* Increase plugin security
|
||||
* **Deutsch**
|
||||
* Kommentare nur in bestimmten Sprachen erlauben (Englisch/Deutsch)
|
||||
* Das Plugin kann nun Kommentare berücksichtigen, die bereits als Spam markiert wurden
|
||||
* Dashboard-Statistik: Wechsel von canvas zu einem Bildformat
|
||||
* Systemvoraussetzungen: WordPress 2.8
|
||||
* Entfernung des Migrationsscriptes
|
||||
* Plugin Sicherheit verbessert
|
||||
|
||||
### 1.9 ###
|
||||
* **English**
|
||||
* Dashboard History Stats (HTML5 Canvas)
|
||||
* **Deutsch**
|
||||
* Dashboard Statistiken (HTML5 Canvas)
|
||||
|
||||
### 1.8 ###
|
||||
* **English**
|
||||
* Support for the new IPInfoDB API (including API Key)
|
||||
* **Deutsch**
|
||||
* Unterstützung der neuen IPInfoDB API (einschließlich API-Key)
|
||||
|
||||
### 1.7 ###
|
||||
* **English**
|
||||
* Black and whitelisting for specific countries
|
||||
* "Project Honey Pot" as a optional spammer source
|
||||
* Spam reason in the notification email
|
||||
* Visual refresh of the notification email
|
||||
* Advanced GUI changes + Fold-out options
|
||||
* **Deutsch**
|
||||
* Schwarze und weiße Liste für bestimmte Länder
|
||||
* "Project Honey Pot" als optionale Spammer-Quelle
|
||||
* Spam-Begründung in der E-Mail-Benachrichtigung
|
||||
* Visuelle Überarbeitung der E-Mail-Benachrichtigung
|
||||
* Erweiterte Benutzeroberflächenanpassungen + ausklappbare Einstellungen
|
||||
|
||||
### 1.6 ###
|
||||
* **English**
|
||||
* Support for WordPress 3.0
|
||||
* System requirements: WordPress 2.7
|
||||
* Code optimization
|
||||
* **Deutsch**
|
||||
* Unterstützung für WordPress 3.0
|
||||
* Systemvoraussetzungen: WordPress 2.7
|
||||
* Quelltext optimiert
|
||||
|
||||
### 1.5 ###
|
||||
* **English**
|
||||
* Compatibility with WPtouch
|
||||
* Add support for do_action
|
||||
* Translation to Portuguese of Brazil
|
||||
* **Deutsch**
|
||||
* Kompatibilität mit WPtouch
|
||||
* Unterstützung für do_action hinzugefügt
|
||||
* Übersetzung auf brasilianisches Portugiesisch
|
||||
|
||||
### 1.4 ###
|
||||
* **English**
|
||||
* Enable stricter inspection for incomming comments
|
||||
* Do not check if the author has already commented and approved
|
||||
* **Deutsch**
|
||||
* strengere Kontrolle für eingehende Kommentare aktiviert
|
||||
* Nicht auf Spam überprüfen, wenn der Autor bereits kommentiert hat und freigegeben wurde
|
||||
|
||||
### 1.3 ###
|
||||
* **English**
|
||||
* New code structure
|
||||
* Email notifications about new spam comments
|
||||
* Novel Algorithm: Advanced spam checking
|
||||
* **Deutsch**
|
||||
* Neue Quelltextstruktur
|
||||
* E-Mail-Benachrichtigungen über neue Spam-Kommentare
|
||||
* Neuartiger Algorithmus: Erweiterte Spamprüfung
|
||||
|
||||
### 1.2 ###
|
||||
* **English**
|
||||
* Antispam Bee spam counter on dashboard
|
||||
* **Deutsch**
|
||||
* Antispam Bee Spam-Zähler auf dem Dashboard
|
||||
|
||||
### 1.1 ###
|
||||
* **English**
|
||||
* Adds support for WordPress new changelog readme.txt standard
|
||||
* Various changes for more speed, usability and security
|
||||
* **Deutsch**
|
||||
* Unterstützung des neuen readme.txt Standards für das Änderungsprotokoll hinzugefügt
|
||||
* Verschiedene Änderungen für mehr Geschwindigkeit, Benutzerfreundlichkeit und Sicherheit
|
||||
|
||||
### 1.0 ###
|
||||
* **English**
|
||||
* Adds WordPress 2.8 support
|
||||
* **Deutsch**
|
||||
* WordPress 2.8 Unterstützung hinzugefügt
|
||||
|
||||
### 0.9 ###
|
||||
* **English**
|
||||
* Mark as spam only comments or only pings
|
||||
* **Deutsch**
|
||||
* nur Kommentare oder nur Pings als Spam markieren
|
||||
|
||||
### 0.8 ###
|
||||
* **English**
|
||||
* Optical adjustments of the settings page
|
||||
* Translation for Simplified Chinese, Spanish and Catalan
|
||||
* **Deutsch**
|
||||
* Optische Anpassungen der Einstellungsseite
|
||||
* Übersetzung für vereinfachtes Chinesisch, Spanisch und Katalanisch
|
||||
|
||||
### 0.7 ###
|
||||
* **English**
|
||||
* Spam folder cleanup after X days
|
||||
* Optional hide the "MARKED AS SPAM" note
|
||||
* Language support for Italian and Turkish
|
||||
* **Deutsch**
|
||||
* Spam-Ordner Bereinigung nach n Tagen
|
||||
* Optionales verstecken des "als Spam markiert" Hinweises
|
||||
* Übersetzungen für Italienisch und Türkisch
|
||||
|
||||
### 0.6 ###
|
||||
* **English**
|
||||
* Language support for English, German, Russian
|
||||
* **Deutsch**
|
||||
* Übersetzungen für Englisch, Deutsch und Russisch
|
||||
|
||||
### 0.5 ###
|
||||
* **English**
|
||||
* Workaround for empty comments
|
||||
* **Deutsch**
|
||||
* Problembehebung für leere Kommentare
|
||||
|
||||
### 0.4 ###
|
||||
* **English**
|
||||
* Option for trackback and pingback protection
|
||||
* **Deutsch**
|
||||
* Einstellung für den Trackback- und Pingback-Schutz
|
||||
|
||||
### 0.3 ###
|
||||
* **English**
|
||||
* Trackback and Pingback spam protection
|
||||
* **Deutsch**
|
||||
* Trackback und Pingback Spam-Schutz
|
339
wp-content/plugins/antispam-bee/LICENSE.txt
Normal file
339
wp-content/plugins/antispam-bee/LICENSE.txt
Normal file
@ -0,0 +1,339 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
{description}
|
||||
Copyright (C) {year} {fullname}
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
{signature of Ty Coon}, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
3065
wp-content/plugins/antispam-bee/antispam_bee.php
Normal file
3065
wp-content/plugins/antispam-bee/antispam_bee.php
Normal file
File diff suppressed because it is too large
Load Diff
19
wp-content/plugins/antispam-bee/css/dashboard.css
Normal file
19
wp-content/plugins/antispam-bee/css/dashboard.css
Normal file
@ -0,0 +1,19 @@
|
||||
#ab_chart {
|
||||
color: #a7aaad;
|
||||
height: 140px;
|
||||
margin: 0 -4px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#ab_chart_data {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#ab_widget .inside {
|
||||
height: 1%;
|
||||
margin: 0;
|
||||
padding-bottom: 0;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
}
|
1
wp-content/plugins/antispam-bee/css/dashboard.min.css
vendored
Normal file
1
wp-content/plugins/antispam-bee/css/dashboard.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
#ab_chart{color:#a7aaad;height:140px;margin:0 -4px;text-align:center}#ab_chart_data{display:none}#ab_widget .inside{height:1%;margin:0;padding-bottom:0;overflow:hidden;position:relative;white-space:nowrap}
|
265
wp-content/plugins/antispam-bee/css/styles.css
Normal file
265
wp-content/plugins/antispam-bee/css/styles.css
Normal file
@ -0,0 +1,265 @@
|
||||
/* @group General */
|
||||
|
||||
.ab-main *,
|
||||
.ab-main *::after,
|
||||
.ab-main *::before {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
outline: 0;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* @end group */
|
||||
|
||||
/* @group Columns */
|
||||
|
||||
.ab-wrap {
|
||||
margin: 0 0 0 -10px;
|
||||
padding: 20px 0 0 0;
|
||||
text-rendering: optimizeLegibility; /* stylelint-disable-line value-keyword-case */
|
||||
}
|
||||
|
||||
.ab-column {
|
||||
float: left;
|
||||
margin: 0 0 0 10px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* @end group */
|
||||
|
||||
/* @group Headlines + Icons */
|
||||
|
||||
.ab-column h3 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: normal;
|
||||
line-height: 20px;
|
||||
color: #1d2327;
|
||||
}
|
||||
|
||||
.ab-column h3.icon::before {
|
||||
font: normal 30px/30px Dashicons;
|
||||
top: 4px;
|
||||
right: 20px;
|
||||
speak: none;
|
||||
width: 1em;
|
||||
color: #8c8f94;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.ab-column.ab-arrow h3.icon::before {
|
||||
content: "\f536";
|
||||
}
|
||||
|
||||
.ab-column.ab-join h3.icon::before {
|
||||
content: "\f108";
|
||||
}
|
||||
|
||||
.ab-column.ab-diff h3.icon::before {
|
||||
content: "\f237";
|
||||
}
|
||||
|
||||
.ab-column h6 {
|
||||
clear: both;
|
||||
color: #3c434a;
|
||||
margin: 0 0 20px;
|
||||
font-weight: normal;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* @end group */
|
||||
|
||||
/* @group Form */
|
||||
|
||||
.ab-column input[type="text"],
|
||||
.ab-column input[type="number"],
|
||||
.ab-column select {
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
background: #f6f7f7;
|
||||
}
|
||||
|
||||
.ab-column input[type="number"] {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ab-column select[multiple] {
|
||||
width: 175px;
|
||||
min-height: 60px;
|
||||
}
|
||||
|
||||
.ab-column select[multiple][name="ab_ignore_reasons[]"] {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.ab-column input.ab-mini-field {
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
.ab-column .ab-medium-field {
|
||||
width: 100%;
|
||||
max-width: 285px;
|
||||
}
|
||||
|
||||
.ab-column input[type="text"] + label,
|
||||
.ab-column select + label {
|
||||
color: #8c8f94;
|
||||
margin: 0 0 0 7px;
|
||||
display: inline-block;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* @end group */
|
||||
|
||||
/* @group Column contents */
|
||||
|
||||
.ab-column > ul {
|
||||
padding: 0 20px 0 0;
|
||||
}
|
||||
|
||||
.ab-column:last-of-type > ul {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.ab-column > ul > li {
|
||||
width: 330px;
|
||||
margin: 0 0 36px;
|
||||
padding: 10px 0 12px 12px;
|
||||
position: relative;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.ab-column > ul > li a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.ab-column > ul > li a:hover {
|
||||
border-color: inherit;
|
||||
}
|
||||
|
||||
.ab-column > ul > li label {
|
||||
cursor: default;
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
max-width: 286px;
|
||||
color: #1d2327;
|
||||
}
|
||||
|
||||
.ab-column > ul > li label span {
|
||||
color: #3c434a;
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
/* @end group */
|
||||
|
||||
/* @group Separator */
|
||||
|
||||
.ab-column > ul > li::after,
|
||||
.ab-column > ul > li::before {
|
||||
width: 0;
|
||||
content: "";
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.ab-column.ab-arrow > ul > li::before,
|
||||
.ab-column.ab-arrow > ul > li::after {
|
||||
left: 157px;
|
||||
border-width: 10px 10px 0;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.ab-column.ab-arrow > ul > li::before {
|
||||
bottom: -24px;
|
||||
border-color: #fff transparent;
|
||||
}
|
||||
|
||||
.ab-column.ab-arrow > ul > li::after {
|
||||
bottom: -22px;
|
||||
border-color: #f0f0f1 transparent;
|
||||
}
|
||||
|
||||
.ab-column.ab-join > ul > li::before {
|
||||
left: 171px;
|
||||
bottom: -27px;
|
||||
height: 18px;
|
||||
border-right: 2px solid #fff;
|
||||
}
|
||||
|
||||
.ab-column.ab-diff > ul > li::before {
|
||||
left: 162px;
|
||||
bottom: -19px;
|
||||
width: 18px;
|
||||
height: 0;
|
||||
border-bottom: 2px solid #fff;
|
||||
}
|
||||
|
||||
/* @end group */
|
||||
|
||||
/* @group Submit & Service */
|
||||
|
||||
.ab-column--submit-service {
|
||||
width: 342px;
|
||||
margin-top: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.ab-column--submit-service p {
|
||||
padding: 5px 0;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ab-column--submit-service p:first-of-type {
|
||||
border-top: 1px solid #dcdcde;
|
||||
}
|
||||
|
||||
.ab-column--submit-service p:last-of-type {
|
||||
border-bottom: 1px solid #dcdcde;
|
||||
}
|
||||
|
||||
.ab-column--submit-service .button {
|
||||
width: 100%;
|
||||
margin: 35px 0 10px;
|
||||
}
|
||||
|
||||
/* @end group */
|
||||
|
||||
/* @group 2nd level */
|
||||
|
||||
.ab-column > ul > li:last-of-type::after,
|
||||
.ab-column > ul > li:last-of-type::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ab-column > ul > li > ul {
|
||||
margin: 10px 10px 0 26px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ab-column > ul > li > ul li {
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
||||
.ab-column > ul > li > ul label {
|
||||
margin: 0 0 0 7px;
|
||||
}
|
||||
|
||||
.ab-column > ul > li > ul label[for="ab_ignore_reasons"] {
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
.ab-column > ul > li > input[type="checkbox"]:checked ~ ul {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* @end group */
|
1
wp-content/plugins/antispam-bee/css/styles.min.css
vendored
Normal file
1
wp-content/plugins/antispam-bee/css/styles.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.ab-main *,.ab-main *::after,.ab-main *::before{border:0;margin:0;padding:0;outline:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-wrap{margin:0 0 0 -10px;padding:20px 0 0 0;text-rendering:optimizeLegibility}.ab-column{float:left;margin:0 0 0 10px;position:relative}.ab-column h3{margin:0;font-size:18px;font-weight:400;line-height:20px;color:#1d2327}.ab-column h3.icon::before{font:normal 30px/30px Dashicons;top:4px;right:20px;speak:none;width:1em;color:#8c8f94;position:absolute;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ab-column.ab-arrow h3.icon::before{content:"\f536"}.ab-column.ab-join h3.icon::before{content:"\f108"}.ab-column.ab-diff h3.icon::before{content:"\f237"}.ab-column h6{clear:both;color:#3c434a;margin:0 0 20px;font-weight:400;font-size:13px}.ab-column input[type="text"],.ab-column input[type="number"],.ab-column select{font-size:13px;text-align:center;background:#f6f7f7}.ab-column input[type="number"]{padding:0}.ab-column select[multiple]{width:175px;min-height:60px}.ab-column select[multiple][name="ab_ignore_reasons[]"]{width:auto}.ab-column input.ab-mini-field{width:40px}.ab-column .ab-medium-field{width:100%;max-width:285px}.ab-column input[type="text"]+label,.ab-column select+label{color:#8c8f94;margin:0 0 0 7px;display:inline-block;text-transform:uppercase}.ab-column>ul{padding:0 20px 0 0}.ab-column:last-of-type>ul{border:0}.ab-column>ul>li{width:330px;margin:0 0 36px;padding:10px 0 12px 12px;position:relative;background:#fff}.ab-column>ul>li a{text-decoration:underline}.ab-column>ul>li a:hover{border-color:inherit}.ab-column>ul>li label{cursor:default;display:inline-block;font-size:14px;max-width:286px;color:#1d2327}.ab-column>ul>li label span{color:#3c434a;display:block;font-size:13px;line-height:16px;margin-top:5px}.ab-column>ul>li::after,.ab-column>ul>li::before{width:0;content:"";position:absolute}.ab-column.ab-arrow>ul>li::before,.ab-column.ab-arrow>ul>li::after{left:157px;border-width:10px 10px 0;border-style:solid}.ab-column.ab-arrow>ul>li::before{bottom:-24px;border-color:#fff transparent}.ab-column.ab-arrow>ul>li::after{bottom:-22px;border-color:#f0f0f1 transparent}.ab-column.ab-join>ul>li::before{left:171px;bottom:-27px;height:18px;border-right:2px solid #fff}.ab-column.ab-diff>ul>li::before{left:162px;bottom:-19px;width:18px;height:0;border-bottom:2px solid #fff}.ab-column--submit-service{width:342px;margin-top:20px;padding-right:20px}.ab-column--submit-service p{padding:5px 0;margin:0;text-align:center;width:100%}.ab-column--submit-service p:first-of-type{border-top:1px solid #dcdcde}.ab-column--submit-service p:last-of-type{border-bottom:1px solid #dcdcde}.ab-column--submit-service .button{width:100%;margin:35px 0 10px}.ab-column>ul>li:last-of-type::after,.ab-column>ul>li:last-of-type::before{display:none}.ab-column>ul>li>ul{margin:10px 10px 0 26px;display:none}.ab-column>ul>li>ul li{padding:2px 0}.ab-column>ul>li>ul label{margin:0 0 0 7px}.ab-column>ul>li>ul label[for="ab_ignore_reasons"]{margin:0 0 5px 0}.ab-column>ul>li>input[type="checkbox"]:checked~ul{display:block}
|
160
wp-content/plugins/antispam-bee/inc/columns.class.php
Normal file
160
wp-content/plugins/antispam-bee/inc/columns.class.php
Normal file
@ -0,0 +1,160 @@
|
||||
<?php
|
||||
/**
|
||||
* The Columns Class.
|
||||
*
|
||||
* @package Antispam Bee
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
/**
|
||||
* Class Antispam_Bee_Columns
|
||||
*/
|
||||
final class Antispam_Bee_Columns {
|
||||
|
||||
/**
|
||||
* Register plugin columns on comments screen.
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @change 2.6.0
|
||||
*
|
||||
* @param array $columns Array with existing columns.
|
||||
* @return array Array with extended columns.
|
||||
*/
|
||||
public static function register_plugin_columns( $columns ) {
|
||||
return array_merge(
|
||||
$columns,
|
||||
array(
|
||||
'antispam_bee_reason' => esc_html__( 'Spam Reason', 'antispam-bee' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display plugin column values on comments screen
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @change 2.6.0
|
||||
*
|
||||
* @param string $column Currently selected column.
|
||||
* @param integer $comment_id Comment ID.
|
||||
*/
|
||||
public static function print_plugin_column( $column, $comment_id ) {
|
||||
if ( 'antispam_bee_reason' !== $column ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$spam_reason = get_comment_meta( $comment_id, $column, true );
|
||||
$spam_reasons = Antispam_Bee::$defaults['reasons'];
|
||||
|
||||
if ( empty( $spam_reason ) || empty( $spam_reasons[ $spam_reason ] ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
echo esc_html( $spam_reasons[ $spam_reason ] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Register plugin sortable columns on comments screen
|
||||
*
|
||||
* @since 2.6.3
|
||||
* @change 2.6.3
|
||||
*
|
||||
* @param array $columns Registered columns.
|
||||
* @return array $columns Columns with AB field.
|
||||
*/
|
||||
public static function register_sortable_columns( $columns ) {
|
||||
$columns['antispam_bee_reason'] = 'antispam_bee_reason';
|
||||
|
||||
return $columns;
|
||||
}
|
||||
|
||||
// phpcs:disable WordPress.VIP.SlowDBQuery.slow_db_query_meta_key
|
||||
// phpcs:disable WordPress.CSRF.NonceVerification.NoNonceVerification
|
||||
/**
|
||||
* Adjust orderby query
|
||||
*
|
||||
* @since 2.6.3
|
||||
* @change 2.6.3
|
||||
*
|
||||
* @param \WP_Comment_Query $query Current WordPress query.
|
||||
*/
|
||||
public static function set_orderby_query( $query ) {
|
||||
$orderby = isset( $_GET['orderby'] ) ? sanitize_text_field( wp_unslash( $_GET['orderby'] ) ) : '';
|
||||
|
||||
if ( empty( $orderby ) || 'antispam_bee_reason' !== $orderby ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$query->query_vars['meta_key'] = 'antispam_bee_reason';
|
||||
$query->query_vars['orderby'] = 'meta_value';
|
||||
}
|
||||
// phpcs:enable WordPress.VIP.SlowDBQuery.slow_db_query_meta_key
|
||||
// phpcs:enable WordPress.CSRF.NonceVerification.NoNonceVerification
|
||||
|
||||
//phpcs:disable WordPress.CSRF.NonceVerification.NoNonceVerification
|
||||
/**
|
||||
* Filter comments by the spam reason
|
||||
*
|
||||
* @global \wpdb $wpdb
|
||||
*/
|
||||
public static function filter_columns() {
|
||||
global $wpdb;
|
||||
?>
|
||||
<label class="screen-reader-text" for="filter-by-comment-spam-reason"><?php esc_html_e( 'Filter by spam reason', 'antispam-bee' ); ?></label>
|
||||
<select id="filter-by-comment-spam-reason" name="comment_spam_reason">
|
||||
<option value=""><?php esc_html_e( 'All spam reasons', 'antispam-bee' ); ?></option>
|
||||
<?php
|
||||
$spam_reason = isset( $_GET['comment_spam_reason'] ) ? sanitize_text_field( wp_unslash( $_GET['comment_spam_reason'] ) ) : '';
|
||||
$reasons = $wpdb->get_results( "SELECT meta_value FROM {$wpdb->prefix}commentmeta WHERE meta_key = 'antispam_bee_reason' group by meta_value", ARRAY_A );
|
||||
|
||||
foreach ( $reasons as $reason ) {
|
||||
if ( ! isset( Antispam_Bee::$defaults['reasons'][ $reason['meta_value'] ] ) ) {
|
||||
continue;
|
||||
}
|
||||
$label = Antispam_Bee::$defaults['reasons'][ $reason['meta_value'] ];
|
||||
echo "\t" . '<option value="' . esc_attr( $reason['meta_value'] ) . '"' . selected( $spam_reason, $reason['meta_value'], false ) . '>' . esc_html( $label ) . "</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php
|
||||
}
|
||||
//phpcs:enable WordPress.CSRF.NonceVerification.NoNonceVerification
|
||||
|
||||
//phpcs:disable WordPress.CSRF.NonceVerification.NoNonceVerification
|
||||
//phpcs:disable WordPress.VIP.SlowDBQuery.slow_db_query_meta_value
|
||||
//phpcs:disable WordPress.VIP.SlowDBQuery.slow_db_query_meta_key
|
||||
/**
|
||||
* Filter comments by the spam reason
|
||||
*
|
||||
* @param \WP_Comment_Query $query Current WordPress query.
|
||||
*/
|
||||
public static function filter_by_spam_reason( $query ) {
|
||||
$spam_reason = isset( $_GET['comment_spam_reason'] ) ? sanitize_text_field( wp_unslash( $_GET['comment_spam_reason'] ) ) : '';
|
||||
if ( empty( $spam_reason ) || ! in_array( $spam_reason, array_keys( Antispam_Bee::$defaults['reasons'] ), true ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$query->query_vars['meta_key'] = 'antispam_bee_reason';
|
||||
$query->query_vars['meta_value'] = $spam_reason;
|
||||
}
|
||||
//phpcs:enable WordPress.VIP.SlowDBQuery.slow_db_query_meta_key
|
||||
//phpcs:enable WordPress.VIP.SlowDBQuery.slow_db_query_meta_value
|
||||
//phpcs:enable WordPress.CSRF.NonceVerification.NoNonceVerification
|
||||
|
||||
/**
|
||||
* Print CSS for the plugin column
|
||||
*
|
||||
* @since 2.6.1
|
||||
* @change 2.6.1
|
||||
*/
|
||||
public static function print_column_styles() {
|
||||
?>
|
||||
<style>
|
||||
.column-antispam_bee_reason {
|
||||
width: 10%;
|
||||
}
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
}
|
570
wp-content/plugins/antispam-bee/inc/gui.class.php
Normal file
570
wp-content/plugins/antispam-bee/inc/gui.class.php
Normal file
@ -0,0 +1,570 @@
|
||||
<?php
|
||||
/**
|
||||
* The Antispam Bee GUI
|
||||
*
|
||||
* @package Antispam Bee
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
/**
|
||||
* Antispam_Bee_GUI
|
||||
*
|
||||
* @since 2.4
|
||||
*/
|
||||
class Antispam_Bee_GUI extends Antispam_Bee {
|
||||
|
||||
/**
|
||||
* Save the GUI
|
||||
*
|
||||
* @since 0.1
|
||||
* @since 2.7.0
|
||||
* @since 2.10.0 Change country option names
|
||||
*/
|
||||
public static function save_changes() {
|
||||
if ( empty( $_POST ) ) {
|
||||
wp_die( esc_html__( 'Cheatin’ uh?', 'antispam-bee' ) );
|
||||
}
|
||||
|
||||
if ( ! current_user_can( 'manage_options' ) ) {
|
||||
wp_die( esc_html__( 'Cheatin’ uh?', 'antispam-bee' ) );
|
||||
}
|
||||
|
||||
check_admin_referer( '_antispam_bee__settings_nonce' );
|
||||
|
||||
$selected_languages_raw = wp_unslash( self::get_key( $_POST, 'ab_translate_lang' ) );
|
||||
if ( ! is_array( $selected_languages_raw ) ) {
|
||||
$selected_languages_raw = array();
|
||||
}
|
||||
$selected_languages = array();
|
||||
$lang = self::get_allowed_translate_languages();
|
||||
$lang = array_keys( $lang );
|
||||
foreach ( $selected_languages_raw as $value ) {
|
||||
if ( ! in_array( $value, $lang, true ) ) {
|
||||
continue;
|
||||
}
|
||||
$selected_languages[] = $value;
|
||||
}
|
||||
$options = array(
|
||||
'flag_spam' => (int) ( ! empty( $_POST['ab_flag_spam'] ) ),
|
||||
'email_notify' => (int) ( ! empty( $_POST['ab_email_notify'] ) ),
|
||||
'cronjob_enable' => (int) ( ! empty( $_POST['ab_cronjob_enable'] ) ),
|
||||
'cronjob_interval' => (int) self::get_key( $_POST, 'ab_cronjob_interval' ),
|
||||
|
||||
'no_notice' => (int) ( ! empty( $_POST['ab_no_notice'] ) ),
|
||||
|
||||
'dashboard_count' => (int) ( ! empty( $_POST['ab_dashboard_count'] ) ),
|
||||
'dashboard_chart' => (int) ( ! empty( $_POST['ab_dashboard_chart'] ) ),
|
||||
'regexp_check' => (int) ( ! empty( $_POST['ab_regexp_check'] ) ),
|
||||
'spam_ip' => (int) ( ! empty( $_POST['ab_spam_ip'] ) ),
|
||||
'already_commented' => (int) ( ! empty( $_POST['ab_already_commented'] ) ),
|
||||
'time_check' => (int) ( ! empty( $_POST['ab_time_check'] ) ),
|
||||
|
||||
'ignore_pings' => (int) ( ! empty( $_POST['ab_ignore_pings'] ) ),
|
||||
'ignore_filter' => (int) ( ! empty( $_POST['ab_ignore_filter'] ) ),
|
||||
'ignore_type' => (int) self::get_key( $_POST, 'ab_ignore_type' ),
|
||||
|
||||
'reasons_enable' => (int) ( ! empty( $_POST['ab_reasons_enable'] ) ),
|
||||
'ignore_reasons' => (array) self::get_key( $_POST, 'ab_ignore_reasons' ),
|
||||
|
||||
'bbcode_check' => (int) ( ! empty( $_POST['ab_bbcode_check'] ) ),
|
||||
'gravatar_check' => (int) ( ! empty( $_POST['ab_gravatar_check'] ) ),
|
||||
'country_code' => (int) ( ! empty( $_POST['ab_country_code'] ) ),
|
||||
'country_denied' => sanitize_text_field( wp_unslash( self::get_key( $_POST, 'ab_country_denied' ) ) ),
|
||||
'country_allowed' => sanitize_text_field( wp_unslash( self::get_key( $_POST, 'ab_country_allowed' ) ) ),
|
||||
|
||||
'translate_api' => (int) ( ! empty( $_POST['ab_translate_api'] ) ),
|
||||
'translate_lang' => $selected_languages,
|
||||
|
||||
'delete_data_on_uninstall' => (int) ( ! empty( $_POST['delete_data_on_uninstall'] ) ),
|
||||
|
||||
'use_output_buffer' => (int) ( ! empty( $_POST['ab_use_output_buffer'] ) ),
|
||||
|
||||
);
|
||||
|
||||
foreach ( $options['ignore_reasons'] as $key => $val ) {
|
||||
if ( ! isset( self::$defaults['reasons'][ $val ] ) ) {
|
||||
unset( $options['ignore_reasons'][ $key ] );
|
||||
}
|
||||
}
|
||||
|
||||
if ( empty( $options['cronjob_interval'] ) ) {
|
||||
$options['cronjob_enable'] = 0;
|
||||
}
|
||||
|
||||
if ( empty( $options['translate_lang'] ) ) {
|
||||
$options['translate_api'] = 0;
|
||||
}
|
||||
|
||||
if ( empty( $options['reasons_enable'] ) ) {
|
||||
$options['ignore_reasons'] = array();
|
||||
}
|
||||
|
||||
if ( ! empty( $options['country_denied'] ) ) {
|
||||
$options['country_denied'] = preg_replace(
|
||||
'/[^A-Z ,;]/',
|
||||
'',
|
||||
strtoupper( $options['country_denied'] )
|
||||
);
|
||||
}
|
||||
|
||||
if ( ! empty( $options['country_allowed'] ) ) {
|
||||
$options['country_allowed'] = preg_replace(
|
||||
'/[^A-Z ,;]/',
|
||||
'',
|
||||
strtoupper( $options['country_allowed'] )
|
||||
);
|
||||
}
|
||||
|
||||
if ( empty( $options['country_denied'] ) && empty( $options['country_allowed'] ) ) {
|
||||
$options['country_code'] = 0;
|
||||
}
|
||||
|
||||
if ( $options['cronjob_enable'] && ! self::get_option( 'cronjob_enable' ) ) {
|
||||
self::init_scheduled_hook();
|
||||
} elseif ( ! $options['cronjob_enable'] && self::get_option( 'cronjob_enable' ) ) {
|
||||
self::clear_scheduled_hook();
|
||||
}
|
||||
|
||||
self::update_options( $options );
|
||||
|
||||
wp_safe_redirect(
|
||||
add_query_arg(
|
||||
array(
|
||||
'updated' => 'true',
|
||||
),
|
||||
wp_get_referer()
|
||||
)
|
||||
);
|
||||
|
||||
die();
|
||||
}
|
||||
|
||||
/**
|
||||
* Generation of a selectbox
|
||||
*
|
||||
* @since 2.4.5
|
||||
*
|
||||
* @param string $name Name of the Selectbox.
|
||||
* @param array $data Array with values.
|
||||
* @param string $selected Selected value.
|
||||
* @return string $html Generated HTML.
|
||||
*/
|
||||
private static function _build_select( $name, $data, $selected ) {
|
||||
$html = '<select name="' . esc_attr( $name ) . '">';
|
||||
foreach ( $data as $k => $v ) {
|
||||
$html .= '<option value="' . esc_attr( $k ) . '" ' . selected( $selected, $k, false ) . '>' . esc_html( $v ) . '</option>';
|
||||
}
|
||||
$html .= '</select>';
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Display the GUI
|
||||
*
|
||||
* @since 0.1
|
||||
* @since 2.7.0
|
||||
* @since 2.10.0 Change documentation links, change country option name, and add option to parse complete markup for comment forms
|
||||
*/
|
||||
public static function options_page() { ?>
|
||||
<div class="wrap" id="ab_main">
|
||||
<h2>
|
||||
Antispam Bee
|
||||
</h2>
|
||||
|
||||
<form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post">
|
||||
<input type="hidden" name="action" value="ab_save_changes" />
|
||||
|
||||
<?php wp_nonce_field( '_antispam_bee__settings_nonce' ); ?>
|
||||
|
||||
<?php $options = self::get_options(); ?>
|
||||
<div class="ab-wrap">
|
||||
|
||||
<div class="ab-column ab-arrow">
|
||||
<h3 class="icon">
|
||||
<?php esc_html_e( 'Antispam filter', 'antispam-bee' ); ?>
|
||||
</h3>
|
||||
<h6>
|
||||
<?php esc_html_e( 'Filter in the execution order', 'antispam-bee' ); ?>
|
||||
</h6>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<input type="checkbox" name="ab_already_commented" id="ab_already_commented" value="1" <?php checked( $options['already_commented'], 1 ); ?> />
|
||||
<label for="ab_already_commented">
|
||||
<?php esc_html_e( 'Trust approved commenters', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'No review of already commented users', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<?php if ( 1 === (int) get_option( 'show_avatars', 0 ) ) : ?>
|
||||
<li>
|
||||
<input type="checkbox" name="ab_gravatar_check" id="ab_gravatar_check" value="1" <?php checked( $options['gravatar_check'], 1 ); ?> />
|
||||
<label for="ab_gravatar_check">
|
||||
<?php esc_html_e( 'Trust commenters with a Gravatar', 'antispam-bee' ); ?>
|
||||
<span>
|
||||
<?php
|
||||
$link1 = sprintf(
|
||||
'<a href="%s" target="_blank" rel="noopener noreferrer">',
|
||||
esc_url(
|
||||
__( 'https://antispambee.pluginkollektiv.org/documentation/#trust-commenters-with-a-gravatar', 'antispam-bee' ),
|
||||
'https'
|
||||
)
|
||||
);
|
||||
printf(
|
||||
/* translators: 1: opening <a> tag with link to documentation. 2: closing </a> tag */
|
||||
esc_html__( 'Check if commenter has a Gravatar image. Please note the %1$sprivacy notice%2$s for this option.', 'antispam-bee' ),
|
||||
wp_kses_post( $link1 ),
|
||||
'</a>'
|
||||
);
|
||||
?>
|
||||
</span>
|
||||
</label>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<li>
|
||||
<input type="checkbox" name="ab_time_check" id="ab_time_check" value="1" <?php checked( $options['time_check'], 1 ); ?> />
|
||||
<label for="ab_time_check">
|
||||
<?php esc_html_e( 'Consider the comment time', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'Not recommended when using page caching', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<input type="checkbox" name="ab_bbcode_check" id="ab_bbcode_check" value="1" <?php checked( $options['bbcode_check'], 1 ); ?> />
|
||||
<label for="ab_bbcode_check">
|
||||
<?php esc_html_e( 'BBCode links are spam', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'Review the comment contents for BBCode links', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<input type="checkbox" name="ab_regexp_check" id="ab_regexp_check" value="1" <?php checked( $options['regexp_check'], 1 ); ?> />
|
||||
<label for="ab_regexp_check">
|
||||
<?php esc_html_e( 'Use regular expressions', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'Predefined and custom patterns by plugin hook', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<input type="checkbox" name="ab_spam_ip" id="ab_spam_ip" value="1" <?php checked( $options['spam_ip'], 1 ); ?> />
|
||||
<label for="ab_spam_ip">
|
||||
<?php esc_html_e( 'Look in the local spam database', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'Check for spam data on your own blog', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<input type="checkbox" name="ab_country_code" id="ab_country_code" value="1" <?php checked( $options['country_code'], 1 ); ?> />
|
||||
<label for="ab_country_code">
|
||||
<?php esc_html_e( 'Block or allow comments from specific countries', 'antispam-bee' ); ?>
|
||||
<span>
|
||||
<?php
|
||||
$link1 = sprintf(
|
||||
'<a href="%s" target="_blank" rel="noopener noreferrer">',
|
||||
esc_url(
|
||||
__( 'https://antispambee.pluginkollektiv.org/documentation/#block-comments-from-specific-countries', 'antispam-bee' ),
|
||||
'https'
|
||||
)
|
||||
);
|
||||
printf(
|
||||
/* translators: 1: opening <a> tag with link to documentation. 2: closing </a> tag. */
|
||||
esc_html__( 'Filtering the requests depending on country. Please note the %1$sprivacy notice%2$s for this option.', 'antispam-bee' ),
|
||||
wp_kses_post( $link1 ),
|
||||
'</a>'
|
||||
);
|
||||
?>
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<ul>
|
||||
<?php
|
||||
$iso_codes_link = sprintf(
|
||||
'<a href="%s" target="_blank" rel="noopener noreferrer">',
|
||||
'https://www.iso.org/obp/ui/#search/code/'
|
||||
);
|
||||
?>
|
||||
<li>
|
||||
<textarea name="ab_country_denied" id="ab_country_denied" class="ab-medium-field code" placeholder="<?php esc_attr_e( 'e.g. BF, SG, YE', 'antispam-bee' ); ?>"><?php echo esc_attr( $options['country_denied'] ); ?></textarea>
|
||||
<label for="ab_country_denied">
|
||||
<span>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: opening <a> tag with link to ISO codes reference. 2: closing </a> tag. */
|
||||
esc_html__( 'Denied %1$sISO country codes%2$s for this option.', 'antispam-bee' ),
|
||||
wp_kses_post( $iso_codes_link ),
|
||||
'</a>'
|
||||
);
|
||||
?>
|
||||
</span>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<textarea name="ab_country_allowed" id="ab_country_allowed" class="ab-medium-field code" placeholder="<?php esc_attr_e( 'e.g. BF, SG, YE', 'antispam-bee' ); ?>"><?php echo esc_attr( $options['country_allowed'] ); ?></textarea>
|
||||
<label for="ab_country_allowed">
|
||||
<span>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: opening <a> tag with link to ISO codes reference. 2: closing </a> tag. */
|
||||
esc_html__( 'Allowed %1$sISO country codes%2$s for this option.', 'antispam-bee' ),
|
||||
wp_kses_post( $iso_codes_link ),
|
||||
'</a>'
|
||||
);
|
||||
?>
|
||||
</span>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<input type="checkbox" name="ab_translate_api" id="ab_translate_api" value="1" <?php checked( $options['translate_api'], 1 ); ?> />
|
||||
<label for="ab_translate_api">
|
||||
<?php esc_html_e( 'Allow comments only in certain language', 'antispam-bee' ); ?>
|
||||
<span>
|
||||
<?php
|
||||
$link1 = sprintf(
|
||||
'<a href="%s" target="_blank" rel="noopener noreferrer">',
|
||||
esc_url(
|
||||
__( 'https://antispambee.pluginkollektiv.org/documentation/#allow-comments-only-in-certain-language', 'antispam-bee' ),
|
||||
'https'
|
||||
)
|
||||
);
|
||||
|
||||
printf(
|
||||
/* translators: 1: opening <a> tag with link to documentation. 2: closing </a> tag. */
|
||||
esc_html__( 'Detect and approve only the specified language. Please note the %1$sprivacy notice%2$s for this option.', 'antispam-bee' ),
|
||||
wp_kses_post( $link1 ),
|
||||
'</a>'
|
||||
);
|
||||
?>
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<select multiple name="ab_translate_lang[]">
|
||||
<?php
|
||||
$lang = self::get_allowed_translate_languages();
|
||||
$selected_languages = (array) $options['translate_lang'];
|
||||
foreach ( $lang as $k => $v ) {
|
||||
?>
|
||||
<option <?php echo in_array( $k, $selected_languages, true ) ? 'selected="selected"' : ''; ?> value="<?php echo esc_attr( $k ); ?>"><?php echo esc_html( $v ); ?></option>
|
||||
|
||||
<?php } ?>
|
||||
</select>
|
||||
<label for="ab_translate_lang">
|
||||
<?php esc_html_e( 'Language', 'antispam-bee' ); ?>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="ab-column ab-join">
|
||||
<h3 class="icon advanced">
|
||||
<?php esc_html_e( 'Advanced', 'antispam-bee' ); ?>
|
||||
</h3>
|
||||
<h6>
|
||||
<?php esc_html_e( 'Other antispam tools', 'antispam-bee' ); ?>
|
||||
</h6>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<input type="checkbox" name="ab_flag_spam" id="ab_flag_spam" value="1" <?php checked( $options['flag_spam'], 1 ); ?> />
|
||||
<label for="ab_flag_spam">
|
||||
<?php esc_html_e( 'Mark as spam, do not delete', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'Keep the spam in my blog.', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<li class="ab_flag_spam_child">
|
||||
<input type="checkbox" name="ab_email_notify" id="ab_email_notify" value="1" <?php checked( $options['email_notify'], 1 ); ?> />
|
||||
<label for="ab_email_notify">
|
||||
<?php esc_html_e( 'Spam-Notification by email', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'Notify admins by e-mail about incoming spam', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<li class="ab_flag_spam_child">
|
||||
<input type="checkbox" name="ab_no_notice" id="ab_no_notice" value="1" <?php checked( $options['no_notice'], 1 ); ?> />
|
||||
<label for="ab_no_notice">
|
||||
<?php esc_html_e( 'Do not save the spam reason', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'Spam reason as a table column in the spam overview', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<li class="ab_flag_spam_child">
|
||||
<input type="checkbox" name="ab_cronjob_enable" id="ab_cronjob_enable" value="1" <?php checked( $options['cronjob_enable'], 1 ); ?> />
|
||||
<label for="ab_cronjob_enable">
|
||||
<?php
|
||||
echo sprintf(
|
||||
// translators: $s is an input field containing the number of days.
|
||||
esc_html__( 'Delete existing spam after %s days', 'antispam-bee' ),
|
||||
'<input type="number" min="0" name="ab_cronjob_interval" value="' . esc_attr( $options['cronjob_interval'] ) . '" class="ab-mini-field" />'
|
||||
)
|
||||
?>
|
||||
<span><?php esc_html_e( 'Cleaning up the database from old entries', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<li class="ab_flag_spam_child">
|
||||
<input type="checkbox" name="ab_ignore_filter" id="ab_ignore_filter" value="1" <?php checked( $options['ignore_filter'], 1 ); ?> />
|
||||
<label for="ab_ignore_filter">
|
||||
<?php
|
||||
echo sprintf(
|
||||
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
// Output gets escaped in _build_select()
|
||||
// translators: %s is the select field.
|
||||
esc_html__( 'Limit approval to %s', 'antispam-bee' ),
|
||||
self::_build_select(
|
||||
'ab_ignore_type',
|
||||
array(
|
||||
1 => esc_attr__( 'Comments', 'antispam-bee' ),
|
||||
2 => esc_attr__( 'Pings', 'antispam-bee' ),
|
||||
),
|
||||
$options['ignore_type']
|
||||
)
|
||||
// phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
);
|
||||
?>
|
||||
<span><?php esc_html_e( 'Other types of spam will be deleted immediately', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<li class="ab_flag_spam_child">
|
||||
<input type="checkbox" name="ab_reasons_enable" id="ab_reasons_enable" value="1" <?php checked( $options['reasons_enable'], 1 ); ?> />
|
||||
<label for="ab_reasons_enable">
|
||||
<?php esc_html_e( 'Delete comments by spam reasons', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'For multiple selections press Ctrl/CMD', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<label for="ab_ignore_reasons">
|
||||
<?php esc_html_e( 'Spam Reason', 'antispam-bee' ); ?>
|
||||
</label>
|
||||
<select name="ab_ignore_reasons[]" id="ab_ignore_reasons" size="5" multiple>
|
||||
<?php foreach ( self::$defaults['reasons'] as $k => $v ) { ?>
|
||||
<option <?php selected( in_array( $k, $options['ignore_reasons'], true ), true ); ?> value="<?php echo esc_attr( $k ); ?>"><?php echo esc_html( $v ); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="delete_data_on_uninstall">
|
||||
<input type="checkbox" name="delete_data_on_uninstall" id="delete_data_on_uninstall" value="1" <?php checked( $options['delete_data_on_uninstall'], 1 ); ?> />
|
||||
<label for="delete_data_on_uninstall">
|
||||
<?php esc_html_e( 'Delete Antispam Bee data when uninstalling', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'If checked, you will delete all data Antispam Bee creates, when uninstalling the plugin.', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="ab-column ab-diff">
|
||||
<h3 class="icon more">
|
||||
<?php esc_html_e( 'More', 'antispam-bee' ); ?>
|
||||
</h3>
|
||||
<h6>
|
||||
<?php esc_html_e( 'Various options', 'antispam-bee' ); ?>
|
||||
</h6>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<input type="checkbox" name="ab_dashboard_chart" id="ab_dashboard_chart" value="1" <?php checked( $options['dashboard_chart'], 1 ); ?> />
|
||||
<label for="ab_dashboard_chart">
|
||||
<?php esc_html_e( 'Generate statistics as a dashboard widget', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'Daily updates of spam detection rate', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<input type="checkbox" name="ab_dashboard_count" id="ab_dashboard_count" value="1" <?php checked( $options['dashboard_count'], 1 ); ?> />
|
||||
<label for="ab_dashboard_count">
|
||||
<?php esc_html_e( 'Spam counter on the dashboard', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'Amount of identified spam comments', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<input type="checkbox" name="ab_ignore_pings" id="ab_ignore_pings" value="1" <?php checked( $options['ignore_pings'], 1 ); ?> />
|
||||
<label for="ab_ignore_pings">
|
||||
<?php esc_html_e( 'Do not check trackbacks / pingbacks', 'antispam-bee' ); ?>
|
||||
<span><?php esc_html_e( 'No spam check for link notifications', 'antispam-bee' ); ?></span>
|
||||
</label>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<input type="checkbox" name="ab_use_output_buffer" id="ab_use_output_buffer" value="1" <?php checked( ! isset( $options['use_output_buffer'] ) || 1 == $options['use_output_buffer'], true ); ?> />
|
||||
<label for="ab_use_output_buffer">
|
||||
<?php esc_html_e( 'Check complete site markup for comment forms', 'antispam-bee' ); ?>
|
||||
<span>
|
||||
<?php
|
||||
printf( /* translators: s=filter name */
|
||||
esc_html__( 'Uses output buffering instead of the %s filter.', 'antispam-bee' ),
|
||||
'<code>comment_form_field_comment</code>'
|
||||
);
|
||||
?>
|
||||
</span>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="ab-column ab-column--submit-service">
|
||||
<p>
|
||||
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Donate', 'antispam-bee' ); ?></a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/plugins/antispam-bee/#faq', 'antispam-bee' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'FAQ', 'antispam-bee' ); ?></a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="<?php echo esc_url( __( 'https://antispambee.pluginkollektiv.org/documentation', 'antispam-bee' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Manual', 'antispam-bee' ); ?></a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="https://wordpress.org/support/plugin/antispam-bee/" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Support', 'antispam-bee' ); ?></a>
|
||||
</p>
|
||||
|
||||
<input type="submit" class="button button-primary" value="<?php esc_html_e( 'Save Changes', 'antispam-bee' ); ?>" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the languages, which are selectable to restrict the comment language to.
|
||||
*
|
||||
* @since 2.7.1
|
||||
* @return array $lang
|
||||
*/
|
||||
private static function get_allowed_translate_languages() {
|
||||
|
||||
$lang = array(
|
||||
'de' => __( 'German', 'antispam-bee' ),
|
||||
'en' => __( 'English', 'antispam-bee' ),
|
||||
'fr' => __( 'French', 'antispam-bee' ),
|
||||
'it' => __( 'Italian', 'antispam-bee' ),
|
||||
'es' => __( 'Spanish', 'antispam-bee' ),
|
||||
);
|
||||
|
||||
/**
|
||||
* Filter the possible languages for the language spam test
|
||||
*
|
||||
* @since 2.7.1
|
||||
* @param (array) $lang The languages
|
||||
* @return (array)
|
||||
*/
|
||||
return apply_filters( 'ab_get_allowed_translate_languages', $lang );
|
||||
}
|
||||
}
|
112
wp-content/plugins/antispam-bee/js/dashboard.js
Normal file
112
wp-content/plugins/antispam-bee/js/dashboard.js
Normal file
@ -0,0 +1,112 @@
|
||||
( function() {
|
||||
// Grab the data
|
||||
var labels = [],
|
||||
data = [];
|
||||
jQuery( '#ab_chart_data tfoot th' ).each( function() {
|
||||
labels.push( jQuery( this ).text() );
|
||||
} );
|
||||
jQuery( '#ab_chart_data tbody td' ).each( function() {
|
||||
data.push( jQuery( this ).text() );
|
||||
} );
|
||||
|
||||
// Draw
|
||||
var width = jQuery( '#ab_chart' ).parent().width() + 8,
|
||||
height = 140,
|
||||
leftgutter = 0,
|
||||
bottomgutter = 22,
|
||||
topgutter = 22,
|
||||
color = '#135e96',
|
||||
r = Raphael( 'ab_chart', width, height ),
|
||||
txt = { font: 'bold 12px "Open Sans", sans-serif', fill: '#1d2327' },
|
||||
X = ( width - leftgutter * 2 ) / labels.length,
|
||||
max = Math.max.apply( Math, data ),
|
||||
Y = ( height - bottomgutter - topgutter ) / max;
|
||||
|
||||
// Max value
|
||||
r
|
||||
.text( 16, 16, max )
|
||||
.attr(
|
||||
{
|
||||
font: 'normal 10px "Open Sans", sans-serif',
|
||||
fill: '#a7aaad',
|
||||
}
|
||||
);
|
||||
|
||||
var path = r.path().attr( { stroke: color, 'stroke-width': 2, 'stroke-linejoin': 'round' } ),
|
||||
bgp = r.path().attr( { stroke: 'none', opacity: .3, fill: color } ),
|
||||
label = r.set(),
|
||||
lx = 0,
|
||||
ly = 0,
|
||||
is_label_visible = false,
|
||||
leave_timer,
|
||||
blanket = r.set();
|
||||
label.push( r.text( 60, 12, '' ).attr( txt ) );
|
||||
label.push( r.text( 60, 27, '' ).attr( txt ).attr( { fill: color } ) );
|
||||
label.hide();
|
||||
var frame = r.popup( 100, 100, label, 'right' ).attr( { fill: '#fff', stroke: '#444', 'stroke-width': 1 } ).hide();
|
||||
|
||||
var p, bgpp;
|
||||
for ( var i = 0, ii = labels.length; i < ii; i++ ) {
|
||||
var y = Math.round( height - bottomgutter - Y * data[i] ),
|
||||
x = Math.round( leftgutter + X * ( i + .5 ) );
|
||||
if ( ! i ) {
|
||||
p = [ 'M', x, y, 'C', x, y ];
|
||||
bgpp = [ 'M', leftgutter + X * .5, height - bottomgutter, 'L', x, y, 'C', x, y ];
|
||||
}
|
||||
if ( i && i < ii - 1 ) {
|
||||
var Y0 = Math.round( height - bottomgutter - Y * data[i - 1] ),
|
||||
X0 = Math.round( leftgutter + X * ( i - .5 ) ),
|
||||
Y2 = Math.round( height - bottomgutter - Y * data[i + 1] ),
|
||||
X2 = Math.round( leftgutter + X * ( i + 1.5 ) );
|
||||
var a = getAnchors( X0, Y0, x, y, X2, Y2 );
|
||||
p = p.concat( [ a.x1, a.y1, x, y, a.x2, a.y2 ] );
|
||||
bgpp = bgpp.concat( [ a.x1, a.y1, x, y, a.x2, a.y2 ] );
|
||||
}
|
||||
var dot = r.circle( x, y, 4 ).attr( { fill: '#fff', stroke: color, 'stroke-width': 1 } );
|
||||
blanket.push( r.rect( leftgutter + X * i, 0, X, height - bottomgutter ).attr( { stroke: 'none', fill: '#fff', opacity: .2 } ) );
|
||||
var rect = blanket[blanket.length - 1];
|
||||
( function( x, y, data, date, dot ) {
|
||||
var timer,
|
||||
i = 0;
|
||||
rect.hover( function() {
|
||||
clearTimeout( leave_timer );
|
||||
var side = 'right';
|
||||
if ( x + frame.getBBox().width > width ) {
|
||||
side = 'left';
|
||||
}
|
||||
// set label content to determine correct dimensions
|
||||
label[0].attr( { text: date } );
|
||||
label[1].attr( { text: data + '× Spam' } );
|
||||
var ppp = r.popup( x, y, label, side, 1 ),
|
||||
anim = Raphael.animation( {
|
||||
path: ppp.path,
|
||||
transform: [ 't', ppp.dx, ppp.dy ],
|
||||
}, 200 * is_label_visible );
|
||||
lx = label[0].transform()[0][1] + ppp.dx;
|
||||
ly = label[0].transform()[0][2] + ppp.dy;
|
||||
frame.show().stop().animate( anim );
|
||||
|
||||
label[0].show().stop().animateWith( frame, anim, { transform: [ 't', lx, ly ] }, 200 * is_label_visible );
|
||||
label[1].show().stop().animateWith( frame, anim, { transform: [ 't', lx, ly ] }, 200 * is_label_visible );
|
||||
dot.attr( 'r', 6 );
|
||||
is_label_visible = true;
|
||||
}, function() {
|
||||
dot.attr( 'r', 4 );
|
||||
leave_timer = setTimeout( function() {
|
||||
frame.hide();
|
||||
label[0].hide();
|
||||
label[1].hide();
|
||||
is_label_visible = false;
|
||||
}, 1 );
|
||||
} );
|
||||
}( x, y, data[i], labels[i], dot ) );
|
||||
}
|
||||
p = p.concat( [ x, y, x, y ] );
|
||||
bgpp = bgpp.concat( [ x, y, x, y, 'L', x, height - bottomgutter, 'z' ] );
|
||||
path.attr( { path: p } );
|
||||
bgp.attr( { path: bgpp } );
|
||||
frame.toFront();
|
||||
label[0].toFront();
|
||||
label[1].toFront();
|
||||
blanket.toFront();
|
||||
}() );
|
5
wp-content/plugins/antispam-bee/js/dashboard.min.js
vendored
Normal file
5
wp-content/plugins/antispam-bee/js/dashboard.min.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
(function(){var labels=[],data=[];jQuery('#ab_chart_data tfoot th').each(function(){labels.push(jQuery(this).text())});jQuery('#ab_chart_data tbody td').each(function(){data.push(jQuery(this).text())});var width=jQuery('#ab_chart').parent().width()+8,height=140,leftgutter=0,bottomgutter=22,topgutter=22,color='#135e96',r=Raphael('ab_chart',width,height),txt={font:'bold 12px "Open Sans", sans-serif',fill:'#1d2327'},X=(width-leftgutter*2)/labels.length,max=Math.max.apply(Math,data),Y=(height-bottomgutter-topgutter)/max;r.text(16,16,max).attr({font:'normal 10px "Open Sans", sans-serif',fill:'#a7aaad',});var path=r.path().attr({stroke:color,'stroke-width':2,'stroke-linejoin':'round'}),bgp=r.path().attr({stroke:'none',opacity:.3,fill:color}),label=r.set(),lx=0,ly=0,is_label_visible=!1,leave_timer,blanket=r.set();label.push(r.text(60,12,'').attr(txt));label.push(r.text(60,27,'').attr(txt).attr({fill:color}));label.hide();var frame=r.popup(100,100,label,'right').attr({fill:'#fff',stroke:'#444','stroke-width':1}).hide();var p,bgpp;for(var i=0,ii=labels.length;i<ii;i++){var y=Math.round(height-bottomgutter-Y*data[i]),x=Math.round(leftgutter+X*(i+.5));if(!i){p=['M',x,y,'C',x,y];bgpp=['M',leftgutter+X*.5,height-bottomgutter,'L',x,y,'C',x,y]}
|
||||
if(i&&i<ii-1){var Y0=Math.round(height-bottomgutter-Y*data[i-1]),X0=Math.round(leftgutter+X*(i-.5)),Y2=Math.round(height-bottomgutter-Y*data[i+1]),X2=Math.round(leftgutter+X*(i+1.5));var a=getAnchors(X0,Y0,x,y,X2,Y2);p=p.concat([a.x1,a.y1,x,y,a.x2,a.y2]);bgpp=bgpp.concat([a.x1,a.y1,x,y,a.x2,a.y2])}
|
||||
var dot=r.circle(x,y,4).attr({fill:'#fff',stroke:color,'stroke-width':1});blanket.push(r.rect(leftgutter+X*i,0,X,height-bottomgutter).attr({stroke:'none',fill:'#fff',opacity:.2}));var rect=blanket[blanket.length-1];(function(x,y,data,date,dot){var timer,i=0;rect.hover(function(){clearTimeout(leave_timer);var side='right';if(x+frame.getBBox().width>width){side='left'}
|
||||
label[0].attr({text:date});label[1].attr({text:data+'× Spam'});var ppp=r.popup(x,y,label,side,1),anim=Raphael.animation({path:ppp.path,transform:['t',ppp.dx,ppp.dy],},200*is_label_visible);lx=label[0].transform()[0][1]+ppp.dx;ly=label[0].transform()[0][2]+ppp.dy;frame.show().stop().animate(anim);label[0].show().stop().animateWith(frame,anim,{transform:['t',lx,ly]},200*is_label_visible);label[1].show().stop().animateWith(frame,anim,{transform:['t',lx,ly]},200*is_label_visible);dot.attr('r',6);is_label_visible=!0},function(){dot.attr('r',4);leave_timer=setTimeout(function(){frame.hide();label[0].hide();label[1].hide();is_label_visible=!1},1)})}(x,y,data[i],labels[i],dot))}
|
||||
p=p.concat([x,y,x,y]);bgpp=bgpp.concat([x,y,x,y,'L',x,height-bottomgutter,'z']);path.attr({path:p});bgp.attr({path:bgpp});frame.toFront();label[0].toFront();label[1].toFront();blanket.toFront()}())
|
140
wp-content/plugins/antispam-bee/js/raphael.helper.js
Normal file
140
wp-content/plugins/antispam-bee/js/raphael.helper.js
Normal file
@ -0,0 +1,140 @@
|
||||
var tokenRegex = /\{([^\}]+)\}/g,
|
||||
objNotationRegex = /(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,
|
||||
replacer = function( all, key, obj ) {
|
||||
var res = obj;
|
||||
key.replace( objNotationRegex, function( all, name, quote, quotedName, isFunc ) {
|
||||
name = name || quotedName;
|
||||
if ( res ) {
|
||||
if ( name in res ) {
|
||||
res = res[name];
|
||||
}
|
||||
typeof res === 'function' && isFunc && ( res = res() );
|
||||
}
|
||||
} );
|
||||
res = ( res == null || res == obj ? all : res ) + '';
|
||||
return res;
|
||||
},
|
||||
fill = function( str, obj ) {
|
||||
return String( str ).replace( tokenRegex, function( all, key ) {
|
||||
return replacer( all, key, obj );
|
||||
} );
|
||||
};
|
||||
|
||||
Raphael.fn.popup = function( X, Y, set, pos, ret ) {
|
||||
pos = String( pos || 'top-middle' ).split( '-' );
|
||||
pos[1] = pos[1] || 'middle';
|
||||
var r = 5,
|
||||
bb = set.getBBox(),
|
||||
w = Math.round( bb.width ),
|
||||
h = Math.round( bb.height ),
|
||||
x = Math.round( bb.x ) - r,
|
||||
y = Math.round( bb.y ) - r,
|
||||
gap = Math.min( h / 2, w / 2, 10 ),
|
||||
shapes = {
|
||||
top: 'M{x},{y}h{w4},{w4},{w4},{w4}a{r},{r},0,0,1,{r},{r}v{h4},{h4},{h4},{h4}a{r},{r},0,0,1,-{r},{r}l-{right},0-{gap},{gap}-{gap}-{gap}-{left},0a{r},{r},0,0,1-{r}-{r}v-{h4}-{h4}-{h4}-{h4}a{r},{r},0,0,1,{r}-{r}z',
|
||||
bottom: 'M{x},{y}l{left},0,{gap}-{gap},{gap},{gap},{right},0a{r},{r},0,0,1,{r},{r}v{h4},{h4},{h4},{h4}a{r},{r},0,0,1,-{r},{r}h-{w4}-{w4}-{w4}-{w4}a{r},{r},0,0,1-{r}-{r}v-{h4}-{h4}-{h4}-{h4}a{r},{r},0,0,1,{r}-{r}z',
|
||||
right: 'M{x},{y}h{w4},{w4},{w4},{w4}a{r},{r},0,0,1,{r},{r}v{h4},{h4},{h4},{h4}a{r},{r},0,0,1,-{r},{r}h-{w4}-{w4}-{w4}-{w4}a{r},{r},0,0,1-{r}-{r}l0-{bottom}-{gap}-{gap},{gap}-{gap},0-{top}a{r},{r},0,0,1,{r}-{r}z',
|
||||
left: 'M{x},{y}h{w4},{w4},{w4},{w4}a{r},{r},0,0,1,{r},{r}l0,{top},{gap},{gap}-{gap},{gap},0,{bottom}a{r},{r},0,0,1,-{r},{r}h-{w4}-{w4}-{w4}-{w4}a{r},{r},0,0,1-{r}-{r}v-{h4}-{h4}-{h4}-{h4}a{r},{r},0,0,1,{r}-{r}z',
|
||||
},
|
||||
offset = {
|
||||
hx0: X - ( x + r + w - gap * 2 ),
|
||||
hx1: X - ( x + r + w / 2 - gap ),
|
||||
hx2: X - ( x + r + gap ),
|
||||
vhy: Y - ( y + r + h + r + gap ),
|
||||
'^hy': Y - ( y - gap ),
|
||||
|
||||
},
|
||||
mask = [ {
|
||||
x: x + r,
|
||||
y: y,
|
||||
w: w,
|
||||
w4: w / 4,
|
||||
h4: h / 4,
|
||||
right: 0,
|
||||
left: w - gap * 2,
|
||||
bottom: 0,
|
||||
top: h - gap * 2,
|
||||
r: r,
|
||||
h: h,
|
||||
gap: gap,
|
||||
}, {
|
||||
x: x + r,
|
||||
y: y,
|
||||
w: w,
|
||||
w4: w / 4,
|
||||
h4: h / 4,
|
||||
left: w / 2 - gap,
|
||||
right: w / 2 - gap,
|
||||
top: h / 2 - gap,
|
||||
bottom: h / 2 - gap,
|
||||
r: r,
|
||||
h: h,
|
||||
gap: gap,
|
||||
}, {
|
||||
x: x + r,
|
||||
y: y,
|
||||
w: w,
|
||||
w4: w / 4,
|
||||
h4: h / 4,
|
||||
left: 0,
|
||||
right: w - gap * 2,
|
||||
top: 0,
|
||||
bottom: h - gap * 2,
|
||||
r: r,
|
||||
h: h,
|
||||
gap: gap,
|
||||
} ][pos[1] == 'middle' ? 1 : ( pos[1] == 'top' || pos[1] == 'left' ) * 2];
|
||||
var dx = 0,
|
||||
dy = 0,
|
||||
out = this.path( fill( shapes[pos[0]], mask ) ).insertBefore( set );
|
||||
switch ( pos[0] ) {
|
||||
case 'top':
|
||||
dx = X - ( x + r + mask.left + gap );
|
||||
dy = Y - ( y + r + h + r + gap );
|
||||
break;
|
||||
case 'bottom':
|
||||
dx = X - ( x + r + mask.left + gap );
|
||||
dy = Y - ( y - gap );
|
||||
break;
|
||||
case 'left':
|
||||
dx = X - ( x + r + w + r + gap );
|
||||
dy = Y - ( y + r + mask.top + gap );
|
||||
break;
|
||||
case 'right':
|
||||
dx = X - ( x - gap );
|
||||
dy = Y - ( y + r + mask.top + gap );
|
||||
break;
|
||||
}
|
||||
out.translate( dx, dy );
|
||||
if ( ret ) {
|
||||
ret = out.attr( 'path' );
|
||||
out.remove();
|
||||
return {
|
||||
path: ret,
|
||||
dx: dx,
|
||||
dy: dy,
|
||||
};
|
||||
}
|
||||
set.translate( dx, dy );
|
||||
return out;
|
||||
};
|
||||
|
||||
function getAnchors( p1x, p1y, p2x, p2y, p3x, p3y ) {
|
||||
var l1 = ( p2x - p1x ) / 2,
|
||||
l2 = ( p3x - p2x ) / 2,
|
||||
a = Math.atan( ( p2x - p1x ) / Math.abs( p2y - p1y ) ),
|
||||
b = Math.atan( ( p3x - p2x ) / Math.abs( p2y - p3y ) );
|
||||
a = p1y < p2y ? Math.PI - a : a;
|
||||
b = p3y < p2y ? Math.PI - b : b;
|
||||
var alpha = Math.PI / 2 - ( ( a + b ) % ( Math.PI * 2 ) ) / 2,
|
||||
dx1 = l1 * Math.sin( alpha + a ),
|
||||
dy1 = l1 * Math.cos( alpha + a ),
|
||||
dx2 = l2 * Math.sin( alpha + b ),
|
||||
dy2 = l2 * Math.cos( alpha + b );
|
||||
return {
|
||||
x1: p2x - dx1,
|
||||
y1: p2y + dy1,
|
||||
x2: p2x + dx2,
|
||||
y2: p2y + dy2,
|
||||
};
|
||||
}
|
4
wp-content/plugins/antispam-bee/js/raphael.helper.min.js
vendored
Normal file
4
wp-content/plugins/antispam-bee/js/raphael.helper.min.js
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
var tokenRegex=/\{([^\}]+)\}/g,objNotationRegex=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,replacer=function(all,key,obj){var res=obj;key.replace(objNotationRegex,function(all,name,quote,quotedName,isFunc){name=name||quotedName;if(res){if(name in res){res=res[name]}
|
||||
typeof res==='function'&&isFunc&&(res=res())}});res=(res==null||res==obj?all:res)+'';return res},fill=function(str,obj){return String(str).replace(tokenRegex,function(all,key){return replacer(all,key,obj)})};Raphael.fn.popup=function(X,Y,set,pos,ret){pos=String(pos||'top-middle').split('-');pos[1]=pos[1]||'middle';var r=5,bb=set.getBBox(),w=Math.round(bb.width),h=Math.round(bb.height),x=Math.round(bb.x)-r,y=Math.round(bb.y)-r,gap=Math.min(h/2,w/2,10),shapes={top:'M{x},{y}h{w4},{w4},{w4},{w4}a{r},{r},0,0,1,{r},{r}v{h4},{h4},{h4},{h4}a{r},{r},0,0,1,-{r},{r}l-{right},0-{gap},{gap}-{gap}-{gap}-{left},0a{r},{r},0,0,1-{r}-{r}v-{h4}-{h4}-{h4}-{h4}a{r},{r},0,0,1,{r}-{r}z',bottom:'M{x},{y}l{left},0,{gap}-{gap},{gap},{gap},{right},0a{r},{r},0,0,1,{r},{r}v{h4},{h4},{h4},{h4}a{r},{r},0,0,1,-{r},{r}h-{w4}-{w4}-{w4}-{w4}a{r},{r},0,0,1-{r}-{r}v-{h4}-{h4}-{h4}-{h4}a{r},{r},0,0,1,{r}-{r}z',right:'M{x},{y}h{w4},{w4},{w4},{w4}a{r},{r},0,0,1,{r},{r}v{h4},{h4},{h4},{h4}a{r},{r},0,0,1,-{r},{r}h-{w4}-{w4}-{w4}-{w4}a{r},{r},0,0,1-{r}-{r}l0-{bottom}-{gap}-{gap},{gap}-{gap},0-{top}a{r},{r},0,0,1,{r}-{r}z',left:'M{x},{y}h{w4},{w4},{w4},{w4}a{r},{r},0,0,1,{r},{r}l0,{top},{gap},{gap}-{gap},{gap},0,{bottom}a{r},{r},0,0,1,-{r},{r}h-{w4}-{w4}-{w4}-{w4}a{r},{r},0,0,1-{r}-{r}v-{h4}-{h4}-{h4}-{h4}a{r},{r},0,0,1,{r}-{r}z',},offset={hx0:X-(x+r+w-gap*2),hx1:X-(x+r+w/2-gap),hx2:X-(x+r+gap),vhy:Y-(y+r+h+r+gap),'^hy':Y-(y-gap),},mask=[{x:x+r,y:y,w:w,w4:w/4,h4:h/4,right:0,left:w-gap*2,bottom:0,top:h-gap*2,r:r,h:h,gap:gap,},{x:x+r,y:y,w:w,w4:w/4,h4:h/4,left:w/2-gap,right:w/2-gap,top:h/2-gap,bottom:h/2-gap,r:r,h:h,gap:gap,},{x:x+r,y:y,w:w,w4:w/4,h4:h/4,left:0,right:w-gap*2,top:0,bottom:h-gap*2,r:r,h:h,gap:gap,}][pos[1]=='middle'?1:(pos[1]=='top'||pos[1]=='left')*2];var dx=0,dy=0,out=this.path(fill(shapes[pos[0]],mask)).insertBefore(set);switch(pos[0]){case 'top':dx=X-(x+r+mask.left+gap);dy=Y-(y+r+h+r+gap);break;case 'bottom':dx=X-(x+r+mask.left+gap);dy=Y-(y-gap);break;case 'left':dx=X-(x+r+w+r+gap);dy=Y-(y+r+mask.top+gap);break;case 'right':dx=X-(x-gap);dy=Y-(y+r+mask.top+gap);break}
|
||||
out.translate(dx,dy);if(ret){ret=out.attr('path');out.remove();return{path:ret,dx:dx,dy:dy,}}
|
||||
set.translate(dx,dy);return out};function getAnchors(p1x,p1y,p2x,p2y,p3x,p3y){var l1=(p2x-p1x)/2,l2=(p3x-p2x)/2,a=Math.atan((p2x-p1x)/Math.abs(p2y-p1y)),b=Math.atan((p3x-p2x)/Math.abs(p2y-p3y));a=p1y<p2y?Math.PI-a:a;b=p3y<p2y?Math.PI-b:b;var alpha=Math.PI/2-((a+b)%(Math.PI*2))/2,dx1=l1*Math.sin(alpha+a),dy1=l1*Math.cos(alpha+a),dx2=l2*Math.sin(alpha+b),dy2=l2*Math.cos(alpha+b);return{x1:p2x-dx1,y1:p2y+dy1,x2:p2x+dx2,y2:p2y+dy2,}}
|
3
wp-content/plugins/antispam-bee/js/raphael.min.js
vendored
Normal file
3
wp-content/plugins/antispam-bee/js/raphael.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
20
wp-content/plugins/antispam-bee/js/scripts.js
Normal file
20
wp-content/plugins/antispam-bee/js/scripts.js
Normal file
@ -0,0 +1,20 @@
|
||||
jQuery( document ).ready(
|
||||
function( $ ) {
|
||||
function ab_flag_spam() {
|
||||
var $$ = $( '#ab_flag_spam' ),
|
||||
nextAll = $$.parent( 'li' ).nextAll( '.ab_flag_spam_child' );
|
||||
|
||||
nextAll.css(
|
||||
'display',
|
||||
( $$.is( ':checked' ) ? 'list-item' : 'none' )
|
||||
);
|
||||
}
|
||||
|
||||
$( '#ab_flag_spam' ).on(
|
||||
'change',
|
||||
ab_flag_spam
|
||||
);
|
||||
|
||||
ab_flag_spam();
|
||||
}
|
||||
);
|
2
wp-content/plugins/antispam-bee/js/scripts.min.js
vendored
Normal file
2
wp-content/plugins/antispam-bee/js/scripts.min.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
jQuery(document).ready(function($){function ab_flag_spam(){var $$=$('#ab_flag_spam'),nextAll=$$.parent('li').nextAll('.ab_flag_spam_child');nextAll.css('display',($$.is(':checked')?'list-item':'none'))}
|
||||
$('#ab_flag_spam').on('change',ab_flag_spam);ab_flag_spam()})
|
300
wp-content/plugins/antispam-bee/readme.txt
Normal file
300
wp-content/plugins/antispam-bee/readme.txt
Normal file
@ -0,0 +1,300 @@
|
||||
# Antispam Bee #
|
||||
* Contributors: pluginkollektiv, websupporter, schlessera, zodiac1978, swissspidy, krafit, kau-boy, florianbrinkmann, pfefferle
|
||||
* Tags: anti-spam, antispam, block spam, comment, comments, comment spam, pingback, spam, spam filter, trackback, GDPR
|
||||
* Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
|
||||
* Requires at least: 4.5
|
||||
* Tested up to: 6.3
|
||||
* Requires PHP: 5.2
|
||||
* Stable tag: 2.11.5
|
||||
* License: GPLv2 or later
|
||||
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
Antispam plugin with a sophisticated tool set for effective day to day comment and trackback spam-fighting. Build with data protection and privacy in mind.
|
||||
|
||||
## Description ##
|
||||
Say Goodbye to comment spam on your WordPress blog or website. *Antispam Bee* blocks spam comments and trackbacks effectively, without captchas and without sending personal information to third party services. It is free of charge, ad-free and 100% GDPR compliant.
|
||||
|
||||
### Feature/Settings Overview ###
|
||||
* Trust approved commenters.
|
||||
* Trust commenters with a Gravatar.
|
||||
* Consider the comment time.
|
||||
* Allow comments only in a certain language.
|
||||
* Block or allow commenters from certain countries.
|
||||
* Treat BBCode links as spam.
|
||||
* Use regular expressions.
|
||||
* Search local spam database for commenters previously marked as spammers.
|
||||
* Notify admins by e-mail about incoming spam.
|
||||
* Delete existing spam after n days.
|
||||
* Limit approval to comments/pings (will delete other comment types).
|
||||
* Select spam indicators to send comments to deletion directly.
|
||||
* Optionally exclude trackbacks and pingbacks from spam detection.
|
||||
* Optionally spam-check comment forms on archive pages.
|
||||
* Display spam statistics on the dashboard, including daily updates of spam detection rate and a total of blocked spam comments.
|
||||
|
||||
### Support ###
|
||||
* Community support via the [support forums on wordpress.org](https://wordpress.org/support/plugin/antispam-bee)
|
||||
* Read [the documentation](https://antispambee.pluginkollektiv.org/documentation/)
|
||||
* We don’t handle support via e-mail, Twitter, GitHub issues etc.
|
||||
|
||||
### Contribute ###
|
||||
* Active development of this plugin is handled [on GitHub](https://github.com/pluginkollektiv/antispam-bee).
|
||||
* Pull requests for documented bugs are highly appreciated.
|
||||
* If you think you’ve found a bug (e.g. you’re experiencing unexpected behavior), please post at the [support forums](https://wordpress.org/support/plugin/antispam-bee) first.
|
||||
* If you want to help us translate this plugin you can do so [on WordPress Translate](https://translate.wordpress.org/projects/wp-plugins/antispam-bee).
|
||||
|
||||
### Credits ###
|
||||
* Author: [Sergej Müller](https://sergejmueller.github.io/)
|
||||
* Maintainers: [pluginkollektiv](https://pluginkollektiv.org)
|
||||
|
||||
## Installation ##
|
||||
* If you don’t know how to install a plugin for WordPress, [here’s how](https://wordpress.org/documentation/article/manage-plugins/#automatic-plugin-installation-1).
|
||||
|
||||
### Requirements ###
|
||||
* PHP 5.2.4 or greater
|
||||
* WordPress 4.5 or greater
|
||||
|
||||
### Settings ###
|
||||
After you have activated *Antispam Bee* the plugin will block spam comments out of the box. However, you may want to visit *Settings → Antispam Bee* to configure your custom set of anti-spam options that works best for your site.
|
||||
|
||||
## Frequently Asked Questions ##
|
||||
|
||||
### Does Antispam Bee prevents spam registrations or protects form plugins? ###
|
||||
Antispam Bee works best with default WordPress comments. It does not help to protect form plugins and does not prevent spam registrations. Hopefully we can provide better hooks for third party plugins to use Antispam Bee to fill this gap in the forthcoming new major version.
|
||||
|
||||
### Does Antispam Bee work with Jetpack, wpDiscuz, Disqus Comments and similar comment plugins?
|
||||
Antispam Bee works best with default WordPress comments. It is not compatible with Jetpack, wpDiscuz or Disqus Comments as those plugins load a new comment form within an iframe. Thus Antispam Bee can not access the comment form directly.
|
||||
|
||||
### Does Antispam Bee work with AJAX comment plugins or similar theme features?
|
||||
Whether Antispam Bee works with a comment form submitted via AJAX depends on how the AJAX request is made. If the request goes to the file that usually also receives the comments, Antispam Bee could work with it out of the box (the [WP Ajaxify Comments](https://wordpress.org/plugins/wp-ajaxify-comments/) plugin does this, for example).
|
||||
|
||||
If the comments are sent to the `admin-ajax.php`, the `antispam_bee_disallow_ajax_calls` filter must be used to run ASB for requests to that file as well. If the script does not send all form data to the file, but only some selected ones, further customization is probably necessary, as [exemplified in this post by Torsten Landsiedel](https://torstenlandsiedel.de/2020/10/04/ajaxifizierte-kommentare-und-antispam-bee/) (in German).
|
||||
|
||||
### Does Antispam Bee store any private user data, and is it compliant with GDPR? ###
|
||||
Antispam Bee is developed in Europe. You might have heard we can be a bit nitpicky over here when it comes to privacy. The plugin does not save private user data and is 100% compliant with GDPR.
|
||||
|
||||
### Will I have to edit any theme templates to get Antispam Bee to work? ###
|
||||
No, the plugin works as is. You may want to configure your favorite settings, though.
|
||||
|
||||
### Does Antispam Bee work with shortened IPs? ###
|
||||
Generally yes. However, commissioning the Antispam Bee plugin for canceled or shortened IP addresses in comment metadata is not recommended. Because the name and the e-mail address of the comments are not unique, an IP address is the only reliable measure. The more complete the stored IP addresses, the more reliable the assignment or detection of spam.
|
||||
|
||||
### How can I submit undetected spam? ###
|
||||
If the antispam plugin has passed some spam comments, these comments can be reported for analysis. A [Google table](http://goo.gl/forms/ITzVHXkLVL) was created for this purpose.
|
||||
|
||||
### Antispam Bee with Varnish? ###
|
||||
If WordPress is operated with Apache + Varnish, the actual IP address of the visitors does not appear in WordPress. Accordingly the Antispam-Plugin lacks the base for the correct functionality. An adaptation in the Varnish configuration file /etc/varnish/default.vcl provides a remedy and forwards the original (not from Apache) IP address in the HTTP header X-Forwarded-For:
|
||||
|
||||
> if (req.restarts == 0) {
|
||||
> set req.http.X-Forwarded-For = client.ip;
|
||||
> }
|
||||
|
||||
### Are there some paid services or limitations? ###
|
||||
No, Antispam Bee is free forever, for both private and commercial projects. You can use it on as many sites as you want. There is no limitation to the number of sites you use the plugin on.
|
||||
|
||||
A complete documentation is available on [pluginkollektiv.org](https://antispambee.pluginkollektiv.org/documentation/).
|
||||
|
||||
## Changelog ##
|
||||
|
||||
### 2.11.5 ###
|
||||
IMPORTANT: If you use the country check and are behind a proxy or similar, you need to use the `antispam_bee_trusted_ip` filter to get the correct IP from a header like `HTTP_X_FORWARDED` (don’t return an empty value here, otherwise all comments are marked as spam).
|
||||
* Fix: Usage of core filter `pre_comment_user_ip` breaks ASB if the IP address is removed for GDPR compliance
|
||||
|
||||
### 2.11.4 ###
|
||||
IMPORTANT: If you use the country check and are behind a proxy or similar, you need to use the `pre_comment_user_ip` filter to get the correct IP from a header like `HTTP_X_FORWARDED`.
|
||||
* Fix: Read client IP for country check from `REMOTE_ADDR` only (filterable via `pre_comment_user_ip`)
|
||||
* Fix: No spam reason in spam notification email, and related PHP warning
|
||||
* Fix: Remove outdated info from readme
|
||||
* Enhancement: Show upgrade notice on plugin overview page
|
||||
* Maintenance: Tested up to WordPress 6.3
|
||||
|
||||
### 2.11.3 ###
|
||||
* Fix: Multiselect for "Delete comments by spam reasons" was not saving values
|
||||
* Fix: Fix broken link for ISO country codes
|
||||
* Maintenance: Added test for PHP 8.2
|
||||
* Maintenance: Tested up to WordPress 6.2
|
||||
|
||||
### 2.11.2 ###
|
||||
* Tweak: remove superfluous translations
|
||||
* Tweak: make FAQ link an anchor link
|
||||
* Fix: spam counter no longer raises a warning with PHP 8.1 if no spam is present yet
|
||||
* Fix: spam reasons are now localized correctly
|
||||
* Fix: Translations were loaded twice on some admin pages
|
||||
* Maintenance: Tested up to WordPress 6.1
|
||||
|
||||
### 2.11.1 ###
|
||||
* Tweak: remove superfluous type attribute from inline script tag
|
||||
* Maintenance: Tested up to WordPress 6.0
|
||||
|
||||
### 2.11.0 ###
|
||||
* Fix: Allow empty comments if `allow_empty_comment` is set to true
|
||||
* Fix: Add `aria-label` to work around bug in a11y testing tools
|
||||
* Fix: Change priority for `comment_form_field_comment` from 10 to 99
|
||||
* Tweak: Updated some FAQ entries
|
||||
* Tweak: Updated build tooling
|
||||
|
||||
### 2.10.0 ###
|
||||
* Fix: Switch from ip2country.info to iplocate.io for country check
|
||||
* Enhancement: Use filter to add the honeypot field instead of output buffering for new installations and added option to switch between the both ways
|
||||
* Tweak: Added comment user agent to regex pattern check
|
||||
* Tweak: Make the ping detection filterable to support new comment types
|
||||
* Tweak: Updated internal documentation links
|
||||
* Tweak: Several updates and optimizations in the testing process
|
||||
* Tweak: Adjust color palette to recent WP version
|
||||
* Tweak: Adjust wording in variables and option names
|
||||
* Readme: Add new contributor and clean up unused code
|
||||
|
||||
|
||||
### 2.9.4 ###
|
||||
* Enhancement: Add filter to allow ajax calls
|
||||
* Tweak: Better wording for BBCode feature in plugin description
|
||||
* Tweak: Better screenshots in the plugin directory
|
||||
* Maintenance: Tested up to WordPress 5.7
|
||||
|
||||
### 2.9.3 ###
|
||||
* Fixed: Compatibility with WordPress 5.5
|
||||
* Fixed: Undefined index on spam list page
|
||||
* Tweak: Better wording on settings page
|
||||
* Tweak: AMP compatibility
|
||||
* Tweak: Protect CSS from overwrite through bad themes
|
||||
|
||||
### 2.9.2 ###
|
||||
* Fix: Delete comment meta for deleted old spam. For the cleanup of older orphaned comment meta we suggest the usage of [WP Sweep](https://wordpress.org/plugins/wp-sweep/)
|
||||
* Fix: Statistic in dashboard showed wrong value
|
||||
* Tweak: Change autocomplete attribute to "new-password"
|
||||
* Tweak: Autoptimize compatibility improved
|
||||
* Tweak: Renamed blacklist/whitelist to a better phrase
|
||||
* Tweak: Added new pattern
|
||||
* Tweak: UI and text optimizations
|
||||
* Tweak: Better compatibility with some server configurations
|
||||
* Tweak: Make spam reason sortable and filterable
|
||||
* Tweak: Add spam reason for manually marked spam
|
||||
* Maintenance: Deleted unused code
|
||||
* Maintenance: Removed Fake IP check (unreliable and producing false positives)
|
||||
* Maintenance: Fix some coding standard issues
|
||||
* Maintenance: Tested up to WordPress 5.4
|
||||
* Maintenance: Tested up to PHP 7.4
|
||||
|
||||
### 2.9.1 ###
|
||||
* Improved backend accessibility
|
||||
* Prefilled comment textareas do now work with the honeypot
|
||||
* Compatible with the AMP plugin (https://wordpress.org/plugins/amp/)
|
||||
* Improved dashboard tooltips
|
||||
* Improvements for the language detection API
|
||||
* Scalable IP look up for local spam database
|
||||
|
||||
### 2.9.0 ###
|
||||
* Introduction of coding standards.
|
||||
* Switch to franc language detection API for the language check.
|
||||
* Do not longer overwrite the IP address WordPress saves with the comment by using `pre_comment_user_ip`.
|
||||
* Do not show "Trust commenters with a Gravatar" if the "Show Gravatar" option is not set.
|
||||
* Skip the checks, when I ping myself.
|
||||
* Fixes some wrong usages of the translation functions.
|
||||
* Use the regular expressions check also for trackbacks.
|
||||
* Add option to delete Antispam Bee related data when plugin gets deleted via the admin interface.
|
||||
* Save a hashed + salted IP for every comment
|
||||
* New check for incoming trackbacks.
|
||||
* Introduction of behat tests.
|
||||
* Updates the used JavaScript library for the statistics widget.
|
||||
* Bugfix in the "Comment form used outside of posts" option.
|
||||
|
||||
### 2.8.1 ###
|
||||
* PHP 5.3 compatibility
|
||||
* Bugfix where a spam trackback produced a fatal error
|
||||
* For more details see https://github.com/pluginkollektiv/antispam-bee/milestone/8?closed=1
|
||||
|
||||
### 2.8.0 ###
|
||||
* Removed stopforumspam.com to avoid potential GDPR violation
|
||||
* Improves IP handling to comply with GDPR
|
||||
* Improves PHP7.2 compatibility
|
||||
* Fixes small bug on mobile views
|
||||
* Allow more than one language in language check
|
||||
* Minor interface improvements
|
||||
* Remove old russian and Dutch translation files
|
||||
* For more details see https://github.com/pluginkollektiv/antispam-bee/milestone/4?closed=1
|
||||
|
||||
### 2.7.1 ###
|
||||
* Fixes an incompatibility with Chrome autofill
|
||||
* Fixes some incompatibilities with other plugins/themes where the comment field was left empty
|
||||
* Support for RTL
|
||||
* Solve some translation/language issues
|
||||
* A new filter to add languages to the language check
|
||||
* For more details see https://github.com/pluginkollektiv/antispam-bee/milestone/6?closed=1
|
||||
|
||||
### 2.7.0 ###
|
||||
* Country check is back again (thanks to Sergej Müller for his amazing work and the service page)
|
||||
* Improved Honeypot
|
||||
* Language check through Google Translate API is back again (thanks to Simon Kraft of https://moenus.net/ for offering to cover the costs)
|
||||
* More default Regexes
|
||||
* Unit Test Framework
|
||||
* Accessibility and GUI improvements
|
||||
* An [english documentation](https://github.com/pluginkollektiv/antispam-bee/wiki) is now available, too. Some corrections in the german documentation.
|
||||
* Some bugfixes - Among other things for WPML compatibility
|
||||
* For more details see https://github.com/pluginkollektiv/antispam-bee/milestone/3?closed=1
|
||||
|
||||
### 2.6.9 ###
|
||||
* Updates donation links throughout the plugin
|
||||
* Fixes an error were JavaScript on the dashboard was erroneously being enqueued
|
||||
* Ensures compatibility with the latest WordPress version
|
||||
|
||||
### 2.6.8 ###
|
||||
* added a POT file
|
||||
* updated German translation, added formal version
|
||||
* updated plugin text domain to include a dash instead of an underscore
|
||||
* updated, translated + formatted README.md
|
||||
* updated expired link URLs in plugin and languages files
|
||||
* updated [plugin authors](https://pluginkollektiv.org/hello-world/)
|
||||
|
||||
### 2.6.7 ###
|
||||
* Removal of functions *Block comments from specific countries* and *Allow comments only in certain language* for financial reasons - [more information](https://antispambee.pluginkollektiv.org/news/2015/removal-of-allow-comments-only-in-certain-language/)
|
||||
|
||||
### 2.6.6 ###
|
||||
* Switch to the official Google Translation API
|
||||
* *Release time investment (Development & QA): 2.5 h*
|
||||
|
||||
### 2.6.5 ###
|
||||
* Fix: Return parameters on `dashboard_glance_items` callback / thx [@toscho](https://twitter.com/toscho)
|
||||
* New function: Trust commenters with a Gravatar / thx [@glueckpress](https://twitter.com/glueckpress)
|
||||
* Additional plausibility checks and filters
|
||||
* *Release time investment (Development & QA): 12 h*
|
||||
|
||||
### 2.6.4 ###
|
||||
* Consideration of the comment time (Spam if a comment was written in less than 5 seconds) - [more information](https://antispambee.pluginkollektiv.org/news/2014/antispam-bee-2-6-4/)
|
||||
* *Release time investment (Development & QA): 6.25 h*
|
||||
|
||||
### 2.6.3 ###
|
||||
* Sorting for the Antispam Bee column in the spam comments overview
|
||||
* Code refactoring around the use of REQUEST_URI
|
||||
* *Release time investment (Development & QA): 2.75 h*
|
||||
|
||||
### 2.6.2 ###
|
||||
* Improving detection of fake IPs
|
||||
* *Release time investment (Development & QA): 11 h*
|
||||
|
||||
### 2.6.1 ###
|
||||
* Code refactoring of options management
|
||||
* Support for `HTTP_FORWARDED_FOR` header
|
||||
* *Release time investment (Development & QA): 8.5 h*
|
||||
|
||||
### 2.6.0 ###
|
||||
* Optimizations for WordPress 3.8
|
||||
* Clear invalid UTF-8 characters in comment fields
|
||||
* Spam reason as a column in the table with spam comments
|
||||
|
||||
For the complete changelog, check out our [GitHub repository](https://github.com/pluginkollektiv/antispam-bee).
|
||||
|
||||
== Upgrade Notice ==
|
||||
|
||||
= 2.11.5 =
|
||||
Instead of pre_comment_user_ip you need to use our new filter antispam_bee_trusted_ip to send the correct IP address
|
||||
|
||||
= 2.11.3 =
|
||||
The multiselect field for "Delete comments by spam reasons" did not store any values in the last version - please check the setting after the update!
|
||||
|
||||
= 2.8.0 =
|
||||
This update makes sure your spam check is GDPR compliant, no matter the options you choose. Please make sure to update before May 25th!
|
||||
|
||||
## Screenshots ##
|
||||
1. Block or allow comments from specific countries.
|
||||
2. Allow comments only in certain languages.
|
||||
3. Add useful spam stats to your dashboard.
|
||||
4. Tailor WordPress' spam management to your workflow.
|
Reference in New Issue
Block a user