* @package cron * @link https://www.zentao.net */ /* Set the error reporting. */ error_reporting(0); /* Load the framework. */ include '../framework/zand/router.class.php'; include '../framework/control.class.php'; include '../framework/model.class.php'; include '../framework/helper.class.php'; /* Log the time and define the run mode. */ $startTime = getTime(); /* Instance the app. */ $app = zandRouter::createApp('pms', dirname(dirname(__FILE__)), 'zandRouter'); /* Run the app. */ $app->setStartTime($startTime); $common = $app->loadCommon(); $app->moduleName = 'cron'; $app->methodName = 'ajaxSchedule'; $app->setControlFile(); $app->loadModule();