cron.php 990 B

123456789101112131415161718192021222324252627282930313233
  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/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 = router::createApp('pms', dirname(__DIR__, 2), 'router');
  22. /* Run the app. */
  23. $app->setStartTime($startTime);
  24. $common = $app->loadCommon();
  25. $app->moduleName = 'cron';
  26. $app->methodName = 'ajaxExec';
  27. $app->setControlFile();
  28. $app->loadModule();