options['crontab']) { echo $filedata; flush(); } ($hook = vBulletinHook::fetch_hook('cron_start')) ? eval($hook) : false; if (!defined('NOSHUTDOWNFUNC') AND !$vbulletin->options['crontab']) { vB_Shutdown::add('exec_cron'); } else { $cronid = NULL; if ($vbulletin->options['crontab'] AND SAPI_NAME == 'cli') { $cronid = intval($_SERVER['argv'][1]); // if its a negative number or 0 set it to NULL so it just grabs the next task if ($cronid < 1) { $cronid = NULL; } } exec_cron($cronid); if (defined('NOSHUTDOWNFUNC')) { $db->close(); } } /*======================================================================*\ || #################################################################### || # Downloaded: 19:33, Wed Feb 14th 2007 || # CVS: $RCSfile$ - $Revision: 15662 $ || #################################################################### \*======================================================================*/ ?>