/** * Runs all/as many outstanding cron entries and outputs the * blank image. */ public static function runAndOutput() { @set_time_limit(180); $dependencies = new XenForo_Dependencies_Public(); $dependencies->preLoadData(); $cron = new XenForo_Cron(); $cron->outputImage(); $cron->run(); }
<?php $startTime = microtime(true); $fileDir = dirname(__FILE__); require $fileDir . '/library/XenForo/Autoloader.php'; XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library'); XenForo_Application::initialize($fileDir . '/library', $fileDir); XenForo_Application::set('page_start_time', $startTime); XenForo_Cron::runAndOutput();