summaryrefslogtreecommitdiffstats
path: root/examples/server/idpage.inc
blob: d7eda169aeaefb6e2b14a6af0be247eb3d33fab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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>
";

?>