upload facility now works in single CIS mode; some simple command-line video moderati...
[living-lab-site.git] / application / views / view_openid.php
1 <html>
2   <head><title>PHP OpenID Authentication Example</title>
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   </head>
38   <body>
39     <h1>PHP OpenID Authentication Example</h1>
40     <p>
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
44       is your identity URL.
45     </p>
46
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>"; } ?>
50
51     <div id="verify-form">
52       <form method="post" action="<?php echo site_url('test/index'); ?>">
53         Identity&nbsp;URL:
54         <input type="hidden" name="action" value="verify" />
55         <input type="text" name="openid_identifier" value="" />
56
57         <p>Optionally, request these PAPE policies:</p>
58         <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 />
62         <?php endforeach; ?>
63         </p>
64
65         <input type="submit" value="Verify" />
66       </form>
67     </div>
68   </body>
69 </html>