summaryrefslogtreecommitdiffstats
path: root/examples/discover.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/discover.php')
-rw-r--r--examples/discover.php28
1 files changed, 15 insertions, 13 deletions
diff --git a/examples/discover.php b/examples/discover.php
index 4f21465..5ba0af9 100644
--- a/examples/discover.php
+++ b/examples/discover.php
@@ -17,6 +17,7 @@ function escape($x)
$identifier = getOpenIDIdentifier();
+?>
<html>
<head>
@@ -37,41 +38,41 @@ if ($identifier) {
$fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
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 +80,23 @@ 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
+</html>