diff options
| author | Justin J. Novack <jnovack@gmail.com> | 2012-09-17 13:42:49 -0400 |
|---|---|---|
| committer | Justin J. Novack <jnovack@gmail.com> | 2012-09-17 13:42:49 -0400 |
| commit | f9ade082ba49cf487af31339afa7aeeb0653af57 (patch) | |
| tree | bd9cd5974540f745b9ebe5bedec78199414a1996 /www/auth.php | |
| parent | 97c4ac59eed8b66b2e7f85d8ac325b063fb8a0ce (diff) | |
| download | phorkie-f9ade082ba49cf487af31339afa7aeeb0653af57.tar.gz phorkie-f9ade082ba49cf487af31339afa7aeeb0653af57.zip | |
PEAR Coding Standards intermediate update for files changed
Diffstat (limited to 'www/auth.php')
| -rw-r--r-- | www/auth.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/www/auth.php b/www/auth.php index b8d08ff..1cafd59 100644 --- a/www/auth.php +++ b/www/auth.php @@ -27,7 +27,7 @@ if (isset($_REQUEST['logout'])) { session_destroy(); $redirect = 'http://' . $_SERVER['HTTP_HOST']; header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); - exit; + exit; } if (!count($_GET) && !count($_POST)) { @@ -59,9 +59,7 @@ try { exit; } -if (!empty($_POST['disable_associations']) - || !empty($_SESSION['disable_associations'])) { - +if (!empty($_POST['disable_associations']) || !empty($_SESSION['disable_associations'])) { $o->disableAssociations(); $_SESSION['disable_associations'] = true; } @@ -159,8 +157,7 @@ if (isset($_POST['start'])) { $mode = $message->get('openid.mode'); try { - $result = $o->verify(new Net_URL2($returnTo . '?' . $queryString), - $message); + $result = $o->verify(new Net_URL2($returnTo . '?' . $queryString), $message); if ($result->success()) { $status = "<tr><td>Status:</td><td><font color='green'>SUCCESS!"; @@ -202,7 +199,7 @@ if (isset($_POST['start'])) { $openid = $message->getArrayFormat(); - $email = (isset($openid['openid.ext1.value.email'])) ? $openid['openid.ext1.value.email'] : null; + $email = (isset($openid['openid.ext1.value.email'])) ? $openid['openid.ext1.value.email'] : null; $email = (isset($openid['openid.ext2.value.email']) && !isset($email)) ? $openid['openid.ext2.value.email'] : $email; $email = (isset($openid['openid.sreg.email']) && !isset($email)) ? $openid['openid.sreg.email'] : $email; $email = (isset($openid['openid.ax.value.email']) && !isset($email)) ? $openid['openid.ax.value.email'] : $email; |
