[pLog-svn] r4846 - in plugins/branches/lifetype-1.2: . googleanalytics unported

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Thu Feb 22 19:38:59 EST 2007


Author: pwestbro
Date: 2007-02-22 19:38:59 -0500 (Thu, 22 Feb 2007)
New Revision: 4846

Added:
   plugins/branches/lifetype-1.2/googleanalytics/
Removed:
   plugins/branches/lifetype-1.2/unported/googleanalytics/
Modified:
   plugins/branches/lifetype-1.2/googleanalytics/plugingoogleanalytics.class.php
Log:
Ported the Google Analytics plugin


Copied: plugins/branches/lifetype-1.2/googleanalytics (from rev 4843, plugins/branches/lifetype-1.2/unported/googleanalytics)

Modified: plugins/branches/lifetype-1.2/googleanalytics/plugingoogleanalytics.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/googleanalytics/plugingoogleanalytics.class.php	2007-02-22 22:44:30 UTC (rev 4843)
+++ plugins/branches/lifetype-1.2/googleanalytics/plugingoogleanalytics.class.php	2007-02-23 00:38:59 UTC (rev 4846)
@@ -11,9 +11,9 @@
         var $pluginEnabled;
 		var $uacct;
         
-        function PluginGoogleAnalytics()
+        function PluginGoogleAnalytics( $source = "" )
         {
-			$this->PluginBase();
+			$this->PluginBase($source);
 			
             $this->id = "googleanalytics";
             $this->author = "lss";
@@ -21,10 +21,11 @@
   
             $this->locales = Array( "en_UK" , "zh_TW" , "zh_CN", "es_ES" );
             
-            $this->init();
+			if( $source == "admin" )
+				$this->initAdmin();
         }
 
-		function init()
+		function initAdmin()
 		{
 			$this->registerAdminAction( "googleanalytics", "PluginGoogleAnalyticsConfigAction" );
 			$this->registerAdminAction( "updategoogleanalytics", "PluginGoogleAnalyticsUpdateConfigAction" );



More information about the pLog-svn mailing list