[pLog-svn] r4850 - in plugins/branches/lifetype-1.2: . openid unported

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Thu Feb 22 21:05:26 EST 2007


Author: pwestbro
Date: 2007-02-22 21:05:26 -0500 (Thu, 22 Feb 2007)
New Revision: 4850

Added:
   plugins/branches/lifetype-1.2/openid/
Removed:
   plugins/branches/lifetype-1.2/unported/openid/
Modified:
   plugins/branches/lifetype-1.2/openid/pluginopenid.class.php
Log:
Ported openid plugin


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

Modified: plugins/branches/lifetype-1.2/openid/pluginopenid.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/openid/pluginopenid.class.php	2007-02-22 22:44:30 UTC (rev 4843)
+++ plugins/branches/lifetype-1.2/openid/pluginopenid.class.php	2007-02-23 02:05:26 UTC (rev 4850)
@@ -25,9 +25,9 @@
 	{
 		var $pluginEnabled;
 		
-		function PluginOpenid()
+		function PluginOpenid( $source = "" )
 		{
-			$this->PluginBase();
+			$this->PluginBase($source);
 
 			$this->id      = "openid";
 			$this->author  = "Paul Westbrook (phpMyID provided by <a href=\"http://siege.org/projects/phpMyID/\">CJ Niemira</a>)";
@@ -35,10 +35,11 @@
 
 			$this->locales = Array( "en_UK");
 
-			$this->init();
+			if( $source == "admin" )
+				$this->initAdmin();
 		}
 
-		function init()
+		function initAdmin()
 		{
 			$this->registerAdminAction( "openidConfig", "PluginOpenidConfigAction" );
 			$this->registerAdminAction( "updateOpenidConfig", "PluginOpenidUpdateConfigAction" );
@@ -76,5 +77,13 @@
              }
 	    	return $str;
 		}
+		
+   	    function getPluginConfigurationKeys()
+		{
+			return( Array(
+				Array( "name" => "plugin_openid_enabled", "type" => "boolean" ),
+			));
+		}
+
 	}
 ?>
\ No newline at end of file



More information about the pLog-svn mailing list