PHP Classes

File: web/SSO/modules/sanitycheck/www/index.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/modules/sanitycheck/www/index.php   Download  
File: web/SSO/modules/sanitycheck/www/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 546 bytes
 

Contents

Class file image Download
<?php


$config
= SimpleSAML_Configuration::getInstance();

$info = array();
$errors = array();
$hookinfo = array(
   
'info' => &$info,
   
'errors' => &$errors,
);
SimpleSAML_Module::callHooks('sanitycheck', $hookinfo);


if (isset(
$_REQUEST['output']) && $_REQUEST['output'] == 'text') {
   
    if (
count($errors) === 0) {
        echo
'OK';
    } else {
        echo
'FAIL';
    }
    exit;
}

$t = new SimpleSAML_XHTML_Template($config, 'sanitycheck:check-tpl.php');
$t->data['pageid'] = 'sanitycheck';
$t->data['errors'] = $errors;
$t->data['info'] = $info;
$t->show();