📄 readping.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<% Response.ContentType="text/vnd.wap.wml" %><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head><meta http-equiv='Cache-Control' content='no-cache'/>
</head>
<%
Set fso = CreateObject("Scripting.FileSystemObject")
If FSO.FileExists(server.mappath("ping/"& request("name"))) Then
Set txt = fso.OpenTextFile(server.mappath("ping/"& request("name")))
%>
<card title="查看评论">
<p>
<%
i=0
do while txt.AtEndOfStream=False
i=i+1
response.write Replace(Replace(Replace(Replace(Replace(txt.readline,"&","&")," "," "),"'","'"),"<","<"),">",">") &"<br/>"
loop
%>
<br/>一共<%=i%>条评论
<%
else
%><card title="查看评论">
<p>
<br/>还没有评论
<%
end if%>
<br/><a href="read.asp?url=<%=ContentStrurl(request("url"))%>&a=<%=request("a")%>&n=<%=request("n")%>">返回文章</a><br/>
<a href="sj2.asp?url=<%=ContentStrbackurl(request("url"))%>&n=<%=request("n")%>">返回上级</a><br/>
<a href="index.asp">返回首页</a>
</p>
</card></wml>
<%
function ContentStrurl(q_path)
dim constr,constr1
constr=split(q_path,"/")
For j=0 to (ubound(ConStr)-1)
response.write ""& Server.URLEncode(ConStr(j)) &"/"
next
constr1=split(ConStr(ubound(ConStr)),".")
For k=0 to (ubound(ConStr1)-1)
response.write ""& Server.URLEncode(ConStr1(k)) &"."
next
response.write ConStr1(ubound(ConStr1))
end function
function ContentStrbackurl(q_path)
dim constr,constr1
constr=split(q_path,"/")
For j=0 to (ubound(ConStr)-2)
response.write ""& Server.URLEncode(ConStr(j)) &"/"
next
response.write ConStr(ubound(ConStr)-1)
end function
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -