[pLog-svn] r4920 - plugins/branches/lifetype-1.2/authimage

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Mar 2 11:08:10 EST 2007


Author: jondaley
Date: 2007-03-02 11:08:10 -0500 (Fri, 02 Mar 2007)
New Revision: 4920

Modified:
   plugins/branches/lifetype-1.2/authimage/pluginauthimage.class.php
Log:
use lt_include and only include files if/when needed

Modified: plugins/branches/lifetype-1.2/authimage/pluginauthimage.class.php
===================================================================
--- plugins/branches/lifetype-1.2/authimage/pluginauthimage.class.php	2007-03-02 16:07:43 UTC (rev 4919)
+++ plugins/branches/lifetype-1.2/authimage/pluginauthimage.class.php	2007-03-02 16:08:10 UTC (rev 4920)
@@ -1,10 +1,7 @@
 <?php
 
-    include_once( PLOG_CLASS_PATH."class/plugin/pluginbase.class.php" );
-    include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
-	include_once( PLOG_CLASS_PATH."class/net/rawrequestgenerator.class.php" );
-    include_once( PLOG_CLASS_PATH."class/misc/glob.class.php" );
-    include_once( PLOG_CLASS_PATH."plugins/authimage/class/security/authimagefilter.class.php" );	
+    lt_include( PLOG_CLASS_PATH."class/plugin/pluginbase.class.php" );
+    lt_include( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
 
     define( "AUTHIMAGE_FILE", "/plugins/authimage/authimage.php" );
     define( "AUTHIMAGE_BACKGROUND_FOLDER", PLOG_CLASS_PATH."plugins/authimage/backgrounds/" );
@@ -39,6 +36,7 @@
 
 		function init()
 		{
+            lt_include(PLOG_CLASS_PATH."plugins/authimage/class/security/authimagefilter.class.php");
 			// register the filter
 			$this->registerFilter( "AuthImageFilter" );
 			$this->registerBlogAction( "AuthImageShow", "PluginAuthImageShowAction" );
@@ -46,8 +44,8 @@
 		
 		function initAdmin()
 		{
-            include_once( PLOG_CLASS_PATH."class/template/menu/menu.class.php" );
-
+            lt_include( PLOG_CLASS_PATH."class/template/menu/menu.class.php" );
+            lt_include(PLOG_CLASS_PATH."plugins/authimage/class/security/authimagefilter.class.php");
 			// register the filter
 			$this->registerFilter( "AuthImageFilter" );
 
@@ -90,6 +88,7 @@
 
         function generateImageUrl()
         {
+            lt_include( PLOG_CLASS_PATH."class/net/rawrequestgenerator.class.php" );
  			$rg = new RawRequestGenerator($this->blogInfo);
             
         	$rg->addParameter( "op", "AuthImageShow" );



More information about the pLog-svn mailing list