{"/www/wwwroot/www.xxiaw.com/Lib/Home/Action/IcpAction.class.php": "0,'data'=>$icpt,'msg'=>'icp\u5907\u6848\u67e5\u8be2\u5df2\u8fbe\u5546\u4e1a\u8981\u6c42\uff0c\u8bf7\u8054\u7cfbQQ\uff1a2010409646\uff0c\u8fdb\u884c\u8d2d\u4e70\uff0c\u6bcf\u5957800\u6216\u8005\u6bcf\u670880'));\n\t\t\texit;\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t//\u901a\u8fc7\u5730\u5740\u680f\u53c2\u6570\u652f\u6301\u7b5b\u9009\u6761\u4ef6,$JumpUrl\u4f20\u9012\u5206\u9875\u53ca\u8df3\u8f6c\u53c2\u6570\n\t\t$Url = gxl_param_url();\n\t\t$Url['wd'] =str_replace('$','-',$Url['wd']);\n\t\t$JumpUrl =str_replace('$','-',$Url['wd']);\n\t\tif(S('indexseo')){\n\t\t\t$jilu=S('indexseo');\n\t\t\tforeach($jilu as $k=>$v){\n\t\t\t\tif($v!=$JumpUrl &&$k<30){\n\t\t\t\t$jilut[0]=str_replace('-','$',$JumpUrl);\t\n\t\t\t\t$jilut[$k+1]=$v;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$uu=$jilut?$jilut:$jilu;\n\t\t\tS('indexseo',array_merge($uu),30000000);\n }else{\n\t\t\tS('indexseo',array($JumpUrl),30000000);\n }\n\t\t$where['icp_servicelicence']=$JumpUrl;\n\t\t$where['icp_domain']=$JumpUrl;\n\t\t$where['icp_mainlicence']=$JumpUrl;\n $where['icp_homeurl']=$JumpUrl;\n $where[\"_logic\"] = \"or\";\n\t\tif($JumpUrl){\n\n\t\t$icp=M('Icp')->where($where)->select();\n\t\t\n\t\tif(!$icp){\n\t\t$icp=$this->icp($JumpUrl,1,200);\n\n\t\tif($icp){\n\n $icp=M('Icp')->where($where)->select();\n }\n\t\t}\n\t\tforeach($icp as $k=>$v){\n\n\t\t $icp[$k]['icp_readurl']=gxl_icp_url($v[\"icp_id\"]);\n }\n\n\n\t\t}else{\n\t\t\t$list['icp_list']=[];\n\t\t\t\n\t\t}\n\n\t\t$list['icp_list']=$icp;\n\n\t\t//\u53d8\u91cf\u8d4b\u503c\n\t\t$search = $this->Lable_Search($Url,'icp');\n\t\n\t\t$this->assign($search);\n\t\t$this->assign($list);\n\t\t$this->display($search['search_skin']);\n }\n\t\n\t public function icp_api(){\n\t\t//\u901a\u8fc7\u5730\u5740\u680f\u53c2\u6570\u652f\u6301\u7b5b\u9009\u6761\u4ef6,$JumpUrl\u4f20\u9012\u5206\u9875\u53ca\u8df3\u8f6c\u53c2\u6570\n\t\t$xmldata =file_get_contents(\"php://input\");\n\t\t$Url= (array)json_decode($xmldata, true); //\u89e3\u7801\u4e3a\u6570\u7ec4\n\t\t$icps=GetIP();\n\t\t$Url['domain'] =str_replace('$','-',$Url['domain']);\n\t\t\n\t\t$token =$Url['token'];\n\t\t$tok=M('User')->where(array('api_token'=>$token))->count();\n\t\t\n\t\tif(!$tok){\n\t\t\t\n\t\t\techo json_encode(array('code'=>1,'data'=>[],'msg'=>'token \u4e0d\u6b63\u786e\uff0c\u8bf7\u524d\u5f80\u4f1a\u5458\u4e2d\u5fc3\u5b89\u5168\u8bbe\u7f6e\u91cc\u8fdb\u884c\u67e5\u770b'));\n\t\t\texit;\n\t\t\t\n\t\t}\n\t\t$JumpUrl =$Url['domain'];\t\n\t\t\n\t\tif(S('indexseo')){\n\t\t\t$jilu=S('indexseo');\n\t\t\tforeach($jilu as $k=>$v){\n\t\t\t\tif($v!=$JumpUrl &&$k<30){\n\t\t\t\t$jilut[0]=str_replace('-','$',$JumpUrl);\t\n\t\t\t\t$jilut[$k+1]=$v;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$uu=$jilut?$jilut:$jilu;\n\t\t \n\t\t\tS('indexseo',array_merge($uu),30000000);\n\n\n }else{\n\n\t\t\tS('indexseo',array($JumpUrl),30000000);\n \n \n }\n\t\t$where['icp_servicelicence']=$JumpUrl;\n\t\t$where['icp_domain']=$JumpUrl;\n\t\t$where['icp_mainlicence']=$JumpUrl;\n $where['icp_homeurl']=$JumpUrl;\n $where[\"_logic\"] = \"or\";\n\t\tif($JumpUrl){\n\n\t\t$icps=M('Icp')->where($where)->select();\n\t\t\n\t\tif(!$icps){\n\t\t$icp['list']=$this->jieicp($JumpUrl,1,200);\n\t\t}else{\n\t\t\t$icp['list']=$icps;\n\t\t}\n\n\n\t\t}else{\n\t\t$list['icp_list']=[];\t\n\t\t}\n\t\t\n\t\t\n\t\tif($icp['list']){\n\t\t\t\n\t\t\techo json_encode(array('code'=>0,'data'=>$icps,'msg'=>'\u67e5\u8be2\u6210\u529f'));\n\t\t}else{\n\t\t\t\n\t\t\techo json_encode(array('code'=>1,'data'=>[],'msg'=>'\u5f53\u524d\u7f51\u7ad9\u672a\u5907\u6848'));\n\t\t}\n\t\n\t\texit;\n\t\t\n }\n\t\n\tpublic function api(){\n\t\t//\u901a\u8fc7\u5730\u5740\u680f\u53c2\u6570\u652f\u6301\u7b5b\u9009\u6761\u4ef6,$JumpUrl\u4f20\u9012\u5206\u9875\u53ca\u8df3\u8f6c\u53c2\u6570\n\t\theader('Content-type:text/json');\n\t\t$xmldata =I('post.domain')?I('post.domain'):I('get.domain');\n\t\t$token =I('post.token')?I('post.token'):I('get.token');\n\t\t\n\t\t\n\t\t$tok=M('User')->where(array('api_token'=>$token))->count();\n\t\t\n\t\tif(!$tok){\n\t\t\t\n\t\t\techo json_encode(array('code'=>1,'data'=>[],'msg'=>'token \u4e0d\u6b63\u786e\uff0c\u8bf7\u524d\u5f80\u4f1a\u5458\u4e2d\u5fc3\u5b89\u5168\u8bbe\u7f6e\u91cc\u8fdb\u884c\u67e5\u770b'));\n\t\t\texit;\n\t\t\t\n\t\t}\n\t\t$JumpUrl =$xmldata;\t\n\t\t\n\t\tif(S('indexseo')){\n\t\t\t$jilu=S('indexseo');\n\t\t\tforeach($jilu as $k=>$v){\n\t\t\t\tif($v!=$JumpUrl &&$k<30){\n\t\t\t\t$jilut[0]=str_replace('-','$',$JumpUrl);\t\n\t\t\t\t$jilut[$k+1]=$v;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$uu=$jilut?$jilut:$jilu;\n\t\t \n\t\t\tS('indexseo',array_merge($uu),30000000);\n\n\n }else{\n\n\t\t\tS('indexseo',array($JumpUrl),30000000);\n \n \n }\n\t\t$where['icp_servicelicence']=$JumpUrl;\n\t\t$where['icp_domain']=$JumpUrl;\n\t\t$where['icp_mainlicence']=$JumpUrl;\n $where['icp_homeurl']=$JumpUrl;\n $where[\"_logic\"] = \"or\";\n\t\tif($JumpUrl){\n\n\t\t$icps=M('Icp')->where($where)->select();\n\t\t\n\t\tif(!$icps){\n\t\t$icp['list']=$this->jieicp($JumpUrl,1,200);\n\t\t}else{\n\t\t\t$icp['list']=$icps;\n\t\t}\n\n\n\t\t}else{\n\t\t$list['icp_list']=[];\t\n\t\t}\n\t\t\n\t\t\n\t\tif($icp['list']){\n\t\t\t\n\t\t\techo json_encode(array('code'=>0,'data'=>$icps,'msg'=>'\u67e5\u8be2\u6210\u529f'));\n\t\t}else{\n\t\t\t\n\t\t\techo json_encode(array('code'=>1,'data'=>[],'msg'=>'\u5f53\u524d\u7f51\u7ad9\u672a\u5907\u6848'));\n\t\t}\n\t\n\t\texit;\n\t\t\n }\n\tpublic function icp($domain,$pageNum,$pageSize){\n\t\t\t$icps=GetIP();\n\t\t\tif($icps=='193.105.244.189'){\n\t\t\t\n\t\t\t\n\t\t\techo json_encode(array('code'=>1,'data'=>'','msg'=>'icp\u5907\u6848\u67e5\u8be2\u5df2\u8fbe\u5546\u4e1a\u8981\u6c42\uff0c\u8bf7\u8054\u7cfbQQ\uff1a2010409646\uff0c\u8fdb\u884c\u8d2d\u4e70\uff0c\u6bcf\u5957800\u6216\u8005\u6bcf\u670880'));\n\t\t\texit;\n\t\t\t}\t\t\n\t\t\tif ($domain) {\n\t\t\t\t$domain =getTopHost($domain);\n\t\t\t} else {\n\t\t\t\treturn '';\n\t\t\t}\n\t\t\t\n\t\t\tif(!$pageNum){\n\t\t\t$pageNum=\"\";\n\t\t\t}\n\t\t\tif(!$pageSize){\n\t\t\t$pageNum=\"\";\n\t\t\t}\n\t\t\t\n\t\t\t$timeStamp = time();\n\t\t\t$authKey = md5(\"testtest\" . $timeStamp);\n\t\t\t$token = json_decode(curl_post(\"auth\", \"authKey=$authKey&timeStamp=$timeStamp\", \"application/x-www-form-urlencoded;charset=UTF-8\", \"0\"));\n\t\t\t$token = $token->params->bussiness;\n\t\t\t$query = json_decode(curl_post(\"icpAbbreviateInfo/queryByCondition\", '{\"pageNum\":\"' . $pageNum . '\",\"pageSize\":\"' . $pageSize . '\",\"unitName\":\"' . $domain . '\"}', \"application/json;charset=UTF-8\", $token));\n\t\t\t$query = json_decode(json_encode($query->params),true);\n\n\t\t\n\t\t\tif($query['list']){\n\t\t\t\tforeach($query['list'] as $k=>$v){\n\t\t\t\t\t\n\t\t\t\t\t$icp[$k]['icp_domain']=$v['domain'];\n\t\t\t\t\t$icp[$k]['icp_domainid']=$v['domainId'];\n\t\t\t\t\t$icp[$k]['icp_homeurl']=$v['homeUrl'];\n\t\t\t\t\t$icp[$k]['icp_leadername']=$v['leaderName'];\n\t\t\t\t\t$icp[$k]['icp_limitaccess']=$v['limitAccess'];\n\t\t\t\t\t$icp[$k]['icp_mainid']=$v['mainId'];\n\t\t\t\t\t$icp[$k]['icp_mainlicence']=$v['mainLicence'];\n\t\t\t\t\t$icp[$k]['icp_naturename']=$v['natureName'];\n\t\t\t\t\t$icp[$k]['icp_serviceid']=$v['serviceId'];\n\t\t\t\t\t$icp[$k]['icp_servicelicence']=$v['serviceLicence'];\n\t\t\t\t\t$icp[$k]['icp_servicename']=$v['serviceName'];\n\t\t\t\t\t$icp[$k]['icp_unitname']=$v['unitName'];\n\t\t\t\t\t$icp[$k]['icp_updaterecordtime']=$v['updateRecordTime'];\n\t\t\t\t\t$icp[$k]['icp_addtime']=time();\n\t\t\t\t\t$icp[$k]['icp_referer']=$_SERVER[\"HTTP_REFERER\"]?$_SERVER[\"HTTP_REFERER\"]:$_SERVER[\"HTTP_HOST\"];\n\t\t\t\t\t$icp[$k]['icp_ip']=GetIP();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tM('Icp')->addAll($icp);\n\n\t\t\treturn $icp;\n\t\t\t\n\t\t\n\t}\n\tpublic function jieicp($domain,$pageNum,$pageSize){\n\t\t\t$icps=GetIP();\n\t\t\t\t\t\n\t\t\tif ($domain) {\n\t\t\t\t$domain =getTopHost($domain);\n\t\t\t} else {\n\t\t\t\treturn '';\n\t\t\t}\n\t\t\t\n\t\t\tif(!$pageNum){\n\t\t\t$pageNum=\"\";\n\t\t\t}\n\t\t\tif(!$pageSize){\n\t\t\t$pageNum=\"\";\n\t\t\t}\n\t\t\t\n\t\t\t$timeStamp = time();\n\t\t\t$authKey = md5(\"testtest\" . $timeStamp);\n\t\t\t$token = json_decode(curl_post(\"auth\", \"authKey=$authKey&timeStamp=$timeStamp\", \"application/x-www-form-urlencoded;charset=UTF-8\", \"0\"));\n\t\t\t$token = $token->params->bussiness;\n\t\t\t$query = json_decode(curl_post(\"icpAbbreviateInfo/queryByCondition\", '{\"pageNum\":\"' . $pageNum . '\",\"pageSize\":\"' . $pageSize . '\",\"unitName\":\"' . $domain . '\"}', \"application/json;charset=UTF-8\", $token));\n\t\t\t$query = json_decode(json_encode($query->params),true);\n\n\t\t\n\t\t\tif($query['list']){\n\t\t\t\tforeach($query['list'] as $k=>$v){\n\t\t\t\t\t\n\t\t\t\t\t$icp[$k]['icp_domain']=$v['domain'];\n\t\t\t\t\t$icp[$k]['icp_domainid']=$v['domainId'];\n\t\t\t\t\t$icp[$k]['icp_homeurl']=$v['homeUrl'];\n\t\t\t\t\t$icp[$k]['icp_leadername']=$v['leaderName'];\n\t\t\t\t\t$icp[$k]['icp_limitaccess']=$v['limitAccess'];\n\t\t\t\t\t$icp[$k]['icp_mainid']=$v['mainId'];\n\t\t\t\t\t$icp[$k]['icp_mainlicence']=$v['mainLicence'];\n\t\t\t\t\t$icp[$k]['icp_naturename']=$v['natureName'];\n\t\t\t\t\t$icp[$k]['icp_serviceid']=$v['serviceId'];\n\t\t\t\t\t$icp[$k]['icp_servicelicence']=$v['serviceLicence'];\n\t\t\t\t\t$icp[$k]['icp_servicename']=$v['serviceName'];\n\t\t\t\t\t$icp[$k]['icp_unitname']=$v['unitName'];\n\t\t\t\t\t$icp[$k]['icp_updaterecordtime']=$v['updateRecordTime'];\n\t\t\t\t\t$icp[$k]['icp_addtime']=time();\n\t\t\t\t\t$icp[$k]['icp_referer']=$_SERVER[\"HTTP_REFERER\"]?$_SERVER[\"HTTP_REFERER\"]:$_SERVER[\"HTTP_HOST\"];\n\t\t\t\t\t$icp[$k]['icp_ip']=GetIP();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tM('Icp')->addAll($icp);\n\n\t\t\treturn $icp;\n\t\t\t\n\t\t\n\t}\n\t//\u66f4\u65b0\u6570\u636e\n\tpublic function update(){\n\t\t\n\t\t$dome=I('post.domain');\n\t\tif(S('domain_'.$dome)){\n\t\t\techo json_encode(array('code'=>1,'msg'=>'\u5df2\u8fdb\u5165\u6392\u961f\u67e5\u8be2\uff01'));\n\t\t\texit;\n\t\t}else{\n\t\tif($dome){\n\t\t\tS('domain_'.$dome,$dome,30);\n\t\t\techo json_encode(array('code'=>0,'msg'=>'\u66f4\u65b0\u6210\u529f\uff01'));\n\t\t\t$icp=$this->icp($dome,1,200);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t}\n\t\t\n\t}\n //\u8d44\u8baf\u5217\u8868\n public function show(){\n\t\t//\u901a\u8fc7\u5730\u5740\u680f\u53c2\u6570\u652f\u6301\u7b5b\u9009\u6761\u4ef6,$JumpUrl\u4f20\u9012\u5206\u9875\u53ca\u8df3\u8f6c\u53c2\u6570\n\t\t$dir = I(\"get.dir\", \"none\", \"strip_tags,htmlspecialchars\");\n\t\t$Url = gxl_param_url();\n\t\t\n\t\tif ($dir != \"none\") {\n\t\t\t$Url[\"id\"] = get_id_by_dir($dir);\n\t\t\t$Url[\"dir\"] = getlistdir($Url[\"id\"]);\n\t\t\n\t\t}\n\t\t$JumpUrl = gxl_param_jump($Url);\n\t\t$JumpUrl['p'] = '{!page!}';\t\n\t\tC('jumpurl',UU('Home-icp/show',$JumpUrl,true,false));\n\t\tC('currentpage',$Url['page']);\n\t\t//\u53d8\u91cf\u8d4b\u503c\n\t\t$List = list_search(F('_gxlnews/list'),'list_id='.$Url['id']);\n\t\t$channel = $this->Lable_News_List($Url,$List[0]);\t\n\t\t$this->assign($channel);\n\t\t$this->display($channel['list_skin']);\n }\n\t//\u8d44\u8baf\u5185\u5bb9\u9875\n public function read(){\n\t\t$id = intval(I('get.id','','strip_tags,htmlspecialchars'));\n\t\t$array_detail = $this->get_cache_detail($id);\n\n\t\tif($array_detail){\n\t\t\t$this->assign($array_detail['show']);\n\t\t\t$this->assign($array_detail['read']);\n\t\t\t$this->display($array_detail['read']['icp_skin_detail']);\n\t\t}else{\n\t\t\t$this->assign(\"jumpUrl\",C('site_path'));\n\t\t\t$this->error('\u6b64\u6761\u8d44\u8baf\u5df2\u7ecf\u5220\u9664\uff01');\n\t\t}\n }\n\t// \u4ece\u6570\u636e\u5e93\u83b7\u53d6\u6570\u636e\n\tprivate function get_cache_detail($icp_id){\n\t\tif(!$icp_id){ return false; }\n\t\t//\u4f18\u5148\u8bfb\u53d6\u7f13\u5b58\u6570\u636e\n\t\tif(C('data_cache_icp')){\n\t\t\t$array_detail = S('data_cache_icp_'.$icp_id);\n\t\t\tif($array_detail){\n\t\t\t\treturn $array_detail;\n\t\t\t}\n\t\t}\n\t\t//\u672a\u4e2d\u7f13\u5b58\u5219\u4ece\u6570\u636e\u5e93\u8bfb\u53d6\n\t\t$where = array();\n\t\t$where['icp_id'] = $icp_id;\n\n\t\t$rs = D(\"icp\");\n\t\t$array = $rs->where($where)->find();\n\t\t\n\t\t//print_r($array);die();\n\t\tif($array){\n\t\t\t//\u89e3\u6790\u6807\u7b7e\n\t\t\t$array_detail = $this->Lable_icp_Read($array,$rs);\n\t\t\t\n\t\t\t//print_r($array_detail);die();\n\t\t\tif( C('data_cache_icp') ){\n\t\t\t\tS('data_cache_icp_'.$icp_id, $array_detail, intval(C('data_cache_icp')));\n\t\t\t}\n\t\t\n\t\t\treturn $array_detail;\n\t\t}\n\t\treturn false;\n\t}\t\n}\nfunction GetIP(){\n if(!empty($_SERVER[\"HTTP_CLIENT_IP\"])){\n $cip = $_SERVER[\"HTTP_CLIENT_IP\"];\n }\n elseif(!empty($_SERVER[\"HTTP_X_FORWARDED_FOR\"])){\n $cip = $_SERVER[\"HTTP_X_FORWARDED_FOR\"];\n }\n elseif(!empty($_SERVER[\"REMOTE_ADDR\"])){\n $cip = $_SERVER[\"REMOTE_ADDR\"];\n }\n else{\n $cip = \"\u65e0\u6cd5\u83b7\u53d6\uff01\";\n }\n return $cip;\n}\n?>", "/www/wwwroot/www.xxiaw.com/Lib/Home/Action/NewsAction.class.php": "Lable_Search($Url,'news');\n\t\t$this->assign($search);\n\t\t$this->display($search['search_skin']);\n }\n //\u8d44\u8baf\u5217\u8868\n public function show(){\n\t\t//\u901a\u8fc7\u5730\u5740\u680f\u53c2\u6570\u652f\u6301\u7b5b\u9009\u6761\u4ef6,$JumpUrl\u4f20\u9012\u5206\u9875\u53ca\u8df3\u8f6c\u53c2\u6570\n\t\t$dir = I(\"get.dir\", \"none\", \"strip_tags,htmlspecialchars\");\n\t\t$Url = gxl_param_url();\n\t\t\n\t\tif ($dir != \"none\") {\n\t\t\t$Url[\"id\"] = get_id_by_dir($dir);\n\t\t\t$Url[\"dir\"] = getlistdir($Url[\"id\"]);\n\t\t\n\t\t}\n\t\t$JumpUrl = gxl_param_jump($Url);\n\t\t$JumpUrl['p'] = '{!page!}';\t\n\t\tC('jumpurl',UU('Home-news/show',$JumpUrl,true,false));\n\t\tC('currentpage',$Url['page']);\n\t\t//\u53d8\u91cf\u8d4b\u503c\n\t\t$List = list_search(F('_gxlnews/list'),'list_id='.$Url['id']);\n\t\t$channel = $this->Lable_News_List($Url,$List[0]);\t\n\t\t$this->assign($channel);\n\t\t$this->display($channel['list_skin']);\n }\n\t//\u8d44\u8baf\u5185\u5bb9\u9875\n public function read(){\n\t\t$id = intval(I('get.id','','strip_tags,htmlspecialchars'));\n\t\t$array_detail = $this->get_cache_detail($id);\n\t\t\n\t\tif($array_detail){\n\t\t\t$this->assign($array_detail['show']);\n\t\t\t$this->assign($array_detail['read']);\n\t\t\t$this->display($array_detail['read']['news_skin_detail']);\n\t\t}else{\n\t\t\t$this->assign(\"jumpUrl\",C('site_path'));\n\t\t\t$this->error('\u6b64\u6761\u8d44\u8baf\u5df2\u7ecf\u5220\u9664\uff01');\n\t\t}\n }\n\t// \u4ece\u6570\u636e\u5e93\u83b7\u53d6\u6570\u636e\n\tprivate function get_cache_detail($news_id){\n\t\tif(!$news_id){ return false; }\n\t\t//\u4f18\u5148\u8bfb\u53d6\u7f13\u5b58\u6570\u636e\n\t\tif(C('data_cache_news')){\n\t\t\t$array_detail = S('data_cache_news_'.$news_id);\n\t\t\tif($array_detail){\n\t\t\t\treturn $array_detail;\n\t\t\t}\n\t\t}\n\t\t//\u672a\u4e2d\u7f13\u5b58\u5219\u4ece\u6570\u636e\u5e93\u8bfb\u53d6\n\t\t$where = array();\n\t\t$where['news_id'] = $news_id;\n\t\t$where['news_status'] =1;\n\n\t\t$rs = D(\"News\");\n\t\t$array = $rs->where($where)->relation('Tag')->find();\n\t\tunset($where['news_status']);\n\t\t$array['news_content']=M('NewsAll')->where($where)->getField('news_content');\n\t\t//print_r($array);die();\n\t\tif($array){\n\t\t\t//\u89e3\u6790\u6807\u7b7e\n\t\t\t$array_detail = $this->Lable_News_Read($array,$rs);\n\t\t\t\n\t\t\t//print_r($array_detail);die();\n\t\t\tif( C('data_cache_news') ){\n\t\t\t\tS('data_cache_news_'.$news_id, $array_detail, intval(C('data_cache_news')));\n\t\t\t}\n\t\t\n\t\t\treturn $array_detail;\n\t\t}\n\t\treturn false;\n\t}\t\n}\n?>", "/www/wwwroot/www.xxiaw.com/Lib/Common/Model/NewsModel.class.php": " array(\"mapping_type\" => HAS_MANY, \"class_name\" => \"Tag\", \"mapping_name\" => \"Tag\", \"foreign_key\" => \"tag_id\", \"parent_key\" => \"news_id\", \"mapping_fields\" => \"tag_id,tag_sid,tag_name\", \"condition\" => \"tag_sid = 2\")\n\t\t);\n\n\tpublic function get_remark()\n\t{\n\t\tif (empty($_POST[\"news_remark\"])) {\n\t\t\treturn msubstr(trim($_POST[\"news_content\"]), 0, 100, \"utf-8\", false);\n\t\t}\n\t\telse {\n\t\t\treturn trim($_POST[\"news_remark\"]);\n\t\t}\n\t}\n\n\tpublic function a_letter()\n\t{\n\t\treturn gxl_letter_first(trim($_POST[\"news_name\"]));\n\t}\n\n\tpublic function a_addtime()\n\t{\n\t\tif ($_POST[\"checktime\"]) {\n\t\t\treturn time();\n\t\t}\n\t\telse {\n\t\t\treturn strtotime($_POST[\"addtime\"]);\n\t\t}\n\t}\n\n\tpublic function news_content()\n\t{\n\t\tif (!empty($_POST[\"news_content\"])) {\n\t\t\t$news_content = gxl_news_img_array($_POST[\"news_content\"], 1);\n\t\t\tif ((C(\"upload_http\") && !empty($news_content)) || (C(\"upload_http_news\") && !empty($news_content))) {\n\t\t\t\t$img = D(\"Img\");\n\n\t\t\t\tif (!!$path = getarraypic($news_content)) {\n\t\t\t\t\t$savePath = $img->down_load($path, \"news\");\n\t\t\t\t\t$contents1 = str_ireplace($path, $savePath, $news_content);\n\t\t\t\t\treturn $contents1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn $_POST[\"news_content\"];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $news_content;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn $_POST[\"news_content\"];\n\t\t}\n\t}\n\n\tpublic function news_pic()\n\t{\n\t\t$img = D(\"Img\");\n\t\tif (empty($_POST[\"news_pic\"]) && $_POST[\"news_content\"]) {\n\t\t\tif (C(\"news_pic\")) {\n\t\t\t\t$urlpic = gxl_img_url_preg_news(\"\", trim($_POST[\"news_content\"]), 1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$urlpic = gxl_img_url_preg(\"\", trim($_POST[\"news_content\"]), 1);\n\t\t\t}\n\n\t\t\tif ($urlpic) {\n\t\t\t\treturn $img->down_load($urlpic, \"news\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $img->down_load(trim($_POST[\"news_pic\"]), \"news\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn $img->down_load(trim($_POST[\"news_pic\"]), \"news\");\n\t\t}\n\t}\n}\n\n\n", "/www/wwwroot/www.xxiaw.com/Tpl/icp/gxl_app_list.html": "\n\n\n\t\n\t\n\t\n\t{$title}\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\n\n\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\u767b\u5f55\n\t\t\t\t\t\t|\n\t\t\t\t\t\t\u6ce8\u518c\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t\t\n\t
\n\n\t
\n\t\t$hot = gxl_mysql_down('cid:'.$list_id.';field:down_id,down_version,down_cid,down_name,down_pic,down_icon,down_hits_week,down_addtime,down_remark;limit:30;order:down_addtime desc');\n\t\t\n\t\t
\n\t\t\t

\u70ed\u5ea6

\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\"{$gxl.down_name}\"\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
{$gxl.down_name}
\n\t\t\t\t\t\t\t
{$gxl.down_remark|default='\u8f6f\u4ef6\u4e0b\u8f7d'}
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\u524d\u5f80\u4e0b\u8f7d\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t\u63a8\u8350\n\t\t\t\t\t\t{$gxl.down_name}\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{$gxl.list_name|default='\u8f6f\u4ef6'}\n\t\t\t\t\t\t\t{$gxl.down_name} {$gxl.down_version}\n\t\t\t\t\t\t\t{$gxl.down_addtime|date='m-d',###}\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t

\u5927\u5bb6\u90fd\u5728\u4e0b\u8f7d

\n\t\t\t\t\n\t\t\t
\n\t\t
\n\n\t\t$yxarr=['\u52a8\u4f5c\u7ade\u6280','\u4f11\u95f2\u76ca\u667a','\u5361\u724c\u7b56\u7565','\u5173\u5361\u5854\u9632','\u6a21\u62df\u7ecf\u8425','\u683c\u6597\u8857\u673a','\u6e38\u620f\u8f85\u52a9','\u97f3\u4e50\u821e\u8e48','\u8d5b\u8f66\u7ade\u901f','\u627e\u7269\u89e3\u8c1c','\u98de\u884c\u5c04\u51fb','\u4f53\u80b2\u7ade\u6280','\u5ba0\u7269\u517b\u6210','\u7b56\u7565\u6218\u4e89','\u89d2\u8272\u626e\u6f14','\u751f\u5b58\u5192\u9669','\u5176\u5b83\u6e38\u620f']\n\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t$down_list = gxl_mysql_down('tag:'.$gxl.';limit:10;sid:171;field:down_id,down_size,down_stars,down_name,down_cid,down_pic,down_addtime,down_remark,down_icon,down_dec;order:down_id desc');\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t
\n\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t$down_list = gxl_mysql_down('tag:'.$gxl.';sid:171;limit:10;field:down_id,down_size,down_stars,down_name,down_cid,down_pic,down_addtime,down_remark,down_icon,down_dec;order:down_id desc');\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t
\n\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t$down_list = gxl_mysql_down('tag:'.$gxl.';sid:171;limit:10;field:down_id,down_size,down_stars,down_name,down_cid,down_pic,down_addtime,down_remark,down_icon,down_dec;order:down_id desc');\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t
\n\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t$down_list = gxl_mysql_down('tag:'.$gxl.';sid:171;limit:10;field:down_id,down_size,down_stars,down_name,down_cid,down_pic,down_addtime,down_remark,down_icon,down_dec;order:down_id desc');\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t
\n\n\n\t\n\n\t
\n\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t
\n\n\t\n\t\n\t\n\n\n\"\"", "/www/wwwroot/www.xxiaw.com/Tpl/icp/gxl_newslist.html": "\n\n \n \n {$list_name} \n \n \n \n \n \n \n \n\n \n \n \n \n
\n
\n\t\t\t\t $array_listtvid = getlistall($list_pid?$list_pid:$list_id); \n

\n class=\"nav-cur\">{$sw.list_name}|\n\t\t\t\t\t\t\n

\n
\n
\n
\n
\n $news_list = gxl_mysql_news('cid:'.$list_id.';limit:'.C('home_pagenum').';field:news_id,news_pic,news_name,news_cid,news_remark,news_hits;page:true;order:news_addtime desc');$page=$news_list[0]['page'];\n\n \n
\n \n
\n
\n
\n
\n
{$page}
\n
\n\n
\n\n \n \n\n\n\n\n\n \n \n \n\n\n", "/www/wwwroot/www.xxiaw.com/Tpl/icp/gxl_downlist.html": "\n\n\n\t\n\t\n\t\n\t{$list_title}\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\n\n\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\u767b\u5f55\n\t\t\t\t\t\t|\n\t\t\t\t\t\t\u6ce8\u518c\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t\t\n\t
\n\n\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\u60a8\u7684\u4f4d\u7f6e\uff1a\u9996\u9875 > {$list_name_big} > {$list_name}\n\t\t\t\t
\n\n\t\t\t\t \n\t\t\t\t
\n\t\t\t\t\t

{$list_name}\u5206\u7c7b

\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$listd = getlistall($list_id); \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tclass=\"all\">{$gxl.list_name} \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t$listd = getlistall($list_pid);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tclass=\"all\">{$gxl.list_name} \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t

{$list_name}\u5217\u8868

\n\t\t\t\t
\n\n\t\t\t\t$down_list = gxl_mysql_down('cid:'.$list_id.';limit:20;field:down_id,down_size,down_stars,down_name,down_cid,down_pic,down_addtime,down_dec,down_icon,down_remark;page:true;order:down_id desc');$page = $down_list[0]['page'];\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\"{$gxl.down_name}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{$gxl.down_name|msubstr=0,36} {$gxl.down_dec}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\u661f\u7ea7\uff1a\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t{$gxl.list_name}\n\t\t\t\t\t\t\t\t\t{$gxl.down_size|default='10M'}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t

{$gxl.down_remark}

\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\u7acb\u5373\u4e0b\u8f7d\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\n\t\t\t\t
{$page}
\n\t\t\t
\n\n\t\t\t\n\t\t
\n\t
\n\n\n\t\n\n\t\n\n\t\n\t\n\t\n\n\n", "/www/wwwroot/www.xxiaw.com/Lib/Conf/config.php": {}, "/www/wwwroot/www.xxiaw.com/Runtime/Conf/config.php": {"default_theme": "icp", "html_cache_on": "true", "html_cache_time": "0", "db_name": "xiaxia"}, "/www/wwwroot/www.xxiaw.com/Lib/Common/Common/function.php": "function gxl_list_url($sid,$arrurl,$page){\n\t//\u9759\u6001\u6a21\u5f0f\n\tif(C('url_html') && C('url_html_list') && in_array($sid,array('vod','news','tv'))){\n\t\t$showurl = C('site_path').str_replace('index'.C('html_file_suffix'),'',gxl_list_url_dir($sid,$arrurl['id'],$page).C('html_file_suffix'));\n\t\treturn $showurl;\n\t}else{\n\t\tif($page > 1){ $arrurl['p'] = '{!page!}'; }\n\t\t$showurl = UU('Home-'.$sid.'/show',$arrurl,true,false);\n\t}\n\treturn $showurl;\n}\n/**********************\u9759\u6001\u751f\u6210\u7684\u680f\u76ee\u7ed3\u6784******************************\n* (\u8fd4\u56de\u7684\u503c\u4e3abuildHtml\u7684\u6587\u4ef6\u540d,\u751f\u6210\u9759\u6001\u65f6\u9700\u8981\u5c06{!page!}\u6362\u6210\u5bf9\u5e94\u7684page\u503c)\n* $mid \u6a21\u578b\u540d\u79f0'movie/article/special'\n* $cid \u5f53\u524d\u5206\u7c7b\u7684\u680f\u76eeID\u503c\n* $page \u5206\u9875\u6570\u5b57,\u5927\u4e8e1\u65f6\u8fd4\u56de\u7684URL\u5e26\u6709\u5206\u9875\u8df3\u8f6c\u53c2\u6570\u53d8\u91cf{!page!}\n*/\nfunction gxl_list_url_dir($sid,$cid,$page){\n\t//\u5f71\u89c6\u6216\u6587\u7ae0\n\tif('vod' == $sid){\n\t\t$listdir = str_replace_dir(C('url_vodlist'),$id,$cid,$name);\n\t}else{\n\t\t$listdir = str_replace_dir(C('url_newslist'),$id,$cid,$name);\n\t}\n\tif($page > 1){\n\t\t$listdir .= '-{!page!}';\n\t}\n\treturn $listdir;\n}\n\n\n\n/*************************\u83b7\u53d6\u8be6\u60c5\u9875\u76ee\u5f55****************************************\n* \u8fd4\u56de\u7684\u503c\u4e3abuildHtml\u7684\u6587\u4ef6\u540d\n* $sid \u6a21\u578b\u540d\u79f0'vod/news/special'\n* $id \u5f71\u7247ID/\u6587\u7ae0ID/\u4e13\u9898ID\u503c\n* $cid \u5f53\u524d\u5f71\u7247/\u6587\u7ae0/\u4e13\u9898/\u5bf9\u5e94\u7684\u680f\u76eeID\u503c\n* $name \u5f71\u7247/\u6587\u7ae0/\u4e13\u9898/\u7684\u540d\u79f0\n* $page \u5206\u9875\u6570\u5b57,\u5927\u4e8e1\u65f6\u8fd4\u56de\u7684URL\u5e26\u6709\u5206\u9875\u8df3\u8f6c\u53c2\u6570\u53d8\u91cf{!page!}\n*/\nfunction gxl_data_url_dir($sid,$id,$cid,$name,$page){\n\t//\u4e13\u9898\u76f4\u63a5\u8fd4\u56de\n\tif('special' == $sid){\n\t\treturn str_special_dir(C('url_special').C('url_specialdata'),$id);\n\t}\n\t//\u5f71\u89c6\u6216\u6587\u7ae0\n\tif('vod' == $sid){\n\t\t$datadir = str_replace_dir(C('url_voddata'),$id,$cid,$name);\n\t}else{\n\t\t$datadir = str_replace_dir(C('url_newsdata'),$id,$cid,$name);\n\t}\n\tif($page > 1){\n\t\t$datadir .= '-{!page!}';\n\t}\n\treturn $datadir;\n}\n//\u83b7\u53d6\u64ad\u653e\u9875\u94fe\u63a5\n\n//\u64ad\u653e\u9875\u9759\u6001\u751f\u6210\u7ed3\u6784\n\n//\u83b7\u53d6\u4e13\u9898URL\nfunction gxl_special_url($page){\n\tif(C('url_html')){\n\t\treturn C('site_path').str_replace('index'.C('html_file_suffix'),'',gxl_special_url_dir($page).C('html_file_suffix'));\n\t}else{\n\t\tif($page > 1){ $arrurl['p'] = '{!page!}'; }\n\t\treturn UU('Home-special/show',$arrurl,true,false);\n\t}\n}\n//\u83b7\u53d6\u4e13\u9898\u9759\u6001\u6a21\u5f0f\u76ee\u5f55\u7ed3\u6784URL\nfunction gxl_special_url_dir($page){\n\t$listdir = trim(C('url_special')).'index';\n\tif($page > 1){\n\t\t$listdir .= '-{!page!}';\n\t}\n\treturn $listdir;\n}\n// \u83b7\u53d6\u67d0\u56fe\u7247\u7684\u8bbf\u95ee\u5730\u5740\nfunction gxl_img_url($file,$content,$number=1){\n\tif(empty($file)){\n\t\treturn C('site_path').'no.jpg';\n\t\t}\n\tif(!$file){\n\t\treturn gxl_img_url_preg($file,$content,$number);\n\t}\n\tif(strpos($file,'http') !== false){\n\t\treturn $file;\n\t}\n\t$prefix = C('upload_http_prefix');\n\tif(!empty($prefix)){\n\t\treturn $prefix.$file;\n\t}else{\n\t\n\tif(strpos($file,'Uploads') !== false){\n\t\treturn $file;\n\t}\n\tif(strpos($file,'Uploads-s') !== false){\n\t\treturn $file;\n\t}\n\t\treturn C('site_path').C('upload_path').'/'.$file;\n\t}\n}\n// \u83b7\u53d6\u67d0\u56fe\u7247\u7684\u7f29\u7565\u56fe\u5730\u5740\nfunction gxl_img_url_small($file,$content,$number=1){\n\tif(!$file){\n\t\treturn gxl_img_url_preg($file,$content,$number);\n\t}\n\tif(strpos($file,'http://') !== false){\n\t\treturn $file;\n\t}\t\n\t$prefix = C('upload_http_prefix');\n\tif(!empty($prefix)){\n\t\treturn $prefix.$file;\n\t}else{\n\t\treturn C('site_path').C('upload_path').'-s/'.$file;\n\t}\t\n}\n//\u6b63\u5219\u63d0\u53d6\u6b63\u6587\u91cc\u6307\u5b9a\u7684\u7b2c\u51e0\u5f20\u56fe\u7247\u5730\u5740\nfunction gxl_img_url_preg($file,$content,$number=1){\n\tpreg_match_all('/ $countimg){\n\t\t$number = $countimg;\n\t}\n\treturn $imgarr[0][($number-1)];\n}\n// Tag\u94fe\u63a5\nfunction gxl_tag_url($str,$sid=1){\n\tif($sid==2){\n\t\treturn UU('Home-tag/news',array('wd'=>urlencode($str)),true,false);\n\t}else{\n\t\treturn UU('Home-tag/vod',array('wd'=>urlencode($str)),true,false);\n\t}\n}\n// \u5185\u5bb9\u9875Tag\u94fe\u63a5\nfunction gxl_content_url($content,$array_tag='',$sid=''){\n\tif($array_tag){\n\t\tforeach($array_tag as $key=>$value){\n\t\t\t$content = str_replace($value['tag_name'],''.$value['tag_name'].'',$content);\n\t\t}\n\t}\n\treturn $content;\n}\n// \u81ea\u5b9a\u4e49\u6a21\u677f\u94fe\u63a5\nfunction gxl_mytpl_url($tplname){\n\t$tplname = str_replace(array('my_','.html'),'',$tplname);\n\tif(C('url_html')){\n\t\treturn C('site_path').C('url_mytpl').$tplname.C('html_file_suffix');\n\t}\n\treturn UU('Home-my/show',array('id'=>trim($tplname)),true,false);\n\tprint_r($tplname) ;\n}\n// \u5730\u56fe\u9875\u94fe\u63a5\nfunction gxl_map_url($tplname){\n\tif(C('url_html')){\n\t\treturn C('site_path').C('url_map').$tplname.'.xml';\n\t}\n\t$limit = 30;\n\tif($tplname != 'rss'){\n\t\t$limit = 100;\n\t}\n\treturn UU('Home-map/show',array('id'=>$tplname,'limit'=>$limit),true,false);\n}\n// \u83b7\u53d626\u4e2a\u5b57\u6bcd\u94fe\u63a5\nfunction gxl_letter_url($file='vod',$str=''){\n\tif(C('url_html')){\n\t\t$index='index.html';\n\t}else{\n\t\t$index='index.php';\n\t}\n for($i=1;$i<=26;$i++){\n\t $url = UU('Home-'.$file.'/search',array('id'=>chr($i+64),'x'=>'letter'),true,false);\n\t $str.=''.chr($i+64).'';\n\t}\n\treturn $str;\n}\n// \u83b7\u53d6\u641c\u7d22\u5e26\u94fe\u63a5\nfunction gxl_search_url($str,$type=\"actor\",$sidname='vod',$action='search'){\n\t$array = array();\n $str = str_replace(array('/','|',',','\uff0c'),' ',$str);\n\t$arr = explode(' ',$str);\n\tforeach($arr as $key=>$val){\n\t\t$array[$key] = 'urlencode($val)),true,false).'\" target=\"_blank\">'.$val.'';\n\t}\n\treturn implode(' ',$array);\n}\n// \u83b7\u53d6\u5f71\u7247\u6700\u540e\u4e00\u96c6array(sid,pid,jiname,jipath)\n\n/*---------------------------------------\u6807\u7b7e\u89e3\u6790\u51fd\u6570\u5f00\u59cb------------------------------------------------------------------*/\n//\u8def\u5f84\u53c2\u6570\u5904\u7406\u51fd\u6570\nfunction gxl_param_url(){\n\t$where = array();\n\t$where['sid'] = intval($_REQUEST['sid']);\n\t$where['id'] = intval($_REQUEST['id']);\n\t$where['year'] = intval($_REQUEST['year']);\n\t$where['language'] = htmlspecialchars(urldecode(trim($_REQUEST['language'])));\n\t$where['name'] = htmlspecialchars(urldecode($_REQUEST['name']));\n\t$where['area'] = htmlspecialchars(urldecode(trim($_REQUEST['area'])));\n\t$where['letter'] = htmlspecialchars($_REQUEST['letter']);\n\t$where['actor'] = htmlspecialchars(urldecode(trim($_REQUEST['actor'])));\n\t$where['director'] = htmlspecialchars(urldecode(trim($_REQUEST['director'])));\n\t$where['xb'] = htmlspecialchars(urldecode(trim($_REQUEST['xb'])));\n\t$where['wd'] = htmlspecialchars(urldecode(trim($_REQUEST['wd'])));\n $where['listdir'] = htmlspecialchars($_REQUEST['listdir']);\n\t$where['pinyin'] = htmlspecialchars($_REQUEST['pinyin']);\n\t$where['index'] = htmlspecialchars($_REQUEST['index']);\n\t$where['picm'] = intval($_REQUEST['picm']);\n\t$where['type'] = htmlspecialchars($_REQUEST['type']);\n\t$where['zy'] = htmlspecialchars(urldecode(trim($_REQUEST['zy'])));\n\t//\n\t$where['limit'] = !empty($_GET['limit']) ? intval($_GET['limit']) : 10;\n\t$where['page'] = !empty($_GET['p']) ? intval($_GET['p']) : 1;\n\t$where['order'] = gxl_order_by($_GET['order']);\n\t//\u5c0f\u5206\u7c7b\u7b49\u8def\u5f84\u5904\u7406QQ\uff1a182377860\n\t$where['mcid'] = intval($_REQUEST['mcid']);\n\t$where['p'] = intval($_REQUEST['p']);\n\treturn $where;\n}\n//\u5206\u9875\u8df3\u8f6c\u53c2\u6570\u5904\u7406\nfunction gxl_param_jump($where){\n\tif($where['sid']){\n\t\t$jumpurl['sid'] = $where['sid'];\n\t}\n\tif($where['id']){\n\t\t$jumpurl['id'] = $where['id'];\n\t\tif(C('url_rewrite')){\n \t$jumpurl['listdir'] = getlistdir($where['id']);\n\t}\n\t}\n\tif($where['dir']){\n\t\t$jumpurl['id'] = $where['id'];\n\t\t$jumpurl['listdir'] = $where['dir'];\n\t}\n\tif($where['pinyin']){\n\t\t$jumpurl['id'] = $where['id'];\n\t\t$jumpurl['pinyin'] = $where['pinyin'];\n\t}\n\tif($where['year']){\n\t\t$jumpurl['year'] = $where['year'];\n\t}\t\t\n\tif($where['language']){\n\t\t$jumpurl['language'] = urlencode($where['language']);\n\t}\n\tif($where['area']){\n\t\t$jumpurl['area'] = urlencode($where['area']);\n\t}\n\tif($where['letter']){\n\t\t$jumpurl['letter'] = $where['letter'];\n\t}\t\n\tif($where['actor']){\n\t\t$jumpurl['actor'] = urlencode($where['actor']);\n\t}\n\tif($where['zy']){\n\t\t$jumpurl['zy'] = urlencode($where['zy']);\n\t}\t\n\tif($where['director']){\n\t\t$jumpurl['director'] = urlencode($where['director']);\n\t}\n\t//\u8fde\u8f7d\u7c7b\u578b\n\tif($where['lz']){\n\t\t$jumpurl['lz'] = $where['lz'];\n\t}\n\tif($where['mcid']) {\n\t\t$jumpurl['mcid'] = $where['mcid']; \n\t}\n\tif($where['picm']) {\n\t\t$jumpurl['picm'] = $where['picm']; \n\t}\n\tif($where['type']) {\n\t\t$jumpurl['type'] = strtolower($where['type']); \n\t}\n\t//\u8fde\u8f7d\u7c7b\u578b\n\tif($where['wd']){\n\t\t$jumpurl['wd'] = urlencode($where['wd']);\n\t}\n\tif($where['name']){\n\t\t$jumpurl['name'] = $where['name'];\n\t}\n\n\tif($where['order'] != 'addtime' && $where['order", "/www/wwwroot/www.xxiaw.com/Lib/Common/Common/con_common.php": "function gxl_mysql_news($tag)\n{\n\t$search = array();\n\t$where = array();\n\t$tag = gxl_param_lable($tag);\n\t$field = (!empty($tag[\"field\"]) ? $tag[\"field\"] : \"*\");\n\t$limit = (!empty($tag[\"limit\"]) ? $tag[\"limit\"] : \"10\");\n\t$order = (!empty($tag[\"order\"]) ? $tag[\"order\"] : \"news_addtime\");\n\tif (C(\"data_cache_newsforeach\") && (C(\"currentpage\") < 2)) {\n\t\t$data_cache_name = md5(C(\"data_cache_foreach\") . implode(\",\", $tag));\n\t\t$data_cache_content = S($data_cache_name);\n\n\t\tif ($data_cache_content) {\n\t\t\treturn $data_cache_content;\n\t\t}\n\t}\n\t$where[\"news_status\"] = array(\"eq\", 1);\n\n\tif ($tag[\"ids\"]) {\n\t\t$where[\"news_id\"] = array(\"in\", $tag[\"ids\"]);\n\t}\n\n\tif ($tag[\"day\"]) {\n\t\t$where[\"news_addtime\"] = array(\"gt\", getxtime($tag[\"day\"]));\n\t}\n\n\tif ($tag[\"hits\"]) {\n\t\t$hits = explode(\",\", $tag[\"hits\"]);\n\n\t\tif (1 < count($hits)) {\n\t\t\t$where[\"news_hits\"] = array(\"between\", $hits[0] . \",\" . $hits[1]);\n\t\t}\n\t\telse {\n\t\t\t$where[\"news_hits\"] = array(\"gt\", $hits[0]);\n\t\t}\n\t}\n\n\tif ($tag[\"cid\"]) {\n\t\t$cids = explode(\",\", trim($tag[\"cid\"]));\n\n\t\tif (1 < count($cids)) {\n\t\t\t$where[\"news_cid\"] = array(\"in\", getlistarr_tag($cids));\n\t\t}\n\t\telse {\n\t\t\t$where[\"news_cid\"] = getlistsqlin($tag[\"cid\"]);\n\t\t}\n\t}\n\n\tif ($tag[\"stars\"]) {\n\t\t$where[\"news_stars\"] = array(\"in\", $tag[\"stars\"]);\n\t}\n\tif ($tag[\"pic\"]) {\n\t\t$where[\"news_pic\"] = array(\"like\", \"%\" . $tag[\"pic\"] . \"%\");\n\t}\n\tif ($tag[\"letter\"]) {\n\t\t$where[\"news_letter\"] = array(\"in\", $tag[\"letter\"]);\n\t}\n\n\tif ($tag[\"name\"]) {\n\t\t$where[\"news_name\"] = array(\"like\", \"%\" . $tag[\"name\"] . \"%\");\n\t}\n\n\tif ($tag[\"title\"]) {\n\t\t$where[\"news_title\"] = array(\"like\", \"%\" . $tag[\"title\"] . \"%\");\n\t}\n\n\tif ($tag[\"no\"]) {\n\t\t$where[\"news_id\"] = array(\"neq\", $tag[\"no\"]);\n\t}\n\n\tif ($tag[\"wd\"]) {\n\t\t$search[\"news_name\"] = array(\"like\", \"%\" . $tag[\"wd\"] . \"%\");\n\t\t$search[\"news_inputer\"] = array(\"like\", \"%\" . $tag[\"wd\"] . \"%\");\n\t\t$search[\"_logic\"] = \"or\";\n\t\t$where[\"_complex\"] = $search;\n\t}\n\n\tif ($tag[\"up\"]) {\n\t\t$up = explode(\",\", $tag[\"up\"]);\n\n\t\tif (1 < count($up)) {\n\t\t\t$where[\"news_up\"] = array(\"between\", $up[0] . \",\" . $up[1]);\n\t\t}\n\t\telse {\n\t\t\t$where[\"news_up\"] = array(\"gt\", $up[0]);\n\t\t}\n\t}\n\n\tif ($tag[\"down\"]) {\n\t\t$down = explode(\",\", $tag[\"down\"]);\n\n\t\tif (1 < count($down)) {\n\t\t\t$where[\"news_down\"] = array(\"between\", $down[0] . \",\" . $down[1]);\n\t\t}\n\t\telse {\n\t\t\t$where[\"news_down\"] = array(\"gt\", $down[0]);\n\t\t}\n\t}\n\n\tif ($tag[\"gold\"]) {\n\t\t$gold = explode(\",\", $tag[\"gold\"]);\n\n\t\tif (1 < count($gold)) {\n\t\t\t$where[\"news_gold\"] = array(\"between\", $gold[0] . \",\" . $gold[1]);\n\t\t}\n\t\telse {\n\t\t\t$where[\"news_gold\"] = array(\"gt\", $gold[0]);\n\t\t}\n\t}\n\n\tif ($tag[\"golder\"]) {\n\t\t$golder = explode(\",\", $tag[\"golder\"]);\n\n\t\tif (1 < count($golder)) {\n\t\t\t$where[\"news_golder\"] = array(\"between\", $golder[0] . \",\" . $golder[1]);\n\t\t}\n\t\telse {\n\t\t\t$where[\"news_golder\"] = array(\"gt\", $golder[0]);\n\t\t}\n\t}\n\n\n\t if ($tag[\"tag\"]) {\n\t\t$tagwhere[\"tag_sid\"] = $tag[\"sid\"]? $tag[\"sid\"]:2;\n\t $tagwhere[\"tag_name\"] =urldecode($tag[\"tag\"]);\n\t\t$rs = D('TagnewsView');\n\t\tif(S('news_count'.$tagwhere[\"tag_name\"])){\n\t $count = S('news_count'.$tagwhere[\"tag_name\"]);\n\t }else{\n\t\t $count = $rs->where($tagwhere)->count();\n // \u7f13\u5b58\u6570\u636e300\u79d2\n S('news_count'.$tagwhere[\"tag_name\"],$count,3000);\n\t } \t\n\t}\n\telse if ($tag[\"news\"]) {\n\t\tif ($tag[\"type\"]) {\n\t\t\t$where[\"newsrel_sid\"] = $tag[\"type\"];\n\t\t}\n\n\t\tif (!empty($tag[\"did\"])) {\n\t\t\t$search[\"newsrel_did\"] = $tag[\"did\"];\n\t\t\t$search[\"newsrel_name\"] = $tag[\"news\"];\n\t\t\t$search[\"_logic\"] = \"or\";\n\t\t\t$where[\"_complex\"] = $search;\n\t\t}\n\t\telse {\n\t\t\t$where[\"newsrel_name\"] = $tag[\"news\"];\n\t\t}\n\n\t\t$rs = D(\"StarnewsView\");\n\t}\n\telse {\n\t\t$rs = M(\"News\");\n\t\t if(S('news_count'.$where[\"news_cid\"])){\n\t $count = S('news_count'.$where[\"news_cid\"]);\n\t }else{\n\t\t$count = $rs->where($where)->count(\"news_id\");\n // \u7f13\u5b58\u6570\u636e300\u79d2\n S('news_count'.$where[\"news_cid\"],$count,3000);\n\t }\n\t\t\n\t}\n \n\t\t \n\tif ($tag[\"page\"]) {\n\t if (!$count) {\n\t\t\treturn false;\n\t\t}\n\t \n $home_pagenum=5;\n\t\t$totalpages = ceil($count / $limit);\n\t\t$currentpage = get_maxpage(C(\"currentpage\"), $totalpages);\n\t\t$pageurl = urldecode(C(\"jumpurl\"));\n\t\t$pages = getpage($currentpage, $totalpages,$home_pagenum, $pageurl, \"pagego('\" . $pageurl . \"',\" . $totalpages . \")\");\n\t\t$pagestop = \"\" . $currentpage . \"/\" . $totalpages . \"\" . getpagetop($currentpage, $totalpages, $home_pagenum, $pageurl, \"pagego('\" . $pageurl . \"',\" . $totalpages . \")\");\n\t\t$list = $rs->field($field)->where($where)->order($order)->limit($limit)->page($currentpage)->select();\n\t\t\n\t\tif ($tag[\"tag\"]) {\n\t\t \n\t\t $list = $rs->field($field)->where($tagwhere)->order($order)->limit($limit)->page($currentpage)->select(); \t\n\t }else{\n\t $list = $rs->field($field)->where($where)->order($order)->limit($limit)->page($currentpage)->select();\n\t }\n\t\t$list[0][\"count\"] = count($list);\n\t\t$list[0][\"page\"] = $pages;\n\t\t$list[0][\"pagecount\"] = $count;\n\t\t$list[0][\"pagetop\"] = $pagestop;\n\t}\n\telse {\n\t\t$list = $rs->field($field)->where($where)->order($order)->limit($limit)->select();\n\t\tif ($tag[\"count\"] && empty($tag[\"page\"])) {\n\t\t\t$count = $rs->where($where)->count(\"news_id\");\n\n\t\t\tif (!$count) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$list[0][\"counts\"] = $count;\n\t\t}\n\t}\n\n\tforeach ($list as $key => $val ) {\n\t\t$list[$key][\"list_id\"] = $list[$key][\"news_cid\"];\n\t\t$list[$key][\"news_name\"] = htmlentities($val[\"news_name\"]);\n\t\t$list[$key][\"news_remark\"] =$val[\"news_remark\"]?htmlentities($val[\"news_remark\"]):'';\n\t\tif($val[\"news_content\"]){\n\t\t$list[$key][\"news_content\"] =$val[\"news_content\"]?htmlentities($val[\"news_content\"]):'';\n\t\t}\n\t\t$list[$key][\"list_name\"] = getlistname($list[$key][\"list_id\"], \"list_name\");\n\t\t$list[$key][\"list_url\"] = getlistname($list[$key][\"list_id\"], \"list_url\");\n\t\t$list[$key][\"news_readurl\"] = gxl_data_url(\"news\", $list[$key][\"news_id\"], $list[$key][\"news_cid\"], $list[$key][\"news_name\"], 1, $list[$key][\"news_jumpurl\"]);\n\t if($val[\"news_pic\"]){\n\t\t$list[$key][\"news_picurl\"] = gxl_img_url($list[$key][\"news_pic\"], $list[$key][\"news_content\"]);\n\t\t$list[$key][\"news_picurl_small\"] = gxl_img_url_small($list[$key][\"news_pic\"], $list[$key][\"news_content\"]);\n\t }\n\t}\n\n\tif (C(\"data_cache_newsforeach\") && (C(\"currentpage\") < 2)) {\n\t\tS($data_cache_name, $list, intval(C(\"data_cache_newsforeach\")));\n\t}\n\n\treturn $list;\n}\n\nfunction gxl_mysql_icp($tag)\n{\n\n\n $search = array();\n $where = array();\n $tag = gxl_param_lable($tag);\n $field = (!empty($tag[\"field\"]) ? $tag[\"field\"] : \"*\");\n $limit = (!empty($tag[\"limit\"]) ? $tag[\"limit\"] : \"10\");\n $order = (!empty($tag[\"order\"]) ? $tag[\"order\"] : \"icp_addtime\");\n if (C(\"data_cache_icpforeach\") && (C(\"currentpage\") < 2)) {\n $data_cache_name = md5(C(\"data_cache_foreach\") . implode(\",\", $tag));\n $data_cache_content = S($data_cache_name);\n\n if ($data_cache_content) {\n return $data_cache_content;\n }\n }\n\n\n\n\n\n $rs = M(\"icp\");\n\n\n if ($tag[\"page\"]) {\n $count = $rs->where($where)->count(\"icp_id\");\n\n if (!$count) {\n return false;\n }\n $home_pagenum=5;\n $totalpages = ceil($count / $limit);\n $currentpage = get_maxpage(C(\"currentpage\"), $totalpages);\n $pageurl = urldecode(C(\"jumpurl\"));\n $pages = getpage($currentpage, $totalpages,$home_pagenum, $pageurl, \"pagego('\" . $pageurl . \"',\" . $totalpages . \")\");\n $pagestop = \"\" . $currentpage . \"/\" . $totalpages . \"\" . getpagetop($currentpage, $totalpages,$home_pagenum, $pageurl, \"pagego('\" . $pageurl . \"',\" . $totalpages . \")\");\n $list = $rs->field($field)->where($where)->order($order)->limit($limit)->page($currentpage)->select();\n $list[0][\"count\"] = count($list);\n $list[0][\"page\"] = $pages;\n $list[0][\"pagecount\"] = $count;\n $list[0][\"pagetop\"] = $pagestop;\n }\n else {\n $list = $rs->field($field)->where($where)->order($order)->limit($limit)->select();\n if ($tag[\"count\"] && empty($tag[\"page\"])) {\n $count = $rs->where($where)->count(\"icp_id\");\n\n if (!$c\n---\nfunction gxl_mysql_down($tag)\n{\n\t$search = array();\n\t$where = array();\n\t$tag = gxl_param_lable($tag);\n\t$field = (!empty($tag[\"field\"]) ? $tag[\"field\"] : \"*\");\n\t$limit = (!empty($tag[\"limit\"]) ? $tag[\"limit\"] : \"10\");\n\t$order = (!empty($tag[\"order\"]) ? $tag[\"order\"] : \"down_addtime\");\n\tif (C(\"data_cache_downforeach\") && (C(\"currentpage\") < 2)) {\n\t\t$data_cache_name = md5(C(\"data_cache_foreach\") . implode(\",\", $tag));\n\t\t$data_cache_content = S($data_cache_name);\n\n\t\tif ($data_cache_content) {\n\t\t\treturn $data_cache_content;\n\t\t}\n\t}\n\t$where[\"down_status\"] = array(\"eq\", 1);\n\n\tif (isset($tag[\"ids\"])) {\n\t\t$where[\"down_id\"] = array(\"in\", $tag[\"ids\"]);\n\t}\n\n\tif (isset($tag[\"day\"])) {\n\t\t$where[\"down_addtime\"] = array(\"gt\", getxtime($tag[\"day\"]));\n\t}\n\n\tif (isset($tag[\"hits\"])) {\n\t\t$hits = explode(\",\", $tag[\"hits\"]);\n\n\t\tif (1 < count($hits)) {\n\t\t\t$where[\"down_hits\"] = array(\"between\", $hits[0] . \",\" . $hits[1]);\n\t\t}\n\t\telse {\n\t\t\t$where[\"down_hits\"] = array(\"gt\", $hits[0]);\n\t\t}\n\t}\n\n\tif (isset($tag[\"cid\"])) {\n\t\t$cids = explode(\",\", trim($tag[\"cid\"]));\n\n\t\tif (1 < count($cids)) {\n\t\t\t$where[\"down_cid\"] = array(\"in\", getlistarr_tag($cids));\n\t\t}\n\t\telse {\n\t\t\t$where[\"down_cid\"] = getlistsqlin($tag[\"cid\"]);\n\t\t}\n\t}\n\n\n\tif (isset($tag[\"stars\"])) {\n\t\t$where[\"down_stars\"] = array(\"in\", $tag[\"stars\"]);\n\t}\n\tif (isset($tag[\"pic\"])) {\n\t\t$where[\"down_pic\"] = array('neq','');\n\t\t\n\t}\n\tif (isset($tag[\"letter\"])) {\n\t\t$where[\"down_letter\"] = array(\"in\", $tag[\"letter\"]);\n\t}\n\n\tif (isset($tag[\"name\"])) {\n\t\t$where[\"down_name\"] = array(\"like\", \"%\" . $tag[\"name\"] . \"%\");\n\t}\n\n\tif (isset($tag[\"title\"])) {\n\t\t$where[\"down_title\"] = array(\"like\", \"%\" . $tag[\"title\"] . \"%\");\n\t}\n\n\n\tif (isset($tag[\"wd\"])) {\n\t\t$search[\"down_name\"] = array(\"like\", \"%\" . $tag[\"wd\"] . \"%\");\n\t\t$search[\"down_inputer\"] = array(\"like\", \"%\" . $tag[\"wd\"] . \"%\");\n\t\t$search[\"_logic\"] = \"or\";\n\t\t$where[\"_complex\"] = $search;\n\t}\n\n\tif (isset($tag[\"up\"])) {\n\t\t$up = explode(\",\", $tag[\"up\"]);\n\n\t\tif (1 < count($up)) {\n\t\t\t$where[\"down_up\"] = array(\"between\", $up[0] . \",\" . $up[1]);\n\t\t}\n\t\telse {\n\t\t\t$where[\"down_up\"] = array(\"gt\", $up[0]);\n\t\t}\n\t}\n\n\tif (isset($tag[\"down\"])) {\n\t\t$down = explode(\",\", $tag[\"down\"]);\n\n\t\tif (1 < count($down)) {\n\t\t\t$where[\"down_down\"] = array(\"between\", $down[0] . \",\" . $down[1]);\n\t\t}\n\t\telse {\n\t\t\t$where[\"down_down\"] = array(\"gt\", $down[0]);\n\t\t}\n\t}\n\n\tif (isset($tag[\"gold\"])) {\n\t\t$gold = explode(\",\", $tag[\"gold\"]);\n\n\t\tif (1 < count($gold)) {\n\t\t\t$where[\"down_gold\"] = array(\"between\", $gold[0] . \",\" . $gold[1]);\n\t\t}\n\t\telse {\n\t\t\t$where[\"down_gold\"] = array(\"gt\", $gold[0]);\n\t\t}\n\t}\n\n\tif (isset($tag[\"golder\"])) {\n\t\t$golder = explode(\",\", $tag[\"golder\"]);\n\n\t\tif (1 < count($golder)) {\n\t\t\t$where[\"down_golder\"] = array(\"between\", $golder[0] . \",\" . $golder[1]);\n\t\t}\n\t\telse {\n\t\t\t$where[\"down_golder\"] = array(\"gt\", $golder[0]);\n\t\t}\n\t}\n\n if ($tag[\"tag\"]) {\n if($tag[\"sid\"]){\n \t$tagwhere[\"tag_sid\"] = $tag[\"sid\"];\n }\n\t\t $tagwhere[\"tag_name\"] =urldecode($tag[\"tag\"]);\n\t\t\t$rs = D('TagdownView');\n\t\t\n\t\t \n\t\tif(S('down_count'.$tagwhere[\"tag_name\"])){\n\t $count = S('down_count'.$tagwhere[\"tag_name\"]);\n\t }else{\n\t\t $count = $rs->where($tagwhere)->count();\n // \u7f13\u5b58\u6570\u636e300\u79d2\n S('down_count'.$tagwhere[\"tag_name\"],$count,3000);\n\t }\n\t\n\t\t \t\n\t}\n\telse {\n\t\t$rs = M(\"down\");\n\t\tif(S('down_count'.$where[\"down_cid\"])){\n\t $count = S('down_count'.$where[\"down_cid\"]);\n\t }else{\n\t\t $count = $rs->where($where)->count();\n // \u7f13\u5b58\u6570\u636e300\u79d2\n S('down_count'.$where[\"down_cid\"],$count,3000);\n\t }\n\t \n\t}\n \n\tif (isset($tag[\"page\"])) {\n\t \n \n\t\tif (!$count) {\n\t\t\treturn false;\n\t\t}\n $home_pagenum=5;\n\t\t$totalpages = ceil($count / $limit);\n\t\t$currentpage = get_maxpage(C(\"currentpage\"),$totalpages);\n\t\t$pageurl = urldecode(C(\"jumpurl\"));\n\t\n\t\tif ($tag[\"tag\"]) {\n\t\t $list = $rs->field($field)->where($tagwhere)->order($order)->limit($limit)->page($currentpage)->select(); \t\n\t }else{\n\t $list = $rs->field($field)->where($where)->order($order)->limit($limit)->page($currentpage)->select();\n\t }\n\t\t$pages = getpage($currentpage, $totalpages, $home_pagenum, $pageurl, \"pagego('\" . $pageurl . \"',\" . $totalpages . \")\");\n\t\t$pagestop = \"\" . $currentpage . \"/\" . $totalpages . \"\" . getpagetop($currentpage, $totalpages, $home_pagenum, $pageurl, \"pagego('\" . $pageurl . \"',\" . $totalpages . \")\");\n\t\t\n\t\t$list[0][\"count\"] = count($list);\n\t\t$list[0][\"page\"] = $pages;\n\t\t$list[0][\"pagecount\"] = $count;\n\t\t$list[0][\"pagetop\"] = $pagestop;\n\t}\n\telse {\n\t if ($tag[\"tag\"]) {\n\t\t $list = $rs->field($field)->where($tagwhere)->order($order)->limit($limit)->select();\n\t }else{\n\t $list = $rs->field($field)->where($where)->order($order)->limit($limit)->select(); \n\t }\n\t\tif ($tag[\"count\"] && empty($tag[\"page\"])) {\n\t\t\t$count = $rs->where($where)->count(\"down_id\");\n\n\t\t\tif (!$count) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$list[0][\"counts\"] = $count;\n\t\t}\n\t}\n\t\t\n\tforeach ($list as $key => $val ) {\n\t\n\t\t$down_jumpurl=empty($list[$key][\"down_jumpurl\"])?'':$list[$key][\"down_jumpurl\"];\n\t\t$down_content=empty($list[$key][\"down_content\"])?'':$list[$key][\"down_content\"];\n\t\t$list[$key][\"list_id\"] = $list[$key][\"down_cid\"];\n\t\t$list[$key][\"list_name\"] = getlistname($list[$key][\"list_id\"], \"list_name\");\n\t\t$list[$key][\"list_url\"] = getlistname($list[$key][\"list_id\"], \"list_url\");\n\t\t$list[$key][\"down_readurl\"] = gxl_data_url(\"down\", $list[$key][\"down_id\"],$list[$key][\"down_cid\"], $list[$key][\"down_name\"], 1,$down_jumpurl);\n\t\t$list[$key][\"down_picurl\"] =$list[$key][\"down_pic\"]?gxl_img_url($list[$key][\"down_pic\"],$down_content): gxl_img_url($list[$key][\"down_icon\"],$down_content);\n\t\tif (array_key_exists(\"down_icon\", $val)) {\n\t\t$list[$key][\"down_iconurl\"] = gxl_img_url($list[$key][\"down_icon\"],$down_content);\n\t\t}\n\t}\n\n\tif (C(\"data_cache_downforeach\") && (C(\"currentpage\") < 2)) {\n\t\tS($data_cache_name, $list, intval(C(\"data_cache_downforeach\")));\n\t}\n\n\treturn $list;\n}\nfunction get_doc_list($id,$cid){\n\t\n\t$list=M('doc_list')->where(array('list_docid'=>$id))->order('list_oid asc')->select();\n\t$data=M('doc_list as a')->join('gxl_doc_news as b on b.news_cid=a.list_name')->where(array('a.list_docid'=>$id))->field('b.news_id,b.news_name,b.news_cid,b.news_jumpurl,b.news_letters')->select();\n\tforeach($data as $k=>$v){\n\t\t$data[$k][\"news_name\"]=htmlentities($v[\"news_name\"]);\n\t\t\n\t\t\n\t\t\n\t}\n\tforeach($data as $k=>$v){\n\t\t$v['news_readurl']=gxl_data_type_url(\"doc\", $v[\"news_id\"], $v[\"news_cid\"], $v[\"news_name\"], 1,$v[\"news_jumpurl\"], $v[\"news_letters\"],$cid);\n\t\t$array[$v['news_cid']][$k]=$v;\n\t\t\n\t\t\n\t}\n\t\n\tforeach($list as $k=>$v){\n\t\t\n\t\t$list[$k]['array']=$array[$v['list_name']];\n\n\t\t\n\t}\n\t\n\treturn $list;\n}\nfunction curl_post($url, $data, $Content, $token) {\n $ip = \"101.\".mt_rand(1,255).\".\".mt_rand(1,255).\".\".mt_rand(1,255);\n $ch = curl_init();\n $headers = array(\n \"Content-Type: $Content\",\n \"Origin: https://beian.miit.gov.cn/\",\n \"Referer: https://beian.miit.gov.cn/\",\n \"token: $token\",\n \"User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36\",\n \"CLIENT-IP: $ip\",\n \"X-FORWARDED-FOR: $ip\"\n );\n curl_setopt($ch, CURLOPT_URL, \"https://hlwicpfwc.miit.gov.cn/icpproject_query/api/\" . $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ch, CURLOPT_TIMEOUT, 10);\n $content = curl_exec($ch);\n\t\n curl_close($ch);\n return $content;\n}\nfunction getTopHost($url) {\n\t\n\tif(strpos($url,\"-\")){\n\t\treturn $url;\n\t}\n\tif(strpos($url, \"\u5907\")){\n\t\treturn $url;\n\t}\n\tif(strpos($url, \"\u53f7\")){\n\t\treturn $url;\n\t}\n\n if (stristr($url, \"http\") === false) {\n $url = \"http://\" . $url;\n }\n\t\n $url = strtolower($url);\n $hosts = parse_url($url);\n $ho"}