getValue('key', ''); $tags = $cronconfig->getValue('allowed_tags'); $def = array( 'weekly' => "22 0 * * 0", 'daily' => "02 0 * * *", 'hourly' => "01 * * * *", 'default' => "XXXXXXXXXX", ); $urls = array(); foreach ($tags AS $tag) { $urls[] = array( 'href' => SimpleSAML_Module::getModuleURL('cron/cron.php', array('key' => $key, 'tag' => $tag)), 'tag' => $tag, 'int' => (array_key_exists($tag, $def) ? $def[$tag] : $def['default']), ); } $t = new SimpleSAML_XHTML_Template($config, 'cron:croninfo-tpl.php', 'cron:cron'); $t->data['urls'] = $urls; $t->show(); ?>