function verified($proxy=NULL) {
		preg_match_all('/(?<=^|&)openid\.([^=]+)=([^&]+)/',
			$_SERVER['QUERY_STRING'],$matches,PREG_SET_ORDER);
		foreach ($matches as $match)
			$this->args[$match[1]]=urldecode($match[2]);
		if (isset($this->args['mode']) &&
			$this->args['mode']!='error' &&
			$this->url=$this->discover($proxy)) {
			$this->args['mode']='check_authentication';
			$var=[];
			foreach ($this->args as $key=>$val)
				$var['openid.'.$key]=$val;
			$req=\Web::instance()->request(
				$this->url,
				[
					'method'=>'POST',
					'content'=>http_build_query($var),
					'proxy'=>$proxy
				]
			);
			return (bool)preg_match('/is_valid:true/i',$req['body']);
		}
		return FALSE;
	}
function verified($proxy=NULL) {
		preg_match_all('/(?<=^|&)openid\.([^=]+)=([^&]+)/',
			$_SERVER['QUERY_STRING'],$matches,PREG_SET_ORDER);
		foreach ($matches as $match)
			$this->args[$match[1]]=urldecode($match[2]);
		if (isset($this->args['mode']) &&
			$this->args['mode']!='error' &&
			$this->url=$this->discover($proxy)) {
			$this->args['mode']='check_authentication';
			$var=[];
			foreach ($this->args as $key=>$val)
				$var['openid.'.$key]=$val;
			$req=\Web::instance()->request(
				$this->url,
				[
					'method'=>'POST',
					'content'=>http_build_query($var),
					'proxy'=>$proxy
				]
			);
			return (bool)preg_match('/is_valid:true/i',$req['body']);
		}
		return FALSE;
	}
function verified ( $ proxy = NULL ) { preg_match_all ( '/(?<=^|&)openid\.([^=]+)=([^&]+)/' , $ _SERVER [ 'QUERY_STRING' ] , $ matches , PREG_SET_ORDER ) ; foreach ( $ matches as $ match ) $ this -> args [ $ match [ 1 ] ] = urldecode ( $ match [ 2 ] ) ; if ( isset ( $ this -> args [ 'mode' ] ) && $ this -> args [ 'mode' ] != 'error' && $ this -> url = $ this -> discover ( $ proxy ) ) { $ this -> args [ 'mode' ] = 'check_authentication' ; $ var = [ ] ; foreach ( $ this -> args as $ key => $ val ) $ var [ 'openid.' . $ key ] = $ val ; $ req = \ Web :: instance ( ) -> request ( $ this -> url , [ 'method' => 'POST' , 'content' => http_build_query ( $ var ) , 'proxy' => $ proxy ] ) ; return ( bool ) preg_match ( '/is_valid:true/i' , $ req [ 'body' ] ) ; } return FALSE ; }
Return TRUE if OpenID verification was successful
@return bool
@param $proxy string
Return TRUE if OpenID verification was successful