ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
noconsent.php
Go to the documentation of this file.
1<?php
2
3if (array_key_exists('name', $this->data['dstMetadata'])) {
4 $dstName = $this->data['dstMetadata']['name'];
5} elseif (array_key_exists('OrganizationDisplayName', $this->data['dstMetadata'])) {
6 $dstName = $this->data['dstMetadata']['OrganizationDisplayName'];
7} else {
8 $dstName = $this->data['dstMetadata']['entityid'];
9}
10if (is_array($dstName)) {
11 $dstName = $this->t($dstName);
12}
13$dstName = htmlspecialchars($dstName);
14
15
16$this->data['header'] = $this->t('{consent:consent:noconsent_title}');;
17
18$this->includeAtTemplateBase('includes/header.php');
19
20echo '<h2>' . $this->data['header'] . '</h2>';
21echo '<p>' . $this->t('{consent:consent:noconsent_text}', array('SPNAME' => $dstName)) . '</p>';
22
23if ($this->data['resumeFrom']) {
24 echo('<p><a href="' . htmlspecialchars($this->data['resumeFrom']) . '">');
25 echo($this->t('{consent:consent:noconsent_return}'));
26 echo('</a></p>');
27}
28
29if ($this->data['aboutService']) {
30 echo('<p><a href="' . htmlspecialchars($this->data['aboutService']) . '">');
31 echo($this->t('{consent:consent:noconsent_goto_about}'));
32 echo('</a></p>');
33}
34
35echo('<p><a href="' . htmlspecialchars($this->data['logoutLink']) . '">' . $this->t('{consent:consent:abort}', array('SPNAME' => $dstName)) . '</a></p>');
36
37
38$this->includeAtTemplateBase('includes/footer.php');
An exception for terminatinating execution or to throw for unit testing.
if(is_array($dstName)) $dstName
Definition: noconsent.php:13
$this data['header']
Definition: noconsent.php:16