ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
logout-iframe-wrapper.php
Go to the documentation of this file.
1<?php
2
3$id = $this->data['auth_state'];
4$SPs = $this->data['SPs'];
5
6$iframeURL = 'logout-iframe.php?type=embed&id='.urlencode($id);
7
8// pretty arbitrary height, but should have enough safety margins for most cases
9$iframeHeight = 25 + count($SPs) * 4;
10
11$this->data['header'] = $this->t('{logout:progress}');
12$this->includeAtTemplateBase('includes/header.php');
13echo '<iframe style="width:100%; height:'.$iframeHeight.'em; border:0;" src="'.htmlspecialchars($iframeURL).
14 '"></iframe>';
15
16foreach ($SPs as $assocId => $sp) {
17 $spId = sha1($assocId);
18
19 if ($sp['core:Logout-IFrame:State'] !== 'inprogress') {
20 continue;
21 }
22 assert('isset($sp["core:Logout-IFrame:URL"])');
23
24 $url = $sp["core:Logout-IFrame:URL"];
25
26 echo('<iframe style="width:0; height:0; border:0;" src="'.htmlspecialchars($url).'"></iframe>');
27}
28
29$this->includeAtTemplateBase('includes/footer.php');
An exception for terminatinating execution or to throw for unit testing.
if(!isset($_REQUEST['association'])) $assocId
$this data['header']
$url