[pLog-svn] r4918 - plugins/branches/lifetype-1.2/openid
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Fri Mar 2 11:00:03 EST 2007
Author: jondaley
Date: 2007-03-02 11:00:02 -0500 (Fri, 02 Mar 2007)
New Revision: 4918
Modified:
plugins/branches/lifetype-1.2/openid/OpenID.php
plugins/branches/lifetype-1.2/openid/README.txt
Log:
a symbolic link can now be used for OpenID.php if the user wants - makes it easier to upgrade
Modified: plugins/branches/lifetype-1.2/openid/OpenID.php
===================================================================
--- plugins/branches/lifetype-1.2/openid/OpenID.php 2007-03-02 15:45:29 UTC (rev 4917)
+++ plugins/branches/lifetype-1.2/openid/OpenID.php 2007-03-02 16:00:02 UTC (rev 4918)
@@ -26,7 +26,14 @@
*/
if (!defined( "PLOG_CLASS_PATH" )) {
- define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
+ $path = dirname(__FILE__);
+ $pos = strpos($path, "openid");
+ if($pos !== FALSE){
+ // get path to root, ie. strip off "plugins/openid"
+ // don't search for '/' since windows uses '\\'
+ $path = substr($path, 0, $pos-8);
+ }
+ define( "PLOG_CLASS_PATH", $path."/");
}
include_once( PLOG_CLASS_PATH."class/bootstrap.php" );
lt_include( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
Modified: plugins/branches/lifetype-1.2/openid/README.txt
===================================================================
--- plugins/branches/lifetype-1.2/openid/README.txt 2007-03-02 15:45:29 UTC (rev 4917)
+++ plugins/branches/lifetype-1.2/openid/README.txt 2007-03-02 16:00:02 UTC (rev 4918)
@@ -1,6 +1,6 @@
[USAGES]:
1. Upload: Upload all the extract files and directorys to $LifeType_Install_Dir/plugin/openid
-2. Move OpenID.php to $LifeType_Install_Dir
+2. Move OpenID.php to $LifeType_Install_Dir (or make a symbolic link)
3. Modify template: Use $openid->show() in header template file to allow the OpenID tags to be added..
More information about the pLog-svn
mailing list