122 Commits

Author SHA1 Message Date
Stephan Brunker
a3f39396c6 [event_spamblock] Don't refresh timeout when displaying preview 2020-04-14 14:07:02 +02:00
onli
d690a751d3 Up spamblock version, document #683 2020-03-25 22:33:19 +01:00
Daniel Lange
57cbaaa58b Update spamblock query to work in MySQL 5.7+ with default "strict" mode
The old query will fail with ONLY_FULL_GROUP_BY set which is default from
MySQL 5.7.5 onwards. This results in the .htaccess file not being updated.

Also adding some fencing to the foreach to prevent php error messages.
2020-03-25 22:28:25 +01:00
Thomas Hochstein
c9e03912ed [spamblock] Document timeout protection.
Document f9d43d20a3 and 0193f8a314.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-11-02 15:03:11 +01:00
Stephan Brunker
0193f8a314 reinserted validation of config logfile string. Was deleted unintentionally. 2019-11-02 14:20:18 +01:00
Stephan Brunker
f9d43d20a3 added timeout protection against spambots into event_spamblock 2019-11-02 14:20:18 +01:00
Garvin Hicking
7ab1cf9091 [BUGFIX] [SECURITY] Fixes only logging to .log and.txt filetype extensions 2019-09-17 10:50:28 +02:00
Garvin Hicking
febbb55371 [CLEANUP] Code formatting 2019-09-17 10:49:37 +02:00
Thomas Hochstein
b2aef47e05 [event_spamblock] Add ChangeLog.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-17 12:59:54 +02:00
Thomas Hochstein
8941fe6563 [event_spamblock] Don't overwrite "moderate" flag.
Unconditionally setting $serendipity['csuccess']
to 'true' will override a "moderate" flag set by
another (spamblock) plugin.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-17 04:07:30 +02:00
onli
6cab32aa5a document spamblock change #614, bump version 2019-07-29 17:29:16 +02:00
Hanno
a9153e1a2b Remove curly braces array syntax, avoids warning in PHP 7.4. 2019-07-29 17:29:45 +02:00
onli
b6cbaee339 Disable bodyclone spamblock option by default, disable for comments
See https://www.cgarbs.de/blog/archives/1181-Trackbacks-in-Serendipity.html
2019-03-18 21:48:26 +01:00
Stephan Brunker
2fb8017a72 Bump version number for event_spamblock to 1.87 2019-03-05 18:38:22 +01:00
Stephan Brunker
c1908949fc event_spamblock: Added option for auto-moderate comments depending on age 2019-03-05 18:38:22 +01:00
Stephan Brunker
164fbfd2d5 Fixed: forced comment moderation 0 -> moderate all 2019-03-05 18:38:22 +01:00
Thomas Hochstein
66e6293a92 [spamblock] Remove dead code (Akismet spam toggle)
This code was used to tell Akismet that a comment
is spam or ham. It can't be triggered as there
are no UI buttons, and it shouldn't be used as
it uses GET params. I don't think it will be
missed.

The relevant issue has been open for about two
and a half years without a new implementation,
so let's drop it. We can always re-implement it
later ...

Closes #405.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-09-30 11:37:12 +02:00
Thomas Hochstein
4568bd892e Change message for auto-moderation after X days.
As "X" is looking like a placeholder that has
not been replaced, rephrase to "Auto-moderation
for old entries".

See https://board.s9y.org/viewtopic.php?f=2&t=24034#p10451071

Done for EN and DE, other languages will have
to be changed, too.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-09-22 13:35:04 +02:00
onli
a462413025 php 7.2: Replace each with foreach (#556) 2018-09-13 15:07:57 +02:00
onli
2a853f44ee
spamblock: bump version 2018-08-09 19:38:47 +02:00
Aaron W. Swenson
2ecd2bdd13 Return output
When $use_gd is false, returning $output so that the captcha images that have been generated are actually embedded into the final rendering of the page.

Fixes #536.
2018-08-09 19:37:54 +02:00
Garvin Hicking
d10aaf8ffd Add new "legal" properties for affected plugins.
Disable subtome by default.
2018-04-03 11:17:22 +02:00
Thomas Hochstein
6751bd8d52 Akismet has a POST API, not a GET API. :)
Closes #506.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-21 13:01:11 +02:00
Matthias Mees
7410465496 Improve accessibility of iconfont icons
Iconfont icons are of no value to screenreader users; in our case,
they get alternative text. By adding 'aria-hidden="true"' to the
<span> holding the iconfont icon, we avoid the screenreader trying
to announce the iconfont icon.
2016-10-26 11:29:25 +02:00
onli
f9482cc1aa Fix: http request for akismet missed the method (#411) 2016-06-23 13:00:21 +02:00
onli
d973e99933 Workaround PHP < 5.6 bug, not verifying certs, stopping Request2
See http://board.s9y.org/viewtopic.php?f=10&t=20773 and #399
2016-06-22 19:42:07 +02:00
onli
f1d2025b39 spamblock: move to Http/Request2 (#399) 2016-05-10 02:15:51 +00:00
Ian
1bf557e307 consistent plugin usage - spamblock
this and followup commits touches:
    use load_languiage API
    class method parenthesis "\n{\n    <code>\n}\n",
    case break switches,
    consistent boolean usage,
    append css to eventData
    and other cleanups
2016-01-26 14:09:35 +01:00
Ian
7cd98fb1f9 lang cleanup core spamblock plugin 2016-01-21 18:05:14 +01:00
Ian
ce8917d3a0 one more for d05ae52 2015-08-16 10:28:46 +02:00
Ian
d05ae52575 lang corrections 2015-08-16 09:35:26 +02:00
Ian
72bcd36ef1 fix missing @ and change a german config constant 2015-08-15 16:46:08 +02:00
Matthias Mees
e29009d1ba Fix mispositioned Akismet block/unblock buttons.
References #247
2015-01-05 23:35:51 +01:00
Matthias Mees
e3867132ea Use different icons for spam/no spam in Spamblock plugin.
(Not Bayes like mentioned in c348799a44aa7c05c0009c5fb4fbea101ef6cf84.)

References #247
2015-01-02 18:48:57 +01:00
Garvin Hicking
eab43b12f5 Adjust remaining htmlspecialchars() accordingly 2014-11-24 10:13:40 +01:00
Garvin Hicking
32b7bb9679 * Adapted database table structure change for statistics, shoutbox,
karma and spamblock plugin (for new field definition of "ip" field)
      Thanks to rohdef!
2014-06-23 09:37:52 +02:00
Matthias Mees
413cb0a987 Fix pending/approve icons for spamblock plugin
References #88
2014-03-09 14:47:33 +01:00
Matthias Mees
66f71b4bbb Spamblock plugin adapted to latest iconfont build. 2014-02-10 20:34:38 +01:00
Ian
b3eb11b9f0 upport spamblock lang changes 2014-02-08 17:37:17 +01:00
Ian
2392b99817 upport last spamblock changes 2014-02-08 17:19:01 +01:00
onli
21107efaf5 Spamblock: Add backend link to nav 2014-01-19 01:10:50 +01:00
Ian
31e3099c7c fix Captcha bug with upper PHP versions (8d29fcc) 2013-12-25 19:45:28 +01:00
Daniel Lange
9dd5b9762b Fixes and updates for serendipity_event_spamblock by DLange (2.0 branch)
[PATCH 1/4] remove serendipity_serverOffsetHour() workaround as this
 function is now in core

[PATCH 2/4] remove blogg.de anti-spamlist support as it has been
 discontinued

[PATCH 3/4] proper locking of .htaccess file to prevent race
 condition and partial file over-writes

[PATCH 4/4] allow multiple Deny From lines in .htaccess so more IPs
 can be simultaneously  blocked for busy sites
2013-11-11 14:30:37 +01:00
Ian
149e6aa9a7 fixed core plugins db tables, ip column to IPv6 length 2013-11-08 14:53:25 +01:00
Matthias Mees
1fb8c54efb Back to button style.
Partial manual revert of 168cb146eaec3c568527bbc5dcf06b4cb6e9bda8.
Please note that this does *not* contain any changes to the UI as
discussed; those will follow later.

References #41
2013-09-23 11:19:31 +02:00
onli
168cb146ea Use links instead of buttons (#41)
A bit unfamiliar, let's give it some time. The user/groups-menu are clearer now
2013-08-18 20:59:53 +02:00
onli
b2bcd08c99 rework spamblock action buttons
anchor workaround and restored event order, should fix #24
2013-07-21 01:00:15 +02:00
Matthias Mees
bf3628f33a Use font icons instead of images in spamblock plugin. 2013-07-09 15:39:04 +02:00
onli
4f719c7c7e spamblock: show captcha-example at bottom (echo/return) 2013-07-07 19:00:34 +02:00
Matthias Mees
7a94df491a Styling the captchabox. 2013-07-06 00:53:35 +02:00