PHP Classes

File: web/SSO/modules/core/templates/short_sso_interval.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/modules/core/templates/short_sso_interval.php   Download  
File: web/SSO/modules/core/templates/short_sso_interval.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: 1,102 bytes
 

Contents

Class file image Download
<?php
/**
 * Template which is shown when there is only a short interval since the user was last authenticated.
 *
 * Parameters:
 * - 'target': Target URL.
 * - 'params': Parameters which should be included in the request.
 *
 * @package simpleSAMLphp
 */


$this->data['header'] = $this->t('{core:short_sso_interval:warning_header}');
$this->data['autofocus'] = 'contbutton';

$this->includeAtTemplateBase('includes/header.php');
?>
<h1><?php echo $this->data['header']; ?></h1>
<form style="display: inline; margin: 0px; padding: 0px" action="<?php echo htmlspecialchars($this->data['target']); ?>">

    <?php
       
// Embed hidden fields...
       
foreach ($this->data['params'] as $name => $value) {
            echo(
'<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />');
        }
   
?>
<p><?php echo $this->t('{core:short_sso_interval:warning}'); ?></p>

    <input type="submit" name="continue" id="contbutton" value="<?php echo htmlspecialchars($this->t('{core:short_sso_interval:retry}')) ?>" />

</form>


<?php
$this
->includeAtTemplateBase('includes/footer.php');
?>