PHP Classes

File: web/SSO/vendor/openid/php-openid/examples/server/lib/render/idpage.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/vendor/openid/php-openid/examples/server/lib/render/idpage.php   Download  
File: web/SSO/vendor/openid/php-openid/examples/server/lib/render/idpage.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 629 bytes
 

Contents

Class file image Download
<?php

require_once "lib/session.php";
require_once
"lib/render.php";

define('idpage_pat',
      
'<html>
<head>
  <link rel="openid2.provider openid.server" href="%s"/>
  <meta http-equiv="X-XRDS-Location" content="%s" />
</head>
<body>
  This is the identity page for users of this server.
</body>
</html>'
);

function
idpage_render($identity)
{
   
$xrdsurl = buildURL('userXrds')."?user=".urlencode($identity);

   
$headers = array(
                    
'X-XRDS-Location: '.$xrdsurl);


   
$body = sprintf(idpage_pat,
                   
buildURL(),
                   
$xrdsurl);
    return array(
$headers, $body);
}

?>