<!-- #include file="include/adovbs.inc" -->
<!-- #include file="include/dataconn.asp" -->
<!-- #include file="include/checksession.asp" -->
<!-- #include file="include/168soft_back_SqlIn.Asp" -->
<%
	 mm=month(now)
	  if mm<10 then
	 	mm="0" & mm
	 end if
	 dd=day(now)
	 if dd<10 then
	 	dd="0" & dd
	 end if
	 thistoday = year(now)&"-"& mm &"-"& dd
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="include/e1.css" type="text/css">
<script language='javascript' src='include/common.js'></script>
</head>
<BODY topMargin=0 leftmargin="0" marginheight="0">
<%
if Request.QueryString("action")="back" then
	currf="db/#168softdb41.asa"
	currf=server.mappath(currf)
	backf=request.form("backf")
	backf=server.mappath(backf)
	backfy="#168softdb41.asa"
	on error resume next
	Set objfso = Server.CreateObject("Scripting.FileSystemObject")
	if err then 
	err.clear
	response.write "<script>alert(""不能建立fso对象，请确保你的空间支持fso:！"");history.back();</script>"
	response.end
	end if
	if objfso.Folderexists(backf) then
	else
	Set fy=objfso.CreateFolder(backf)
	end if
	objfso.copyfile currf,backf& "\"& backfy
	response.write "<script>alert(""备份数据库成功"");history.back();</script>"
end if 
%>
<form name="form1" method="POST" action="backdb.asp?action=back">
<div align="center">
<center>
<br><br>
<table align="center" bgcolor="#AAAAAA" border="0" cellpadding="0" cellspacing="0" width="75%"><tr>
          <td> <table border="0" cellpadding="5" style="border-collapse: collapse" width="100%" id="AutoNumber1" cellspacing="1">
              <tr class="tdTitle"> 
                <td height="40" colspan="2"><div align="center"><font color="#FFFFFF" size="3"><strong>备 
                    份 数 据 库</strong></font></div></td>
              </tr>
              <tr width="100%" bgcolor="#FBFDFF" > 
                <td width="37%"> <p>&nbsp;</p>
                  <div align="right"> 
                    <p><br>
                      备份数据目录：</p>
                    <p>&nbsp; </p>
                  </div></td>
                <td width="63%">&nbsp;<span style="background-color: #F7FFF7"> 
                  <input type="text" name="backf" size="30" value="<%=thistoday%>">
                  </span></td>
              </tr>
              <tr width="100%" bgcolor="#FBFDFF" > 
                <td height="30" colspan="2"> <div align="center"> 
                    <input type="submit" name="Submit3" value="备 份" class="b02">
                  </div></td>
              </tr>
              <tr> 
                <td colspan="2" bgcolor="#FBFDFF"><p><font color="#FF0000"><strong><br>
                    *</strong></font>你的空间只有支持fso才可以进行如下操作，否则你只能手动备份</p>
                  <p><font color="#FF0000"><strong>*</strong></font>为了保护您的会员和奖金数据的安全，请务必每天备份数据库一次。 
                  </p>
                  </td>
              </tr>
            </table></td>
  </tr>
</table>
</center>
</div>
</form>
</body></html>