add LICENSE file
[indieauth-openid.git] / www / about.php
1 <?php
2 if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) {
3     $prot = 'https';
4 } else {
5     $prot = 'http';
6 }
7 $epUrl  = $prot . '://' . $_SERVER['HTTP_HOST'] . '/';
8 $hepUrl = htmlspecialchars($epUrl);
9
10 ?>
11 <?xml version="1.0" encoding="utf-8"?>
12 <html xmlns="http://www.w3.org/1999/xhtml">
13  <head>
14   <title>IndieAuth-OpenID proxy</title>
15   <style type="text/css">
16 body {
17     max-width: 80ex;
18     margin-left: auto;
19     margin-right: auto;
20 }
21 pre {
22     margin-left: 2ex;
23     background-color: #DDD;
24     padding: 1ex;
25     border-radius: 1ex;
26 }
27 tt {
28     background-color: #DDD;
29     padding: 0.2ex 0.5ex;
30 }
31   </style>
32
33  </head>
34  <body>
35   <h1>IndieAuth to OpenID proxy</h1>
36   <p>
37    This software make it possible to use your OpenID to login
38    to IndieAuth-enabled websites.
39   </p>
40
41
42   <h2 id="setup">Setup</h2>
43   <p>
44    On your home page, add the following code to the
45    HTML <tt>&lt;head&gt;</tt> section:
46   </p>
47   <pre>&lt;link rel="authorization_endpoint" href="<?php echo $hepUrl; ?>" /&gt;</pre>
48   <p>
49    Now simply enter your homepage URL in the IndieAuth login field
50    and press return.
51    You'll be redirected to your OpenID provider and see its login prompt.
52   </p>
53
54   
55   <h2 id="source">About indieauth-openid</h2>
56   <p>
57    <em>indieauth-openid</em> was written by
58    <a href="http://cweiske.de/">Christian Weiske</a>
59    and is licensed under the
60    <a href="http://www.gnu.org/licenses/agpl.html">AGPL v3 or later</a>.
61   </p>
62   <p>
63    You can get the source code from
64    <a href="http://git.cweiske.de/indieauth-openid.git">git.cweiske.de/indieauth-openid.git</a>
65    or the
66    <a href="https://github.com/cweiske/indieauth-openid">mirror on Github</a>.
67   </p>
68
69  </body>
70 </html>