千年免费电影系统 V3.0版 在程序上借鉴了很多优秀电影系统的功能

源代码在线查看: webdata.asp

软件大小: 2720 K
上传用户: liyusheng1983
关键词: 3.0 电影
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				
				
								if session("flag")>1 then
				response.write "您没有操作的权限"
				response.end
				end if
				%>
				
				
				
				系统状态
				
				
				
				
				
									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 & " Byte" 
				 		if size>1024 then
				 		   size=(size\1024)
				 		   showsize=size & " KB"
				 		end if
				 		if size>1024 then
				 		   size=(size/1024)
				 		   showsize=formatnumber(size,2) & " MB"		
				 		end if
				 		if size>1024 then
				 		   size=(size/1024)
				 		   showsize=formatnumber(size,2) & " GB"	   
				 		end if   
				 		response.write "" & showsize & ""
				 	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 & " Byte" 
				 		if size>1024 then
				 		   size=(size\1024)
				 		   showsize=size & " KB"
				 		end if
				 		if size>1024 then
				 		   size=(size/1024)
				 		   showsize=formatnumber(size,2) & " MB"		
				 		end if
				 		if size>1024 then
				 		   size=(size/1024)
				 		   showsize=formatnumber(size,2) & " GB"	   
				 		end if   
				 		response.write "" & showsize & ""
				 	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 & " Byte" 
				 		if size>1024 then
				 		   size=(size\1024)
				 		   showsize=size & " KB"
				 		end if
				 		if size>1024 then
				 		   size=(size/1024)
				 		   showsize=formatnumber(size,2) & " MB"		
				 		end if
				 		if size>1024 then
				 		   size=(size/1024)
				 		   showsize=formatnumber(size,2) & " GB"	   
				 		end if   
				 		response.write "" & showsize & ""
				 	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 	
				%>
				
				   
				    系统空间占用情况
				  
				   
				     管理中心占用空间:   
				        
				        
				        
				         电影数据占用空间:   
				        
				        
				        
				         系统图片占用空间:   
				        
				        
				        
				         上传图片占用空间:   
				        
				        
				        
				         系统占用空间总计:  
				        
				      
				  
				
				
							

相关资源