ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
showwarning.php
Go to the documentation of this file.
1 <?php
2 
10 SimpleSAML\Logger::info('PreProdWarning - Showing warning to user');
11 
12 if (!array_key_exists('StateId', $_REQUEST)) {
13  throw new SimpleSAML_Error_BadRequest('Missing required StateId query parameter.');
14 }
15 $id = $_REQUEST['StateId'];
17 
18 
19 if (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();
static resumeProcessing($state)
Continues processing of the state.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:303
static info($string)
Definition: Logger.php:201
$t
Definition: showwarning.php:29
if(array_key_exists('yes', $_REQUEST)) $globalConfig
Definition: showwarning.php:27
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
Definition: State.php:259
$state
Definition: showwarning.php:16
if(!array_key_exists('StateId', $_REQUEST)) $id
Definition: showwarning.php:15
Create styles array
The data for the language used.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.