ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
frontpage_auth.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
$links_auth
[] = array(
27
'href'
=>
'authenticate.php'
,
28
'text'
=>
'{core:frontpage:authtest}'
,
29
);
30
31
$allLinks
= array(
32
'links'
=> &
$links
,
33
'welcome'
=> &
$links_welcome
,
34
'config'
=> &
$links_config
,
35
'auth'
=> &
$links_auth
,
36
'federation'
=> &
$links_federation
,
37
);
38
SimpleSAML\Module::callHooks
(
'frontpage'
,
$allLinks
);
39
40
41
42
$t
=
new
SimpleSAML_XHTML_Template
(
$config
,
'core:frontpage_auth.tpl.php'
);
43
$t
->data[
'pageid'
] =
'frontpage_auth'
;
44
$t
->data[
'isadmin'
] =
$isadmin
;
45
$t
->data[
'loginurl'
] =
$loginurl
;
46
47
$t
->data[
'links'
] =
$links
;
48
$t
->data[
'links_welcome'
] =
$links_welcome
;
49
$t
->data[
'links_config'
] =
$links_config
;
50
$t
->data[
'links_auth'
] =
$links_auth
;
51
$t
->data[
'links_federation'
] =
$links_federation
;
52
53
54
55
$t
->show();
56
57
$t
$t
Definition:
frontpage_auth.php:42
$allLinks
$allLinks
Definition:
frontpage_auth.php:31
SimpleSAML\Utils\Auth\requireAdmin
static requireAdmin()
Require admin access to the current page.
Definition:
Auth.php:60
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
$links_config
$links_config
Definition:
frontpage_auth.php:21
$isadmin
$isadmin
Definition:
frontpage_auth.php:13
SimpleSAML\Module\callHooks
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
Definition:
Module.php:281
$links_auth
$links_auth
Definition:
frontpage_auth.php:22
$loginurl
if($config->getBoolean('admin.protectindexpage', false)) $loginurl
Definition:
frontpage_auth.php:12
$links_welcome
$links_welcome
Definition:
frontpage_auth.php:20
$links_federation
$links_federation
Definition:
frontpage_auth.php:23
SimpleSAML_XHTML_Template
Definition:
Template.php:14
$config
$config
Definition:
frontpage_auth.php:5
php
$links
$links
Definition:
frontpage_auth.php:19
$session
$session
Definition:
frontpage_auth.php:6
SimpleSAML_Session\getSessionFromRequest
static getSessionFromRequest()
Retrieves the current session.
Definition:
Session.php:241
SimpleSAML_Configuration\getInstance
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
Definition:
Configuration.php:325
libs
composer
vendor
simplesamlphp
simplesamlphp
modules
core
www
frontpage_auth.php
Generated on Thu Jan 16 2025 19:01:56 for ILIAS by
1.8.13 (using
Doxyfile
)