[pLog-svn] r4815 - in plugins/branches/lifetype-1.2: . akismet akismet/class/action unported
pwestbro at devel.lifetype.net
pwestbro at devel.lifetype.net
Thu Feb 22 05:13:37 EST 2007
Author: pwestbro
Date: 2007-02-22 05:13:37 -0500 (Thu, 22 Feb 2007)
New Revision: 4815
Added:
plugins/branches/lifetype-1.2/akismet/
Removed:
plugins/branches/lifetype-1.2/unported/akismet/
Modified:
plugins/branches/lifetype-1.2/akismet/class/action/pluginakismetconfigaction.class.php
plugins/branches/lifetype-1.2/akismet/class/action/pluginakismetupdateconfigaction.class.php
plugins/branches/lifetype-1.2/akismet/pluginakismet.class.php
Log:
Ported the akismet plugin to 1.2
Copied: plugins/branches/lifetype-1.2/akismet (from rev 4812, plugins/branches/lifetype-1.2/unported/akismet)
Modified: plugins/branches/lifetype-1.2/akismet/class/action/pluginakismetconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/akismet/class/action/pluginakismetconfigaction.class.php 2007-02-21 23:12:54 UTC (rev 4812)
+++ plugins/branches/lifetype-1.2/akismet/class/action/pluginakismetconfigaction.class.php 2007-02-22 10:13:37 UTC (rev 4815)
@@ -18,10 +18,10 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
- include_once( PLOG_CLASS_PATH."class/action/admin/blogowneradminaction.class.php" );
+ include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
include_once( PLOG_CLASS_PATH."plugins/akismet/class/view/pluginakismetconfigview.class.php" );
- class PluginAkismetConfigAction extends BlogOwnerAdminAction
+ class PluginAkismetConfigAction extends AdminAction
{
/**
@@ -30,7 +30,7 @@
*/
function PluginAkismetConfigAction( $actionInfo, $request )
{
- $this->BlogOwnerAdminAction( $actionInfo, $request );
+ $this->AdminAction( $actionInfo, $request );
}
/**
Modified: plugins/branches/lifetype-1.2/akismet/class/action/pluginakismetupdateconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/akismet/class/action/pluginakismetupdateconfigaction.class.php 2007-02-21 23:12:54 UTC (rev 4812)
+++ plugins/branches/lifetype-1.2/akismet/class/action/pluginakismetupdateconfigaction.class.php 2007-02-22 10:13:37 UTC (rev 4815)
@@ -18,12 +18,12 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
- include_once( PLOG_CLASS_PATH."class/action/admin/blogowneradminaction.class.php" );
+ include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
include_once( PLOG_CLASS_PATH."plugins/akismet/class/view/pluginakismetconfigview.class.php" );
$apiKeyValid = true;
- class PluginAkismetUpdateConfigAction extends BlogOwnerAdminAction
+ class PluginAkismetUpdateConfigAction extends AdminAction
{
var $_pluginEnabled;
@@ -36,7 +36,7 @@
*/
function PluginAkismetUpdateConfigAction( $actionInfo, $request )
{
- $this->BlogOwnerAdminAction( $actionInfo, $request );
+ $this->AdminAction( $actionInfo, $request );
}
function validate()
Modified: plugins/branches/lifetype-1.2/akismet/pluginakismet.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/akismet/pluginakismet.class.php 2007-02-21 23:12:54 UTC (rev 4812)
+++ plugins/branches/lifetype-1.2/akismet/pluginakismet.class.php 2007-02-22 10:13:37 UTC (rev 4815)
@@ -26,19 +26,28 @@
{
var $pluginEnabled;
- function PluginAkismet()
+ function PluginAkismet( $source = "" )
{
- $this->PluginBase();
+ $this->PluginBase( $source );
$this->id = "akismet";
$this->desc = "Akismet checks your comments against the Akismet web serivce to see if they look like spam or not.";
$this->author = "Paul Westbrook (Akismet php library provided by <a href=\"http://miphp.net/blog/view/php4_akismet_class\">Bret Kuhns</a>)";
$this->locales = Array( "en_UK" );
- $this->init();
+ if( $source == "admin" )
+ $this->initAdmin();
+ else
+ $this->init();
}
- function init()
+ function init()
+ {
+ //register the filter
+ $this->registerFilter( "AkismetFilter" );
+ }
+
+ function initAdmin()
{
$this->registerFilter( "AkismetFilter" );
More information about the pLog-svn
mailing list