[pLog-svn] r7085 - plugins/branches/lifetype-1.2/moderate
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sun Dec 5 22:17:28 EST 2010
Author: jondaley
Date: 2010-12-05 22:17:28 -0500 (Sun, 05 Dec 2010)
New Revision: 7085
Modified:
plugins/branches/lifetype-1.2/moderate/pluginmoderate.class.php
Log:
only allow no-moderation if the comment is from a known IP AND this blog, and not just any blog
Modified: plugins/branches/lifetype-1.2/moderate/pluginmoderate.class.php
===================================================================
--- plugins/branches/lifetype-1.2/moderate/pluginmoderate.class.php 2010-11-18 15:25:55 UTC (rev 7084)
+++ plugins/branches/lifetype-1.2/moderate/pluginmoderate.class.php 2010-12-06 03:17:28 UTC (rev 7085)
@@ -18,7 +18,7 @@
$this->desc = "Provides moderation of comments";
$this->author = "The LifeType Project";
$this->locales = Array( "en_UK", "zh_TW", "es_ES", "fr_FR", "ca_ES" );
- $this->version = "20101015";
+ $this->version = "20101205";
if( $source == "admin" )
$this->initAdmin();
@@ -63,9 +63,10 @@
$this->db =& Db::getDb();
$dbPrefix = Db::getPrefix();
$query = "SELECT id FROM ${dbPrefix}articles_comments WHERE ".
+ "blog_id = '".$this->blogInfo->getId()."' AND ".
"status = ".COMMENT_STATUS_NONSPAM." AND ".
"client_ip = '$ip' LIMIT 1";
-
+
$result = $this->db->Execute($query);
if($result && $result->RecordCount())
return true;
More information about the pLog-svn
mailing list