<!--#include file="Admin_Const.asp"-->
<%
if Not Cl.TrueOtherPurview("Data") then
	Admin_ShowErr("<br><li>您无此操作权限！</li>")
end if
dim Action,DataBackPath
DataBackPath="DataBackup"   '备份目录
Action=Trim(request("Action"))
dim ObjInstalled
ObjInstalled=Cl.ChkObjInstalled(Trim(Cl.Web_Info(13)))
%>
<html>
<head>
<title>数据库管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../Skins/Admin_Style.Css">
<script src="../Inc/Js/Admin.js" type="text/javascript"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="border">
  <tr class="title"> 
    <td height="22" colspan="2" align="center"><strong>数 据 库 管 理</strong></td>
  </tr>
  <tr class="tdbg"> 
    <td width="70" height="30"><strong>管理导航：</strong></td>
    <td height="30"><a href="Admin_Data.asp?Action=Backup">备份数据库</a> | <a href="Admin_Data.asp?Action=Restore">恢复数据库</a> 
      | <a href="Admin_Data.asp?Action=Compact">压缩数据库</a> | <a href="Admin_Data.asp?Action=Init">系统初始化</a> 
      | <a href="Admin_Data.asp?Action=ServerInfo">服务器信息</a> 
      | <a href="Admin_Data.asp?Action=SpaceSize">系统空间占用</a>
      | <a href="Admin_Data.asp?Action=DoSqlMain">执行SQL查询</a></td>
  </tr>
</table>
<%
Select Case Action
Case "Backup"
	call ShowBackup()
Case "BackupData"
	call ShowBackup()
Case "Compact"
	call ShowCompact()
Case "CompactData"
	call ShowCompact()
Case "Restore"
	call ShowRestore()
Case "RestoreData"
	call ShowRestore()
Case "DelBackup"
	call ShowRestore()
Case "Init"
	call ShowInit()
Case "Clear"
	call ShowInit()
Case "SpaceSize"
	call SpaceSize()
Case "ServerInfo"
	Call ServerInfo()
Case "DoSqlMain"
	call DoSqlMain()
Case "DoSql"
	call DoSql()
Case else
	FoundErr=True
	ErrMsg=ErrMsg & "<br><li>错误参数！</li>"
End Select
if FoundErr=True then
	Admin_ShowErr(ErrMsg)
end if

Sub ShowBackup()
if IsSqlDataBase=1 then
	Call SQLUserReadme()
else
%>
<br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border">
<form method="post" action="Admin_Data.asp?action=BackupData">
  <tr class="title"> 
      <td align="center" height="22" valign="middle"><b>备 份 数 据 库</b></td>
  </tr>
  <tr class="tdbg"> 
    <td height="150" align="center" valign="middle">
<%    
if Action="BackupData" then
	call backupdata()
else
%>
        <table cellpadding="3" cellspacing="1" border="0" width="100%">
          <tr> 
            <td width="200" height="33" align="right">备份目录：</td>
            <td><input type="text" size="20" name="bkfolder" value="<%=DataBackPath%>" ReadOnly></td>
            <td>如要修改备份目录，请在此文件第8行处更改。</td>
          </tr>
          <tr> 
            <td width="200" height="34" align="right">备份名称：</td>
            <td height="34"><input type=text size=20 name=bkDBname value="<%=Cl.Format_Time(Now,8)%>_Bak"></td>
            <td height="34">不用输入文件名后缀（默认为“.asa”）。如有同名文件，将覆盖</td>
          </tr>
          <tr align="center"> 
            <td height="40" colspan="3"><input name="submit" type=submit value=" 开始备份 " <%If ObjInstalled=false Then response.Write "disabled"%>></td>
          </tr>
        </table>
<%
	If ObjInstalled=false Then
		Response.Write "<b><font color=red>你的服务器不支持 FSO(Scripting.FileSystemObject)! 不能使用本功能</font></b>"
	end if
end if
%>
    </td>
 </tr>
 </form>
</table>
<%
end if
end sub

sub ShowCompact()
if IsSqlDataBase=1 then
	Call SQLUserReadme()
else
%>
<br>
<table class="border" width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
	<tr class="title"> 
		<td align="center" height="22" valign="middle"><b>数据库在线压缩</b></td>
	</tr>
	<tr class="tdbg">
		<td align="center" height="150" valign="middle"> 
<%    
if Action="CompactData" then
	call CompactData()
else
%>
      <br>
      <br>
      <br>
      压缩前，建议先备份数据库，以免发生意外错误。 <br>
      <br>
      <br>
	<form name="form1" method="post" action="Admin_Data.asp?action=CompactData">
	<input name="submit1" type=submit value=" 压缩主数据库 " <%If ObjInstalled=false Then response.Write "disabled"%>>
	</form>
        <br>
<%
	If ObjInstalled=false Then
		Response.Write "<b><font color=red>你的服务器不支持 FSO(Scripting.FileSystemObject)! 不能使用本功能</font></b>"
	end if
end if
%>
            </td>
          </tr>
        </table>
<%
end if
end sub

sub ShowRestore()
if IsSqlDataBase=1 then
	Call SQLUserReadme()
else
%>
<br>
<table width="100%" class="border" border="0" align="center" cellpadding="0" cellspacing="1">
    <tr class="title"> 
     <td align="center" height="22" valign="middle"><b>数据库恢复</b></td>
    </tr>
    <tr class="tdbg">
       <td align="center" valign="middle"> 
        <%
if Action="RestoreData" then
	call RestoreData()
elseif Action="DelBackup" then
	Call DelBackup()
else
	Dim Fso
	Set Fso=server.createobject(Trim(Cl.Web_Info(13)))
	dim theFolder,theFile,strFileType
	if Not fso.FolderExists(Server.MapPath(DataBackPath)) then
		response.write "找不到数据库备份文件夹（"&DataBackPath&"）！"
		response.end
	end if
	Set theFolder=fso.GetFolder(Server.MapPath(DataBackPath))
	For Each theFile In theFolder.Files
	strFileType=lcase(mid(theFile.Name,instrrev(theFile.Name,".")+1))
	if strFileType="asa" Then
	%>
	<br>
	<fieldset><legend align="center"><strong><%=theFile.Name%></strong></legend>
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border">
        <tr class="tdbg">
          <td align="right">文 件 名：</td>
          <td><font color=#ff6600><%=theFile.Name%></font></td>
          <td align="right">文件大小：</td>
          <td><%=round(theFile.size/1024) & " K"%></td>
          <td align="right">修改时间：</td>
          <td><%=theFile.DateLastModified%></td>
        </tr>
		<tr class="tdbg">
          <td align="right">操作选项：</td>
          <td colspan="5" valign="middle">
  			<form method="Post" action="Admin_Data.asp?action=RestoreData" onsubmit="return confirm('确定恢复数据库吗？，此操作将替换现在使用中的数据库！');">
				<input name="backpath" type="text" id="backpath" value="<%=DataBackPath%>\<%=theFile.Name%>" size=50 maxlength="200" readonly>
				<input name="submit" type="submit" value=" 恢复数据 " <%If ObjInstalled=false Then response.Write "disabled"%>>
			</form>
  			<form method="Post" action="Admin_Data.asp?action=DelBackup" onsubmit="return confirm('确定删除备份文件吗？');">
				<input name="Document" type="text" id="Document" value="<%=DataBackPath%>\<%=theFile.Name%>" size=50 maxlength="200" readonly>
				<input name="Del" type="submit" value=" 删除备份 " <%If ObjInstalled=false Then response.Write "disabled"%>>
			</form>
		</td>
        </tr>
	</table>
	</fieldset>
	<%
	end if
	Next
	If ObjInstalled=false Then
		Response.Write "<b><font color=red>你的服务器不支持 FSO(Scripting.FileSystemObject)! 不能使用本功能</font></b>"
	end if
end if
%>
            </td>
        </tr>
</table>
<%
end if
end sub

sub ShowInit()
if Cl.Admin_Purview(0)<>1 then
	ErrMsg="<br><li>您无此操作权限！</li>"
	Admin_ShowErr(ErrMsg)
    response.end
end if
%>
<script language=javascript>
function CheckAll(form)
{
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.Name != "chkall"&&e.disabled!=true)
       e.checked = form.chkall.checked;
    }
}
</script>
<br>
<table class="border" width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<form action="Admin_Data.asp" method="post" name="form1" id="form1" onSubmit="return confirm('确实要清除选定的表吗？一旦清除将无法恢复！');">
    <tr class="title"> 
      <td align="center" height="22" valign="middle"><b>系 统 初 始 化</b></td>
    </tr>
    <tr class="tdbg"> 
      <td width="100%" height="150" valign="middle">
<%
if Action="Clear" then
	call ClearData()
else
%>      <br>
        <font color="#FF0000"><b>请慎用此功能，因为一旦清除将无法恢复！</b></font><br>
        <br>
        <table width="100%" border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td align="center"><b>请选择你要清空的数据库：</b></td>
          </tr>
<%
Set rs=Cl.Execute("select ChannelID,ChannelName,ChannelItemName,ChannelItemUnit,ChannelDir,IsCreateHtml from Cl_Channel where ChannelID>0 and ChannelID<>6 and ChannelType<=1 order by ModuleID Asc,ChannelID Asc")
Do while not Rs.eof
%>
          <tr>
            <td><fieldset><legend><%=rs("ChannelName")%></legend>
		<table width="100%" border="0" cellpadding="0" cellspacing="5">
          <tr> 
            <td width="20%"> <input name="AllClass" type="checkbox" id="AllClass" value="<%=rs("ChannelID")%>"> <%=rs("ChannelItemName")%>栏目</td>
            <td width="20%"> <input name="AllInfo" type="checkbox" id="AllInfo" value="<%=rs("ChannelID")%>"> 所有<%=rs("ChannelItemName")%></td>
            <td width="20%"> <input name="AllSpecial" type="checkbox" id="AllSpecial" value="<%=rs("ChannelID")%>"> <%=rs("ChannelItemName")%>专题</td>
            <td width="20%"> <input name="AllComment" type="checkbox" id="AllComment" value="<%=rs("ChannelID")%>"> <%=rs("ChannelItemName")%>评论</td>
			<td width="20%"> <input name="AllJs" type="checkbox" id="AllJs" value="<%=rs("ChannelID")%>"> <%=rs("ChannelItemName")%>JS</td>
          </tr>
        </table></fieldset></td>
          </tr>
<%
Rs.MoveNext
Loop
Set Rs=Nothing
%>
          <tr>
            <td><fieldset><legend>其他</legend><table width="100%" border="0" cellpadding="0" cellspacing="5">
          <tr> 
            <td width="20%"> <input name="Announce" type="checkbox" id="Announce" value="yes"> 所有公告</td>
            <td width="20%"> <input name="Ads" type="checkbox" id="Ads" value="yes"> 所有广告</td>
            <td width="20%"> <input name="Vote" type="checkbox" id="Vote" value="yes"> 所有调查</td>
            <td width="20%"> <input name="LinkSite" type="checkbox" id="LinkSite" value="yes"> 友情链接</td>
            <td width="20%"> <input name="LinkClass" type="checkbox" id="LinkClass" value="yes"> 链接栏目</td>
          </tr>
          <tr>
            <td width="20%"> <input name="Label" type="checkbox" id="Label" value="yes"> 自定义标签</td>
            <td width="20%"> <input name="KeyWord" type="checkbox" id="KeyWord" value="yes"> 网站关键字</td>
			<td width="20%"> <input name="Message" type="checkbox" id="Message" value="yes"> 站内短消息</td>
			<td width="20%"> <input name="Guest" type="checkbox" id="Guest" value="yes"> 所有留言</td>
            <td width="20%"> <input name="User" type="checkbox" id="User" value="yes"> 注册用户</td>
          </tr>
          <tr>
            <td width="20%"> <input name="PublicSpecial" type="checkbox" id="PublicSpecial" value="yes"> 公共专题</td>
			<td width="20%"> <input name="AdminLog" type="checkbox" id="AdminLog" value="yes"> 管理事件记录</td>
			<td width="20%"> <input name="SQLLog" type="checkbox" id="SQLLog" value="yes"> SQL事件记录</td>
            <td width="20%"> <input name="UpLoadLog" type="checkbox" id="UpLoadLog" value="yes"> 上传文件记录</td>
            <td width="20%"> <input name="PlusCz" type="checkbox" id="PlusCz" value="yes"> 所有充值卡</td>
          </tr>
        </table></fieldset></td>
          </tr>
          <tr>
            <td align="right"><input type=checkbox name=chkall value=on onclick="CheckAll(this.form)">全选</td>
          </tr>
          <tr>
            <td align="center"><input name="Action" type="hidden" id="Action2" value="Clear">
              <input type="submit" name="Submit" value=" 开始清除数据 "></td>
          </tr>
        </table>
        <%
end if
%>
      </td>
    </tr>
</form>
</table>
<%
end sub

sub SpaceSize()
	on error resume next
%>
<br>
<table class="border" width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
	<tr class="title"> 
		<td align="center" height="22" valign="middle"><b>系统空间占用情况</b></td>
	</tr>
	<tr class="tdbg"> 
		<td width="100%" height="25" valign="middle">
      &nbsp;系统数据占用空间：&nbsp;<img src="../images/bar/bar3.gif" width=<%=drawbar("../Data")%> height=10>&nbsp;<%showSpaceinfo("../Data")%>
		</td>
	</tr>
	<tr class="tdbg"> 
		<td width="100%" height="25" valign="middle">
      &nbsp;备份数据占用空间：&nbsp;<img src="../images/bar/bar3.gif" width=<%=drawbar("Databackup")%> height=10>&nbsp;<%showSpaceinfo("Databackup")%>
		</td>
	</tr>
	<tr class="tdbg"> 
		<td width="100%" height="25" valign="middle">
      &nbsp;生成文件占用空间：&nbsp;<img src="../images/bar/bar3.gif" width=<%=drawbar("../"&Cl.Web_Info(16))%> height=10>&nbsp;<%showSpaceinfo("../"&Cl.Web_Info(16))%>
		</td>
	</tr>
	<tr class="tdbg"> 
		<td width="100%" height="25" valign="middle">
      &nbsp;模板文件占用空间：&nbsp;<img src="../images/bar/bar3.gif" width=<%=drawbar("../Skins")%> height=10>&nbsp;<%showSpaceinfo("../Skins")%>
		</td>
	</tr>
	<tr class="tdbg"> 
		<td width="100%" height="25" valign="middle">
      &nbsp;系统图片占用空间：&nbsp;<img src="../images/bar/bar3.gif" width=<%=drawbar("../Images")%> height=10>&nbsp;<%showSpaceinfo("../Images")%>
		</td>
	</tr>
	<tr class="tdbg"> 
		<td width="100%" height="25" valign="middle">
      &nbsp;上传文件占用空间：&nbsp;<img src="../images/bar/bar3.gif" width=<%=drawbar(Cl.UpLoadDir)%> height=10>&nbsp;<%showSpaceinfo(Cl.UpLoadDir)%>
		</td>
	</tr>
	<tr class="tdbg"> 
		<td width="100%" height="25" valign="middle">
      &nbsp;系统占用空间总计：&nbsp;<img src="../images/bar/bar3.gif" width=500 height=10>&nbsp;<%showSpaceinfo(Cl.WebDir)%>
		</td>
	</tr>
</table>
<%
end sub

sub DoSqlMain()
%>
<br>
  <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" Class="border">
	<form method="POST" action="Admin_Data.asp" id="form1" name="form1">
    <tr> 
      <td height="22" colspan="2" class="title" align="center"><strong>数据库Sql执行程序</strong></td>
	</tr>
    <tr> 
      <td class="tdbg" colspan="2" align="center"><font color="red">(警告：执行语句要万分小心！)</font><br><font color="blue">提示：可批量执行SQL语句，每条SQL语句请用回车分开，但最后一条结尾不要加回车。</font></td>
    </tr>
    <tr> 
      <td width="20%" class="tdbg"><strong>请输入SQL语句：</strong></td>
      <td width="80%" class="tdbg"> 
        <textarea name="StrSql" style="width:100%" rows="12" id="StrSql"></textarea>
		<br><a href="javascript:admin_Size(-5,'StrSql')"><img src="images/minus.gif" unselectable="on" border="0"></a> <a href="javascript:admin_Size(5,'StrSql')"><img src="images/plus.gif" unselectable="on" border="0"></a>
      </td>
    </tr>
    <tr> 
      <td class="tdbg" colspan="2" align="center"><input type="radio" name="DataBase" value="Article" <%if Session("DoSql")<>"User" then response.write "checked"%> >主数据库&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="DataBase" value="User" <%if Session("DoSql")="User" then response.write "checked"%> >用户表数据库</td>
    </tr>
     <tr> 
      <td height="40" colspan="2" align="center" class="tdbg"> 
        <input name="Action" type="hidden" id="Action" value="DoSql">
        <input name="cmdSave" type="submit" id="cmdSave" value="&nbsp;执行SQL语句&nbsp;">
     </td>
    </tr>
</form>
</table>
<%
end sub
%>
</body>
</html>
<%
sub BackupData()
	dim bkfolder,bkdbname,fso
	bkfolder=Trim(request("bkfolder"))
	bkdbname=Trim(request("bkdbname"))
	if bkfolder="" then
		FoundErr=True
		ErrMsg=ErrMsg & "<br><li>请指定备份目录！</li>"
	end if
	if bkdbname="" then
		FoundErr=True
		ErrMsg=ErrMsg & "<br><li>请指定备份文件名</li>"
	end if
	if FoundErr=True then exit sub
	bkfolder=server.MapPath(bkfolder)
	Set Fso=server.createobject(Trim(Cl.Web_Info(13)))
	if fso.FileExists(server.mappath(Dbpath)) then
		If fso.FolderExists(bkfolder)=false Then
			fso.CreateFolder(bkfolder)
		end if
		fso.copyfile server.mappath(Dbpath),bkfolder & "\" & bkdbname & ".asa"
		response.write "<center>备份数据库成功，备份的数据库为 " & bkfolder & "\" & bkdbname & ".asa</center>"
		Cl.SaveAdminLog
		CloseAllObj
	Else
		response.write "<center>找不到源数据库文件，请检查Conn.asp中的配置。</center>"
	End if
end sub

sub CompactData()
	Dim fso, Engine, strDBPath
	DbPath=Server.mappath(Dbpath)
	response.write "主数据库"
	strDBPath = left(dbPath,instrrev(DBPath,"\"))
	on error resume next
	Set Conn = Nothing
	Set Conn_U = Nothing
	Set fso = Server.CreateObject(Trim(Cl.Web_Info(13)))
	If fso.FileExists(dbPath) Then
		Set Engine = CreateObject("JRO.JetEngine")
		Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbpath," Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & "temp.mdb"
		fso.CopyFile strDBPath & "temp.mdb",dbpath
		fso.DeleteFile(strDBPath & "temp.mdb")
		Set fso = Nothing
		Set Engine = Nothing
		response.write "压缩成功!"
		Cl.SaveAdminLog
	Else
		response.write "没有找到!"
	End If
end sub

sub RestoreData()
	dim backpath,fso
	backpath=request.form("backpath")
	if backpath="" then
		FoundErr=True
		ErrMsg=ErrMsg & "<br><li>请指定原备份的数据库文件名！<li>"
		exit sub	
	end if
	backpath=server.mappath(backpath)
	on error resume next
	Set Conn = Nothing
	Set Conn_U = Nothing
	Set Fso=server.createobject(Trim(Cl.Web_Info(13)))
	if fso.fileexists(backpath) then  					
		fso.copyfile Backpath,Server.mappath(Dbpath)
		response.write "成功恢复数据！"
	else
		response.write "找不到指定的备份文件！"	
	end if
	Set Fso=Nothing
	Cl.SaveAdminLog
	CloseAllObj
end sub

Sub DelBackup()
	dim Document,fso
	Document=request.form("Document")
	if Document="" then
		FoundErr=True
		ErrMsg=ErrMsg & "<br><li>请指定备份的数据库文件名！<li>"
		exit sub	
	end if
	Set Fso=server.createobject(Trim(Cl.Web_Info(13)))
	fso.DeleteFile(server.mappath(Document))
	response.write "成功删除数据库！"
	Set Fso=Nothing
	Cl.SaveAdminLog
	CloseAllObj
End sub

sub ClearData()
	dim z,sClass,sInfo,sSpecial,sComment,sJs,sTempID
	sClass		= Replace(Trim(request("AllClass"))," ","")
	sInfo		= Replace(Trim(request("AllInfo"))," ","")
	sSpecial	= Replace(Trim(request("AllSpecial"))," ","")
	sComment	= Replace(Trim(request("AllComment"))," ","")
	sJs			= Replace(Trim(request("AllJs"))," ","")
	z			= 0
	response.write "<div><ol>"
	if sClass<>"" and IsNumeric(Replace(sClass,",","")) then
		sTempID=Split(sClass,",")
		For i=0 to Ubound(sTempID)
			Cl.Execute("delete * from Cl_Class where ChannelID="&Clng(sTempID(i))&"")
			response.write "<li>成功清除了选定频道ID为 "&Clng(sTempID(i))&" 的栏目！<br>"
			response.Flush
			z=z+1
		Next
	end if
	if sInfo<>"" and IsNumeric(Replace(sInfo,",","")) then
		sTempID=Split(sInfo,",")
		For i=0 to Ubound(sTempID)
			Select Case Cl.Execute("Select ModuleID From Cl_Channel Where ChannelID="&Clng(sTempID(i))&"")(0)
			Case 1
				Cl.Execute("delete * from Cl_Article where ChannelID="&Clng(sTempID(i))&"")
			Case 2
				Cl.Execute("delete * from Cl_Soft where ChannelID="&Clng(sTempID(i))&"")
			Case 3
				Cl.Execute("delete * from Cl_Photo where ChannelID="&Clng(sTempID(i))&"")
			Case 4
				Cl.Execute("delete * from Cl_Movie where ChannelID="&Clng(sTempID(i))&"")
			Case 5
				Cl.Execute("delete * from Cl_Product where ChannelID="&Clng(sTempID(i))&"")
			End Select
			response.write "<li>成功清除了选定频道ID为 "&Clng(sTempID(i))&" 的内容！<br>"
			response.Flush
			z=z+1
		Next
	end if
	if sSpecial<>"" and IsNumeric(Replace(sSpecial,",","")) then
		sTempID=Split(sSpecial,",")
		For i=0 to Ubound(sTempID)
			Cl.Execute("delete * from Cl_Special where ChannelID="&Clng(sTempID(i))&"")
			response.write "<li>成功清除了选定频道ID为 "&Clng(sTempID(i))&" 的专题！<br>"
			response.Flush
			z=z+1
		Next
	end if
	if sComment<>"" and IsNumeric(Replace(sComment,",","")) then
		sTempID=Split(sComment,",")
		For i=0 to Ubound(sTempID)
			Cl.Execute("delete * from Cl_Comment where ChannelID="&Clng(sTempID(i))&"")
			response.write "<li>成功清除了选定频道ID为 "&Clng(sTempID(i))&" 的评论！<br>"
			response.Flush
			z=z+1
		Next
	end if
	if sJs<>"" and IsNumeric(Replace(sJs,",","")) then
		sTempID=Split(sJs,",")
		For i=0 to Ubound(sTempID)
			Cl.Execute("delete * from Cl_Js where ChannelID="&Clng(sTempID(i))&"")
			response.write "<li>成功清除了选定频道ID为 "&Clng(sTempID(i))&" 的JS！<br>"
			response.Flush
			z=z+1
		Next
	end if
	if request("PublicSpecial")="yes" then
		Cl.Execute("delete * from Cl_Special where ChannelID=-1 or ChannelID=0")
		response.write "<li>成功清除了选定频道ID为 -1 0 的专题！<br>"
		response.Flush
		z=z+1
	end if
	if request("Announce")="yes" then
		Cl.Execute("delete * from Cl_Announce")
		response.write "<li>成功清除了所有公告！<br>"
		response.Flush
		z=z+1
	end if
	if request("Ads")="yes" then
		Cl.Execute("delete * from Cl_Ads")
		response.write "<li>成功清除了所有广告！<br>"
		response.Flush
		z=z+1
	end if
	if request("Vote")="yes" then
		Cl.Execute("delete * from Cl_Vote")
		response.write "<li>成功清除了所有调查！<br>"
		response.Flush
		z=z+1
	end if
	if request("LinkSite")="yes" then
		Cl.Execute("delete * from Cl_LinkSite")
		response.write "<li>成功清除了所有友情链接！<br>"
		response.Flush
		z=z+1
	end if
	if request("LinkClass")="yes" then
		Cl.Execute("delete * from Cl_LinkClass")
		response.write "<li>成功清除了所有友情链接栏目！<br>"
		response.Flush
		z=z+1
	end if
	if request("Label")="yes" then
		Cl.Execute("delete * from Cl_Label")
		response.write "<li>成功清除了所有自定义标签！<br>"
		response.Flush
		z=z+1
	end if
	if request("KeyWord")="yes" then
		Cl.Execute("delete * from Cl_KeyWord")
		response.write "<li>成功清除了所有网站关键字！<br>"
		response.Flush
		z=z+1
	end if
	if request("Message")="yes" then
		Cl.Execute_U("delete from "&Db.MessageTable&"")
		response.write "<li>成功清除了所有短消息！<br>"
		response.Flush
		z=z+1
	end if
	if request("BookMark")="yes" then
		Cl.Execute("delete * from Cl_BookMark")
		response.write "<li>成功清除了所有收藏！<br>"
		response.Flush
		z=z+1
	end if
	if request("Guest")="yes" then
		Cl.Execute("delete * from Cl_Guest")
		response.write "<li>成功清除了所有留言！<br>"
		response.Flush
		z=z+1
	end if
	if request("User")="yes" then
		Cl.Execute_U("delete from " & Db.UserTable & " where " & Db.UserLevel & "<>1 ")
		response.write "<li>成功清除了所有用户（除管理员）！<br>"
		response.Flush
		z=z+1
	end if
	if request("PlusCz")="yes" then
		Cl.Execute("delete * from Cl_UserCz")
		response.write "<li>成功清除了所有充值卡！<br>"
		response.Flush
		z=z+1
	end if
	if request("AdminLog")="yes" then
		Cl.Execute_L("delete * from Cl_AdminLog where Datediff('d',LogTime,'"&Now&"')>2")
		response.write "<li>成功清除了所有管理LOG记录！<br>"
		response.Flush
		z=z+1
	end if
	if request("SQLLog")="yes" then
		Cl.Execute_L("delete * from Cl_SQLLog")
		response.write "<li>成功清除了所有SQLLOG记录！<br>"
		response.Flush
		z=z+1
	end if
	if request("UpLoadLog")="yes" then
		Cl.Execute("delete * from Cl_UpFileLog")
		response.write "<li>成功清除了所有上传LOG记录！<br>"
		response.Flush
		z=z+1
	end if

	response.write "</ol></div>"
	if z>0 then
		response.write "<font color=#0000ff><b>" &cstr(z) & "个数据库被清空，你可以开始添加新内容。</b></font>"
	else
		response.write "<font color=#0000ff><b>你没有选择任何数据库，0个数据库被清空。</b></font>"
	end if
	Cl.SaveAdminLog
	CloseAllObj
end sub

Sub ShowSpaceInfo(drvpath)
	dim fso,d,size
	set fso=server.createobject(Trim(Cl.Web_Info(13))) 		
	drvpath=server.mappath(drvpath) 		 		
	set d=fso.getfolder(drvpath) 		
	size=d.size
	response.write "<font face=verdana>" & Cl.GetSize(size,"b") & "</font>"
End Sub	

Function Drawbar(drvpath)
	dim fso,drvpathroot,d,size,totalsize,barsize
	set fso=server.createobject(Trim(Cl.Web_Info(13)))
	drvpathroot=server.mappath(Cl.WebDir)
	set d=fso.getfolder(drvpathroot)
	totalsize=d.size
	
	drvpath=server.mappath(drvpath) 		
	set d=fso.getfolder(drvpath)
	size=d.size
	
	barsize=cint((size/totalsize)*500)
	Drawbar=barsize
End Function 	

sub SQLUserReadme()
%>
		<table border="0"  cellspacing="1" cellpadding="5" height="1" align=center width="95%" class="Border">			<tr>
  					<td height=25 class="title">
  					&nbsp;&nbsp;SQL数据库数据处理说明
  					</td>
  				</tr> 	
 				<tr>
 					<td class="tdbg"> 			
 			<blockquote>
<B>一、备份数据库</B>
<BR><BR>
1、打开SQL企业管理器，在控制台根目录中依次点开Microsoft SQL Server<BR>
2、SQL Server组-->双击打开你的服务器-->双击打开数据库目录<BR>
3、选择你的数据库名称（如网站数据库Cl_Web）-->然后点上面菜单中的工具-->选择备份数据库<BR>
4、备份选项选择完全备份，目的中的备份到如果原来有路径和名称则选中名称点删除，然后点添加，如果原来没有路径和名称则直接选择添加，接着指定路径和文件名，指定后点确定返回备份窗口，接着点确定进行备份
<BR><BR>
<B>二、还原数据库</B><BR><BR>
1、打开SQL企业管理器，在控制台根目录中依次点开Microsoft SQL Server<BR>
2、SQL Server组-->双击打开你的服务器-->点图标栏的新建数据库图标，新建数据库的名字自行取<BR>
3、点击新建好的数据库名称（如网站数据库Cl_Web）-->然后点上面菜单中的工具-->选择恢复数据库<BR>
4、在弹出来的窗口中的还原选项中选择从设备-->点选择设备-->点添加-->然后选择你的备份文件名-->添加后点确定返回，这时候设备栏应该出现您刚才选择的数据库备份文件名，备份号默认为1（如果您对同一个文件做过多次备份，可以点击备份号旁边的查看内容，在复选框中选择最新的一次备份后点确定）-->然后点击上方常规旁边的选项按钮<BR>
5、在出现的窗口中选择在现有数据库上强制还原，以及在恢复完成状态中选择使数据库可以继续运行但无法还原其它事务日志的选项。在窗口的中间部位的将数据库文件还原为这里要按照你SQL的安装进行设置（也可以指定自己的目录），逻辑文件名不需要改动，移至物理文件名要根据你所恢复的机器情况做改动，如您的SQL数据库装在D:\Program Files\Microsoft SQL Server\MSSQL\Data，那么就按照您恢复机器的目录进行相关改动改动，并且最后的文件名最好改成您当前的数据库名（如原来是Cl_Web_data.mdf，现在的数据库是Cl_Web，就改成Cl_Web_data.mdf），日志和数据文件都要按照这样的方式做相关的改动（日志的文件名是*_log.ldf结尾的），这里的恢复目录您可以自由设置，前提是该目录必须存在（如您可以指定d:\sqldata\Cl_Web_data.mdf或者d:\sqldata\Cl_Web_log.ldf），否则恢复将报错<BR>
6、修改完成后，点击下面的确定进行恢复，这时会出现一个进度条，提示恢复的进度，恢复完成后系统会自动提示成功，如中间提示报错，请记录下相关的错误内容并询问对SQL操作比较熟悉的人员，一般的错误无非是目录错误或者文件名重复或者文件名错误或者空间不够或者数据库正在使用中的错误，数据库正在使用的错误您可以尝试关闭所有关于SQL窗口然后重新打开进行恢复操作，如果还提示正在使用的错误可以将SQL服务停止然后重起看看，至于上述其它的错误一般都能按照错误内容做相应改动后即可恢复<BR><BR>

<B>三、收缩数据库</B><BR><BR>
一般情况下，SQL数据库的收缩并不能很大程度上减小数据库大小，其主要作用是收缩日志大小，应当定期进行此操作以免数据库日志过大<BR>
1、设置数据库模式为简单模式：打开SQL企业管理器，在控制台根目录中依次点开Microsoft SQL Server-->SQL Server组-->双击打开你的服务器-->双击打开数据库目录-->选择你的数据库名称（如网站数据库Cl_Web）-->然后点击右键选择属性-->选择选项-->在故障还原的模式中选择“简单”，然后按确定保存<BR>
2、在当前数据库上点右键，看所有任务中的收缩数据库，一般里面的默认设置不用调整，直接点确定<BR>
3、<font color=blue>收缩数据库完成后，建议将您的数据库属性重新设置为标准模式，操作方法同第一点，因为日志在一些异常情况下往往是恢复数据库的重要依据</font>
<BR><BR>

<B>四、设定每日自动备份数据库</B><BR><BR>
<font color=red>强烈建议有条件的用户进行此操作！</font><BR>
1、打开企业管理器，在控制台根目录中依次点开Microsoft SQL Server-->SQL Server组-->双击打开你的服务器<BR>
2、然后点上面菜单中的工具-->选择数据库维护计划器<BR>
3、下一步选择要进行自动备份的数据-->下一步更新数据优化信息，这里一般不用做选择-->下一步检查数据完整性，也一般不选择<BR>
4、下一步指定数据库维护计划，默认的是1周备份一次，点击更改选择每天备份后点确定<BR>
5、下一步指定备份的磁盘目录，选择指定目录，如您可以在D盘新建一个目录如：d:\databak，然后在这里选择使用此目录，如果您的数据库比较多最好选择为每个数据库建立子目录，然后选择删除早于多少天前的备份，一般设定4－7天，这看您的具体备份要求，备份文件扩展名一般都是bak就用默认的<BR>
6、下一步指定事务日志备份计划，看您的需要做选择-->下一步要生成的报表，一般不做选择-->下一步维护计划历史记录，最好用默认的选项-->下一步完成<BR>
7、完成后系统很可能会提示Sql Server Agent服务未启动，先点确定完成计划设定，然后找到桌面最右边状态栏中的SQL绿色图标，双击点开，在服务中选择Sql Server Agent，然后点击运行箭头，选上下方的当启动OS时自动启动服务<BR>
8、这个时候数据库计划已经成功的运行了，他将按照您上面的设置进行自动备份
<BR><BR>
修改计划：<BR>
1、打开企业管理器，在控制台根目录中依次点开Microsoft SQL Server-->SQL Server组-->双击打开你的服务器-->管理-->数据库维护计划-->打开后可看到你设定的计划，可以进行修改或者删除操作
<BR><BR>
<B>五、数据的转移（新建数据库或转移服务器）</B><BR><BR>
一般情况下，最好使用备份和还原操作来进行转移数据，在特殊情况下，可以用导入导出的方式进行转移，这里介绍的就是导入导出方式，导入导出方式转移数据一个作用就是可以在收缩数据库无效的情况下用来减小（收缩）数据库的大小，本操作默认为您对SQL的操作有一定的了解，如果对其中的部分操作不理解，可以咨询动网相关人员或者查询网上资料<BR>
1、将原数据库的所有表、存储过程导出成一个SQL文件，导出的时候注意在选项中选择编写索引脚本和编写主键、外键、默认值和检查约束脚本选项<BR>
2、新建数据库，对新建数据库执行第一步中所建立的SQL文件<BR>
3、用SQL的导入导出方式，对新数据库导入原数据库中的所有表内容<BR>
 			</blockquote> 	
 					</td>
 				</tr>
 			</table>
<%
end sub

Sub DoSql()
	Cl.SaveAdminLog
	Dim StrSql,DataBase,StrMsg
	StrSql=Replace(Request("StrSql"),vbcrlf,"@$@$@")
	DataBase=Cl.Checkstr(Request("DataBase"))
	if StrSql="" then
		Call Cl.OutMsg("执行SQL语句失败，命令不能为空！","javascript:history.go(-1)")
	else
		if Instr(StrSql,"@$@$@")>0 then
			StrSql=Split(StrSql,"@$@$@")
			for i=0 to Ubound(StrSql)
				On Error Resume Next
				if DataBase="User" then
					Cl.Execute_U(StrSql(i))
				else
					Cl.Execute(StrSql(i))
				end if
				if Err then
					StrMsg=StrMsg & "<li><font Color=Red>执行SQL语句“"&StrSql(i)&"”失败，原因："&Err.Description&"，请检查SQL语法是否正确！</Font></li>" & vbcrlf
					Err.Clear
				else
					StrMsg=StrMsg & "<li><font Color=blue>执行SQL语句“"&StrSql(i)&"”成功！</Font></li>" & vbcrlf
					'Call OutMsg("执行SQL语句成功！","Admin_Data.asp?Action=DoSqlMain")
				end if
			Next
			Session("DoSql")=DataBase
			Response.Write Cl.ShowSuc(StrMsg)
		else
			On Error Resume Next
			if DataBase="User" then
				Cl.Execute_U(StrSql)
			else
				Cl.Execute(StrSql)
			end if
			if Err then
				Err.Clear
				Call Cl.OutMsg("执行SQL语句失败，原因："&Err.Description&"，请检查SQL语法是否正确！","javascript:history.go(-1)")
			else
				Session("DoSql")=DataBase
				Call Cl.OutMsg("执行SQL语句成功！","Admin_Data.asp?Action=DoSqlMain")
			end if
		end if
	end if
end sub

Sub ServerInfo()
'on error resume next
%>
<br>
<script language="JScript" runat="server">
function getJVer(){
  //获取JScript 版本
  return ScriptEngineMajorVersion() +"."+ScriptEngineMinorVersion()+"."+ ScriptEngineBuildVersion();
}
</script>
<table border="0" cellspacing="1" cellpadding="5" align=center class="Border">
	<tr class="title">
		<td height=25 colspan=5 align=center>系统信息检测情况</td>
	</tr>
	<tr class="tdbg">
		<td width="25%" height=23>当前网站版本</td>
		<td width="24%">
		<a href="http://www.aspoo.cn/Soft/" target=_blank><%=Cl.Web_Version(1)%></a></td>
		<td width="2%"></td>
		<td width="25%">数据库类型：</td>
		<td width="24%">
		<%
		If IsSqlDataBase = 1 Then
			Response.Write "Sql Server"
		Else
			Response.Write "Access"
		End If
		%></td>
	</tr>
	<tr class="title">
		<td  width="100%" height=23 colspan=5 align=center>服务器相关信息</td>
	</tr>
	<tr class="tdbg">
		<td width="25%" height=23>服务器名/IP</td>
		<td width="24%">
		名：<%=Request.ServerVariables("SERVER_NAME")%><br>
		IP：<%=Request.ServerVariables("LOCAL_ADDR")%>
		</td>
		<td width="8" ></td>
		<td width="25%">服务器操作系统</td>
		<td width="24%"><%=GetSysInfo(0)%></td>
	</tr>
	<tr class="tdbg">
		<td width="25%" height=23>服务器脚本解释引擎</td>
		<td width="24%"><%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %><br><%="JScript/" & getjver()%></td>
		<td width="2%"></td>
		<td width="25%">IIS 版本</td>
		<td width="24%"><%=Request.ServerVariables("SERVER_SOFTWARE")%></td>
	</tr>
	<tr class="tdbg">
		<td width="25%" height=23>脚本超时时间</td>
		<td width="24%"><%=Server.ScriptTimeout%> 秒</td>
		<td width="8" ></td>
		<td width="25%">服务器CPU数量</td>
		<td width="24%"><%=GetSysInfo(1)%> 个</td>
	</tr>
	<tr class="tdbg">
		<td width="100%" height=23 colspan=5>
		本文件路径：<%=Server.Mappath("Admin_data.asp")%>
		</td>
	</tr>
	<tr class="title">
		<td width="100%" colspan=5 height=23 align=center>主要组件信息</td>
	</tr>
	<tr class="tdbg">
		<td width="25%" height=23>FSO文件读写</td>
		<td width="24%">
		<%
		If ObjInstalled Then
			Response.Write "<font color=green><b>√</b></font>"
		Else
			Response.Write "<font color=red><b>×</b></font>"
		End If
		%>
		</td>
		<td width="2%"></td>
		<td width="25%">Jmail发送邮件支持</td>
		<td width="24%">
		<%
		If Cl.ChkObjInstalled("JMail.SmtpMail") Then
			Response.Write "<font color=green><b>√</b></font>"
		Else
			Response.Write "<font color=red><b>×</b></font>"
		End If
		%></td>
	</tr>
	<tr class="tdbg">
		<td width="25%" height=23>CDONTS发送邮件支持</td>
		<td width="24%">
		<%
		If Cl.ChkObjInstalled("CDONTS.NewMail") Then
			Response.Write "<font color=green><b>√</b></font>"
		Else
			Response.Write "<font color=red><b>×</b></font>"
		End If
		%>
		</td>
		<td width="8" ></td>
		<td width="25%">AspEmail发送邮件支持</td>
		<td width="24%">
		<%
		If Cl.ChkObjInstalled("Persits.MailSender") Then
			Response.Write "<font color=green><b>√</b></font>"
		Else
			Response.Write "<font color=red><b>×</b></font>"
		End If
		%>
		</td>
	</tr>
	<tr class="tdbg">
		<td width="25%" height=23>无组件上传支持</td>
		<td width="24%">
		<%
		If Cl.ChkObjInstalled("Adodb." & "Str" & "eam") Then
			Response.Write "<font color=green><b>√</b></font>"
		Else
			Response.Write "<font color=red><b>×</b></font>"
		End If
		%>
		</td>
		<td width="2%"></td>
		<td width="25%">AspUpload上传支持</td>
		<td width="24%">
		<%
		If Cl.ChkObjInstalled("Persits.Upload") Then
			Response.Write "<font color=green><b>√</b></font>"
		Else
			Response.Write "<font color=red><b>×</b></font>"
		End If
		%>
		</td>
	</tr>
	<tr class="tdbg">
		<td width="25%" height=23>SA-FileUp上传支持</td>
		<td width="24%">
		<%
		If Cl.ChkObjInstalled("SoftArtisans.FileUp") Then
			Response.Write "<font color=green><b>√</b></font>"
		Else
			Response.Write "<font color=red><b>×</b></font>"
		End If
		%>
		</td>
		<td width="8" ></td>
		<td width="25%">DvFile-Up上传支持</td>
		<td width="24%">
		<%
		If Cl.ChkObjInstalled("DvFile.Upload") Then
			Response.Write "<font color=green><b>√</b></font>"
		Else
			Response.Write "<font color=red><b>×</b></font>"
		End If
		%>
		</td>
	</tr>
	<tr class="tdbg">
		<td width="25%" height=23>CreatePreviewImage生成预览图片</td>
		<td width="24%">
		<%
		If Cl.ChkObjInstalled("CreatePreviewImage.cGvbox") Then
			Response.Write "<font color=green><b>√</b></font>"
		Else
			Response.Write "<font color=red><b>×</b></font>"
		End If
		%>
		</td>
		<td width="2%"></td>
		<td width="25%">AspJpeg生成预览图片</td>
		<td width="24%">
		<%
		If Cl.ChkObjInstalled("Persits.Jpeg") Then
			Response.Write "<font color=green><b>√</b></font>"
		Else
			Response.Write "<font color=red><b>×</b></font>"
		End If
		%>
		</td>
	</tr>
	<tr class="tdbg">
		<td width="25%" height=23>SA-ImgWriter生成预览图片</td>
		<td width="24%">
		<%
		If Cl.ChkObjInstalled("SoftArtisans.ImageGen") Then
			Response.Write "<font color=green><b>√</b></font>"
		Else
			Response.Write "<font color=red><b>×</b></font>"
		End If
		%>
		</td>
		<td width="8" ></td>
		<td width="25%"></td>
		<td width="24%"></td>
	</tr>
	<FORM action="Admin_Data.asp?action=ServerInfo" method=post id=form1 name=form1>
	<tr class="tdbg">
		<td width="100%" height=23 colspan=5>
		<%
		If Request("classname")<>"" Then
			If Cl.ChkObjInstalled(Request("classname")) Then
				Response.Write "<font color=green><b>本服务器支持 "&Request("classname")&" 组件</b></font><BR>"
			Else
				Response.Write "<font color=red><b>本服务器不支持 "&Request("classname")&" 组件</b></font><BR>"
			End If
		End If
		%>
		其它组件支持情况查询：<input class=input type=text value="" name="classname" size=30>
		<INPUT type=submit value="查 询" id=submit1 name=submit1>
		输入组件的 ProgId 或 ClassId
		</td>
	</tr>
	</form>
</table>
<%Response.Flush%>
<table border="0" cellspacing="1" cellpadding="5" height="1" align=center width="95%" class="Border">
	<tr class="tdbg">
		<td  width="100%" colspan=5 height=23>
		<B>磁盘文件操作速度测试</B>
		</td>
	</tr>
	<tr class="tdbg">
		<td width="100%" colspan=5 height=23>
<%
	Response.Write "正在重复创建、写入和删除文本文件50次..."

	Dim thetime3,tempfile,iserr,t1,FsoObj,tempfileOBJ,t2
	Set FsoObj=Server.CreateObject(Trim(Cl.Web_Info(13)))
	on error resume next
	iserr=False
	t1=timer
	tempfile=server.MapPath("./") & "\aspchecktest.txt"
	For i=1 To 50
		Err.Clear
		Set tempfileOBJ = FsoObj.CreateTextFile(tempfile,true)
		If Err <> 0 Then
			Response.Write "创建文件错误！"
			iserr=True
			Err.Clear
			Exit For
		End If
		tempfileOBJ.WriteLine "Only for test. Ajiang ASPcheck"
		If Err <> 0 Then
			Response.Write "写入文件错误！"
			iserr=True
			Err.Clear
			Exit For
		End If
		tempfileOBJ.close
		Set tempfileOBJ = FsoObj.GetFile(tempfile)
		tempfileOBJ.Delete 
		If Err <> 0 Then
			Response.Write "删除文件错误！"
			iserr=True
			Err.Clear
			Exit For
		end if
		Set tempfileOBJ=Nothing
	Next
	t2=timer
	If Not iserr Then
		thetime3=cstr(int(( (t2-t1)*10000 )+0.5)/10)
		Response.Write "...已完成！本服务器执行此操作共耗时 <font color=red>" & thetime3 & " 毫秒</font>"
	End If
%>
		</td>
	</tr>
</table>
<%Response.Flush%>
<table border="0" cellspacing="1" cellpadding="5" height="1" align=center width="95%" class="Border">
	<tr class="tdbg">
		<td width="100%" colspan=5 height=23>
		<B>ASP脚本解释和运算速度测试</B>
		</td>
	</tr>
	<tr class="tdbg">
		<td  width="100%" colspan=5 height=23>
<%

	Response.Write "整数运算测试，正在进行50万次加法运算..."
	dim lsabc,thetime,thetime2
	t1=timer
	for i=1 to 500000
		lsabc= 1 + 1
	next
	t2=timer
	thetime=cstr(int(( (t2-t1)*10000 )+0.5)/10)
	Response.Write "...已完成！共耗时 <font color=red>" & thetime & " 毫秒</font><br>"


	Response.Write "浮点运算测试，正在进行20万次开方运算..."
	t1=timer
	for i=1 to 200000
		lsabc= 2^0.5
	next
	t2=timer
	thetime2=cstr(int(( (t2-t1)*10000 )+0.5)/10)
	Response.Write "...已完成！共耗时 <font color=red>" & thetime2 & " 毫秒</font><br>"
%>
		</td>
	</tr>
</table>
<%
end sub

Function GetSysInfo(strtype)
	on error resume next
	Dim WshShell,WshSysEnv
	Set WshShell = server.CreateObject("WScr" & "ipt" & "." & "Sh" & "ell")
	Set WshSysEnv = WshShell.Environment("SYSTEM")
	if strtype=1 then
		GetSysInfo=cstr(WshSysEnv("NUMBER_OF_PROCESSORS"))
	elseif strtype=2 then
		GetSysInfo=cstr(WshSysEnv("PROCESSOR_IDENTIFIER"))
	else
		GetSysInfo=cstr(WshSysEnv("OS"))
		if Request.ServerVariables("OS")="" then GetSysInfo="Windows Server 2003"
	end if
end Function
%>
<%
'<!--
'┌───────────────────────────────────────────────────────┐
'│														 │
'│		CreateLive CMS Version 3.1						 │
'│　　　　　　　　				Powered by Aspoo.CN	 	 │
'│　		　　　　　　　　　　						 │
'│　	邮箱: aspoo@126.com			Info@aspoo.cn　　	 │
'│		ＱＱ: 3315263				596197794			 │
'│		网站: www.aspoo.cn			www.aspoo.com		 │
'│		论坛: bbs.aspoo.cn			bbs.aspoo.com		 │
'│														 │
'│	Copyright (C) 2005 Aspoo.CN All Rights Reserved.	 │
'└───────────────────────────────────────────────────────┘
'-->
%>