[pLog-svn] r3381 - plugins/trunk/contentfilter/class/security
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Wed May 10 14:55:37 GMT 2006
Author: oscar
Date: 2006-05-10 14:55:37 +0000 (Wed, 10 May 2006)
New Revision: 3381
Modified:
plugins/trunk/contentfilter/class/security/contentfilter.class.php
Log:
fixed a small bug
Modified: plugins/trunk/contentfilter/class/security/contentfilter.class.php
===================================================================
--- plugins/trunk/contentfilter/class/security/contentfilter.class.php 2006-05-10 14:34:36 UTC (rev 3380)
+++ plugins/trunk/contentfilter/class/security/contentfilter.class.php 2006-05-10 14:55:37 UTC (rev 3381)
@@ -32,17 +32,17 @@
$pluginEnabled = $blogSettings->getValue( "plugin_contentfilter_enabled" );
if( !$pluginEnabled) {
// if not, nothing to do here...
- //_debug("ip address filter not enabled! quitting...<br/>");
return new PipelineResult();
}
+
// we only have to filter the contents if the user is posting a comment
// or trackback so there's no point in doing anything else if that's not the case
if( $request->getValue( "op" ) != "AddComment" && $request->getValue( "op" ) != "AddTrackback" ) {
$result = new PipelineResult();
return $result;
}
-
+
include_once( PLOG_CLASS_PATH."plugins/contentfilter/class/dao/filteredcontents.class.php" );
include_once( PLOG_CLASS_PATH."plugins/contentfilter/class/dao/filteredcontent.class.php" );
@@ -73,6 +73,8 @@
//
$filteredContents = new FilteredContents();
$blogFilteredContents = $filteredContents->getBlogFilteredContents( $blogInfo->getId(), true );
+
+ print_r($blogFilteredContents);
foreach( $blogFilteredContents as $blogFilteredContent ) {
//_debug("regexp = ".$blogFilteredContent->getRegExp()."<br/>");
More information about the pLog-svn
mailing list