[pLog-svn] r5164 - in plugins/branches/lifetype-1.2/tidyoutput: . class/action
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Mar 23 06:39:39 EDT 2007
Author: oscar
Date: 2007-03-23 06:39:39 -0400 (Fri, 23 Mar 2007)
New Revision: 5164
Modified:
plugins/branches/lifetype-1.2/tidyoutput/class/action/plugintidyoutputconfigaction.class.php
plugins/branches/lifetype-1.2/tidyoutput/class/action/plugintidyoutputupdateconfigaction.class.php
plugins/branches/lifetype-1.2/tidyoutput/plugintidyoutput.class.php
Log:
tidyoutput plugin ported to LifeType 1.2.
Modified: plugins/branches/lifetype-1.2/tidyoutput/class/action/plugintidyoutputconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/tidyoutput/class/action/plugintidyoutputconfigaction.class.php 2007-03-23 10:33:42 UTC (rev 5163)
+++ plugins/branches/lifetype-1.2/tidyoutput/class/action/plugintidyoutputconfigaction.class.php 2007-03-23 10:39:39 UTC (rev 5164)
@@ -15,6 +15,8 @@
function PluginTidyOutputConfigAction($actionInfo, $request)
{
$this->AdminAction( $actionInfo, $request );
+
+ $this->requireAdminPermission( "manage_admin_plugins" );
}
/**
Modified: plugins/branches/lifetype-1.2/tidyoutput/class/action/plugintidyoutputupdateconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/tidyoutput/class/action/plugintidyoutputupdateconfigaction.class.php 2007-03-23 10:33:42 UTC (rev 5163)
+++ plugins/branches/lifetype-1.2/tidyoutput/class/action/plugintidyoutputupdateconfigaction.class.php 2007-03-23 10:39:39 UTC (rev 5164)
@@ -15,6 +15,8 @@
function PluginTidyOutputUpdateConfigAction($actionInfo, $request)
{
$this->AdminAction($actionInfo, $request);
+
+ $this->requireAdminPermission( "manage_admin_plugins" );
}
/**
Modified: plugins/branches/lifetype-1.2/tidyoutput/plugintidyoutput.class.php
===================================================================
--- plugins/branches/lifetype-1.2/tidyoutput/plugintidyoutput.class.php 2007-03-23 10:33:42 UTC (rev 5163)
+++ plugins/branches/lifetype-1.2/tidyoutput/plugintidyoutput.class.php 2007-03-23 10:39:39 UTC (rev 5164)
@@ -12,13 +12,14 @@
/**
* Constructor
*/
- function PluginTidyOutput()
+ function PluginTidyOutput( $source )
{
$this->author = "Carles Balaguer";
$this->desc = "This plugin clean and repair HTML markup using Tidy HTML extension for PHP. Information about the Tidy extension is available at <a href=\"http://www.php.net/tidy\">http://www.php.net/tidy</a> and information about the Tidy configuration settings can be found at <a href=\"http://tidy.sourceforge.net/docs/quickref.html\">http://tidy.sourceforge.net/docs/quickref.html</a>";
- $this->PluginBase();
+ $this->PluginBase( $source );
$this->id = "tidyoutput";
+ $this->version = "20070323";
$this->init();
@@ -39,20 +40,22 @@
*/
function init()
{
- $this->registerAdminAction("tidyoutput", "PluginTidyOutputConfigAction");
- $this->registerAdminAction("tidyoutputUpdateConfig", "PluginTidyOutputUpdateConfigAction");
+ if( $this->getSource() == "admin" ) {
+ $this->registerAdminAction("tidyoutput", "PluginTidyOutputConfigAction");
+ $this->registerAdminAction("tidyoutputUpdateConfig", "PluginTidyOutputUpdateConfigAction");
- include_once(PLOG_CLASS_PATH . "class/template/menu/menu.class.php");
- $menu = &Menu::getMenu();
+ include_once(PLOG_CLASS_PATH . "class/template/menu/menu.class.php");
+ $menu = &Menu::getMenu();
- if (!$menu->entryExists( "/menu/adminSettings/manageOutputPlugins"))
- {
- $this->addMenuEntry("/menu/adminSettings", "manageOutputPlugins", "", "", true, false);
- }
+ if (!$menu->entryExists( "/menu/adminSettings/manageOutputPlugins"))
+ {
+ $this->addMenuEntry("/menu/adminSettings", "manageOutputPlugins", "", "", true, false);
+ }
- if (!$menu->entryExists( "/menu/adminSettings/manageOutputPlugins/TidyOutput"))
- {
- $this->addMenuEntry("/menu/adminSettings/manageOutputPlugins", "TidyOutput", "?op=tidyoutput", "");
+ if (!$menu->entryExists( "/menu/adminSettings/manageOutputPlugins/TidyOutput"))
+ {
+ $this->addMenuEntry("/menu/adminSettings/manageOutputPlugins", "TidyOutput", "?op=tidyoutput", "");
+ }
}
}
@@ -149,5 +152,4 @@
return round($size, $decimals). " " . $ext;
}
}
-
?>
\ No newline at end of file
More information about the pLog-svn
mailing list