PHP Classes

File: web/SSO/SAML/logout.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/SAML/logout.php   Download  
File: web/SSO/SAML/logout.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: 529 bytes
 

Contents

Class file image Download
<?php

require_once('_include.php');

$config = SimpleSAML_Configuration::getInstance();

if(
array_key_exists('link_href', $_REQUEST)) {
   
$link = (string)$_REQUEST['link_href'];
   
$link = SimpleSAML_Utilities::normalizeURL($link);
} else {
   
$link = 'index.php';
}

if(
array_key_exists('link_text', $_REQUEST)) {
   
$text = $_REQUEST['link_text'];
} else {
   
$text = '{logout:default_link_text}';
}

$t = new SimpleSAML_XHTML_Template($config, 'logout.php');
$t->data['link'] = $link;
$t->data['text'] = $text;
$t->show();
exit();

?>