釋放被踢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
%>