mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 13:49:56 +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
30
modules/member/php-openid-1.2.3/admin/adminutil.php
Normal file
30
modules/member/php-openid-1.2.3/admin/adminutil.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Add a directory to the include path
|
||||
*
|
||||
* @param dir: The directory to add to the path
|
||||
* @param at_start: If true, place this directory at the beginning of
|
||||
* the include path. Otherwise, place it at the end.
|
||||
*/
|
||||
function includeAdd($dir, $at_start=false)
|
||||
{
|
||||
$path = ini_get('include_path');
|
||||
if (strlen($path)) {
|
||||
$newpath = $at_start ? "$dir:$path" : "$path:$dir";
|
||||
} else {
|
||||
$newpath = $dir;
|
||||
}
|
||||
|
||||
ini_set('include_path', $newpath);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the parent directory of this module.
|
||||
*/
|
||||
function getParent()
|
||||
{
|
||||
return dirname(dirname(realpath(__FILE__)));
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue