ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Warning.php
Go to the documentation of this file.
1 <?php
2 
9 
10 
11 
20  public function process(&$state) {
21  assert(is_array($state));
22 
23  if (isset($state['isPassive']) && $state['isPassive'] === TRUE) {
24  // We have a passive request. Skip the warning
25  return;
26  }
27 
28  // Save state and redirect.
29  $id = SimpleSAML_Auth_State::saveState($state, 'warning:request');
30  $url = SimpleSAML\Module::getModuleURL('preprodwarning/showwarning.php');
32  }
33 
34 
35 
36 }
process(&$state)
Process a authentication response.
Definition: Warning.php:20
if(!array_key_exists('StateId', $_REQUEST)) $id
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Definition: HTTP.php:959
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:220
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
$url
static saveState(&$state, $stage, $rawId=false)
Save the state.
Definition: State.php:194