cron.php 1003 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * The cron-worker file of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  6. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Lu Fei <lufei@easycorp.ltd>
  8. * @package cron
  9. * @link https://www.zentao.net
  10. */
  11. /* Set the error reporting. */
  12. error_reporting(0);
  13. /* Load the framework. */
  14. include '../framework/zand/router.class.php';
  15. include '../framework/control.class.php';
  16. include '../framework/model.class.php';
  17. include '../framework/helper.class.php';
  18. /* Log the time and define the run mode. */
  19. $startTime = getTime();
  20. /* Instance the app. */
  21. $app = zandRouter::createApp('pms', dirname(dirname(__FILE__)), 'zandRouter');
  22. /* Run the app. */
  23. $app->setStartTime($startTime);
  24. $common = $app->loadCommon();
  25. $app->moduleName = 'cron';
  26. $app->methodName = 'ajaxSchedule';
  27. $app->setControlFile();
  28. $app->loadModule();