blob: 99c363cd7c2b8ab87f7c003e2502774ca2c2efdb (
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
|
<?php
require_once "lib/session.php";
require_once "lib/render.php";
define('xrds_pat', '<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS
xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)">
<XRD>
<Service priority="0">
<Type>http://specs.openid.net/auth/2.0/server</Type>
<URI>%s</URI>
</Service>
</XRD>
</xrds:XRDS>
');
function idpXrds_render()
{
$headers = array('Content-type: application/xrds+xml');
$body = sprintf(xrds_pat, buildURL());
return array($headers, $body);
}
?>
|