File: short_sso_interval.tpl.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 (41 lines) | stat: -rw-r--r-- 1,326 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
31
32
33
34
35
36
37
38
39
40
41
<?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');
$target = htmlspecialchars($this->data['target']);
$contButton = htmlspecialchars($this->t('{core:short_sso_interval:retry}'));
?>
<h1><?php echo $this->data['header']; ?></h1>
<form style="display: inline; margin: 0px; padding: 0px" action="<?php echo $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>
    <div class="trackidtext"><p>
        <?php echo $this->t('{errors:report_trackid}'); ?>
        <span class="trackid"><?php echo $this->data['trackId']; ?></span>
        </p>
    </div>

    <input type="submit" name="continue" id="contbutton" value="<?php echo $contButton; ?>" />

</form>

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