reloadipaddress.asp

来自「聊天室源码呵呵你好用~~~~~~2.0版本」· ASP 代码 · 共 50 行

ASP
50
字号
<%@ LANGUAGE=VBScript%>
<%Server.ScriptTimeout=1000
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
dim reg_data()
userdatafile=Server.Mappath("ipaddress.asp")
Set FileObject=Server.CreateObject("Scripting.FileSystemObject")
Set InStream=FileObject.OpenTextFile(userdatafile,1,False)
countud=0
do while not InStream.AtEndOfStream
 thisline=InStream.readline
 ReDim Preserve reg_data(countud)
 reg_data(countud)=thisline
 countud=countud + 1
loop
InStream.Close
Application.Lock
Application("a_c_ip_address")=reg_data
Application.UnLock
Set FileObject=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>
<p align="center">重载IP地址查询库(ipaddress.asp)成功!</p>
<p align="center"><a href="javascript:history.go(-1)">返回</a></p>
<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 + =
减小字号Ctrl + -
显示快捷键?