ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
noconsent.php
Go to the documentation of this file.
1<?php
7if (!array_key_exists('StateId', $_REQUEST)) {
9 'Missing required StateId query parameter.'
10 );
11}
12
13$id = $_REQUEST['StateId'];
15
17 'consent/getconsent.php',
18 array('StateId' => $id)
19);
20
22 'consent/logout.php',
23 array('StateId' => $id)
24);
25
26
28if (!isset($state['consent:showNoConsentAboutService']) || $state['consent:showNoConsentAboutService']) {
29 if (isset($state['Destination']['url.about'])) {
30 $aboutService = $state['Destination']['url.about'];
31 }
32}
33
34$statsInfo = array();
35if (isset($state['Destination']['entityid'])) {
36 $statsInfo['spEntityID'] = $state['Destination']['entityid'];
37}
38SimpleSAML_Stats::log('consent:reject', $statsInfo);
39
41
42$t = new SimpleSAML_XHTML_Template($globalConfig, 'consent:noconsent.php');
43$t->data['dstMetadata'] = $state['Destination'];
44$t->data['resumeFrom'] = $resumeFrom;
45$t->data['aboutService'] = $aboutService;
46$t->data['logoutLink'] = $logoutLink;
47$t->show();
An exception for terminatinating execution or to throw for unit testing.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:220
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
Definition: State.php:259
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static log($event, array $data=array())
Notify about an event.
Definition: Stats.php:71
if(!array_key_exists('StateId', $_REQUEST)) $id
Definition: noconsent.php:13
$aboutService
Definition: noconsent.php:27
$t
Definition: noconsent.php:42
$logoutLink
Definition: noconsent.php:21
if(!isset($state['consent:showNoConsentAboutService'])|| $state['consent:showNoConsentAboutService']) $statsInfo
Definition: noconsent.php:34
$resumeFrom
Definition: noconsent.php:16
$globalConfig
Definition: noconsent.php:40
$state
Definition: noconsent.php:14