最后一个:聊客用来屏蔽不想见到的人admin/hideuser.asp,如想要源码到我的主页下载
发表于:2007-06-30来源:作者:点击数:
标签:
最后一个:聊客用来屏蔽不想见到的人admin/hideuser.asp % whoto=request.form(whoto) user=request.form(user) screen=request.form(hdish) cha td ata=application(chatdata) select case screen case 1 sendid=finduser(user) reciid=finduser(whoto) if s
最后一个:聊客用来屏蔽不想见到的人admin/hideuser.asp
<%
whoto=request.form("whoto")
user=request.form("user")
screen=request.form("hdish")
cha
tdata=application("chatdata")
select case screen
case "1"
sendid=finduser(user)
reciid=finduser(whoto)
if sendid<51 and reciid<51 then
if instr(chatdata(sendid,5),",‘’"&whoto&"‘’")<1 then
chatdata(sendid,5)=chatdata(sendid,5)&",‘’"&whoto&"‘’"
application.lock
application("chatdata")=chatdata
application.unlock
dispstr=right("0"&time,8)&",系统,0,"&user&",ff0000,0,你成功屏蔽"&whoto&"的聊天内容"
else
dispstr=right("0"&time,8)&",系统,0,"&user&",ff0000,0,"&whoto&"已在屏蔽名单中"
end if
else
if reciid=51 then dispstr=right("0"&time,8)&",系统,0,"&user&",ff0000,0,"&whoto&"不在此聊天室"
end if
case "0"
sendid=finduser(user)
reciid=finduser(whoto)
if sendid<51 then
if whoto="所有人" then
chatdata(sendid,5)=""
else
chatdata(sendid,5)=replace(chatdata(sendid,5),",‘’"&whoto&"‘’","")
end if
dispstr=right("0"&time,8)&",系统,0,"&user&",ff0000,0,你成功解除对"&whoto&"的聊天内容的屏蔽"
application.lock
application("chatdata")=chatdata
application.unlock
end if
case "2"
sendid=finduser(user)
dispstr=right("0"&time,8)&",系统,0,"&user&",ff0000,0,你屏蔽了:"&mid(replace(chatdata(sendid,5),"‘’",""),2)
end select
function finduser(fuser)
reval=51
for i=0 to 50
if chatdata(i,0)=fuser then
reval=i
exit for
end if
next
finduser=reval
end function
%>
<script language=‘’
javascript‘’>
parent.comm=new Array(‘’<% =dispstr %>‘’);
parent.writecomm();</script>
<meta http-equiv="refresh" content="60; URL=../refresh.asp?room=<% =room %>&user=<% =user %>">
原文转自:http://www.ltesting.net