The last one: the chat guest is used to block the person who does not want to see admin/hideuser.asp, if want source code to my homepage download

Source: Internet
Author: User
Download the last one: the chat is used to block people who don't want to see admin/hideuser.asp

<%
Whoto=request.form ("Whoto")
User=request.form ("User")
Screen=request.form ("Hdish")
Chatdata=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) & ", System, 0," &user& ", ff0000,0, you successfully blocked" &whoto& "chat content"
Else
Dispstr=right ("0" &time,8) & ", System, 0," &user& ", ff0000,0," &whoto& "already in the Shield list.
End If
Else
If reciid=51 then Dispstr=right ("0" &time,8) & ", System, 0," &user& ", ff0000,0," &whoto& "not in this chat room"
End If

Case "0"
Sendid=finduser (user)
Reciid=finduser (Whoto)
If Sendid<51 Then
If whoto= "Everyone" then
Chatdata (sendid,5) = ""
Else
Chatdata (sendid,5) =replace (Chatdata (sendid,5), ", '" &whoto& "", "" ")
End If
Dispstr=right ("0" &time,8) & ", System, 0," &user& ", ff0000,0, you successfully removed the" &whoto& "Chat content shielding"
Application.Lock
Application ("Chatdata") =chatdata
Application.UnLock
End If
Case "2"
Sendid=finduser (user)
Dispstr=right ("0" &time,8) & ", System, 0," &user& ", ff0000,0, you shielded:" &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%> ">



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.