summaryrefslogtreecommitdiffstats
path: root/examples/server/idpage.inc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server/idpage.inc')
-rw-r--r--examples/server/idpage.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/server/idpage.inc b/examples/server/idpage.inc
new file mode 100644
index 0000000..d7eda16
--- /dev/null
+++ b/examples/server/idpage.inc
@@ -0,0 +1,29 @@
+<?php
+if (getCurrentURL(true) != $target) {
+ redirect($target);
+ return;
+}
+
+$link_here = linkURL($target);
+$link_there = linkURL($other);
+
+print "<html>
+ <head>
+ <title>$title</title>
+ <link rel='openid.server' href='$esc_server' />
+ </head>
+ <body>
+ <h1>$title</h1>
+ <p>
+ This page is part of the
+ <a href='$esc_server'>PHP OpenID server example</a>.
+ Any requests to verify this URL ($link_here) will $type to consumers.
+ </p>
+ <p>
+ To test this server with a URL that will $other_type, use $link_there.
+ </p>
+ </body>
+</html>
+";
+
+?> \ No newline at end of file