PHP Classes

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

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/vendor/openid/php-openid/examples/server/server.php   Download  
File: web/SSO/vendor/openid/php-openid/examples/server/server.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: 956 bytes
 

Contents

Class file image Download
<?php

$path_extra
= dirname(dirname(dirname(__FILE__)));
$path = ini_get('include_path');
$path = $path_extra . PATH_SEPARATOR . $path;
ini_set('include_path', $path);

$try_include = @include 'config.php';

if (!
$try_include) {
   
header("Location: setup.php");
}

header('Cache-Control: no-cache');
header('Pragma: no-cache');

if (
function_exists('getOpenIDStore')) {
    require_once
'lib/session.php';
    require_once
'lib/actions.php';

   
init();

   
$action = getAction();
    if (!
function_exists($action)) {
       
$action = 'action_default';
    }

   
$resp = $action();

   
writeResponse($resp);
} else {
?>
<html>
  <head>
    <title>PHP OpenID Server</title>
    <body>
      <h1>PHP OpenID Server</h1>
      <p>
        This server needs to be configured before it can be used. Edit
        <code>config.php</code> to reflect your server's setup, then
        load this page again.
      </p>
    </body>
  </head>
</html>
<?php
}
?>