Bug #21444 » 12455_openID_php5.3.diff
typo3/sysext/openid/lib/php-openid/Auth/Yadis/XRDS.php (Arbeitskopie) | ||
---|---|---|
$services = $this->parser->evalXPath('xrd:Service', $this->xrdNode);
|
||
foreach ($services as $node) {
|
||
$s =& new Auth_Yadis_Service();
|
||
$s = new Auth_Yadis_Service();
|
||
$s->element = $node;
|
||
$s->parser =& $this->parser;
|
||
... | ... | |
$matches = 0;
|
||
foreach ($filters as $filter) {
|
||
if (call_user_func_array($filter, array($service))) {
|
||
if (call_user_func_array($filter, array(&$service))) {
|
||
$matches++;
|
||
if ($filter_mode == SERVICES_YADIS_MATCH_ANY) {
|
typo3/sysext/openid/lib/php-openid/Auth/OpenID/Consumer.php (Arbeitskopie) | ||
---|---|---|
$this->session =& $session;
|
||
if ($consumer_cls !== null) {
|
||
$this->consumer =& new $consumer_cls($store);
|
||
$this->consumer = new $consumer_cls($store);
|
||
} else {
|
||
$this->consumer =& new Auth_OpenID_GenericConsumer($store);
|
||
$this->consumer = new Auth_OpenID_GenericConsumer($store);
|
||
}
|
||
$this->_token_key = $this->session_key_prefix . $this->_token_suffix;
|
||
... | ... | |
'_completeInvalid');
|
||
return call_user_func_array(array(&$this, $method),
|
||
array($message, $endpoint, $return_to));
|
||
array($message, &$endpoint, $return_to));
|
||
}
|
||
/**
|
||
... | ... | |
// oidutil.log('Performing discovery on %s' % (claimed_id,))
|
||
list($unused, $services) = call_user_func($this->discoverMethod,
|
||
$claimed_id,
|
||
$this->fetcher);
|
||
&$this->fetcher);
|
||
if (!$services) {
|
||
return new Auth_OpenID_FailureResponse(null,
|
||
... | ... | |
}
|
||
}
|
||
?>
|
||
?>
|
typo3/sysext/openid/lib/php-openid/Auth/OpenID/Server.php (Arbeitskopie) | ||
---|---|---|
in OpenID 1.x immediate mode.');
|
||
}
|
||
$setup_request =& new Auth_OpenID_CheckIDRequest(
|
||
$setup_request = new Auth_OpenID_CheckIDRequest(
|
||
$this->identity,
|
||
$this->return_to,
|
||
$this->trust_root,
|
||
... | ... | |
function Auth_OpenID_Server(&$store, $op_endpoint=null)
|
||
{
|
||
$this->store =& $store;
|
||
$this->signatory =& new Auth_OpenID_Signatory($this->store);
|
||
$this->encoder =& new Auth_OpenID_SigningEncoder($this->signatory);
|
||
$this->decoder =& new Auth_OpenID_Decoder($this);
|
||
$this->signatory = new Auth_OpenID_Signatory($this->store);
|
||
$this->encoder = new Auth_OpenID_SigningEncoder($this->signatory);
|
||
$this->decoder = new Auth_OpenID_Decoder($this);
|
||
$this->op_endpoint = $op_endpoint;
|
||
$this->negotiator =& Auth_OpenID_getDefaultNegotiator();
|
||
}
|
||
... | ... | |
}
|
||
}
|
||
?>
|
||
?>
|
typo3/sysext/openid/lib/php-openid/Auth/OpenID/BigMath.php (Arbeitskopie) | ||
---|---|---|
function Auth_OpenID_detectMathLibrary($exts)
|
||
{
|
||
$loaded = false;
|
||
$hasDl = function_exists('dl');
|
||
foreach ($exts as $extension) {
|
||
// See if the extension specified is already loaded.
|
||
... | ... | |
}
|
||
// Try to load dynamic modules.
|
||
if (!$loaded) {
|
||
if (!$loaded && $hasDl) {
|
||
foreach ($extension['modules'] as $module) {
|
||
if (@dl($module . "." . PHP_SHLIB_SUFFIX)) {
|
||
$loaded = true;
|
typo3/sysext/openid/sv1/class.tx_openid_sv1.php (Arbeitskopie) | ||
---|---|---|
// TODO Change this to a TYPO3-specific database-based store in future.
|
||
// File-based store is ineffective and insecure. After changing
|
||
// get rid of the FileStore include in includePHPOpenIDLibrary()
|
||
$openIDStorePath = PATH_site . 'typo3temp/tx_openid';
|
||
$openIDStorePath = PATH_site . 'typo3temp' . DIRECTORY_SEPARATOR . 'tx_openid';
|
||
// For now we just prevent any web access to these files
|
||
if (!file_exists($openIDStorePath . '/.htaccess')) {
|
||
file_put_contents($openIDStorePath . '/.htaccess', 'deny from all');
|