run.php 567 B

123456789101112131415161718192021222324252627
  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/research_run.php';
  12. Base::run_util();
  13. include $file;
  14. } else {
  15. Base::run_util();
  16. $file = BASE_CRONTAB_PATH . '/crawl/fetch_goods.php';
  17. require $file;
  18. }
  19. ?>