最后一個:聊客用來屏蔽不想見到的人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.kjueaiud.com