run.php 681 B

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