time()) { logger('cronhook intervall not reached'); return; } } $a->set_baseurl(get_config('system','url')); load_hooks(); logger('cronhooks: start'); $d = datetime_convert(); call_hooks('cron', $d); logger('cronhooks: end'); set_config('system','last_cronhook', time()); return; } if (array_search(__file__,get_included_files())===0){ cronhooks_run($_SERVER["argv"],$_SERVER["argc"]); killme(); }