summaryrefslogtreecommitdiffstats
path: root/examples/discover.php
diff options
context:
space:
mode:
authorLuke Shepard <lshepard@devrs006.snc1.facebook.com>2009-05-27 14:09:06 -0700
committerLuke Shepard <lshepard@devrs006.snc1.facebook.com>2009-05-27 14:09:06 -0700
commit7a75121c8568b48d18dcf4e5ac671527ab3e3544 (patch)
treeb270b58510c9c7a8b0c20c42c33d0b9df7095e87 /examples/discover.php
parentf963a700e4440074a5b86d382789e75795206482 (diff)
downloadphp-openid-7a75121c8568b48d18dcf4e5ac671527ab3e3544.zip
php-openid-7a75121c8568b48d18dcf4e5ac671527ab3e3544.tar.gz
php-openid-7a75121c8568b48d18dcf4e5ac671527ab3e3544.tar.bz2
Revert "[ correct errors in removing trailing ?> ]"
This reverts commit f963a700e4440074a5b86d382789e75795206482.
Diffstat (limited to 'examples/discover.php')
-rw-r--r--examples/discover.php28
1 files changed, 13 insertions, 15 deletions
diff --git a/examples/discover.php b/examples/discover.php
index 5ba0af9..4f21465 100644
--- a/examples/discover.php
+++ b/examples/discover.php
@@ -17,7 +17,6 @@ function escape($x)
$identifier = getOpenIDIdentifier();
-?>
<html>
<head>
@@ -38,41 +37,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">
@@ -80,23 +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>
+</html> \ No newline at end of file