答案:释放被踢IP文件releip.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
if chatdata(sendid,1)=request.servervariables("remote_addr") then
tkicklist=""
do while instr(kicklist,",'#")>0
address1=instr(kicklist,",'#")
address2=instr(address1+3,kicklist(room),"'")
tkicklist=tkicklist&mid(kicklist,address1,address2)
kicklist=mid(kicklist,address2+1)
loop
kicklist=tkicklist
application.lock
application("kicklist")=kicklist
application.unlock
dispstr=right("0"&time,8)&",系统,0,"&user&",ff0000,0,成功地清除了被踢IP地址"
end if
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 50
if chatdata(i,0)=fuser then
reval=i
exit for
end if
next
finduser=reval
end function
%>
上一个:在线用户列表显示文件list.asp、出错信息文件error.asp
下一个:翻译被踢用户名文件admin/relename.asp