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

📄 data.asp

📁 网上流行的MOVE站点
💻 ASP
字号:
<!--#include file="security.asp"-->
<%
if session("flag")>1 then
response.write "<br><p align=center>您没有操作的权限</p>"
response.end
end if
%>
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<title>系统状态</title>
<style>
td{font-size:9pt;line-height:160%} 
body{font-size:9pt;line-height:160%} 

a:link       { color: #0033CC; text-decoration: none }
a:visited    { color: #0033CC; text-decoration: none }
a:active     { color: #FF0000; text-decoration: none }
a:hover      { color: #000000; text-decoration: underline}
</style>
</head>
<body bgcolor="#799AE1" leftmargin="0" topmargin="17" marginwidth="0" marginheight="0" style="background-color:#799AE1;">
<%
	Sub ShowSpaceInfo(drvpath)
 		dim fso,d,size,showsize
 		set fso=server.createobject("scripting.filesystemobject") 		
 		drvpath=server.mappath(drvpath) 		 		
 		set d=fso.getfolder(drvpath) 		
 		size=d.size
 		showsize=size & "&nbsp;Byte" 
 		if size>1024 then
 		   size=(size\1024)
 		   showsize=size & "&nbsp;KB"
 		end if
 		if size>1024 then
 		   size=(size/1024)
 		   showsize=formatnumber(size,2) & "&nbsp;MB"		
 		end if
 		if size>1024 then
 		   size=(size/1024)
 		   showsize=formatnumber(size,2) & "&nbsp;GB"	   
 		end if   
 		response.write "<font face=verdana>" & showsize & "</font>"
 	End Sub	
 	
 	Sub Showspecialspaceinfo(method)
 		dim fso,d,fc,f1,size,showsize,drvpath 		
 		set fso=server.createobject("scripting.filesystemobject")
 		drvpath=server.mappath(".\")
 		set d=fso.getfolder(drvpath) 		
 		
 		if method="All" then 		
 			size=d.size
 		end if	
 		
 		showsize=size & "&nbsp;Byte" 
 		if size>1024 then
 		   size=(size\1024)
 		   showsize=size & "&nbsp;KB"
 		end if
 		if size>1024 then
 		   size=(size/1024)
 		   showsize=formatnumber(size,2) & "&nbsp;MB"		
 		end if
 		if size>1024 then
 		   size=(size/1024)
 		   showsize=formatnumber(size,2) & "&nbsp;GB"	   
 		end if   
 		response.write "<font face=verdana>" & showsize & "</font>"
 	end sub 	 
 		 	
 	Sub Showspecialspaceinfo2(method)
 		dim fso,d,fc,f1,size,showsize,drvpath 		
 		set fso=server.createobject("scripting.filesystemobject")
 		drvpath=server.mappath("data")
 		drvpath=left(drvpath,(instrrev(drvpath,"\")-1))
 		set d=fso.getfolder(drvpath) 		
 		
 		if method="Program" then
 			set fc=d.Files
 			for each f1 in fc
 				size=size+f1.size
 			next	
 		end if	
 		
 		showsize=size & "&nbsp;Byte" 
 		if size>1024 then
 		   size=(size\1024)
 		   showsize=size & "&nbsp;KB"
 		end if
 		if size>1024 then
 		   size=(size/1024)
 		   showsize=formatnumber(size,2) & "&nbsp;MB"		
 		end if
 		if size>1024 then
 		   size=(size/1024)
 		   showsize=formatnumber(size,2) & "&nbsp;GB"	   
 		end if   
 		response.write "<font face=verdana>" & showsize & "</font>"
 	end sub 
 	
 	Function Drawbar(drvpath)
 		dim fso,drvpathroot,d,size,totalsize,barsize
 		set fso=server.createobject("scripting.filesystemobject")
 		drvpathroot=server.mappath(".\")
 		drvpathroot=left(drvpathroot,(instrrev(drvpathroot,"\")-1))
 		set d=fso.getfolder(drvpathroot)
 		totalsize=d.size
 		
 		drvpath=server.mappath(".\") 		
 		set d=fso.getfolder(drvpath)
 		size=d.size
 		
 		barsize=cint((size/totalsize)*350)
 		Drawbar=barsize
 	End Function 	
 	
 	Function Drawspecialbar()
 		dim fso,drvpathroot,d,fc,f1,size,totalsize,barsize
 		set fso=server.createobject("scripting.filesystemobject")
 		drvpathroot=server.mappath("d")
 		drvpathroot=left(drvpathroot,(instrrev(drvpathroot,"\")-1))
 		set d=fso.getfolder(drvpathroot)
 		totalsize=d.size
 		
 		set fc=d.files
 		for each f1 in fc
 			size=size+f1.size
 		next	
 		
 		barsize=cint((size/totalsize)*350)
 		Drawspecialbar=barsize
 	End Function 	
%>
<table width="95%" border="0" align="center" cellspacing="1" bgcolor="#555555" style="border-collapse: collapse">
  <tr>
      
    <td width="100%" height="31" background="../IMG/radio_bg.gif">
<div align="center"><b>系统空间占用情况</b></div></td>
    </tr>
    <tr>
      <td width="100%" bgcolor="#FFFFFF">      
      <blockquote><br>
 			<img src=../img/dot_orange.jpg border=0>管理中心占用空间:&nbsp;<img src="../img/bg2c.gif" width=5 height=10><img src=../img/bg2r.png height=10 border=0>&nbsp;<%showSpecialSpaceinfo2("Program")%><br><br>
 			<img src=../img/dot_orange.jpg border=0>系统图片占用空间:&nbsp;<img src="../img/bg2c.gif" width=30 height=10><img src=../img/bg2r.png height=10 border=0>&nbsp;<%showSpaceinfo("../")%><br><br>
 			<img src=../img/dot_orange.jpg border=0>数据库占用空间:&nbsp;<img src="../img/bg2c.gif" width=80 height=10><img src=../img/bg2r.png height=10 border=0>&nbsp;<%showSpaceinfo("../date")%><br><br>
        <img src=../img/dot_orange.jpg border=0>上传图片占用空间:&nbsp;<img src="../img/bg2c.gif" width=200 height=10><img src=../img/bg2r.png height=10 border=0>&nbsp;  
        <%showSpaceinfo("../tupian")%>
        <br>
        <br>
        <img src=../img/dot_orange.jpg border=0>admin管理占用空间:&nbsp;<img src="../img/bg2c.gif" width=100 height=10><img src=../img/bg2r.png height=10 border=0> 
        <%showspecialspaceinfo("All")%> 
      </blockquote></td>
    </tr>
    </table>
  </body>
</html>
</body>
</html>

⌨️ 快捷键说明

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