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

📄 iplocked.asp

📁 聊天室源码呵呵你好用~~~~~~2.0版本
💻 ASP
字号:
<%@ LANGUAGE=VBScript%>
<%Server.ScriptTimeout=600
Response.Expires=0
if Session("a_c_user_name")="" then
 Response.write "<b>[操作失败]</b><p>您尚未登录(或已经超时退出),不能进行此操作!"
 Response.end
end if
if Session("a_c_user_level")<10 then
 Response.Write "<b>[操作失败]</b><p>您没有永久封锁IP的权限!"
 Response.End
end if
iplocked=Request.Form("iplocked")
yjlock=Trim(Request.Form("yjlock"))
lockfile=server.mappath("iplocked.txt")
Set fs = CreateObject("Scripting.FileSystemObject")
if iplocked="重载" then
Set thisfile = fs.OpenTextFile(lockfile,1,False)
ip_lock=thisfile.ReadLine
thisfile.Close
Application.Lock
Application("a_c_ip_locked")=ip_lock
Application.UnLock
end if
if iplocked="提交" then
Set thisfile = fs.CreateTextFile(lockfile)
thisfile.WriteLine yjlock
thisfile.Close
Application.Lock
Application("a_c_ip_locked")=yjlock
Application.UnLock
end if
set thisfile=nothing
set fs=nothing%><html>
<head>
<title>永久封锁IP</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type='text/css'>
<!--
.p9 {line-height: 150%; font-size: 9pt;}
.p12 {line-height: 150%; font-size: 12pt;}
body {line-height: 150%;font-size : 12pt;}
A  {text-decoration: none;}
A:Hover  {text-decoration : none;}
a:visited {  color: #0000FF}
-->
</style>
</head>
<body bgcolor="FFFFFF">
<h1 align="center"><font color="0099FF">【永久封锁IP】</font></h1>
<hr noshade size="1" color=009900>
<div align=center><%if iplocked="重载" then%>
<p>重载永久封锁IP地址资料完毕。</p>
<%end if
if iplocked="提交" then%>
<p>您刚才所更改的永久封锁IP地址(段)已经生效。</p>
<%end if%>
<p><a href=javascript:history.go(-1)>返回</a></p>
</div>
<hr noshade size="1" color=009900>
<div align="center" class="p9"><script src="use.asp"></script> <script src="sn.asp"></script><br><script src="copyright.asp"></script></div>
</body>
</html>

⌨️ 快捷键说明

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