run.php 495 B

123456789101112131415161718192021222324
  1. <?php
  2. define('BASE_ROOT_PATH',str_replace('\\','/',dirname(__FILE__)));
  3. $gfcgi_run = 1;
  4. if($gfcgi_run == 0) { //模拟请求
  5. $file = BASE_ROOT_PATH . '/debug_run.php';
  6. include $file;
  7. Base::mobile_init();
  8. Base::mobile_control();
  9. } elseif ($gfcgi_run == 1) {
  10. $file = BASE_ROOT_PATH . '/research/research_run.php';
  11. include $file;
  12. } else {
  13. Base::run_util();
  14. $file = BASE_CRONTAB_PATH . '/crawl/fetch_goods.php';
  15. require $file;
  16. }
  17. ?>