ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
frontpage_welcome.php
Go to the documentation of this file.
1<?php
2
3
4// Load SimpleSAMLphp, configuration
7
8// Check if valid local session exists.
9if ($config->getBoolean('admin.protectindexpage', false)) {
11}
14
15
16
17
18
19$links = array();
21$links_config = array();
22$links_auth = 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
36 'href' => 'https://simplesamlphp.org/docs/stable/',
37 'text' => '{core:frontpage:doc_header}',
38);
39
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
An exception for terminatinating execution or to throw for unit testing.
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
Definition: Module.php:281
static isAdmin()
Check whether the current user is admin.
Definition: Auth.php:42
static getAdminLoginURL($returnTo=null)
Retrieve a admin login URL.
Definition: Auth.php:22
static requireAdmin()
Require admin access to the current page.
Definition: Auth.php:60
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:241
if($config->getBoolean('admin.protectindexpage', false)) $loginurl
$links_config
$links_federation
$links_welcome