Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22418
Modified Files:
NEWS serendipity_functions.inc.php
Log Message:
alpha-spamblock plugin. I'd like to have the stub for this in 0.7 to be able
to release an enhanced anti-spam plugin for future service releases, because
I guess it will take a time until a 0.8 will be released.
If any of you have a problem with this, please raise your voice.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.409
retrieving revision 1.410
diff -u -d -r1.409 -r1.410
--- serendipity_functions.inc.php 31 Aug 2004 10:58:20 -0000 1.409
+++ serendipity_functions.inc.php 1 Sep 2004 14:15:07 -0000 1.410
@@ -1722,7 +1722,8 @@
$query = "SELECT allow_comments, moderate_comments, last_modified, timestamp FROM {$serendipity['dbPrefix']}entries WHERE id = '$id'";
$ca = serendipity_db_query($query, true);
- if (serendipity_db_bool($ca['allow_comments']) || !is_array($ca)) {
+ serendipity_plugin_api::hook_event('frontend_saveComment', $ca, $commentInfo);
+ if (!is_array($ca) || serendipity_db_bool($ca['allow_comments'])) {
$title = serendipity_db_escape_string(isset($commentInfo['title']) ? $commentInfo['title'] : '');
$comments = $commentInfo['comment'];
$ip = $_SERVER['REMOTE_ADDR'];
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.206
retrieving revision 1.207
diff -u -d -r1.206 -r1.207
--- NEWS 30 Aug 2004 14:20:06 -0000 1.206
+++ NEWS 1 Sep 2004 14:15:06 -0000 1.207
@@ -3,6 +3,11 @@
Version 0.7 ()
------------------------------------------------------------------------
+ * Plugin serendipity_event_spamblock: Will reject any double
+ comments, if enabled. Stub for enhancing other spam-protections
+ (kaptchas, spamassassin-integration, IP-Blacklists, whatever)
+ (garvinhicking)
+
* When using mod_rewrite, make use of RewriteBase for correct
subdirectory matching. Thanks to Martin Roell! (garvinhicking)
|