Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23563
Modified Files:
NEWS serendipity_functions.inc.php
Log Message:
captchas and more gadgets for the anti-spam plugin. Kill 'em all.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.430
retrieving revision 1.431
diff -u -d -r1.430 -r1.431
--- serendipity_functions.inc.php 20 Sep 2004 14:17:33 -0000 1.430
+++ serendipity_functions.inc.php 22 Sep 2004 15:14:49 -0000 1.431
@@ -206,7 +206,7 @@
<?php
}
-function serendipity_displayCommentForm($id, $url = '', $comments = NULL, $data = NULL, $showToolbar = true, $moderate_comments = true) {
+function serendipity_displayCommentForm($id, $url = '', $comments = NULL, $data = NULL, $showToolbar = true, $moderate_comments = true, $entry = null) {
global $serendipity;
if ( $comments == NULL ) {
@@ -243,7 +243,7 @@
<td class="serendipity_commentsLabel"><?php echo COMMENT; ?></td>
<td class="serendipity_commentsValue">
<textarea rows="10" cols="40" name="serendipity[comment]"><?php echo (isset($data['comment']) ? $data['comment'] : ''); ?></textarea><br />
- <?php serendipity_plugin_api::hook_event('frontend_comment', $nullParam); ?>
+ <?php serendipity_plugin_api::hook_event('frontend_comment', $entry); ?>
</td>
</tr>
<?php if ( $showToolbar ) { ?>
@@ -1407,7 +1407,8 @@
true,
$serendipity['POST'],
true,
- serendipity_db_bool($entry['moderate_comments'])
+ serendipity_db_bool($entry['moderate_comments']),
+ $entry
);
}
?>
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.230
retrieving revision 1.231
diff -u -d -r1.230 -r1.231
--- NEWS 22 Sep 2004 15:08:44 -0000 1.230
+++ NEWS 22 Sep 2004 15:14:49 -0000 1.231
@@ -3,6 +3,17 @@
Version 0.7 ()
------------------------------------------------------------------------
+ * Upgraded Spam Protector event plugin. Optionally:
+ - use Captchas - images with string sequences which a
+ user has to enter before his comment is accepted.
+ - restrict captchas to entries older than X days
+ - auto-moderate comments to entries older than X days
+ - auto-moderate comments depending on their amount of
+ contained links.
+ - reject comments depending on their amount of
+ contained links.
+ (garvinhicking)
+
* Fixed wrong implode() arguments for error reporting in installer
(garvinhicking)
|