login($id, null, null, $sreg)) { $status = "OpenID login failed (".$consumer->getError().")"; } } else if (isset($_GET['openid_mode'])) { if ($_GET['openid_mode'] == "id_res") { $sreg = new Zend_OpenId_Extension_Sreg(); $consumer = new Zend_OpenId_Consumer(); if ($consumer->verify($_GET, $id, $sreg)) { $status = "VALID $id"; $data = $sreg->getProperties(); } else { $status = "INVALID $id (".$consumer->getError().")"; } } else if ($_GET['openid_mode'] == "cancel") { $status = "CANCELED"; } } $sreg_html = ""; $sreg = new Zend_OpenId_Extension_Sreg(); foreach (Zend_OpenId_Extension_Sreg::getSregProperties() as $prop) { $val = isset($data[$prop]) ? $data[$prop] : ""; $sreg_html .= <<$prop $val EOF; } ?> Zend OpenID Consumer Example \n";?>
OpenID Login
\n";?>
 requirdoptionalnone 

register