| 欢迎<%=session("mastername")%>进入管理页面
|
>
|
<%call leftmenu()%>
|
>
|
恢复论坛数据 | 感谢ra88(barnett@263.net)整理制作( 需要FSO支持,FSO相关帮助请看微软网站 )
|
<%
fsoflag=1
if fsoflag="1" then
dim method
method=request.querystring("method")
if method="" then
%>
<%
elseif method="Restore" then
Dbpath=request.form("Dbpath")
if dbpath="" then
response.write "| 请输入您要恢复成的数据库全名 | "
else
Dbpath=server.mappath(Dbpath)
end if
REM 修改本行中的dvbbs5.mdb文件名为您需要的恢复文件名
Backpath=left(dbpath,instrrev(dbpath,"\",(instrrev(dbpath,"\")-1)))&"Data\dvbbs5.MDB"
'Response.write Backpath
Set Fso=server.createobject("scripting.filesystemobject")
if fso.fileexists(Backpath) then
fso.copyfile Backpath,Dbpath
response.write "| 成功恢复数据! | "
else
response.write "| 备份目录下并无您的备份文件! | "
end if
end if
else%>
|
本项功能已经被管理员关闭
|
<%end if%>
|
<%end IF%>
|