📄 save.asp
字号:
<!--#include file="config.inc"-->
<%
Response.Buffer=true
Response.ContentType ="text/vnd.wap.wml;charset=gb2312"
response.write("<?xml version=""1.0""?>")
response.write("<!DOCTYPE wml PUBLIC ""-//WAPFORUM//DTD WML 1.1//EN"" ""http://www.wapforum.org/DTD/wml_1.1.xml"">")
response.write("<!-- Source Generated by WML Deck Decoder -->")
%>
<wml>
<head>
<meta http-equiv="Cache-control" content="no-cache"
forua= "true" />
</head>
<%
'IF not IsNumeric(Request("isrly")) Or IsEmpty(Request("isrly")) Then
'isrly=0
'Else
'isrly = Int(Abs(Request("isrly")))
'End if
isrly=request("isrly")
'txtcontent=trim(Request.QueryString("content"))
'txtusr=trim(Request("user"))
'querystring=split(replyinfo,";")
'txtcontent=trim(querystring(0))
'txtname=trim(querystring(1))
'Response.write Request("content")
acharset = split(Request.ServerVariables("HTTP_ACCEPT_CHARSET")&",",",")
txtAgent = Request.ServerVariables("HTTP_USER_AGENT")
if (instr(1,acharset(0),"gb2312",1)>0) or (instr(1,txtAgent,"winwap",1)>0) then
txttitle=URLDecode(Request("title"))
txtcontent=URLDecode(Request("content"))
txtname=URLDecode(Request("user"))
elseif (instr(1,txtAgent,"m3gate",1)>0) or (instr(1,acharset(0),"UTF-8",1)>0) then
txttitle = U8toU(Request("title"))
txtcontent = U8toU(Request("content"))
txtname = U8toU(Request("user"))
else
txttitle = MoileDecode(Request("title"))
txtcontent = MoileDecode(Request("content"))
txtname = MoileDecode(Request("user"))
end if
if isrly = 0 then
if txtname="" or txttitle="" or txtcontent="" then
%> <card title="发言出错">
<p>
<do type = "accept" label = "返回">
<prev/>
</do>
输入的内容不允许为空!<br/><br/>
<img src="pic/005.png" alt="" align="bottom"/><a href="add.asp?isrly=0">返回上级</a><br/>
<img src="pic/005.png" alt="" align="bottom"/><a href="index.asp" >返回论坛</a><br/><br/>
<% conn.Close
set conn = nothing
Else
sql= "insert into gbookmain(""name"",""title"",""content"",""ip"",""dateandtime"",""rlycount"",""keycount"",""pic"",""choice1"",""choice2"") VALUES ('"&txtname&"','"&txttitle&"','"&txtcontent&"','"&Request.ServerVariables("REMOTE_ADDR")&"',Getdate(),0,0,1,0,0)"
conn.execute(sql)
conn.Close
set conn = nothing
%> <card title="论坛" >
<p>
记录已成功添加<br/><br/><img src="pic/005.png" alt="" align="bottom"/><a href="save1.asp?txtname=<%=txtname%>&isrly=<%=isrly%>&id=<%=Request("id")%>">添加表情</a><br/><img src="pic/005.png" alt="" align="bottom"/><a href="index.asp" >返回论坛</a><br/>
<%
End if
Else
if txtname="" or txtcontent="" then
%> <card title="回复出错">
<p>
<do type = "accept" label = "返回">
<prev/>
</do>
输入的内容不允许为空!<br/>
<img src="pic/005.png" alt="" align="bottom"/><a href="add.asp?isrly=1&id=<%=Request("id")%>">返回上级</a><br/>
<img src="pic/005.png" alt="" align="bottom"/><a href="index.asp" >返回论坛</a><br/><br/>
<% conn.Close
set conn = nothing
Else
sql= "insert into gbookrly(""mainid"",""name"",""content"",""ip"",""dateandtime"",""pic"") VALUES ("&Request("id")&",'"&txtname&"','"&txtcontent&"','"&Request.ServerVariables("REMOTE_ADDR")&"',Getdate(),1)"
conn.execute(sql)
sql = "update gbookmain set rlycount=rlycount+1 where id ="&Request("id")
conn.execute(sql)
conn.Close
set conn = nothing
txturl = "reply.asp?isrly=0&id="&Request("id")
%>
<card title="论坛">
<p>记录已成功添加<br/><br/><img src="pic/005.png" alt="" align="bottom"/><a href="save1.asp?txtname=<%=txtname%>&isrly=<%=isrly%>&id=<%=Request("id")%>">添加表情</a><br/><img src="pic/005.png" alt="" align="bottom"/><a href="reply.asp?isrly=0&id=<%=request("id")%>" >返回主题</a><br/>
<%
End if
End if
%>
<img src="pic/005.png" alt="" align="bottom"/><a href="">返回部落</a><br/>
<img src="pic/005.png" alt="" align="bottom"/><a href="">返回首页</a><br/>
</p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -