ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
croninfo.php
Go to the documentation of this file.
1 <?php
2 
7 require_once('_include.php');
8 
9 
10 // Load SimpleSAMLphp, configuration and metadata
13 
15 
17 
18 $key = $cronconfig->getValue('key', '');
19 $tags = $cronconfig->getValue('allowed_tags');
20 
21 $def = array(
22  'weekly' => "22 0 * * 0",
23  'daily' => "02 0 * * *",
24  'hourly' => "01 * * * *",
25  'default' => "XXXXXXXXXX",
26 );
27 
28 $urls = array();
29 foreach ($tags AS $tag) {
30  $urls[] = array(
31  'href' => SimpleSAML\Module::getModuleURL('cron/cron.php', array('key' => $key, 'tag' => $tag)),
32  'tag' => $tag,
33  'int' => (array_key_exists($tag, $def) ? $def[$tag] : $def['default']),
34  );
35 }
36 
37 
38 
39 $t = new SimpleSAML_XHTML_Template($config, 'cron:croninfo.tpl.php', 'cron:cron');
40 $t->data['urls'] = $urls;
41 $t->show();
foreach($tags AS $tag) $t
Definition: croninfo.php:39
static requireAdmin()
Require admin access to the current page.
Definition: Auth.php:60
$urls
Definition: croninfo.php:28
Attribute-related utility methods.
$tags
Definition: croninfo.php:19
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
$config
The _include script registers a autoloader for the SimpleSAMLphp libraries.
Definition: croninfo.php:11
$cronconfig
Definition: croninfo.php:16
$def
Definition: croninfo.php:21
$session
Definition: croninfo.php:12
$key
Definition: croninfo.php:18
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:241
if(function_exists('posix_getuid') &&posix_getuid()===0) if(!array_key_exists('t', $options)) $tag
Definition: cron.php:35
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.