mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 22:59:57 +09:00
17515512: JanRain php-openid library included, normalization fix
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5137 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f541dd59b9
commit
658c0e6dbc
219 changed files with 41415 additions and 10 deletions
41
modules/member/php-openid-1.2.3/examples/consumer/common.php
Normal file
41
modules/member/php-openid-1.2.3/examples/consumer/common.php
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
|
||||
$path_extra = dirname(dirname(dirname(__FILE__)));
|
||||
$path = ini_get('include_path');
|
||||
$path = $path_extra . PATH_SEPARATOR . $path;
|
||||
ini_set('include_path', $path);
|
||||
|
||||
/**
|
||||
* Require the OpenID consumer code.
|
||||
*/
|
||||
require_once "Auth/OpenID/Consumer.php";
|
||||
|
||||
/**
|
||||
* Require the "file store" module, which we'll need to store OpenID
|
||||
* information.
|
||||
*/
|
||||
require_once "Auth/OpenID/FileStore.php";
|
||||
|
||||
/**
|
||||
* This is where the example will store its OpenID information. You
|
||||
* should change this path if you want the example store to be created
|
||||
* elsewhere. After you're done playing with the example script,
|
||||
* you'll have to remove this directory manually.
|
||||
*/
|
||||
$store_path = "/tmp/_php_consumer_test";
|
||||
|
||||
if (!file_exists($store_path) &&
|
||||
!mkdir($store_path)) {
|
||||
print "Could not create the FileStore directory '$store_path'. ".
|
||||
" Please check the effective permissions.";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
$store = new Auth_OpenID_FileStore($store_path);
|
||||
|
||||
/**
|
||||
* Create a consumer object using the store object created earlier.
|
||||
*/
|
||||
$consumer = new Auth_OpenID_Consumer($store);
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue