[geeklog-cvs] geeklog-1.3/public_html comment.php,1.77,1.78
blaine at iowaoutdoors.org
blaine at iowaoutdoors.org
Sun Oct 3 14:39:33 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv14810/public_html
Modified Files:
comment.php
Log Message:
Added call to new PLG_checkforSpam API
Index: comment.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/comment.php,v
retrieving revision 1.77
retrieving revision 1.78
diff -C2 -d -r1.77 -r1.78
*** comment.php 25 Sep 2004 20:16:14 -0000 1.77
--- comment.php 3 Oct 2004 18:39:31 -0000 1.78
***************
*** 241,245 ****
* @param string $type Type of comment this is (article, poll, etc)
* @param string $postmode Indicates if text is HTML or plain text
! * @param string $prepocessed Indicates that preprocessing by another plugin
* i.e. Spamx has already occured
* @return string either nothing or HTML formated error
--- 241,245 ----
* @param string $type Type of comment this is (article, poll, etc)
* @param string $postmode Indicates if text is HTML or plain text
! * @param string $prepocessed Indicates that preprocessing by another plugin
* i.e. Spamx has already occured
* @return string either nothing or HTML formated error
***************
*** 278,281 ****
--- 278,288 ----
}
+ // Let plugins have a chance to check for SPAM
+ $result = PLG_checkforSpam($comment, $_CONF['spamx']);
+ // Now check the result and redirect to index.php if spam action was taken
+ if ($result > 0) {
+ echo COM_refresh($_CONF['site_url'] . '/index.php?msg='.$result.'&plugin=spamx');
+ exit;
+ }
// Let plugins have a chance to decide what to do before saving the comment.
$someError = PLG_commentPreSave($uid, $title, $comment, $sid, $pid, $type, $postmode);
***************
*** 283,287 ****
// If a plugin returned an error, return it
if ($someError) {
! return $someError;
}
--- 290,294 ----
// If a plugin returned an error, return it
if ($someError) {
! return $someError;
}
More information about the geeklog-cvs
mailing list