diff options
Diffstat (limited to 'examples/discover.php')
-rw-r--r-- | examples/discover.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/examples/discover.php b/examples/discover.php index 31e6b61..4f21465 100644 --- a/examples/discover.php +++ b/examples/discover.php @@ -17,7 +17,7 @@ function escape($x) $identifier = getOpenIDIdentifier(); -?> + <html> <head> <title>OpenID discovery</title> @@ -38,40 +38,40 @@ if ($identifier) { list($normalized_identifier, $endpoints) = Auth_OpenID_discover( $identifier, $fetcher); -?> - <h3>Discovery Results for <?= escape($identifier) ?></h3> + + <h3>Discovery Results for <?= escape($identifier) </h3> <table cellpadding="7" cellspacing="0"> <tbody> <tr> <th>Claimed Identifier</th> - <td><?= escape($normalized_identifier) ?></td> + <td><?= escape($normalized_identifier) </td> </tr> <? if (!$endpoints) { -?> + <tr> <td colspan="2">No OpenID services discovered.</td> </tr> <? } else { -?> + <tr> <td colspan="2">Discovered OpenID services:</td> </tr> <? foreach ($endpoints as $endpoint) { -?> + <tr> <td colspan="2"><hr/></td> </tr> <tr> <th>Server URL</th> - <td><tt><?= escape($endpoint->server_url) ?></tt></td> + <td><tt><?= escape($endpoint->server_url) </tt></td> </tr> <tr> <th>Local ID</th> - <td><tt><?= escape($endpoint->local_id) ?></tt></td> + <td><tt><?= escape($endpoint->local_id) </tt></td> </tr> <tr> <td colspan="2"> @@ -79,22 +79,22 @@ foreach ($endpoints as $endpoint) { <ul> <? foreach ($endpoint->type_uris as $type_uri) { -?> - <li><tt><?= escape($type_uri) ?></tt></li> + + <li><tt><?= escape($type_uri) </tt></li> <? } -?> + </ul> </td> </tr> <? } } -?> + </tbody> </table> <? } -?> + </body> </html>
\ No newline at end of file |