⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manbddel.asp

📁 此程序为网上下载
💻 ASP
字号:
<%@ codepage ="936" %>
<%Response.Expires=0
nickname=Session("hxf_u_nickname")
grade=Int(Session("hxf_u_grade"))
if nickname="" then Response.Redirect "manerr.asp?id=100"
if grade<>12 or session("ipbt")<>"1" then Response.Redirect "manerr.asp?id=130"
userip=Request.ServerVariables("REMOTE_ADDR")
username=Trim(Request.QueryString("id"))
uip=Trim(Request.QueryString("ip"))
if username="" then Response.Redirect "manerr.asp?id=135"
 n=Year(date())
 y=Month(date())
 r=Day(date())
 s=Hour(time())
 f=Minute(time())
 m=Second(time())
 if len(y)=1 then y="0" & y
 if len(r)=1 then r="0" & r
 if len(s)=1 then s="0" & s
 if len(f)=1 then f="0" & f
 if len(m)=1 then m="0" & m
 sj=n & "-" & y & "-" & r & " " & s & ":" & f & ":" & m 
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
connstr=Application("wsaxhg_connstr")
conn.open connstr
sql="SELECT username FROM ipbt WHERE userip='" & uip & "' AND username='" & username & "'"
rs.open sql,conn,1,1
if rs.Eof and rs.Bof then
 rs.close
 conn.close
 set rs=nothing
 set conn=nothing
 Response.Redirect "manerr.asp?id=136"
end if
showusername=rs("username")
rs.close
set rs=nothing
sql="DELETE FROM ipbt WHERE userip='" & uip & "' AND username='" & username & "'"
conn.Execute(sql)
sql = "INSERT INTO logs (type, logtime, name, ip, opertion) VALUES ('6', '" & sj & "', '" & nickname & "', '" & userip & "', '删除绑定用户名:<font color=green>" & username & "</font>  用户IP:<font color=green>" & uip & "</font>')"
conn.Execute sql
conn.close
set conn=nothing%><html>
<head>
<title>帐号管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="readonly/style.css">
</head>
<body bgcolor="#FFFFFF" class=p150>
<div align="center">
<h1><font color="0099FF">【IP绑定】</font></h1>
<font color="#FF0000">【删除绑定用户】</font></div>
<hr noshade size="1" color=009900>
<b>[操作完成]</b><br>
  删除绑定用户:<font color=red><%=username%></font>。
<div align=center><a href="manbd.asp">返回</a></div>
<hr noshade size="1" color=009900>
<div align=center class=cp><%Response.Write "序列号:<font color=blue>" & Application("wsaxhxf_c_sn") & "</font>,授权给:<font color=blue>" & Application("wsaxhxf_c_user") & "</font><br><font color=999999>" & Application("wsaxhxf_c_copyright") & "</font>"%></div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -