📄 adminreload.asp
字号:
<%
if session("admin_name")="" then response.end
set rs=server.createobject("adodb.recordset")
%>
<!--#include file="conn.asp"--><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=css.css rel=STYLESHEET type=text/css>
<body>
<% if Request.QueryString("action")="do" then
currf=request.form("currf")
currf=server.mappath(currf)
backf=request.form("backf")
if backf="" then
response.write "<div class=tdc>请输入您要恢复的数据库全名</div>"
else
backf=server.mappath(backf)
end if
on error resume next
Set objfso = Server.CreateObject("Scripting.FileSystemObject")
if err then
err.clear
response.write "<div class=tdc>不能建立fso对象,请确保你的空间支持fso:!"
response.end
end if
if objfso.fileexists(backf) then
objfso.copyfile ""&backf&"",""&currf&""
response.write "<div class=tdc>恢复数据库成功</div>"
response.end
else
response.write "<div class=tdc>错误:备份目录下无您的备份文件!"
response.end
end if
end if
%>
<form name="form1" method="POST" action="?action=do">
<table border="0" cellspacing="1" cellpadding="4"class=tb1 >
<tr align="center">
<td colspan="2" background=../image/b2.gif height=22>
恢复数据库</td>
</tr>
<tr align="center">
<td background=../image/b2.gif height=22 colspan="2">你的空间只有支持fso才可以进行如下操作,否则你只能手动恢复</td>
</tr>
<tr>
<td width="30%" align="right">当前数据库路径:</td>
<td>
<input type="text" name="currf" size="30" value="../database/database.asp"> </td>
</tr>
<tr>
<td width="30%" align="right">备份数据路径:</td>
<td>
<input type="text" name="backf" size="30" value="../databack/databack.asp"> </td>
</tr>
<tr>
<td width="30%" align="right" colspan="2">
<p align="left">当前数据库路径一般为默认的,如果你作了改动,请你修改文件connections.asp数据库连接。</td>
</tr>
<tr>
<td width="20%" align="right"> </td>
<td>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</td>
</tr>
</table>
</form>
<%
conn.close
set conn=nothing%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -