Check.asp
资源名称:shop2.rar [点击查看]
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:6k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
DOS
- <!--#include file="conn.asp"-->
- <%
- dim cls
- if session("admin")="" then
- Response.Redirect("admin.asp")
- else
- if session("flag")<>"0" then
- cls = Instr(session("flag"), "datafig")
- if cls <= 0 then
- %>
- <script language="javascript">
- if (confirm("您的操作权限不够,系统拒绝你的访问,请点确定返回,或者点取消退出重新登录"))
- location.href="login.asp";
- else
- location.href="index.asp";
- </script>
- <%
- end if
- end if
- end if
- %>
- <title>网软天下购物系统,网络购物系统,asp购物系统,免费购物系统,网上商城购物系统。-空间查看</title>
- <link href="images/css.css" rel="stylesheet" type="text/css">
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <BODY>
- <table class="tableBorder" width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
- <tr>
- <td colspan="4" align="center" background="images/admin_bg_1.gif"><b><font color="#ffffff">空间的使用情况</font></b>
- <%
- 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=(size1024)
- showsize=size & " KB"
- end if
- if size>1024 then
- size=(size/1024)
- showsize=size & " MB"
- end if
- if size>1024 then
- size=(size/1024)
- showsize=size & " 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("pic")
- drvpath=left(drvpath,(instrrev(drvpath,"")-1))
- set d=fso.getfolder(drvpath)
- if method="All" then
- size=d.size
- elseif 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=(size1024)
- showsize=size & " KB"
- end if
- if size>1024 then
- size=(size/1024)
- showsize=size & " MB"
- end if
- if size>1024 then
- size=(size/1024)
- showsize=size & " 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("pic")
- drvpathroot=left(drvpathroot,(instrrev(drvpathroot,"")-1))
- set d=fso.getfolder(drvpathroot)
- totalsize=d.size
- drvpath=server.mappath(drvpath)
- set d=fso.getfolder(drvpath)
- size=d.size
- barsize=cint((size/totalsize)*400)
- Drawbar=barsize
- End Function
- Function Drawspecialbar()
- dim fso,drvpathroot,d,fc,f1,size,totalsize,barsize
- set fso=server.createobject("scripting.filesystemobject")
- drvpathroot=server.mappath("pic")
- 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)*400)
- Drawspecialbar=barsize
- End Function
- %>
- </td>
- </tr>
- <tr>
- <td valign=top bgcolor=#fbf4f4><table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td><%
- fsorank=1
- if fsorank=1 then
- %>
- <%Function GetPP
- dim s
- s=Request.ServerVariables("path_translated")
- GetPP=left(s,instrrev(s,"",len(s)))
- End function
- if sPP="" then sPP=GetPP
- if right(sPP,1)<>"" then sPP=sPP&""
- set fso=server.createobject("scripting.filesystemobject")
- Set f = fso.GetFolder(sPP)
- Set fc = f.SubFolders
- i=1
- i2=1
- For Each f in fc%>
- <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">
- <tr bgcolor="#ffffff">
- <td width="20%" bgcolor="#fbf4f4"> <%=f.name%>文件夹</td>
- <td width="80%" bgcolor="#fbf4f4"> <img src="admin/images/edit/bar<%=i2%>.gif" width=<%=drawbar(""&f.name&"")%> height=10>
- <%showSpaceinfo(""&f.name&"")%></td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="2"></td>
- </tr>
- </table>
- <%i=i+1
- if i2<10 then
- i2=i2+1
- else
- i2=1
- end if
- Next%>
- <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">
- <tr bgcolor="#ffffff">
- <td width="20%" bgcolor="#fbf4f4"> 程序文件占用空间</td>
- <td width="80%" bgcolor="#fbf4f4"> <img src="admin/images/edit/bar8.gif" width=<%=drawspecialbar%> height=10>
- <%showSpecialSpaceinfo("Program")%></td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="2"></td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">
- <tr bgcolor="#ffffff">
- <td width="20%" bgcolor="#fbf4f4"> 系统占用空间总计</td>
- <td width="80%" bgcolor="#fbf4f4"> <img src="admin/images/edit/bar9.gif" width=400 height=10>
- <%showspecialspaceinfo("All")%>
- </td>
- </tr>
- </table>
- <%
- else
- response.write "<br><li>本功能已经被关闭"
- end if
- %>
- </td>
- </tr>
- </table></td>
- </tr>
- </table>
- </body>
- </html>
English
