run.php 735 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. define('InShopNC',true);
  3. defined('InShopNC') or exit('Access Invalid!');
  4. define('BASE_ROOT_PATH',str_replace('\\','/',dirname(__FILE__)));
  5. echo '1\r\n';
  6. require_once (BASE_ROOT_PATH . '/fooder.php');
  7. echo '2\r\n';
  8. $gfcgi_run = 2;
  9. if($gfcgi_run == 0) { //模拟请求
  10. $file = BASE_ROOT_PATH . '/debug_run.php';
  11. include $file;
  12. Base::mobile_init();
  13. Base::mobile_control();
  14. } elseif ($gfcgi_run == 1) {
  15. $file = BASE_ROOT_PATH . '/research/research_run.php';
  16. include $file;
  17. } else {
  18. define('StartTime', microtime(true));
  19. define('TIMESTAMP', time());
  20. echo '3\r\n';
  21. Base::run_test();
  22. $file = BASE_CRONTAB_PATH . '/crawl/fetch_goods.php';
  23. require $file;
  24. echo '4\r\n';
  25. }
  26. ?>