xrdsOverride = array( '#^http://' . $domain . '/openid\?id=\d+$#', 'https://www.google.com/accounts/o8/site-xrds?hd=' . $domain ); if (!$openid->mode) { if (isset($_GET['login'])) { $openid->identity = 'https://www.google.com/accounts/o8/site-xrds?hd=' . $domain; header('Location: ' . $openid->authUrl()); } ?>
mode == 'cancel') { echo 'User has canceled authentication!'; } else { echo 'User ' . ($openid->validate() ? $openid->identity . ' has ' : 'has not ') . 'logged in.'; } } catch(ErrorException $e) { echo $e->getMessage(); }