consumer.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * The api router file of ZenTaoPMS.
  4. *
  5. * All request of entries should be routed by this router.
  6. *
  7. * @copyright Copyright 2009-2017 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  8. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  9. * @author Gang Liu <liugang@cnezsoft.com>
  10. * @package ZenTaoPMS
  11. * @version $Id: index.php 5036 2013-07-06 05:26:44Z wyd621@gmail.com $
  12. * @link http://www.zentao.net
  13. */
  14. /* Set the error reporting. */
  15. error_reporting(0);
  16. /* Load the framework. */
  17. include '../framework/router.class.php';
  18. include '../framework/control.class.php';
  19. include '../framework/model.class.php';
  20. include '../framework/helper.class.php';
  21. /* Log the time and define the run mode. */
  22. $startTime = getTime();
  23. /* Instance the app. */
  24. $app = router::createApp('pms', dirname(__DIR__), 'router');
  25. /* Run the app. */
  26. $common = $app->loadCommon();
  27. $app->moduleName = 'cron';
  28. $app->methodName = 'rrConsume';
  29. $app->setControlFile();
  30. $app->loadModule();