Translation kicked user name file admin/relename.asp

Source: Internet
Author: User
Translation kicked user name file relename.asp

<%
User=request.form ("User")
%><meta http-equiv= "Refresh" content= "4; Url=.. /refresh.asp?user=<% =user%> ">
<%
Chatdata=application ("Chatdata")
Kicklist=application ("Kicklist")
If session ("admlevel") = "9" Then
Sendid=finduser (user)
If Sendid<51 Then
Do While InStr (Kicklist, ", ' #") >0
Address1=instr (Kicklist, ", ' #")
Address2=instr (Address1+3,kicklist, ",")
If Address2>0 Then
Kicklist=left (kicklist,address1-1) &mid (KICKLIST,ADDRESS2)
Else
Kicklist=left (Kicklist,address1-1)
End If
Loop
Application.Lock
Application ("Kicklist") =kicklist
Application.UnLock
Dispstr=right ("0" &time,8) & ", System, 0," &user& ", ff0000,0, successfully cleared the kicked list"
End If
End If

If dispstr<> "" Then
%>
<script language= ' JavaScript ' >
Parent.comm=new Array (' <% =dispstr%> ');
Parent.writecomm ();</script>
<%
End If

function Finduser (fuser)
reval=100
For I=0 to 99
If Chatdata (i,0) =fuser Then
Reval=i
Exit For
End If
Next
Finduser=reval
End Function

%>



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.