www.gusucode.com > 共享世纪内容管理系统 2.1 build 080704 全站开源版 > admin/mdb_copy.asp
<!--#include file="top.asp"--> <%Admin="SysMdbRC"%> <!--#include file="check.asp"--> <html> <head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> <meta copy="WWW.2KY.CN 共享世纪"> <title>■管理中心 - 共享世纪新闻文章管理系统</title> <link rel="stylesheet" href="admin.css" type="text/css"> </head> <body> <div align="center"> <center> <% '========================================== ' ' 晓宇听幽新闻文章管理系统 2004 ' ' 主页地址:http://www.xoYu.com ' '========================================== '程序名称:晓宇听幽新闻文章管理系统 '英文名称:xoYu News 2004 Professional '程序创建时间:2003-7-10 '程序完成时间:2003-9-11 '最后修改时间:2003-10-10 '========================================== if request("type")="save" then xoYuStudioMDBname=request("xoYuStudioMDBname") xoYuStudioMDBnameNew=request("xoYuStudioMDBnameNew") if xoYuStudioMDBname="" or xoYuStudioMDBnameNew="" then xoYuStudioMsg="错误:文件名不能为空." end if if xoYuStudioMDBname=xoYuStudioMDBnameNew then xoYuStudioMsg="错误:文件名相同." end if if xoYuStudioMsg="" then Set fs=Server.CreateObject("Scripting.FileSystemObject") fs.CopyFile Server.MapPath("data\"&xoYuStudioMDBname&".asp"),Server.MapPath("data_backup\"&xoYuStudioMDBnameNew&".asp") xoYuStudioMsg="成功:已经成功备份数据库("&xoYuStudioMDBnameNew&".asp)!" Set fs=nothing end if %> <table width="280" border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder"> <tr> <td width="100%" class=forumrow><font color="#FF0000">·</font><%=xoYuStudioMsg%> 时间:<%=Now()%></td> </tr> </table> <%end if%> <table width="280" border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder"> <tr> <th width="100%"><b>备份数据库</b></th> </tr> <tr> <td width="100%" class=forumHeaderBackgroundAlternate> <b>文章数据库备份</b></td> </tr> <!--#include file="mdb_path_info_name.asp"--> <form action="mdb_copy.asp?type=save" method="post"> <tr> <td width="100%" class=forumrow> 原数据文件名 <input name="xoYuStudioMDBname" value="<%=MDBname%>" size="20" style="border-style: solid; border-width: 1">.asp</td> </tr> <tr> <td width="100%" class=forumrow> 备份数据库名 <input name="xoYuStudioMDBnameNew" value="<%=MDBname%>_backup" size="20" style="border-style: solid; border-width: 1">.asp</td> </tr> <tr> <td width="100%" class=forumrow> <p align="center"> <input name="b1" type="submit" value="确认备份"></p> </td> </form> </tr> <tr> <td width="100%" class=forumHeaderBackgroundAlternate> <b>用户数据库备份</b></td> </tr> <!--#include file="mdb_path_user_name.asp"--> <form action="mdb_copy.asp?type=save" method="post"> <tr> <td width="100%" class=forumrow> 原数据文件名 <input name="xoYuStudioMDBname" value="<%=MDBname%>" size="20" style="border-style: solid; border-width: 1">.asp</td> </tr> <tr> <td width="100%" class=forumrow> 备份数据库名 <input name="xoYuStudioMDBnameNew" value="<%=MDBname%>_backup" size="20" style="border-style: solid; border-width: 1">.asp</td> </tr> <tr> <td width="100%" class=forumrow> <p align="center"> <input name="b1" type="submit" value="确认备份"></p> </td> </form> </tr> <tr> <td width="100%" class=forumHeaderBackgroundAlternate> <b>投票数据库备份</b></td> </tr> <!--#include file="mdb_path_vote_name.asp"--> <form action="mdb_copy.asp?type=save" method="post"> <tr> <td width="100%" class=forumrow> 原数据文件名 <input name="xoYuStudioMDBname" value="<%=MDBname%>" size="20" style="border-style: solid; border-width: 1">.asp</td> </tr> <tr> <td width="100%" class=forumrow> 备份数据库名 <input name="xoYuStudioMDBnameNew" value="<%=MDBname%>_backup" size="20" style="border-style: solid; border-width: 1">.asp</td> </tr> <tr> <td width="100%" class=forumrow> <p align="center"> <input name="b1" type="submit" value="确认备份"></p> </td> </form> </tr> <tr> <td width="100%" class=forumHeaderBackgroundAlternate> <b>广告数据库备份</b></td> </tr> <!--#include file="mdb_path_ad_name.asp"--> <form action="mdb_copy.asp?type=save" method="post"> <tr> <td width="100%" class=forumrow> 原数据文件名 <input name="xoYuStudioMDBname" value="<%=MDBname%>" size="20" style="border-style: solid; border-width: 1">.asp</td> </tr> <tr> <td width="100%" class=forumrow> 备份数据库名 <input name="xoYuStudioMDBnameNew" value="<%=MDBname%>_backup" size="20" style="border-style: solid; border-width: 1">.asp</td> </tr> <tr> <td width="100%" class=forumrow> <p align="center"> <input name="b1" type="submit" value="确认备份"></p> </td> </form> </tr> </table> </center> </div> </body> </html>