diff options
author | Will Norris <will@willnorris.com> | 2012-01-02 14:25:53 -0800 |
---|---|---|
committer | Will Norris <will@willnorris.com> | 2012-01-02 14:25:53 -0800 |
commit | d4e5efe47228c87fcc0933f7431bd6ac4498b340 (patch) | |
tree | 75d4f732071af2f6fe374a89fd63eb9d1c968985 /examples/discover.php | |
parent | 53c793d795724ca042a82351e0366cec805cc167 (diff) | |
parent | 1787658d1572edd3b0cdef0bd8c307e7b37384ea (diff) | |
download | php-openid-d4e5efe47228c87fcc0933f7431bd6ac4498b340.zip php-openid-d4e5efe47228c87fcc0933f7431bd6ac4498b340.tar.gz php-openid-d4e5efe47228c87fcc0933f7431bd6ac4498b340.tar.bz2 |
Merge pull request #47 from starsquare/master
Fix for all dl() cases and short_open_tag
I'm pretty sure we should remove the dl() calls entirely, since it is not longer present in PHP 5.3, but going ahead and merging this as-is for now.
Diffstat (limited to 'examples/discover.php')
-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> |