(2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Cron * */ include_once(dirname(__FILE__) . '/../lib/cron_init.php'); $jobs_to_run = includeCronjobs($debugHandler, $pathtophpfiles); /** * check for --force to include cron_tasks * even if it's not its turn */ if(isset($argv[1]) && strtolower($argv[1]) == '--force') { $crontasks = makeCorrectFile($pathtophpfiles.'/scripts/jobs/cron_tasks.php'); if(!in_array($crontasks, $jobs_to_run)) { array_unshift($jobs_to_run, $crontasks); } } foreach($jobs_to_run as $cron) { require_once($cron); } fwrite($debugHandler, 'Cronfiles have been included' . "\n"); /* * we have to check the system's last guid with every cron run * in case the admin installed new software which added a new user * so users in the database don't conflict with system users */ $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Checking system\'s last guid'); checkLastGuid(); /* * shutdown cron */ include_once($pathtophpfiles . '/lib/cron_shutdown.php'); ?>