forked from GNUsocial/gnu-social
[CORE][COMPOSER] Move extlib packages with immediate composer correspondent to composer dependencies
This adds a composer.json for all dependencies that are available
This commit is contained in:
30
vendor/openid/php-openid/admin/adminutil.php
vendored
Normal file
30
vendor/openid/php-openid/admin/adminutil.php
vendored
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__)));
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user