ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
frontpage_auth.php
Go to the documentation of this file.
1 <?php
2 
3 
4 // Load SimpleSAMLphp, configuration
7 
8 // Check if valid local session exists
9 if ($config->getBoolean('admin.protectindexpage', false)) {
11 }
14 
15 
16 
17 
18 
19 $links = array();
20 $links_welcome = array();
21 $links_config = array();
22 $links_auth = 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 );
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 
$allLinks
static requireAdmin()
Require admin access to the current page.
Definition: Auth.php:60
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
$links_config
$isadmin
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
Definition: Module.php:281
$links_auth
if($config->getBoolean('admin.protectindexpage', false)) $loginurl
$links_welcome
$links_federation
$config
$links
$session
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:241
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.