2 <head><title>PHP OpenID Authentication Example</title>
3 <style type="text/css">
5 font-family: verdana,sans-serif;
19 border: 1px solid #e7dc2b;
23 border: 1px solid #669966;
27 border: 1px solid #ff0000;
31 border: 1px solid #777777;
39 <h1>PHP OpenID Authentication Example</h1>
41 This example consumer uses the <a
42 href="http://www.openidenabled.com/openid/libraries/php/">PHP
43 OpenID</a> library. It just verifies that the URL that you enter
47 <?php if (isset($msg)) { echo "<div class=\"alert\">$msg</div>"; } ?>
48 <?php if (isset($error)) { echo "<div class=\"error\">$error</div>"; } ?>
49 <?php if (isset($success)) { echo "<div class=\"success\">$success</div>"; } ?>
51 <div id="verify-form">
52 <form method="post" action="<?php echo site_url('test/index'); ?>">
54 <input type="hidden" name="action" value="verify" />
55 <input type="text" name="openid_identifier" value="" />
57 <p>Optionally, request these PAPE policies:</p>
59 <?php foreach($pape_policy_uris as $i => $uri): ?>
60 <input type="checkbox" name="policies[]" value="<?php echo $uri; ?>" />
61 <?php echo $uri; ?><br />
65 <input type="submit" value="Verify" />