⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 restore.asp

📁 较为详细的介绍了asp自定义的各种函数,方便asp的各种开发.
💻 ASP
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=forumname%></title>
<link rel="stylesheet" type="text/css" href="images/test.css">
</head>
<body>
 <center>
 <table width="600" cellspacing=0 cellpadding=5>
 	<tr>
 		<td></td>
 	</tr>
 </table>    
 
 <table border="0" cellpadding="0" cellspacing="0" width="760">
  	<tr>
  		<td colspan=3 height=10></td>
  	</tr>
  	<tr>
    		<td width=600 valign=top align=center>
 			<table width=600 cellspacing=1 cellpadding=0 bgcolor=#000000>		  							  				
  				<tr>
  					<td height=25 bgcolor=#b4c0cf>
  					&nbsp;&nbsp;恢复论坛数据 |
  					</td>
  				</tr> 	
  				<%
  				dim method
  				method=request.querystring("method")
  				if method="" then  					
  				%>
  				<form method="post" action="restore.asp?method=Restore">
  				<tr>
  					<td bgcolor=#e1e6ec height=100 class=pbz>
  						&nbsp;&nbsp;数据库路径(相对):<input type=text size=30 name=DBpath value="hw_data.asp">&nbsp;&nbsp;<input type=submit value="确定"> | 请注意:本功能需要FSO支持
  					</td>
  				</tr>	
  				</form>
  				<%
  				elseif method="Restore" then
  					Dbpath=request.form("Dbpath")
  				if dbpath="" then
  					response.write "<tr><td bgcolor=#e1e6ec height=25><li>请输入您要恢复成的数据库全名</td></tr>"	
  				else
  					Dbpath=server.mappath(Dbpath)
  				end if  				
				
				Backpath=server.mappath("DataBackup\hw.asp")
  				'response.write backpath
  				Set Fso=server.createobject("scripting.filesystemobject")
  				if fso.fileexists(Backpath) then  					
  					fso.copyfile Backpath,Dbpath
  					response.write "<tr><td bgcolor=#e1e6ec height=25><li>成功恢复数据!</td></tr>"
  				else
  					response.write "<tr><td bgcolor=#e1e6ec height=25><li>备份目录下并无您的备份文件!</td></tr>"	
  				end if	
  				%>
  				<%end if%> 
  			</table>	
  		</td>
  	</tr>		
  </table>	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -