ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
expired.php
Go to the documentation of this file.
1<?php
2
9SimpleSAML\Logger::info('expirycheck - User has been warned that NetID is near to expirational date.');
10
11if (!array_key_exists('StateId', $_REQUEST)) {
12 throw new SimpleSAML_Error_BadRequest('Missing required StateId query parameter.');
13}
14$state = SimpleSAML_Auth_State::loadState($_REQUEST['StateId'], 'expirywarning:expired');
15
17
18$t = new SimpleSAML_XHTML_Template($globalConfig, 'expirycheck:expired.php');
19$t->data['expireOnDate'] = $state['expireOnDate'];
20$t->data['netId'] = $state['netId'];
21$t->show();
An exception for terminatinating execution or to throw for unit testing.
static info($string)
Definition: Logger.php:199
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.
$t
Definition: expired.php:18
if(!array_key_exists('StateId', $_REQUEST)) $state
Definition: expired.php:14
$globalConfig
Definition: expired.php:16