ymcll.asp
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:3k
源码类别:

手机WAP编程

开发平台:

ASP/ASPX

  1. <% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
  2. <% Response.ContentType="text/vnd.wap.wml" %><?xml version="1.0" encoding="utf-8"?>
  3. <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
  4. <wml><%
  5. '====================================================================
  6. ' 请你保留这段说明,这并不会影响你的速度.   电脑交流:http://www.cnscu.cn
  7. ' 程序制作:横云   掌上校园收倾心整理收集于互联网,感谢你的支持!
  8. ' 升级时间: 2008-2-5   主页地址:HTTP://wap.cnscu.cn
  9. ' E-Mail: cnscu@126.com    客服QQ:554904632 QQ群:30493504 QQ群2:46659883
  10. '====================================================================
  11. %> <!--#include file="conn.inc"-->
  12. <!--#include file="cnscu_sb.asp"-->
  13. <head>
  14. <meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
  15. <meta http-equiv="Cache-Control" content="max-age=0" forua="true"/>
  16. </head>
  17. <card id="main" title="查看源码">
  18. <p>
  19. <% 
  20. On Error Resume Next
  21. Server.ScriptTimeOut=9999999
  22. Function getHTTPPage(Path)
  23.  t = GetBody(Path)      
  24. End function
  25. function getHTTPPage(url) 
  26. dim Http 
  27. set Http=server.createobject("Microsoft.XMLHTTP") 
  28. Http.open "GET",url,false 
  29. Http.send() 
  30. if Http.readystate<>4 then 
  31. exit function 
  32. end if 
  33. getHTTPPage=bytesToBSTR(Http.responseBody,"utf-8")
  34. set http=nothing 
  35. if err.number<>0 then err.Clear 
  36. end function 
  37. Function BytesToBstr(body,Cset) 
  38. dim objstream 
  39. set objstream = Server.CreateObject("adodb.stream") 
  40. objstream.Type = 1 
  41. objstream.Mode =3 
  42. objstream.Open 
  43. objstream.Write body 
  44. objstream.Position = 0 
  45. objstream.Type = 2 
  46. objstream.Charset = Cset 
  47. BytesToBstr = objstream.ReadText 
  48. objstream.Close 
  49. set objstream = nothing 
  50. End Function 
  51. uuurr=request("iidd")
  52. ffss=request("ffss")
  53. %>
  54. 地址:<%=uuurr%><br/>
  55. <% 
  56. dim Page
  57. Page=request.QueryString("Page")
  58. if Page="" then Page="1"
  59. Dim Url,Html,start,over,body,wap,wstr,str
  60. Url=""&uuurr&""
  61. wstr=getHTTPPage(url)
  62. start=Instr(wstr,"<p")
  63. over=Instr(wstr,"</p>")+4
  64. body=mid(wstr,start,over-start)
  65. '------------------------------------------------
  66. body = replace(body,"<p>","")
  67. body = replace(body,"</p>","")
  68. body = replace(body,"<p align=""left"">","")
  69. body = replace(body,"<p align=""center"">","")
  70. body = replace(body,"<p align='left'>","")
  71. body = replace(body,"<p align='center'>","")
  72. body = replace(body,"&","&amp;")
  73. body = replace(body,"<","&lt;")
  74. body = replace(body,">","&gt;")
  75. body = replace(body,"$","$$")
  76. body = replace(body,"&amp;#x","&#x")
  77. body = replace(body,"'","&apos;")
  78. body = replace(body,"""","&quot;")
  79. '--------------------------------------------------
  80. %>
  81. <%if len(body)>30 then%>
  82. <%if ffss="0" then%>
  83. <input name="sssss<%=minute(now)%><%=second(now)%>" value="<%=body%>"/>
  84. <%elseif ffss="1" then%>
  85. <%=body%>
  86. <%elseif ffss="2" then%>
  87. <%=body%><br/>
  88. <input name="sssss<%=minute(now)%><%=second(now)%>" value="<%=body%>"/>
  89. <%end if%>
  90. <%else%>
  91. 该地址无法查看
  92. <%end if%>
  93. <br/>
  94. <a href="ymck.asp?fs=<%=fs%>&amp;sb=<%=sb%>">返回继续查看</a><br/>
  95. <a href="admin_index.asp?fs=<%=fs%>&amp;sb=<%=sb%>">返回管理首页</a><br/>
  96. <a href="../index.asp?fs=<%=fs%>&amp;sb=<%=sb%>">返回网站首页</a><br/>
  97. </p>
  98. </card>
  99. </wml>