restore.asp

来自「下载管理系统,重新修改,无错.放心使用. 用户名和密码都是admin:admi」· ASP 代码 · 共 29 行

ASP
29
字号
<%
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 + =
减小字号Ctrl + -
显示快捷键?