2 if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) {
7 $epUrl = $prot . '://' . $_SERVER['HTTP_HOST'] . '/';
9 $epUrl .= ltrim($_SERVER['SCRIPT_NAME'], '/') . '/';
11 $hepUrl = htmlspecialchars($epUrl);
14 <?xml version="1.0" encoding="utf-8"?>
15 <html xmlns="http://www.w3.org/1999/xhtml">
17 <title>IndieAuth-OpenID proxy</title>
18 <style type="text/css">
26 background-color: #DDD;
31 background-color: #DDD;
38 <h1>IndieAuth to OpenID proxy</h1>
40 This software make it possible to use your OpenID to login
41 to IndieAuth-enabled websites.
45 <h2 id="setup">Setup</h2>
47 On your home page, add the following code to the
48 HTML <tt><head></tt> section:
50 <pre><link rel="authorization_endpoint" href="<?php echo $hepUrl; ?>" /></pre>
52 Now simply enter your homepage URL in the IndieAuth login field
54 You'll be redirected to your OpenID provider and see its login prompt.
58 <h2 id="source">About indieauth-openid</h2>
60 <em>indieauth-openid</em> was written by
61 <a href="http://cweiske.de/">Christian Weiske</a>
62 and is licensed under the
63 <a href="http://www.gnu.org/licenses/agpl.html">AGPL v3 or later</a>.
66 You can get the source code from
67 <a href="http://git.cweiske.de/indieauth-openid.git">git.cweiske.de/indieauth-openid.git</a>
69 <a href="https://github.com/cweiske/indieauth-openid">mirror on Github</a>.