释放被踢IP文件releip.asp
发表于:2007-06-30来源:作者:点击数:
标签:
释放被踢IP文件releip.asp % user=request.form(user) %meta http-equiv=refresh content=4; URL=../refresh.asp?user=% =user % % cha td ata=application(chatdata) kicklist=application(kicklist) if session(admlevel)=9 then sendid=finduser(user) if
释放被踢IP文件releip.asp
<%
user=request.form("user")
%><meta http-equiv="refresh" content="4; URL=../refresh.asp?user=<% =user %>">
<%
cha
tdata=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
%>
原文转自:http://www.ltesting.net