ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
showwarning.php
Go to the documentation of this file.
1<?php
2
10SimpleSAML\Logger::info('PreProdWarning - Showing warning to user');
11
12if (!array_key_exists('StateId', $_REQUEST)) {
13 throw new SimpleSAML_Error_BadRequest('Missing required StateId query parameter.');
14}
15$id = $_REQUEST['StateId'];
17
18
19if (array_key_exists('yes', $_REQUEST)) {
20 // The user has pressed the yes-button
21
23}
24
25
26
28
29$t = new SimpleSAML_XHTML_Template($globalConfig, 'preprodwarning:warning.php');
30$t->data['yesTarget'] = SimpleSAML\Module::getModuleURL('preprodwarning/showwarning.php');
31$t->data['yesData'] = array('StateId' => $id);
32$t->show();
An exception for terminatinating execution or to throw for unit testing.
static info($string)
Definition: Logger.php:201
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:303
static resumeProcessing($state)
Continues processing of the state.
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.
if(!array_key_exists('StateId', $_REQUEST)) $id
Definition: showwarning.php:15
$t
Definition: showwarning.php:29
if(array_key_exists('yes', $_REQUEST)) $globalConfig
Definition: showwarning.php:27
$state
Definition: showwarning.php:16