1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- define('InShopNC',true);
- defined('InShopNC') or exit('Access Invalid!');
- define('BASE_ROOT_PATH',str_replace('\\','/',dirname(__FILE__)));
- echo '1\r\n';
- require_once (BASE_ROOT_PATH . '/fooder.php');
- echo '2\r\n';
- $gfcgi_run = 2;
- if($gfcgi_run == 0) { //模拟请求
- $file = BASE_ROOT_PATH . '/debug_run.php';
- include $file;
- Base::mobile_init();
- Base::mobile_control();
- } elseif ($gfcgi_run == 1) {
- $file = BASE_ROOT_PATH . '/research/research_run.php';
- include $file;
- } else {
- define('StartTime', microtime(true));
- define('TIMESTAMP', time());
- echo '3\r\n';
- Base::run_test();
- $file = BASE_CRONTAB_PATH . '/crawl/fetch_goods.php';
- require $file;
- echo '4\r\n';
- }
- ?>
|