From d9ac34de94074b07fd66a782ce6ffddea0727145 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 5 Jun 2015 07:49:05 +0200 Subject: [PATCH] about page --- www/about.php | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ www/index.php | 6 +++++ 2 files changed, 76 insertions(+) create mode 100644 www/about.php diff --git a/www/about.php b/www/about.php new file mode 100644 index 0000000..425b23a --- /dev/null +++ b/www/about.php @@ -0,0 +1,70 @@ + + + + + IndieAuth-OpenID proxy + + + + +

IndieAuth to OpenID proxy

+

+ This software make it possible to use your OpenID to login + to IndieAuth-enabled websites. +

+ + +

Setup

+

+ On your home page, add the following code to the + HTML <head> section: +

+
<link rel="authorization_endpoint" href="" />
+

+ Now simply enter your homepage URL in the IndieAuth login field + and press return. + You'll be redirected to your OpenID provider and see its login prompt. +

+ + +

About indieauth-openid

+

+ indieauth-openid was written by + Christian Weiske + and is licensed under the + AGPL v3 or later. +

+

+ You can get the source code from + git.cweiske.de/indieauth-openid.git + or the + mirror on Github. +

+ + + diff --git a/www/index.php b/www/index.php index c3b7848..de410c1 100644 --- a/www/index.php +++ b/www/index.php @@ -13,6 +13,12 @@ * @link http://indiewebcamp.com/auth-brainstorming * @link https://indieauth.com/developers */ +if (($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD') + && count($_GET) == 0 +) { + include 'about.php'; + exit(); +} require_once 'Net/URL2.php'; require_once 'OpenID.php'; -- 2.30.2