1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<?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
*/
$translator = $this->getTranslator();
$this->data['403_header'] = $translator->t('{authorize:Authorize:403_header}');
$this->data['403_text'] = $translator->t('{authorize:Authorize:403_text}');
if (array_key_exists('reject_msg', $this->data)) {
if (isset($this->data['reject_msg'][$translator->getLanguage()->getLanguage()])) {
$this->data['403_text'] = $this->data['reject_msg'][$translator->getLanguage()->getLanguage()];
}
}
$this->includeAtTemplateBase('includes/header.php');
echo '<h1>'.$this->data['403_header'].'</h1>';
echo '<p>'.$this->data['403_text'].'</p>';
if (isset($this->data['logoutURL'])) {
echo '<p><a href="'.htmlspecialchars($this->data['logoutURL']).'">'.$translator->t('{status:logout}').'</a></p>';
}
$this->includeAtTemplateBase('includes/footer.php');
|