📄 man_ipok.asp
字号:
<!--#INCLUDE FILE="config.asp" -->
<%
if not IsArray(Session("info")) then Response.Redirect "err.asp?kind=20"
info=Session("info")
if InStr(Application("maninfo"),"," & info(0) & ",")<>0 then Response.Redirect "manyou.asp"
gradeinfo=Application("gradeinfo")
if gradeinfo(info(1),12)<>true then Response.Redirect "err1.asp?kind=10"
name=Trim(Request.Form("manname"))
name=Replace(name,",","")
name=Replace(name,";","")
name=Replace(name," ","")
name=Replace(name," ","")
name=Replace(name,"'","")
name=Replace(name,chr(34),"")
name=Server.HTMLEncode(name)
if name=zzbird_master then Response.Redirect "err.asp?kind=71"
if name="" then Response.Redirect "err.asp?kind=55"
if name=info(0) then Response.Redirect "err.asp?kind=57"
ly=Request.Form("liyou")
ly=Replace(ly," ","")
ly=Replace(ly," ","")
if ly="" then Response.Redirect "err.asp?kind=52"
ly=server.HTMLEncode(ly)
if InStr(Application("zzbird_name"),"," & name & ",")=0 then Response.Redirect "err.asp?kind=35"
roominfo=Application("roominfo")
for j=0 to ubound(roominfo)
if InStr(Application("zzbird_name_" & roominfo(j,0)),"," & name & ",")<>0 then
towhere=roominfo(j,1)
towhereid=roominfo(j,0)
exit for
end if
next
if towhere="" or towhereid="" then Response.Redirect "err.asp?kind=35"
if gradeinfo(info(1),27)<>true and CStr(towhere)<>(info(6)) then Response.Redirect "err.asp?kind=53"
if gradeinfo(info(1),26)=true then
niming=Request.Form("niming")
else
niming="no"
end if
Set Conn=server.createobject("ADODB.CONNECTION")
Conn.Open Application("zzbird_conn")
Set Rs=server.createobject("adodb.recordset")
sql="select lastip from userinfo where user='" & name & "'"
rs.open sql,conn,3,3
if Rs.Eof and Rs.bof then
Rs.Close
Set Rs=Nothing
Conn.Close
Set Conn=Nothing
Response.Redirect "err.asp?kind=500"
else
myip=Rs("lastip")
Rs.Close
end if
sql="select * from kickinfo where (id is null)"
rs.open sql,conn,1,3
rs.addnew
Rs("who")=name
Rs("ip")=myip
Rs("kind")=2
Rs("time")=now
Rs.Update
Rs.Close
sql="select * from manlog where (id is null)"
rs.open sql,conn,1,3
rs.addnew
Rs("who")=name
Rs("manager")=info(0)
Rs("ip")=myip
Rs("kind")=2
Rs("liyou")=ly
if niming="yes" then
Rs("niming")=true
else
Rs("niming")=false
end if
Rs("time")=now
Rs.Update
Rs.Close
Set Rs=Nothing
Conn.Close
Set Conn=Nothing
Application.Lock
online=Application("online" & towhereid)
onno=ubound(online)
for i=1 to onno
if InStr(online(i),name & "|")=1 then
heinfo=split(online(i),"|")
for j=i to onno-1
online(j)=online(j+1)
next
ReDim Preserve online(onno-1)
Application("online" & towhereid)=online
exit for
end if
next
Application("zzbird_name")=Replace(Application("zzbird_name"),"," & name & ",","")
Application("zzbird_name_"&towhereid)=Replace(Application("zzbird_name_"&towhereid),"," & name & ",","")
Application("maninfo")=Application("maninfo") & "2," & name & ",;"
Application.UnLock
%>
<!--#INCLUDE FILE="function.asp" -->
<%
if niming="yes" then
ip=Replace(zzbird_ip,"(manager)"," <img border='0' height='16' width='16' src='images/ICO/0-2.gif'><font color=#008000>(匿名管理员)</font> ")
else
ip=Replace(zzbird_ip,"(manager)"," <img border='0' height='16' width='16' src='images/ICO/" & info(4) & "-2.gif'><font color=#008000>" & info(0) & "</font> ")
end if
ip=Replace(ip,"(name)"," <img border='0' height='16' width='16' src='images/ICO/" & heinfo(1) & "-2.gif'><font color=#008000>" & name & "</font> ")
ip=Replace(ip,"(ip)","(<font color=#008000>" & myip & "</font>)")
w1=name
w2=""
w3="ip"
w4="[<img src='images/sys.gif'>封IP]"& ip &"(理由:" & ly & ")<font style='font-size: 8pt' color='#808080'>(" & CStr(time) & ")</font><bgsound src='other/kick.wav' loop='1'>"
w5=towhere
saveword w1,w2,w3,w4,w5
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>封锁IP</title>
<style>
<!--
fieldset { font-size: 10pt }
-->
</style>
</head>
<body bgcolor="buttonface" style="border: 3px double buttonface">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="46%" id="AutoNumber1" height="62">
<tr>
<td width="100%" height="150">
<fieldset style="padding: 2; width:281; height:142">
<legend><img border="0" src="images/ip.gif">封锁IP</legend>
<p>已经成功地把“<%=name%>”的IP封锁了。</p>
<%if niming="no" then%>
<p>同时该操作已经以你的名义被记入聊务公开栏。</p>
<%else%>
<p>同时该操作已经以匿名管理员的名义被记入聊务公开栏。</p>
<%end if%>
</fieldset>
</td>
</tr>
<tr>
<td width="100%" align="right"><input type="button" value="上一步" name="a1" onclick="location.href='man_ip.asp';"><input type="submit" value="下一步" disabled name="a2">
<input type="button" value="完成" name="a3" onclick="javascript:window.close();"><input disabled type="button" value="取消" name="a4"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -