/** * Instantiate a new OpenID server object */ function getServer() { static $server = null; if (!isset($server)) { $server = new Auth_OpenID_Server(getOpenIDStore(), buildURL()); } return $server; }
/** * Instantiate a new OpenID server object */ function getServer() { static $server = null; if (!isset($server)) { //$server =& new Auth_OpenID_Server(getOpenIDStore(), // buildURL()); global $server_url; $server =& new Auth_OpenID_Server(getOpenIDStore(), $server_url); } return $server; }
function OpenIDServer() { global $wgOpenIDServerStorePath, $wgOpenIDServerStoreType; $store = getOpenIDStore($wgOpenIDServerStoreType, 'server', array('path' => $wgOpenIDServerStorePath)); return new Auth_OpenID_Server($store); }
function OpenIDConsumer() { global $wgOpenIDConsumerStoreType, $wgOpenIDConsumerStorePath; $store = getOpenIDStore($wgOpenIDConsumerStoreType, 'consumer', array('path' => $wgOpenIDConsumerStorePath)); return new Auth_OpenID_Consumer($store); }
function &getOpenIDConsumer() { $store = getOpenIDStore(); $consumer =& new Auth_OpenID_Consumer($store); return $consumer; }