OpenID library installed
[living-lab-site.git] / application / views / view_openid.php
1 <html>
2   <head><title>PHP OpenID Authentication Example</title></head>
3   <style type="text/css">
4       * {
5         font-family: verdana,sans-serif;
6       }
7       body {
8         width: 50em;
9         margin: 1em;
10       }
11       div {
12         padding: .5em;
13       }
14       table {
15         margin: none;
16         padding: none;
17       }
18       .alert {
19         border: 1px solid #e7dc2b;
20         background: #fff888;
21       }
22       .success {
23         border: 1px solid #669966;
24         background: #88ff88;
25       }
26       .error {
27         border: 1px solid #ff0000;
28         background: #ffaaaa;
29       }
30       #verify-form {
31         border: 1px solid #777777;
32         background: #dddddd;
33         margin-top: 1em;
34         padding-bottom: 0em;
35       }
36   </style>
37   <body>
38     <h1>PHP OpenID Authentication Example</h1>
39     <p>
40       This example consumer uses the <a
41       href="http://www.openidenabled.com/openid/libraries/php/">PHP
42       OpenID</a> library. It just verifies that the URL that you enter
43       is your identity URL.
44     </p>
45
46     <?php if (isset($msg)) { echo "<div class=\"alert\">$msg</div>"; } ?>
47     <?php if (isset($error)) { echo "<div class=\"error\">$error</div>"; } ?>
48     <?php if (isset($success)) { echo "<div class=\"success\">$success</div>"; } ?>
49
50     <div id="verify-form">
51       <form method="post" action="<?php echo site_url('test/index'); ?>">
52         Identity&nbsp;URL:
53         <input type="hidden" name="action" value="verify" />
54         <input type="text" name="openid_identifier" value="" />
55
56         <p>Optionally, request these PAPE policies:</p>
57         <p>
58         <?php foreach($pape_policy_uris as $i => $uri): ?>
59           <input type="checkbox" name="policies[]" value="<?php echo $uri; ?>" />
60           <?php echo $uri; ?><br />
61         <?php endforeach; ?>
62         </p>
63
64         <input type="submit" value="Verify" />
65       </form>
66     </div>
67   </body>
68 </html>