ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
frontpage_welcome.php
Go to the documentation of this file.
1
<?php
2
3
4
// Load SimpleSAMLphp, configuration
5
$config
=
SimpleSAML_Configuration::getInstance
();
6
$session
=
SimpleSAML_Session::getSessionFromRequest
();
7
8
// Check if valid local session exists.
9
if
(
$config
->getBoolean(
'admin.protectindexpage'
,
false
)) {
10
SimpleSAML\Utils\Auth::requireAdmin
();
11
}
12
$loginurl
=
SimpleSAML\Utils\Auth::getAdminLoginURL
();
13
$isadmin
=
SimpleSAML\Utils\Auth::isAdmin
();
14
15
16
17
18
19
$links
=
array
();
20
$links_welcome
=
array
();
21
$links_config
=
array
();
22
$links_auth
=
array
();
23
$links_federation
=
array
();
24
25
26
27
$allLinks
=
array
(
28
'links'
=> &
$links
,
29
'welcome'
=> &
$links_welcome
,
30
'config'
=> &
$links_config
,
31
'auth'
=> &
$links_auth
,
32
'federation'
=> &
$links_federation
,
33
);
34
35
$links_welcome
[] =
array
(
36
'href'
=>
'https://simplesamlphp.org/docs/stable/'
,
37
'text'
=>
'{core:frontpage:doc_header}'
,
38
);
39
40
SimpleSAML\Module::callHooks
(
'frontpage'
,
$allLinks
);
41
42
43
44
45
46
47
48
49
50
$t
=
new
SimpleSAML_XHTML_Template
(
$config
,
'core:frontpage_welcome.tpl.php'
);
51
$t
->data[
'pageid'
] =
'frontpage_welcome'
;
52
$t
->data[
'isadmin'
] =
$isadmin
;
53
$t
->data[
'loginurl'
] =
$loginurl
;
54
55
$t
->data[
'links'
] =
$links
;
56
$t
->data[
'links_welcome'
] =
$links_welcome
;
57
$t
->data[
'links_config'
] =
$links_config
;
58
$t
->data[
'links_auth'
] =
$links_auth
;
59
$t
->data[
'links_federation'
] =
$links_federation
;
60
61
62
63
64
$t
->show();
65
66
SimpleSAML\Utils\Auth\requireAdmin
static requireAdmin()
Require admin access to the current page.
Definition:
Auth.php:60
$loginurl
if($config->getBoolean('admin.protectindexpage', false)) $loginurl
Definition:
frontpage_welcome.php:12
SimpleSAML\Utils\Auth\isAdmin
static isAdmin()
Check whether the current user is admin.
Definition:
Auth.php:42
SimpleSAML\Utils\Auth\getAdminLoginURL
static getAdminLoginURL($returnTo=null)
Retrieve a admin login URL.
Definition:
Auth.php:22
$t
$t
Definition:
frontpage_welcome.php:50
$config
$config
Definition:
frontpage_welcome.php:5
$links_auth
$links_auth
Definition:
frontpage_welcome.php:22
SimpleSAML\Module\callHooks
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
Definition:
Module.php:364
$links
$links
Definition:
frontpage_welcome.php:19
$links_welcome
$links_welcome
Definition:
frontpage_welcome.php:20
$isadmin
$isadmin
Definition:
frontpage_welcome.php:13
$session
$session
Definition:
frontpage_welcome.php:6
$allLinks
$allLinks
Definition:
frontpage_welcome.php:27
$links_config
$links_config
Definition:
frontpage_welcome.php:21
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
SimpleSAML_XHTML_Template
Definition:
Template.php:16
$links_federation
$links_federation
Definition:
frontpage_welcome.php:23
SimpleSAML_Session\getSessionFromRequest
static getSessionFromRequest()
Retrieves the current session.
Definition:
Session.php:243
SimpleSAML_Configuration\getInstance
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
Definition:
Configuration.php:297
libs
composer
vendor
simplesamlphp
simplesamlphp
modules
core
www
frontpage_welcome.php
Generated on Tue Jan 28 2025 19:01:12 for ILIAS by
1.8.13 (using
Doxyfile
)