📄 addcl.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?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">
<% LANGUAGE="VBSCRIPT" %>
<!--#include file="conn.inc"-->
<%if myid="0" then response.redirect "66hc_grdl.asp?cw=6"%>
<%
txt=request("txt")
lid=request("lid")
if lid="" then response.redirect "add.asp?sb="&sb
myyid=request("myid")
yc=request("yc")
agent=request.serverVariables("HTTP_USER_AGENT")
if "&myid&"="&myyid&" then
eer="自己给自己写信?<br/>"
end if
set rsx=Server.CreateObject("ADODB.Recordset")
rsstrx="select id from [Userinfo] where cstr(id)="&lid
rsx.open rsstrx,conn,1,2
if rsx.eof then
eer="没有这个会员呀。。。。<br/>"
end if
rsx.close
set rsx=Nothing
if txt="" then response.redirect "add.asp?glsb=" & glsb & ""
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 "add.asp"
set rs=Server.CreateObject("ADODB.Recordset")
rsstr="select * from [siti_Duanxin] order by ID desc"
rs.open rsstr,conn,1,2
dim errr
errr=0
if rs.recordcount>0 then
if rs("content")=txt then errr=1
end if
if errr=1 then eer="请不要重复发送,<br/>正在返回..!<br/>"
if errr<>1 then
rs.addnew
if txt<>"" then rs("content")=txt
rs("sitis")=lid
rs("nickname")=myyid
rs("custom")=myni
rs.update
end if
if rs.recordcount=0 then
rs.addnew
if txt<>"" then rs("content")=txt
rs("sitis")=lid
rs("nickname")=myyid
rs("custom")=myni
rs.update
end if
rs.close
set rs=Nothing
%>
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<card title="发送消息" ontimer="index.asp?sb=<%=sb%>">
<timer value="15"/>
<p>
<%if eer="" then%>
消息发送成功,<br/>
正在返回首页!<br/>
<%else%>
<%=eer%>
<%end if%>
</p>
</card>
</wml>
<%endConnection()%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -