|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
由于ASP提供的是一对多的服务,所以用户的一些特殊需求很难得到满足。下载最初一个:聊客用来屏障不想见到的人admin/hideuser.asp
<%
whoto=request.form("whoto")
user=request.form("user")
screen=request.form("hdish")
chatdata=application("chatdata")
selectcasescreen
case"1"
sendid=finduser(user)
reciid=finduser(whoto)
ifsendid<51andreciid<51then
ifinstr(chatdata(sendid,5),","&whoto&"")<1then
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&"已在屏障名单中"
endif
else
ifreciid=51thendispstr=right("0"&time,8)&",体系,0,"&user&",ff0000,0,"&whoto&"不在此谈天室"
endif
case"0"
sendid=finduser(user)
reciid=finduser(whoto)
ifsendid<51then
ifwhoto="一切人"then
chatdata(sendid,5)=""
else
chatdata(sendid,5)=replace(chatdata(sendid,5),","&whoto&"","")
endif
dispstr=right("0"&time,8)&",体系,0,"&user&",ff0000,0,你乐成排除对"&whoto&"的谈天内容的屏障"
application.lock
application("chatdata")=chatdata
application.unlock
endif
case"2"
sendid=finduser(user)
dispstr=right("0"&time,8)&",体系,0,"&user&",ff0000,0,你屏障了:"&mid(replace(chatdata(sendid,5),"",""),2)
endselect
functionfinduser(fuser)
reval=51
fori=0to50
ifchatdata(i,0)=fuserthen
reval=i
exitfor
endif
next
finduser=reval
endfunction
%>
<scriptlanguage=javascript>
parent.comm=newArray(<%=dispstr%>);
parent.writecomm();</script>
<metahttp-equiv="refresh"content="60;URL=../refresh.asp?room=<%=room%>&user=<%=user%>"></p>我想详细了解ASP整站代码与PSP整站代码有什么优缺点,那个更好,更安全,更用容易维护,和管理。。。 |
|