[pLog-svn] r1168 - in plugins/trunk: contentfilter feedreader
hostblock moderate nofollow secret
mark at devel.plogworld.net
mark at devel.plogworld.net
Wed Feb 23 10:43:57 GMT 2005
Author: mark
Date: 2005-02-23 10:43:57 +0000 (Wed, 23 Feb 2005)
New Revision: 1168
Modified:
plugins/trunk/contentfilter/plugincontentfilter.class.php
plugins/trunk/feedreader/pluginfeedreader.class.php
plugins/trunk/hostblock/pluginhostblock.class.php
plugins/trunk/moderate/pluginmoderate.class.php
plugins/trunk/nofollow/pluginnofollow.class.php
plugins/trunk/secret/pluginsecret.class.php
Log:
Add inEnabled() method to plugins.
Modified: plugins/trunk/contentfilter/plugincontentfilter.class.php
===================================================================
--- plugins/trunk/contentfilter/plugincontentfilter.class.php 2005-02-23 10:20:56 UTC (rev 1167)
+++ plugins/trunk/contentfilter/plugincontentfilter.class.php 2005-02-23 10:43:57 UTC (rev 1168)
@@ -18,6 +18,7 @@
*/
class PluginContentFilter extends PluginBase
{
+ var $pluginEnabled;
function PluginContentFilter()
{
@@ -77,5 +78,16 @@
$this->addMenuEntry( "/menu/controlCenter", "manageSecurityPlugins", "", "", true, false );
$this->addMenuEntry( "/menu/controlCenter/manageSecurityPlugins", "filteredContentSettings", "admin.php?op=filteredContentSettings", "", true, false );
}
+
+ function register()
+ {
+ $blogSettings = $this->blogInfo->getSettings();
+ $this->pluginEnabled = $blogSettings->getValue( "plugin_contentfilter_enabled" );
+ }
+
+ function isEnabled()
+ {
+ return $this->pluginEnabled;
+ }
}
?>
\ No newline at end of file
Modified: plugins/trunk/feedreader/pluginfeedreader.class.php
===================================================================
--- plugins/trunk/feedreader/pluginfeedreader.class.php 2005-02-23 10:20:56 UTC (rev 1167)
+++ plugins/trunk/feedreader/pluginfeedreader.class.php 2005-02-23 10:43:57 UTC (rev 1168)
@@ -4,7 +4,8 @@
class PluginFeedReader extends PluginBase
{
-
+ var $pluginEnabled;
+
function PluginFeedReader()
{
$this->PluginBase();
@@ -26,5 +27,17 @@
true,
false );
}
+
+ function register()
+ {
+ $blogSettings = $this->blogInfo->getSettings();
+ $this->pluginEnabled = $blogSettings->getValue( "plugin_toptrackbackposts_enabled" );
+ $this->maxPosts = $blogSettings->getValue( "plugin_toptrackbackposts_maxposts" );
+ }
+
+ function isEnabled()
+ {
+ return $this->pluginEnabled;
+ }
}
?>
\ No newline at end of file
Modified: plugins/trunk/hostblock/pluginhostblock.class.php
===================================================================
--- plugins/trunk/hostblock/pluginhostblock.class.php 2005-02-23 10:20:56 UTC (rev 1167)
+++ plugins/trunk/hostblock/pluginhostblock.class.php 2005-02-23 10:43:57 UTC (rev 1168)
@@ -19,7 +19,8 @@
*/
class PluginHostBlock extends PluginBase
{
-
+ var $pluginEnabled;
+
function PluginHostBlock()
{
$this->PluginBase();
@@ -80,5 +81,16 @@
$this->addMenuEntry( "/menu/controlCenter", "manageSecurityPlugins", "", "", true, false );
$this->addMenuEntry( "/menu/controlCenter/manageSecurityPlugins", "blockedHostSettings", "admin.php?op=blockedHostSettings", "", true, false );
}
+
+ function register()
+ {
+ $blogSettings = $this->blogInfo->getSettings();
+ $this->pluginEnabled = $blogSettings->getValue( "plugin_hostblock_enabled" );
+ }
+
+ function isEnabled()
+ {
+ return $this->pluginEnabled;
+ }
}
?>
\ No newline at end of file
Modified: plugins/trunk/moderate/pluginmoderate.class.php
===================================================================
--- plugins/trunk/moderate/pluginmoderate.class.php 2005-02-23 10:20:56 UTC (rev 1167)
+++ plugins/trunk/moderate/pluginmoderate.class.php 2005-02-23 10:43:57 UTC (rev 1168)
@@ -8,7 +8,8 @@
*/
class PluginModerate extends PluginBase
{
-
+ var $pluginEnabled;
+
function PluginModerate()
{
$this->PluginBase();
@@ -70,5 +71,16 @@
$this->addMenuEntry( "/menu/controlCenter", "manageAntiSpamPlugins", "", "", true, false );
$this->addMenuEntry( "/menu/controlCenter/manageAntiSpamPlugins", "moderatePluginSettings", "admin.php?op=moderatePluginSettings", "", true, false );
}
+
+ function register()
+ {
+ $blogSettings = $this->blogInfo->getSettings();
+ $this->pluginEnabled = $blogSettings->getValue( "plugin_moderate_enabled" );
+ }
+
+ function isEnabled()
+ {
+ return $this->pluginEnabled;
+ }
}
?>
\ No newline at end of file
Modified: plugins/trunk/nofollow/pluginnofollow.class.php
===================================================================
--- plugins/trunk/nofollow/pluginnofollow.class.php 2005-02-23 10:20:56 UTC (rev 1167)
+++ plugins/trunk/nofollow/pluginnofollow.class.php 2005-02-23 10:43:57 UTC (rev 1168)
@@ -5,6 +5,8 @@
class PluginNoFollow extends PluginBase
{
+ var $pluginEnabled;
+
function PluginNoFollow()
{
$this->PluginBase();
@@ -31,6 +33,17 @@
$this->registerNotification( EVENT_PRE_COMMENT_ADD );
}
+ function register()
+ {
+ $blogSettings = $this->blogInfo->getSettings();
+ $this->pluginEnabled = $blogSettings->getValue( "plugin_nofollow_enabled" );
+ }
+
+ function isEnabled()
+ {
+ return $this->pluginEnabled;
+ }
+
function process($eventType, $params)
{
if ( $eventType != EVENT_PRE_COMMENT_ADD )
Modified: plugins/trunk/secret/pluginsecret.class.php
===================================================================
--- plugins/trunk/secret/pluginsecret.class.php 2005-02-23 10:20:56 UTC (rev 1167)
+++ plugins/trunk/secret/pluginsecret.class.php 2005-02-23 10:43:57 UTC (rev 1168)
@@ -9,7 +9,8 @@
*/
class PluginSecret extends PluginBase
{
-
+ var $pluginEnabled;
+
function PluginSecret()
{
$this->PluginBase();
@@ -40,5 +41,16 @@
$this->addMenuEntry( "/menu/controlCenter", "manageSecurityPlugins", "", "", true, false );
$this->addMenuEntry( "/menu/controlCenter/manageSecurityPlugins", "pluginSecretSettings", "admin.php?op=pluginSecretSettings", "", true, false );
}
+
+ function register()
+ {
+ $blogSettings = $this->blogInfo->getSettings();
+ $this->pluginEnabled = $blogSettings->getValue( "plugin_secret_enabled" );
+ }
+
+ function isEnabled()
+ {
+ return $this->pluginEnabled;
+ }
}
?>
\ No newline at end of file
More information about the pLog-svn
mailing list