📄 restore.asp
字号:
<%
if session("admin")="" then
response.redirect "admin.asp"
end if
if session("flag")>1 then
response.write "<br><p align=center>你没有操作权限!</p>"
response.end
end if
%>
<!--#include file="conn.asp"-->
<%
dim backpath,fso
Dbpath=request.form("Dbpath")
backpath=request.form("backpath")
if dbpath="" then
response.write "请输入您要恢复成的数据库完整名称"
else
Dbpath=server.mappath(Dbpath)
end if
backpath=server.mappath(backpath)
'Response.write Backpath
Set Fso=server.createobject("scripting.filesystemobject")
if fso.fileexists(dbpath) then
fso.copyfile Dbpath,Backpath
response.write "<link href=style.css rel=stylesheet><body bgcolor=#418598><center><br><br>数据库恢复完成,请进行其他操作!<br><br><a href=javascript:history.go(-1)>>> 返 回 <<</a></center></body>"
else
response.write "<link href=style.css rel=stylesheet><body bgcolor=#418598><center><br><br>备份目录下没有找到您的备份文件!<br><br><a href=javascript:history.go(-1)>>> 返 回 <<</a></center></body>"
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -