File: authorize_403.php

package info (click to toggle)
simplesamlphp 1.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,920 kB
  • sloc: php: 202,044; javascript: 14,867; xml: 2,700; sh: 225; perl: 82; makefile: 70; python: 5
file content (30 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download | duplicates (3)
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');