mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 05:39:58 +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
45
modules/member/php-openid-1.2.3/examples/server/server.php
Normal file
45
modules/member/php-openid-1.2.3/examples/server/server.php
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
$path_extra = dirname(dirname(dirname(__FILE__)));
|
||||
$path = ini_get('include_path');
|
||||
$path = $path_extra . PATH_SEPARATOR . $path;
|
||||
ini_set('include_path', $path);
|
||||
|
||||
$try_include = @include 'config.php';
|
||||
|
||||
if (!$try_include) {
|
||||
header("Location: setup.php");
|
||||
}
|
||||
|
||||
if (function_exists('getOpenIDStore') && isset($openid_users)) {
|
||||
require_once 'lib/session.php';
|
||||
require_once 'lib/actions.php';
|
||||
|
||||
init();
|
||||
|
||||
$action = getAction();
|
||||
if (!function_exists($action)) {
|
||||
$action = 'action_default';
|
||||
}
|
||||
|
||||
$resp = $action();
|
||||
|
||||
writeResponse($resp);
|
||||
} else {
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>PHP OpenID Server</title>
|
||||
<body>
|
||||
<h1>PHP OpenID Server</h1>
|
||||
<p>
|
||||
This server needs to be configured before it can be used. Edit
|
||||
<code>config.php</code> to reflect your server's setup, then
|
||||
load this page again.
|
||||
</p>
|
||||
</body>
|
||||
</head>
|
||||
</html>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue