123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <?php
- define('InShopNC',true);
- $str = NULL;
- $y = '';
- if(isset($str)) {
- $x = 0;
- }
- if(empty($str)) {
- $x = 1;
- }
- if($str == NULL) {
- $x = 2;
- }
- if(isset($y)) {
- $x = 0;
- }
- if(empty($y)) {
- $x = 1;
- }
- if($y == NULL) {
- $x = 2;
- }
- $file = "/mobile/index.php";
- $ops = explode("?",$file);
- $squery = $ops[1];
- $params = preg_split('/&|=/', $squery);
- for ($i = 0; $i < count($params); ++$i) {
- $key = $params[$i];
- $val = $params[++$i];
- $_GET[$key] = $val;
- $_POST[$key] = $val;
- }
- $ret = array('jsObj' => NULL,'jsArray' => array());
- unset($ret['xxx']);
- $ret = json_encode($ret);
- define('BASE_ROOT_PATH',str_replace('\\','/',dirname(__FILE__)));
- echo BASE_ROOT_PATH."\n";
- require_once (BASE_ROOT_PATH . '/fooder.php');
- echo $argv;
- function help_out()
- {
- echo "fetch_goods:start fetch goods.\r\n";
- echo "fillgcid:start fill all goods class id.\r\n";
- echo "checkgoods:check all goods class id.\r\n";
- }
- $time = -microtime();
- //$hash = 0;
- //for ($i=0; $i < rand(1000,4000); ++$i) {
- // $hash ^= md5(substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, rand(1,10)));
- //}
- $time += microtime();
- $y = sprintf('%f', $time);
- $y = strtotime('2016-12-12 01:01:01');
- $y = urldecode('%E4%B8%AD%E9%80%9A%E5%BF%AB%E9%80%92');
- $x=new date();
- define('StartTime', microtime(true));
- define('TIMESTAMP', time());
- if(count($argv) == 1) {
- return;
- }
- $gfcgi_run = 1;
- 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 {
- Base::run_util();
- $file = BASE_CRONTAB_PATH . '/crawl/fetch_goods.php';
- require $file;
- }
- ?>
|