📄 admin_redata.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="../inc/md5.asp"-->
<!--#include file="../inc/UserPs.Asp"-->
<!--#include file="../inc/pwwd.asp"-->
<!--#include file="Stream.Asp"-->
<%
'├========================================┤
'‖ www.fywen.com ‖
'‖ ╔━═━═━═━═━═━╗ ‖
'‖ ┃ 枫叶在线版权所有 ┃ ‖
'‖ ╚━═━═━═━═━═━╝ ‖
'‖ 论坛:www.fywen.com/bbs ‖
'├========================================┤
BotList = "Google,Isaac,SurveyBot,Baiduspider,yahoo,yisou,3721,ia_archiver,P.Arthur,FAST-WebCrawler,Java,Microsoft-ATL-Native,TurnitinBot,WebGather,Sleipnir"
Botlist = Split(Botlist,",")
For i = 0 To Ubound(Botlist)
If InStr(Lcase(Request.ServerVariables("HTTP_USER_AGENT")),Lcase(Botlist(i))) > 0 Then
response.write" - Powered By FYPost - 枫叶贴吧"
response.End()
Exit For
End If
Next
'/*不让搜索引擎收录*/
Call Admin_Admin()
action = ReplaceBadWord(Request.QueryString("action"))
Select Case action
Case ""
Call admin_index()
Case "updata"
Call updata()
End Select
Sub admin_index()
%>
<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<TITLE>管理中心—贴吧管理</TITLE>
<link href="css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
td{
background:#F1F3F5;
}
-->
</style></head>
<body>
<br>
<form method="post" action="Admin_redata.Asp?action=updata">
<table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" class="table" >
<tr >
<td align="center" class="imgbg" colspan="2"><strong class="size">恢复数据库( 需要FSO支持 )</strong></td>
</tr>
<tr class="table_3">
<td class="bj" colspan="2">恢复数据库</td>
</tr>
<tr>
<td height="25" class="table_3" width="23%">备份数据库路径(相对):</td>
<td width="76%"><input name="DBpath" type="text" class="input" id="DBpath" style="width:210px;" value="datafywenzgfg/fywen.mdb" size="25" /></td>
</tr>
<tr>
<td height="25" class="table_3" width="23%">目标数据库路径(相对):</td>
<td width="76%"><input name="backpath" type="text" class="input" id="backpath" style="width:210px;" value="<%=mdb%>" />
</td>
</tr>
<tr>
<td height="25" class="bj" width="23%"> </td>
<td class="bj" height="25" width="76%"><input name="submit" type="submit" value="确定恢复" class="buttion"> </td>
</tr>
</table>
</form>
</body>
</html>
<%
End Sub
sub updata()
dim Dbpath,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)
Set Fso=server.createobject("scripting.filesystemobject")
if fso.fileexists(dbpath) then
fso.copyfile Dbpath,Backpath
%>
<script language="javascript">
alert("数据库成功恢复")
document.location="javascript:history.back(-1)"
</script>
<%
else
%>
<script language="javascript">
alert("备份目录下没有发现备份数据库文件")
document.location="javascript:history.back(-1)"
</script>
<%
end if
end sub
'------------------检查某一目录是否存在-------------------
Function CheckDir(FolderPath)
dim fso1
folderpath=Server.MapPath(".")&"\"&folderpath
Set fso1 = CreateObject("Scripting.FileSystemObject")
If fso1.FolderExists(FolderPath) then
'存在
CheckDir = True
Else
'不存在
CheckDir = False
End if
Set fso1 = nothing
End Function
'-------------根据指定名称生成目录-----------------------
Function MakeNewsDir(foldername)
dim f,fso1
Set fso1 = CreateObject("Scripting.FileSystemObject")
Set f = fso1.CreateFolder(foldername)
MakeNewsDir = True
Set fso1 = nothing
End Function
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -