ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
status.php
Go to the documentation of this file.
1<?php
2if (array_key_exists('header', $this->data)) {
3 if ($this->getTranslator()->getTag($this->data['header']) !== null) {
4 $this->data['header'] = $this->t($this->data['header']);
5 }
6}
7
8$this->includeAtTemplateBase('includes/header.php');
9$this->includeAtTemplateBase('includes/attributes.php');
10?>
11
12 <h2><?php if (isset($this->data['header'])) {
13 echo($this->data['header']);
14 } else {
15 echo($this->t('{status:some_error_occurred}'));
16 } ?></h2>
17
18 <p><?php echo($this->t('{status:intro}')); ?></p>
19
20<?php
21if (isset($this->data['remaining'])) {
22 echo('<p>'.$this->t('{status:validfor}', array('%SECONDS%' => $this->data['remaining'])).'</p>');
23}
24
25if (isset($this->data['sessionsize'])) {
26 echo('<p>'.$this->t('{status:sessionsize}', array('%SIZE%' => $this->data['sessionsize'])).'</p>');
27}
28?>
29 <h2><?php echo($this->t('{status:attributes_header}')); ?></h2>
30
31<?php
32
33$attributes = $this->data['attributes'];
34echo(present_attributes($this, $attributes, ''));
35
36$nameid = $this->data['nameid'];
37if ($nameid !== false) {
39 echo "<h2>".$this->t('{status:subject_header}')."</h2>";
40 if (is_null($nameid->value)) {
41 $list = array("NameID" => array($this->t('{status:subject_notset}')));
42 echo "<p>NameID: <span class=\"notset\">".$this->t('{status:subject_notset}')."</span></p>";
43 } else {
44 $list = array(
45 "NameId" => array($nameid->value),
46 );
47 if (!is_null($nameid->Format)) {
48 $list[$this->t('{status:subject_format}')] = array($nameid->Format);
49 }
50 if (!is_null($nameid->NameQualifier)) {
51 $list['NameQualifier'] = array($nameid->NameQualifier);
52 }
53 if (!is_null($nameid->SPNameQualifier)) {
54 $list['SPNameQualifier'] = array($nameid->SPNameQualifier);
55 }
56 if (!is_null($nameid->SPProvidedID)) {
57 $list['SPProvidedID'] = array($nameid->SPProvidedID);
58 }
59 }
60 echo(present_attributes($this, $list, ''));
61}
62
63$authData = $this->data['authData'];
64if (!empty($authData)) {
65 echo "<h2>".$this->t('{status:authData_header}')."</h2>";
66 echo '<details><summary>' . $this->t('{status:authData_summary}') . '</summary>';
67 echo('<pre>' . htmlspecialchars(json_encode($this->data['authData'], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)) . '</pre>');
68 echo '</details>';
69}
70if (isset($this->data['logout'])) {
71 echo('<h2>'.$this->t('{status:logout}').'</h2>');
72 echo('<p>'.$this->data['logout'].'</p>');
73}
74
75if (isset($this->data['logouturl'])) {
76 echo('<a href="'.htmlspecialchars($this->data['logouturl']).'">'.$this->t('{status:logout}').'</a>');
77}
78
79$this->includeAtTemplateBase('includes/footer.php');
An exception for terminatinating execution or to throw for unit testing.
present_attributes($t, $attributes, $nameParent)
Recursive attribute array listing function.
Definition: getconsent.php:216
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41
$authData
Definition: status.php:63
$nameid
Definition: status.php:36
$attributes
Definition: status.php:33
$this data['403_header']