addcl.asp
资源名称:wap.rar [点击查看]
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:3k
源码类别:
手机WAP编程
开发平台:
ASP/ASPX
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><?xml version="1.0" encoding="utf-8"?>
- <%response.buffer=true%>
- <%Response.ContentType = "text/vnd.wap.wml; charset=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"-->
- <!--#include file="cnscucsb.asp"--><%
- '====================================================================
- ' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
- ' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
- ' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
- ' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
- '====================================================================
- %> <%
- txt=request("txt")
- lid=request("lid")
- tou=request("tou")
- myyid=request("myid")
- yc=request("yc")
- agent=request.serverVariables("HTTP_USER_AGENT")
- if "&myid&"="&myyid&" then
- eer="自己给自己写信?<br/>"
- end if
- set rsc=Server.CreateObject("ADODB.Recordset")
- rsplc="select * from myhm where cstr(jid)="&lid&" and cstr(bid)="&myid
- rsc.open rsplc,conn,1,2
- if not rsc.eof then
- eer="警告:对方已经把你加为仇人,请不要骚扰对方了!"
- end if
- rsc.close
- set rsc=nothing
- set rsx=Server.CreateObject("ADODB.Recordset")
- rsstrx="select id from [cnscu_gr] 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?cnscu=" & cnscu & ""
- 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 [tbxx] order by ID desc"
- rs.open rsstr,conn,1,2
- dim errr
- errr=0
- if rs.recordcount>0 then
- if rs("fnr")=txt then errr=1
- end if
- if errr=1 then eer="请不要重复发送,<br/>正在返回个人资料!<br/>"
- if errr<>1 then
- rs.addnew
- if txt<>"" then rs("fnr")=txt
- rs("sid")=lid
- if tou<>"" then rs("tou")=tou
- rs("fid")=myyid
- rs.update
- end if
- if rs.recordcount=0 then
- rs.addnew
- if txt<>"" then rs("fnr")=txt
- if tou<>"" then rs("tou")=tou
- rs("sid")=lid
- rs("fid")=myyid
- 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?cnscu=<%=cnscu%>">
- <timer value="15"/>
- <p>
- <%if eer="" then%>
- <!--#INCLUDE file="xxts.asp"-->
- 消息发送成功,<br/>
- 正在返回社区首页!<br/>
- <%else%>
- <%=eer%>
- <%end if%>
- <!--#include file="w.asp"-->
- </p>
- </card>
- </wml>