summaryrefslogtreecommitdiffstats
path: root/examples/consumer/index.php
diff options
context:
space:
mode:
authorLuke Shepard <lshepard@devrs006.snc1.facebook.com>2009-05-27 13:54:28 -0700
committerLuke Shepard <lshepard@devrs006.snc1.facebook.com>2009-05-27 13:54:28 -0700
commitf963a700e4440074a5b86d382789e75795206482 (patch)
tree4cd13dd8658fa76da4c253402eaf1ead4a20b33d /examples/consumer/index.php
parenta2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0 (diff)
downloadphp-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/consumer/index.php')
-rw-r--r--examples/consumer/index.php18
1 files changed, 14 insertions, 4 deletions
diff --git a/examples/consumer/index.php b/examples/consumer/index.php
index dd2f391..b2ad176 100644
--- a/examples/consumer/index.php
+++ b/examples/consumer/index.php
@@ -2,6 +2,7 @@
require_once "common.php";
global $pape_policy_uris;
+?>
<html>
<head><title>PHP OpenID Authentication Example</title></head>
@@ -48,9 +49,17 @@ global $pape_policy_uris;
is your identity URL.
</p>
- <?php if (isset($msg)) { print "<div class=\"alert\">$msg</div>"; }
- <?php if (isset($error)) { print "<div class=\"error\">$error</div>"; }
- <?php if (isset($success)) { print "<div class=\"success\">$success</div>"; }
+ <?php
+ if (isset($msg)) {
+ print "<div class=\"alert\">$msg</div>";
+ }
+ if (isset($error)) {
+ print "<div class=\"error\">$error</div>";
+ }
+ if (isset($success)) {
+ print "<div class=\"success\">$success</div>";
+ }
+ ?>
<div id="verify-form">
<form method="get" action="try_auth.php">
@@ -63,7 +72,8 @@ global $pape_policy_uris;
<?php foreach ($pape_policy_uris as $i => $uri) {
print "<input type=\"checkbox\" name=\"policies[]\" value=\"$uri\" />";
print "$uri<br/>";
- }
+ }
+ ?>
</p>
<input type="submit" value="Verify" />