Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_spamblock
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32652/plugins/serendipity_event_spamblock
Modified Files:
Tag: branch-smarty
serendipity_event_spamblock.php
Log Message:
allow multiple trackbacks from one article to other ones from our own server on our own server
Index: serendipity_event_spamblock.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php,v
retrieving revision 1.4.2.22
retrieving revision 1.4.2.23
diff -u -d -r1.4.2.22 -r1.4.2.23
--- serendipity_event_spamblock.php 29 Oct 2004 11:02:37 -0000 1.4.2.22
+++ serendipity_event_spamblock.php 29 Oct 2004 12:43:29 -0000 1.4.2.23
@@ -266,8 +266,8 @@
return false;
}
- // Check for identical comments.
- if ( $this->get_config('bodyclone', true) === true ) {
+ // Check for identical comments. We allow to bypass trackbacks from our server to our own blog.
+ if ( $this->get_config('bodyclone', true) === true && $_SERVER['REMOTE_ADDR'] != $_SERVER['SERVER_ADDR']) {
$query = "SELECT count(id) AS counter FROM {$serendipity['dbPrefix']}comments WHERE body = '" . serendipity_db_escape_string($addData['comment']) . "'";
$row = serendipity_db_query($query, true);
if (is_array($row) && $row['counter'] > 0) {
|