日期:2013-05-18  浏览次数:21175 次

翻译被踢用户名文件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)&",系统,0,"&user&",ff0000,0,成功地清除了被踢名单"
  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

%>