getValue('key'))) { if ($_REQUEST['key'] !== $cronconfig->getValue('key')) { SimpleSAML_Logger::error('Cron - Wrong key provided. Cron will not run.'); exit; } } if (!is_null($cronconfig->getValue('allowed_tags'))) { if (!in_array($_REQUEST['tag'], $cronconfig->getValue('allowed_tags'))) { SimpleSAML_Logger::error('Cron - Illegal tag [' . $_REQUEST['tag'] . '].'); exit; } } $summary = array(); $croninfo = array( 'summary' => &$summary, 'tag' => $_REQUEST['tag'], ); $url = SimpleSAML_Utilities::selfURL(); $time = date(DATE_RFC822); SimpleSAML_Module::callHooks('cron', $croninfo); foreach ($summary AS $s) { SimpleSAML_Logger::debug('Cron - Summary: ' . $s); } if ($cronconfig->getValue('sendemail', TRUE) && count($summary) > 0) { $message = '
Cron ran at ' . $time . '
' . 'URL: ' . $url . '
' . 'Tag: ' . $croninfo['tag'] . "
\n\n" . '