ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
statmeta.tpl.php
Go to the documentation of this file.
1 <?php
2 $this->data['header'] = 'SimpleSAMLphp Statistics Metadata';
3 $this->data['head'] = '<link rel="stylesheet" type="text/css" href="' . SimpleSAML\Module::getModuleURL("statistics/style.css") . '" />';
4 $this->includeAtTemplateBase('includes/header.php');
5 
6 echo '<table id="statmeta">' ;
7 
8 if (isset($this->data['metadata'])) {
9  $metadata = $this->data['metadata'];
10 
11  if (isset($metadata['lastrun'])) {
12  echo '<tr><td>Aggregator last run at</td><td>' . $metadata['lastrun'] . '</td></tr>';
13  }
14 
15  if (isset($metadata['notBefore'])) {
16  echo '<tr><td>Aggregated data until</td><td>' . $metadata['notBefore'] . '</td></tr>';
17  }
18 
19  if (isset($metadata['memory'])) {
20  echo '<tr><td>Memory usage</td><td>' . $metadata['memory'] . ' MB' . '</td></tr>';
21  }
22 
23  if (isset($metadata['time'])) {
24  echo '<tr><td>Execution time</td><td>' . $metadata['time'] . ' seconds' . '</td></tr>';
25  }
26 
27  if (isset($metadata['lastlinehash'] )) {
28  echo '<tr><td>SHA1 of last processed logline</td><td>' . $metadata['lastlinehash'] . '</td></tr>';
29  }
30 
31  if (isset($metadata['lastline'] )) {
32  echo '<tr><td>Last processed logline</td><td>' . $metadata['lastline'] . '</td></tr>';
33  }
34 } else {
35  echo '<tr><td>No metadata found</td></tr>';
36 }
37 
38 echo '</table>';
39 echo '<p>[ <a href="' . SimpleSAML\Module::getModuleURL("statistics/showstats.php") . '">Show statistics</a> ] </p>';
40 
41 $this->includeAtTemplateBase('includes/footer.php');
42 
$metadata['__DYNAMIC:1__']
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:220
$this data['header']
Definition: statmeta.tpl.php:2