ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
status.php
Go to the documentation of this file.
1 <?php
2 if (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
21 if (isset($this->data['remaining'])) {
22  echo('<p>'.$this->t('{status:validfor}', array('%SECONDS%' => $this->data['remaining'])).'</p>');
23 }
24 
25 if (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'];
34 echo(present_attributes($this, $attributes, ''));
35 
36 $nameid = $this->data['nameid'];
37 if ($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 if (isset($this->data['logout'])) {
64  echo('<h2>'.$this->t('{status:logout}').'</h2>');
65  echo('<p>'.$this->data['logout'].'</p>');
66 }
67 
68 if (isset($this->data['logouturl'])) {
69  echo('<a href="'.htmlspecialchars($this->data['logouturl']).'">'.$this->t('{status:logout}').'</a>');
70 }
71 
72 $this->includeAtTemplateBase('includes/footer.php');
Add some data
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41
$nameid
Definition: status.php:36
Create styles array
The data for the language used.
$attributes
Definition: status.php:33