diff options
author | Luke Shepard <lshepard@devrs006.snc1.facebook.com> | 2009-05-27 13:54:28 -0700 |
---|---|---|
committer | Luke Shepard <lshepard@devrs006.snc1.facebook.com> | 2009-05-27 13:54:28 -0700 |
commit | f963a700e4440074a5b86d382789e75795206482 (patch) | |
tree | 4cd13dd8658fa76da4c253402eaf1ead4a20b33d /examples/discover.php | |
parent | a2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0 (diff) | |
download | php-openid-f963a700e4440074a5b86d382789e75795206482.zip php-openid-f963a700e4440074a5b86d382789e75795206482.tar.gz php-openid-f963a700e4440074a5b86d382789e75795206482.tar.bz2 |
[ correct errors in removing trailing ?> ]
In the last commit, I over-aggressively removed closing PHP tags.
While I dislike the practice of using close tags within templates,
it is how this library works, so let's put them back.
Checked that all PHP compiles with "php -l".
Diffstat (limited to 'examples/discover.php')
-rw-r--r-- | examples/discover.php | 28 |
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> |