ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
about2expire.php
Go to the documentation of this file.
1 <?php
2 
9 SimpleSAML\Logger::info('expirycheck - User has been warned that NetID is near to expirational date.');
10 
11 if (!array_key_exists('StateId', $_REQUEST)) {
12  throw new SimpleSAML_Error_BadRequest('Missing required StateId query parameter.');
13 }
14 $id = $_REQUEST['StateId'];
15 $state = SimpleSAML_Auth_State::loadState($id, 'expirywarning:about2expire');
16 
17 if (array_key_exists('yes', $_REQUEST)) {
18  // The user has pressed the yes-button
20 }
21 
23 
24 $t = new SimpleSAML_XHTML_Template($globalConfig, 'expirycheck:about2expire.php');
25 $t->data['yesTarget'] = SimpleSAML\Module::getModuleURL('expirycheck/about2expire.php');
26 $t->data['yesData'] = array('StateId' => $id);
27 $t->data['daysleft'] = $state['daysleft'];
28 $t->data['expireOnDate'] = $state['expireOnDate'];
29 $t->data['netId'] = $state['netId'];
30 $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
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
Definition: State.php:259
if(!array_key_exists('StateId', $_REQUEST)) $id
Create styles array
The data for the language used.
$state
$t
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
if(array_key_exists('yes', $_REQUEST)) $globalConfig