PDF rausgenommen

This commit is contained in:
aschwarz
2023-01-23 11:03:31 +01:00
parent 82d562a322
commit a6523903eb
28078 changed files with 4247552 additions and 2 deletions

View 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.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,18 @@
#ab_chart {
color: #a0a5aa;
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;
}

View File

@ -0,0 +1 @@
#ab_chart{color:#a0a5aa;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;}

View File

@ -0,0 +1,268 @@
/* @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 Browse Happy */
.browsehappy {
margin: 0 0 20px;
padding: 10px;
border: 1px solid #e66f00;
text-align: center;
}
/* @end group */
/* @group Columns */
.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;
}
/* @end group */
/* @group Headlines + Icons */
.ab-column h3 {
margin: 0;
font-size: 18px;
font-weight: normal;
line-height: 20px;
color: #23282d;
}
.ab-column h3.icon:before {
font: normal 30px/30px Dashicons;
top: 4px;
right: 20px;
speak: none;
width: 1em;
color: #8e959c;
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: #555d66;
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: #f8f8f9;
}
.ab-column input[type="number"] {
padding: 0;
}
.ab-column select[multiple] {
width: 175px;
min-height: 60px;
}
.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: #8e959c;
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: #23282d;
}
.ab-column > ul > li label span {
color: #555d66;
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: #f1f1f1 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 #e0e5e9;
}
.ab-column--submit-service p:last-of-type {
border-bottom: 1px solid #e0e5e9;
}
.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 > input[type="checkbox"]:checked ~ ul {
display: block;
}
/* @end group */

View 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}.browsehappy{margin:0 0 20px;padding:10px;border:1px solid #e66f00;text-align:center}.ab-wrap{margin:0 0 0 -10px;padding:20px 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:#23282d}.ab-column h3.icon:before{font:400 30px/30px Dashicons;top:4px;right:20px;speak:none;width:1em;color:#8e959c;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:#555d66;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:#f8f8f9}.ab-column input[type=number]{padding:0}.ab-column select[multiple]{width:175px;min-height:60px}.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:#8e959c;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:#23282d}.ab-column>ul>li label span{color:#555d66;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:after,.ab-column.ab-arrow>ul>li:before{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:#f1f1f1 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 #e0e5e9}.ab-column--submit-service p:last-of-type{border-bottom:1px solid #e0e5e9}.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>input[type=checkbox]:checked~ul{display:block}

View File

@ -0,0 +1,105 @@
<?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;
}
/**
* Adjust orderby query
*
* @since 2.6.3
* @change 2.6.3
*
* @param \WP_Query $query Current WordPress query.
*/
public static function set_orderby_query( $query ) {
$orderby = $query->get( 'orderby' );
if ( empty( $orderby ) || 'antispam_bee_reason' !== $orderby ) {
return;
}
$query->set( 'meta_key', 'antispam_bee_reason' );
$query->set( 'orderby', 'meta_value' );
}
/**
* 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
}
}

View File

@ -0,0 +1,576 @@
<?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
* @change 2.7.0
*/
public static function save_changes() {
if ( empty( $_POST ) ) {
wp_die( esc_html__( 'Cheatin&#8217; uh?', 'antispam-bee' ) );
}
if ( ! current_user_can( 'manage_options' ) ) {
wp_die( esc_html__( 'Cheatin&#8217; 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'] ) ),
'advanced_check' => (int) ( ! empty( $_POST['ab_advanced_check'] ) ),
'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'] ) ),
'always_allowed' => (int) ( ! empty( $_POST['ab_always_allowed'] ) ),
'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_black' => sanitize_text_field( wp_unslash( self::get_key( $_POST, 'ab_country_black' ) ) ),
'country_white' => sanitize_text_field( wp_unslash( self::get_key( $_POST, 'ab_country_white' ) ) ),
'translate_api' => (int) ( ! empty( $_POST['ab_translate_api'] ) ),
'translate_lang' => $selected_languages,
'delete_data_on_uninstall' => (int) ( ! empty( $_POST['delete_data_on_uninstall'] ) ),
);
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_black'] ) ) {
$options['country_black'] = preg_replace(
'/[^A-Z ,;]/',
'',
strtoupper( $options['country_black'] )
);
}
if ( ! empty( $options['country_white'] ) ) {
$options['country_white'] = preg_replace(
'/[^A-Z ,;]/',
'',
strtoupper( $options['country_white'] )
);
}
if ( empty( $options['country_black'] ) && empty( $options['country_white'] ) ) {
$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
* @change 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
* @change 2.7.0
*/
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">
<!--[if lt IE 9]>
<p class="browsehappy">
<a href="http://browsehappy.com">Browse Happy</a>
</p>
<![endif]-->
<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://github.com/pluginkollektiv/antispam-bee/wiki/en-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 is 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_advanced_check" id="ab_advanced_check" value="1" <?php checked( $options['advanced_check'], 1 ); ?> />
<label for="ab_advanced_check">
<?php esc_html_e( 'Validate the ip address of commenters', 'antispam-bee' ); ?>
<span><?php esc_html_e( 'Validation of the IP address used', '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://github.com/pluginkollektiv/antispam-bee/wiki/en-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">',
esc_url(
__( 'https://www.iso.org/iso/country_names_and_code_elements', 'antispam-bee' ),
'https'
)
);
?>
<li>
<textarea name="ab_country_black" id="ab_country_black" class="ab-medium-field code" placeholder="<?php esc_attr_e( 'e.g. BF, SG, YE', 'antispam-bee' ); ?>"><?php echo esc_attr( $options['country_black'] ); ?></textarea>
<label for="ab_country_black">
<span>
<?php
printf(
/* translators: 1: opening <a> tag with link to ISO codes reference. 2: closing </a> tag. */
esc_html__( 'Blacklist %1$sISO Codes%2$s for this option.', 'antispam-bee' ),
wp_kses_post( $iso_codes_link ),
'</a>'
);
?>
</span>
</label>
</li>
<li>
<textarea name="ab_country_white" id="ab_country_white" class="ab-medium-field code" placeholder="<?php esc_attr_e( 'e.g. BF, SG, YE', 'antispam-bee' ); ?>"><?php echo esc_attr( $options['country_white'] ); ?></textarea>
<label for="ab_country_white">
<span>
<?php
printf(
/* translators: 1: opening <a> tag with link to ISO codes reference. 2: closing </a> tag. */
esc_html__( 'Whitelist %1$sISO 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://github.com/pluginkollektiv/antispam-bee/wiki/en-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.XSS.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 _build_select
);
?>
<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>
<select name="ab_ignore_reasons[]" id="ab_ignore_reasons" size="2" 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>
<label for="ab_ignore_reasons">
<?php esc_html_e( 'Spam Reason', 'antispam-bee' ); ?>
</label>
</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_always_allowed" id="ab_always_allowed" value="1" <?php checked( $options['always_allowed'], 1 ); ?> />
<label for="ab_always_allowed">
<?php esc_html_e( 'Comment form used outside of posts', 'antispam-bee' ); ?>
<span><?php esc_html_e( 'Check for comment forms on archive pages', 'antispam-bee' ); ?></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://github.com/pluginkollektiv/antispam-bee/wiki/', 'antispam-bee' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Manual', 'antispam-bee' ); ?></a>
</p>
<p>
<a href="<?php echo esc_url( __( 'https://wordpress.org/support/plugin/antispam-bee', '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 );
}
}

View File

@ -0,0 +1,111 @@
(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 = '#0073aa',
r = Raphael("ab_chart", width, height),
txt = {font: 'bold 12px "Open Sans", sans-serif', fill: "#32373c"},
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: "#b4b9be"
}
);
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();
})();

View 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='#0073aa',r=Raphael("ab_chart",width,height),txt={font:'bold 12px "Open Sans", sans-serif',fill:"#32373c"},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:"#b4b9be"});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()})()

View File

@ -0,0 +1,142 @@
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
};
}

View File

@ -0,0 +1,5 @@
var tokenRegex=/\{([^\}]+)\}/g,objNotationRegex=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,replacer=function(c,h,g){var a=g;h.replace(objNotationRegex,function(c,b,f,d,g){b=b||d;a&&(b in a&&(a=a[b]),"function"==typeof a&&g&&(a=a()))});return a=(null==a||a==g?c:a)+""},fill=function(c,h){return String(c).replace(tokenRegex,function(c,a){return replacer(c,a,h)})};
Raphael.fn.popup=function(c,h,g,a,k){a=String(a||"top-middle").split("-");a[1]=a[1]||"middle";var b=g.getBBox(),f=Math.round(b.width),d=Math.round(b.height),l=Math.round(b.x)-5,b=Math.round(b.y)-5,e=Math.min(d/2,f/2,10),p=[{x:l+5,y:b,w:f,w4:f/4,h4:d/4,right:0,left:f-2*e,bottom:0,top:d-2*e,r:5,h:d,gap:e},{x:l+5,y:b,w:f,w4:f/4,h4:d/4,left:f/2-e,right:f/2-e,top:d/2-e,bottom:d/2-e,r:5,h:d,gap:e},{x:l+5,y:b,w:f,w4:f/4,h4:d/4,left:0,right:f-2*e,top:0,bottom:d-2*e,r:5,h:d,gap:e}]["middle"==a[1]?1:2*("top"==
a[1]||"left"==a[1])],m=0,n=0,q=this.path(fill({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"}[a[0]],p)).insertBefore(g);switch(a[0]){case "top":m=c-(l+5+p.left+e);n=h-(b+5+d+5+e);break;case "bottom":m=c-(l+5+p.left+e);n=h-(b-e);break;case "left":m=c-(l+5+f+5+e);n=h-(b+5+p.top+e);break;case "right":m=c-(l-e),n=h-(b+5+p.top+e)}q.translate(m,n);if(k)return k=q.attr("path"),q.remove(),
{path:k,dx:m,dy:n};g.translate(m,n);return q};function getAnchors(c,h,g,a,k,b){var f=(g-c)/2,d=(k-g)/2;c=Math.atan((g-c)/Math.abs(a-h));k=Math.atan((k-g)/Math.abs(a-b));c=h<a?Math.PI-c:c;k=b<a?Math.PI-k:k;b=Math.PI/2-(c+k)%(2*Math.PI)/2;h=f*Math.sin(b+c);f*=Math.cos(b+c);c=d*Math.sin(b+k);d*=Math.cos(b+k);return{x1:g-h,y1:a+f,x2:g+c,y2:a+d}};

File diff suppressed because one or more lines are too long

View 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();
}
);

View File

@ -0,0 +1 @@
jQuery(document).ready(function(a){function b(){var b=a("#ab_flag_spam"),c=b.parent("li").nextAll(".ab_flag_spam_child");c.css("display",b.is(":checked")?"list-item":"none")}a("#ab_flag_spam").on("change",b),b()});

View File

@ -0,0 +1,207 @@
# Antispam Bee #
* Contributors: pluginkollektiv
* 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: 5.0
* Stable tag: 2.9.1
* 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 as spam.
* Validate the IP address of commenters.
* 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://github.com/pluginkollektiv/antispam-bee/wiki/en-Documentation)
* We dont 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 youve found a bug (e.g. youre 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 dont know how to install a plugin for WordPress, [heres how](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins).
### Requirements ###
* PHP 5.2.4 or greater
* WordPress 3.8 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 work with Jetpack, Disqus Comments and other comment plugins? ###
Antispam Bee works best with default WordPress comments. It is not compatible with Jetpack or Disqus Comments as those plugins load the comment form within an iframe. Thus Antispam Bee can not access the comment form directly.
It also wont work with any AJAX-powered comment forms.
### 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 in the [GitHub repository Wiki](https://github.com/pluginkollektiv/antispam-bee/wiki).
## Changelog ##
### 2.9.1 ###
* Improved backend accessibility
* Prefilled comment textareas do now work with the honeypot
* AMP compatibility
* 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://gist.github.com/glueckpress/f058c0ab973d45a72720)
### 2.6.7 ###
* Removal of functions *Block comments from specific countries* and *Allow comments only in certain language* for financial reasons - [more information](https://plus.google.com/u/0/+SergejMüller/posts/ZyquhoYjUyF) (only german)
### 2.6.6 ###
* Switch to the official Google Translation API - [more information](https://plus.google.com/u/0/+SergejMüller/posts/ZyquhoYjUyF) (only german)
* *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 on Google+](https://plus.google.com/+SergejMüller/posts/73EbP6F1BgC) (only german)
* *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.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. Antispam Bee settings