Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28426/include
Modified Files:
functions_comments.inc.php
Log Message:
Upgrade spamblock plugin to reject/moderate incoming trackbacks/wfwcomments seperately from other comments
Index: functions_comments.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_comments.inc.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- functions_comments.inc.php 26 Jan 2005 14:14:01 -0000 1.13
+++ functions_comments.inc.php 27 Jan 2005 12:46:33 -0000 1.14
@@ -302,13 +302,14 @@
return true;
}
-function serendipity_saveComment($id, $commentInfo, $type = 'NORMAL') {
+function serendipity_saveComment($id, $commentInfo, $type = 'NORMAL', $source = 'internal') {
global $serendipity;
$query = "SELECT id, allow_comments, moderate_comments, last_modified, timestamp FROM {$serendipity['dbPrefix']}entries WHERE id = '". (int)$id ."'";
$ca = serendipity_db_query($query, true);
$commentInfo['type'] = $type;
+ $commentInfo['source'] = $source;
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'] : '');
|