📄 smssent.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<!-- #include file="conn.asp" --><?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">
<%
dim con,pid
con=request("con")
pid=request("p")
'''======================================================提 取 信息 结
if con="" then response.redirect "err.asp?id=1"
kword=split("fuck,他妈的,我靠,我操,去死,我叼",",")
function keyWord(s)
dim KwCount
KwCount=0
for kwi=0 to ubound(kword)
KwCount = KwCount + instr(s,kword(kwi))
next
keyWord=KwCount
end function
if keyWord(con)>0 then response.redirect "err.asp?id=3"
yy=year(now)&""
mm=month(now)&""
if len(mm)=1 then mm="0"&mm
dd=day(now)&""
if len(dd)=1 then dd="0"&dd
hh=hour(now)&""
if len(hh)=1 then hh="0"&hh
mi=minute(now)&""
if len(mi)=1 then mi="0"&mi
ss=second(now)&""
if len(ss)=1 then ss="0"&ss
ti=yy &"-"& mm &"-"& dd &" "& hh &":"& mi' &":"& ss
dim rsad,pno,rs,rsc,p
set rsad=Server.CreateObject("ADODB.Recordset")
rsad.open "select phone from login where id='"&request("shouji")&"'",conn,1,3
if rsad.bof and rsad.eof then
response.redirect "index.asp"
else
pno=rsad("phone")
end if
rsad.close
set rsad=nothing
set rs=Server.CreateObject("ADODB.Recordset")
rs.open "select id from sheet where shouji='" & pno & "'",conn,1,2
if rs.recordcount=1 then lid=rs("ID")
rs.close
set rs=nothing
set rsc=Server.CreateObject("ADODB.Recordset")
rsc.open "select shouji from sheet where ID=" & pid,conn,1,2
if rsc.recordcount=1 then
p=rsc("shouji")
dim rsp,rsq
set rsp=Server.CreateObject("ADODB.Recordset")
rsp.open "select * from bbssms where pnumber='"& p &"' order by ID asc",conn,1,2
set rsq=Server.CreateObject("ADODB.Recordset")
rsstr="select con from bbssms where pnumber='"& p &"' and [liunumber]='" & lid & "' order by ID desc"
rsq.open rsstr,conn,1,2
dim errr
errr=0
if rsq.recordcount>0 then
if rsq("con")=con then errr=1
end if
rsq.close
set rsq=nothing
if errr=0 then
rsp.addnew
rsp("pnumber")=p
rsp("liunumber")=pno
rsp("con")=con
rsp("ltime")=ti
rsp.update
end if
rsp.close
set rsp=nothing
else
response.redirect "err.asp?id=10"
end if
rsc.close
set rsc=nothing
conn.close
set conn=nothing
%><wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
</head>
<card title="发送留言" ontimer="sms.asp?shouji=<%=request("shouji")%>">
<timer value="3"/>
<p align="center">
发送成功!<br/><br/>
<a href="sms.asp?shouji=<%=request("shouji")%>">[留言列表]</a><br/>
<a href="bbs.asp?shouji=<%=request("shouji")%>">[论坛首页]</a><br/>
<a href="../index.asp?shouji=<%=request("shouji")%>">[网站首页]</a><br/>
</p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -