summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChris Buckley <git@cmbuckley.co.uk>2011-05-03 17:58:22 +0100
committerChris Buckley <git@cmbuckley.co.uk>2011-05-03 17:58:22 +0100
commit00676efc3722784e783fba217d54b3ee33bf833e (patch)
tree1782166d67195340229155bbacc0c248527aead0 /examples
parentbc5f875d4b4ec524882c963f7f34859ed974e0e4 (diff)
downloadphp-openid-00676efc3722784e783fba217d54b3ee33bf833e.zip
php-openid-00676efc3722784e783fba217d54b3ee33bf833e.tar.gz
php-openid-00676efc3722784e783fba217d54b3ee33bf833e.tar.bz2
fix for short_open_tag = 0
Diffstat (limited to 'examples')
-rw-r--r--examples/discover.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/examples/discover.php b/examples/discover.php
index 31e6b61..29f6718 100644
--- a/examples/discover.php
+++ b/examples/discover.php
@@ -31,7 +31,7 @@ $identifier = getOpenIDIdentifier();
<input type="text" name="openid_identifier" size="40" />
<input type="submit" value="Begin" />
</form>
-<?
+<?php
if ($identifier) {
$fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
@@ -39,27 +39,27 @@ if ($identifier) {
$identifier, $fetcher);
?>
- <h3>Discovery Results for <?= escape($identifier) ?></h3>
+ <h3>Discovery Results for <?php echo escape($identifier) ?></h3>
<table cellpadding="7" cellspacing="0">
<tbody>
<tr>
<th>Claimed Identifier</th>
- <td><?= escape($normalized_identifier) ?></td>
+ <td><?php echo escape($normalized_identifier) ?></td>
</tr>
-<?
+<?php
if (!$endpoints) {
?>
<tr>
<td colspan="2">No OpenID services discovered.</td>
</tr>
-<?
+<?php
} else {
?>
<tr>
<td colspan="2">Discovered OpenID services:</td>
</tr>
-<?
+<?php
foreach ($endpoints as $endpoint) {
?>
<tr>
@@ -67,34 +67,34 @@ foreach ($endpoints as $endpoint) {
</tr>
<tr>
<th>Server URL</th>
- <td><tt><?= escape($endpoint->server_url) ?></tt></td>
+ <td><tt><?php echo escape($endpoint->server_url) ?></tt></td>
</tr>
<tr>
<th>Local ID</th>
- <td><tt><?= escape($endpoint->local_id) ?></tt></td>
+ <td><tt><?php echo escape($endpoint->local_id) ?></tt></td>
</tr>
<tr>
<td colspan="2">
<h3>Service types:</h3>
<ul>
-<?
+<?php
foreach ($endpoint->type_uris as $type_uri) {
?>
- <li><tt><?= escape($type_uri) ?></tt></li>
-<?
+ <li><tt><?php echo escape($type_uri) ?></tt></li>
+<?php
}
?>
</ul>
</td>
</tr>
-<?
+<?php
}
}
?>
</tbody>
</table>
-<?
+<?php
}
?>
</body>
-</html> \ No newline at end of file
+</html>