function openid_begin_consumer($url) { static $request; @session_start(); if ($request == NULL) { set_error_handler('openid_customer_error_handler'); if (is_email($url)) { $_SESSION['openid_login_email'] = $url; set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path()); require_once 'Auth/Yadis/Email.php'; $mapped_url = Auth_Yadis_Email_getID($url, trailingslashit(get_option('home'))); if ($mapped_url) { $url = $mapped_url; } } $consumer = openid_getConsumer(); $request = $consumer->begin($url); restore_error_handler(); } return $request; }
/** * Begin login by activating the OpenID consumer. * * @param string $url claimed ID * @return Auth_OpenID_Request OpenID Request */ function openid_begin_consumer($url) { static $request; @session_start(); if ($request == NULL) { set_error_handler('openid_customer_error_handler'); $consumer = openid_getConsumer(); $request = $consumer->begin($url); restore_error_handler(); } return $request; }