run.php 585 B

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