18if (array_key_exists(
'rule', $_REQUEST)) {
 
   21if (array_key_exists(
'rule2', $_REQUEST)) {
 
   24if (array_key_exists(
'time', $_REQUEST)) {
 
   27if (array_key_exists(
'res', $_REQUEST)) {
 
   30if (array_key_exists(
'd', $_REQUEST)) {
 
   73    $dataset2->aggregateSummary();
 
   74    $dataset2->calculateMax();
 
   76    $datasets[] = $dataset2->getPercentValues();
 
   77    $maxes[] = $dataset2->getMax();
 
   84if (array_key_exists(
'output', $_REQUEST) && $_REQUEST[
'output'] === 
'csv') {
 
   85    header(
'Content-type: text/csv');
 
   86    header(
'Content-Disposition: attachment; filename="simplesamlphp-data.csv"');
 
   88    foreach (
$data as $de) {
 
   90            echo 
'"' . $de[0] . 
'",' . $de[1] . 
"\n";
 
   97$t->data[
'pageid'] = 
'statistics';
 
   98$t->data[
'header'] = 
'stat';
 
  103$t->data[
'available.rules'] = 
$ruleset->availableRulesNames();
 
  121$t->data[
'delimiterPresentation'] =  
$dataset->getDelimiterPresentation();
 
  128$t->data[
'get_times_prev'] = 
getBaseURL(
$t, 
'get', 
'time', 
$t->data[
'available.times.prev']);
 
  129$t->data[
'get_times_next'] = 
getBaseURL(
$t, 
'get', 
'time', 
$t->data[
'available.times.next']);
 
  136        'rule' => 
$t->data[
'selected.rule'],
 
  137        'time' => 
$t->data[
'selected.time'],
 
  138        'res' => 
$t->data[
'selected.timeres'],
 
  140    if (isset(
$t->data[
'selected.delimiter'])) {
 
  141        $vars[
'd'] = 
$t->data[
'selected.delimiter'];
 
  143    if (!empty(
$t->data[
'selected.rule2']) && 
$t->data[
'selected.rule2'] !== 
'_') {
 
  144        $vars[
'rule2'] = 
$t->data[
'selected.rule2'];
 
  148        if (isset($vars[
$key])) {
 
  152            $vars[
$key] = $value;
 
  156    if (
$type === 
'get') {
 
  160        foreach($vars as $k => $v) {
 
  161            $text .= 
'<input type="hidden" name="' . $k . 
'" value="'. htmlspecialchars($v) . 
'" />' . 
"\n";
 
An exception for terminatinating execution or to throw for unit testing.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
static getSessionFromRequest()
Retrieves the current session.
static checkAccess(SimpleSAML_Configuration $statconfig)
Check that the user has access to the statistics.
if(array_key_exists('output', $_REQUEST) && $_REQUEST['output']==='csv') $t
if(array_key_exists( 'rule', $_REQUEST)) if(array_key_exists('rule2', $_REQUEST)) if(array_key_exists( 'time', $_REQUEST)) if(array_key_exists('res', $_REQUEST)) if(array_key_exists( 'd', $_REQUEST)) if($preferRule2==='_') $ruleset
if(isset($preferRule2)) $dimx
getBaseURL($t, $type='get', $key=null, $value=null)