ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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'
);
13
echo
'<iframe style="width:100%; height:'
.$iframeHeight.
'em; border:0;" src="'
.htmlspecialchars(
$iframeURL
).
14
'"></iframe>'
;
15
16
foreach
(
$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'
);
$SPs
$SPs
Definition:
logout-iframe-wrapper.php:4
data
$this data['header']
Definition:
logout-iframe-wrapper.php:11
$iframeURL
$iframeURL
Definition:
logout-iframe-wrapper.php:6
$iframeHeight
$iframeHeight
Definition:
logout-iframe-wrapper.php:9
$assocId
if(!isset($_REQUEST['association'])) $assocId
Definition:
logout-iframe-post.php:12
$url
$url
Definition:
proxy_ylocal.php:28
$id
$id
Definition:
logout-iframe-wrapper.php:3
libs
composer
vendor
simplesamlphp
simplesamlphp
modules
core
templates
logout-iframe-wrapper.php
Generated on Sat Jan 18 2025 19:01:10 for ILIAS by
1.8.13 (using
Doxyfile
)