Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23635
Modified Files:
NEWS serendipity_functions.inc.php
Log Message:
Captcha fallback on non-gdlib hosts.
Added ability to write a plaintext logfile for rejected/moderated comments.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.431
retrieving revision 1.432
diff -u -d -r1.431 -r1.432
--- serendipity_functions.inc.php 22 Sep 2004 15:14:49 -0000 1.431
+++ serendipity_functions.inc.php 23 Sep 2004 12:31:57 -0000 1.432
@@ -1776,7 +1776,7 @@
function serendipity_saveComment($id, $commentInfo, $type = 'NORMAL') {
global $serendipity;
- $query = "SELECT allow_comments, moderate_comments, last_modified, timestamp FROM {$serendipity['dbPrefix']}entries WHERE id = '". (int)$id ."'";
+ $query = "SELECT id, allow_comments, moderate_comments, last_modified, timestamp FROM {$serendipity['dbPrefix']}entries WHERE id = '". (int)$id ."'";
$ca = serendipity_db_query($query, true);
serendipity_plugin_api::hook_event('frontend_saveComment', $ca, $commentInfo);
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.231
retrieving revision 1.232
diff -u -d -r1.231 -r1.232
--- NEWS 22 Sep 2004 15:14:49 -0000 1.231
+++ NEWS 23 Sep 2004 12:31:57 -0000 1.232
@@ -12,6 +12,8 @@
contained links.
- reject comments depending on their amount of
contained links.
+ - able to log rejected/moderated comments to a plaintext file
+ - fallback method for non-gdlib-enabled hosts
(garvinhicking)
* Fixed wrong implode() arguments for error reporting in installer
|