diff options
Diffstat (limited to 'examples')
-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..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> |