⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 saveping.asp

📁 这个程序是FTP里有什么就显示什么
💻 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>
<% Dim  FSO,filen,rtxt,mesg
filen=request("name")
if request("writer")="" or request("ping")="" then
mesg="填写不完整!"
else
Set  FSO  =  CreateObject("Scripting.FileSystemObject")
If  FSO.FileExists(server.mappath("ping") &"/" &filen)  Then
Else
fso.Createtextfile(server.mappath("ping") &"/" &filen)
end if
set rtxt=fso.opentextfile(server.mappath("ping") &"/" &filen,8)
rtxt.writeline("("& now() &")"& request("writer") &"说:"& request("ping") &"")
mesg="评论发表成功!"
end if
%>
<card title="发表评论">
<p>
<br/><%=mesg%><br/>
<br/>
<a href="readping.asp?url=<%=ContentStrurl(request("url"))%>&amp;name=<%=ContentStrname(request("url"))%>.txt&amp;a=<%=request("a")%>&amp;n=<%=request("n")%>">查看评论</a><br/>
<a href="read.asp?url=<%=ContentStrurl(request("url"))%>&amp;a=<%=request("a")%>&amp;n=<%=request("n")%>">返回文章</a><br/>
<a href="sj2.asp?url=<%=ContentStrbackurl(request("url"))%>&amp;n=<%=request("n")%>">返回上级</a><br/>
<a href="index.asp">返回首页</a>
</p></card></wml>
<%
function ContentStrname(q_path)
dim constr
constr=split(q_path,"/")
response.write ConStr(ubound(ConStr)-1)
end function

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 + -