Admin_Probe.asp
资源名称:haohj.rar [点击查看]
上传用户:angela
上传日期:2022-05-11
资源大小:853k
文件大小:21k
源码类别:
外挂编程
开发平台:
ASP/ASPX
- <!--#include file="../Inc/Cls_Config.asp"-->
- <%
- if session("LoginName")="" then
- Response.Redirect "/"
- Response.End
- end if
- '=====================================================================
- ' 作者声明:转载请保留版权信息,鄙视不要脸的人
- '=====================================================================
- ' 程序名称:蓝宇网络发布系统
- ' 程序作者:蓝宇 QQ:18159079 ╲、随心゛ QQ:6821845
- ' 文件名称:Admin_Probe.asp
- ' 更新日期:2007-6-5
- '=====================================================================
- ' 联系方式:Tel:13203117383,QQ:18159079,hi.baidu.com/hezeyu
- ' 程序开发:蓝宇,╲、随心゛
- ' 官方网站:蓝宇网络(http://hi.baidu.com/hezeyu)
- '=====================================================================
- ' Copyright 2004-2007 蓝宇 - All Rights Reserved.
- '=====================================================================
- '不使用输出缓冲区,直接将运行结果显示在客户端
- 'Response.Buffer = False
- Dim starttime
- startime = Timer()
- Dim RightClass, LeftClass, CenterClass
- LeftClass = "class=""TableRow1"" align=""left"""
- RightClass = "class=""TableRow1"" align=""right"""
- CenterClass = "class=""TableRow2"" align=""center"""
- '声明待检测数组
- Dim ObjTotest(26,4)
- ObjTotest(0,0) = "MSWC.AdRotator"
- ObjTotest(1,0) = "MSWC.BrowserType"
- ObjTotest(2,0) = "MSWC.NextLink"
- ObjTotest(3,0) = "MSWC.Tools"
- ObjTotest(4,0) = "MSWC.Status"
- ObjTotest(5,0) = "MSWC.Counters"
- ObjTotest(6,0) = "IISSample.ContentRotator"
- ObjTotest(7,0) = "IISSample.PageCounter"
- ObjTotest(8,0) = "MSWC.PermissionChecker"
- ObjTotest(9,0) = "Scripting.FileSystemObject"
- ObjTotest(9,1) = "(FSO 文本文件读写)"
- ObjTotest(10,0) = "adodb.connection"
- ObjTotest(10,1) = "(ADO 数据对象)"
- ObjTotest(11,0) = "NewCloudCMS.SiteMainObject"
- ObjTotest(11,1) = "(NewCloudCMS管理组件)"
- ObjTotest(12,0) = "SoftArtisans.FileUp"
- ObjTotest(12,1) = "(SA-FileUp 文件上传)"
- ObjTotest(13,0) = "SoftArtisans.FileManager"
- ObjTotest(13,1) = "(SoftArtisans 文件管理)"
- ObjTotest(14,0) = "LyfUpload.UploadFile"
- ObjTotest(14,1) = "(刘云峰的文件上传组件)"
- ObjTotest(15,0) = "Persits.Upload.1"
- ObjTotest(15,1) = "(ASPUpload 文件上传)"
- ObjTotest(16,0) = "w3.upload"
- ObjTotest(16,1) = "(Dimac 文件上传)"
- ObjTotest(17,0) = "JMail.SmtpMail"
- ObjTotest(17,1) = "(Dimac JMail 邮件收发) <a href='http://www.ajiang.net'>中文手册下载</a>"
- ObjTotest(18,0) = "CDONTS.NewMail"
- ObjTotest(18,1) = "(虚拟 SMTP 发信)"
- ObjTotest(19,0) = "Persits.MailSender"
- ObjTotest(19,1) = "(ASPemail 发信)"
- ObjTotest(20,0) = "SMTPsvg.Mailer"
- ObjTotest(20,1) = "(ASPmail 发信)"
- ObjTotest(21,0) = "DkQmail.Qmail"
- ObjTotest(21,1) = "(dkQmail 发信)"
- ObjTotest(22,0) = "Geocel.Mailer"
- ObjTotest(22,1) = "(Geocel 发信)"
- ObjTotest(23,0) = "IISmail.Iismail.1"
- ObjTotest(23,1) = "(IISmail 发信)"
- ObjTotest(24,0) = "SmtpMail.SmtpMail.1"
- ObjTotest(24,1) = "(SmtpMail 发信)"
- ObjTotest(25,0) = "SoftArtisans.ImageGen"
- ObjTotest(25,1) = "(SA 的图像读写组件)"
- ObjTotest(26,0) = "W3Image.Image"
- ObjTotest(26,1) = "(Dimac 的图像读写组件)"
- public IsObj,VerObj,TestObj
- '检查预查组件支持情况及版本
- 'dim i
- for i=0 to 26
- on error resume next
- IsObj=false
- VerObj=""
- TestObj=""
- set TestObj=server.CreateObject(ObjTotest(i,0))
- If -2147221005 <> Err then
- IsObj = True
- VerObj = TestObj.version
- if VerObj="" or isnull(VerObj) then VerObj=TestObj.about
- end if
- ObjTotest(i,2)=IsObj
- ObjTotest(i,3)=VerObj
- next
- '检查组件是否被支持及组件版本的子程序
- sub ObjTest(strObj)
- on error resume next
- IsObj=false
- VerObj=""
- TestObj=""
- set TestObj=server.CreateObject (strObj)
- If -2147221005 <> Err then
- IsObj = True
- VerObj = TestObj.version
- if VerObj="" or isnull(VerObj) then VerObj=TestObj.about
- end if
- End sub
- Response.Write "<html>"
- Response.Write "<head>"
- Response.Write "<title>服务器的相关信息</title>"
- Response.Write "<meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312"">"
- Response.Write "<link href=""Images/style.css"" rel=""stylesheet"" type=""text/css"">"
- Response.Write "<script language=javascript>" & vbCrLf
- Response.Write "<!--" & vbCrLf
- Response.Write "var startime,endTime;" & vbCrLf
- Response.Write "var d=new Date();" & vbCrLf
- Response.Write "startime=d.getTime();" & vbCrLf
- Response.Write "//-->" & vbCrLf
- Response.Write "</script>" & vbCrLf
- Response.Write "</head>"
- Response.Write "<body>"
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th width=""27%"" height=25 Class=TableTitle>服 务 器 信 息</th></tr>"
- Response.Write "<tr>"
- Response.Write "<td height=22 " & LeftClass & ">"
- Response.Write "<font class=fonts>你的服务器是否支持ASP</font>"
- Response.Write "<br>出现以下情况即表示您的空间不支持ASP:"
- Response.Write "<br>1、访问本文件时提示下载。"
- Response.Write "<br>2、访问本文件时看到类似“<%@ Language=""VBScript"" %>”的文字。"
- Response.Write "</td></tr></table><br>"
- Dim strClass
- strClass = Trim(Request.Form("classname"))
- If "" <> strClass then
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th colspan=2>您指定的组件的检查结果</th></tr>"
- Dim Verobj1
- ObjTest(strClass)
- If Not IsObj then
- Response.Write "<tr><td height=50 " & CenterClass & ">"
- Response.Write "<font color=red>很遗憾,该服务器不支持 " & strclass & " 组件!</font>"
- Response.Write "</td></tr>"
- Else
- if VerObj="" or isnull(VerObj) then
- Verobj1="无法取得该组件版本"
- Else
- Verobj1="该组件版本是:" & VerObj
- End If
- Response.Write "<tr><td height=50 " & CenterClass & ">"
- Response.Write "<font class=fonts>恭喜!该服务器支持 " & strclass & " 组件。" & verobj1 & "</font>"
- Response.Write "</td></tr>"
- End If
- Response.Write "</table><br>"
- End If
- '******************
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th colspan=2>服务器的有关参数</th></tr>"
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & " width=""50%""> 服务器名</td>"
- Response.Write "<td " & LeftClass & "> " & Request.ServerVariables("SERVER_NAME") & "</td>"
- Response.Write "</tr>"
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> 服务器IP</td>"
- Response.Write "<td " & LeftClass & "> " & Request.ServerVariables("LOCAL_ADDR") & "</td>"
- Response.Write "</tr>"
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> 服务器端口</td>"
- Response.Write "<td " & LeftClass & "> " & Request.ServerVariables("SERVER_PORT") & "</td>"
- Response.Write "</tr>"
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> 服务器时间</td>"
- Response.Write "<td " & LeftClass & "> " & now & "</td>"
- Response.Write "</tr>"
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> IIS版本</td>"
- Response.Write "<td " & LeftClass & "> " & Request.ServerVariables("SERVER_SOFTWARE") & "</td>"
- Response.Write "</tr>"
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> 脚本超时时间</td>"
- Response.Write "<td " & LeftClass & "> " & Server.ScriptTimeout & " 秒</td>"
- Response.Write "</tr>"
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> 本文件路径</td>"
- Response.Write "<td " & LeftClass & "> " & Request.ServerVariables("PATH_TRANSLATED") & "</td>"
- Response.Write "</tr>"
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> 服务器CPU数量</td>"
- Response.Write "<td " & LeftClass & "> " & Request.ServerVariables("NUMBER_OF_PROCESSORS") & " 个</td>"
- Response.Write "</tr>"
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> 服务器解译引擎</td>"
- Response.Write "<td " & LeftClass & "> " & ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion & "</td>"
- Response.Write "</tr>"
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> 服务器操作系统</td>"
- Response.Write "<td " & LeftClass & "> " & Request.ServerVariables("OS") & "</td>"
- Response.Write "</tr>"
- Response.Write "</table><br>"
- '******************
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th colspan=2>IIS自带的ASP组件</th></tr>"
- Response.Write "<tr align=center>"
- Response.Write "<td width=50% class=TableTitle>组 件 名 称</td>"
- Response.Write "<td width=""*"" class=TableTitle>支持及版本</td>"
- Response.Write "</tr>"
- For i=0 to 10
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> " & ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1) & "</font></td>"
- Response.Write "<td " & LeftClass & "> "
- If Not ObjTotest(i,2) Then
- Response.Write "<font color=red><b>×</b></font>"
- Else
- Response.Write "<font class=fonts><b>√</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
- End If
- Response.Write "</td>"
- Response.Write "</tr>"
- next
- Response.Write "</table><br>"
- '******************
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th colspan=2>常见的文件上传和管理组件</th></tr>"
- Response.Write "<tr align=center>"
- Response.Write "<td width=50% class=TableTitle>组 件 名 称</td>"
- Response.Write "<td width=""*"" class=TableTitle>支持及版本</td>"
- Response.Write "</tr>"
- For i=11 to 16
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> " & ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1) & "</font></td>"
- Response.Write "<td " & LeftClass & "> "
- If Not ObjTotest(i,2) Then
- Response.Write "<font color=red><b>×</b></font>"
- Else
- Response.Write "<font class=fonts><b>√</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
- End If
- Response.Write "</td>"
- Response.Write "</tr>"
- next
- Response.Write "</table><br>"
- '******************
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th colspan=2>常见的收发邮件组件</th></tr>"
- Response.Write "<tr align=center>"
- Response.Write "<td width=50% class=TableTitle>组 件 名 称</td>"
- Response.Write "<td width=""*"" class=TableTitle>支持及版本</td>"
- Response.Write "</tr>"
- For i=17 to 24
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> " & ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1) & "</font></td>"
- Response.Write "<td " & LeftClass & "> "
- If Not ObjTotest(i,2) Then
- Response.Write "<font color=red><b>×</b></font>"
- Else
- Response.Write "<font class=fonts><b>√</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
- End If
- Response.Write "</td>"
- Response.Write "</tr>"
- next
- Response.Write "</table><br>"
- '******************
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th colspan=2>图像处理组件</th></tr>"
- Response.Write "<tr align=center>"
- Response.Write "<td width=50% class=TableTitle>组 件 名 称</td>"
- Response.Write "<td width=""*"" class=TableTitle>支持及版本</td>"
- Response.Write "</tr>"
- For i=25 to 26
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & "> " & ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1) & "</font></td>"
- Response.Write "<td " & LeftClass & "> "
- If Not ObjTotest(i,2) Then
- Response.Write "<font color=red><b>×</b></font>"
- Else
- Response.Write "<font class=fonts><b>√</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
- End If
- Response.Write "</td>"
- Response.Write "</tr>"
- next
- Response.Write "</table><br>"
- '******************
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th>其他组件支持情况检测</th></tr>"
- Response.Write "<tr align=center><td width=70% class=TableTitle>在下面的输入框中输入你要检测的组件的ProgId或ClassId。</td></tr>"
- Response.Write "<FORM action=""" & Request.ServerVariables("SCRIPT_NAME") & """ method=post id=form1 name=form1>"
- Response.Write "<tr height=""23"">"
- Response.Write "<td class=TableRow2 height=30><input class=kuang type=text value="""" name=""classname"" size=40>"
- Response.Write "<INPUT type=submit value="" 确 定 "" class=kuang id=submit1 name=submit1> "
- Response.Write " <INPUT type=reset value="" 重 填 "" class=kuang id=reset1 name=reset1>"
- Response.Write "</td>"
- Response.Write "</tr>"
- Response.Write "</FORM>"
- Response.Write "</table><br>" & vbCrLf
- '******************
- if ObjTest("Scripting.FileSystemObject") then
- set fsoobj=server.CreateObject("Scripting.FileSystemObject")
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th colspan=6>服务器磁盘信息</th></tr>"
- Response.Write "<tr align=center>"
- Response.Write "<td width=""*"" class=TableTitle>盘符和磁盘类型</td>"
- Response.Write "<td width=""10%"" class=TableTitle>就绪</td>"
- Response.Write "<td width=""10%"" class=TableTitle>卷标</td>"
- Response.Write "<td width=""15%"" class=TableTitle>文件系统</td>"
- Response.Write "<td width=""20%"" class=TableTitle>可用空间</td>"
- Response.Write "<td width=""20%"" class=TableTitle>总空间</td>"
- Response.Write "</tr>"
- ' 测试磁盘信息的想法来自“COCOON ASP 探针”
- set drvObj=fsoobj.Drives
- for each d in drvObj
- Response.Write "<tr>"
- Response.Write "<td " & CenterClass & ">" & cdrivetype(d.DriveType) & " " & d.DriveLetter & ":</td>"
- if d.DriveLetter = "A" then '为防止影响服务器,不检查软驱
- Response.Write "<td " & CenterClass & "></td>"
- Response.Write "<td " & CenterClass & "></td>"
- Response.Write "<td " & CenterClass & "></td>"
- Response.Write "<td " & CenterClass & "></td>"
- Response.Write "<td " & CenterClass & "></td>"
- Else %>
- <td <%=CenterClass%>><%=cIsReady(d.isReady)%></td>
- <td <%=CenterClass%>><%=d.VolumeName%></td>
- <td <%=CenterClass%>><%=d.FileSystem%></td>
- <td <%=CenterClass%>><%=cSize(d.FreeSpace)%></td>
- <td <%=CenterClass%>><%=cSize(d.TotalSize)%></td>
- <% End if
- Response.Write "</tr>"
- next
- Response.Write "</table><br>" & vbCrLf
- '******************************************************
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th colspan=5>当前文件夹信息 "
- dPath = server.MapPath("./")
- set dDir = fsoObj.GetFolder(dPath)
- set dDrive = fsoObj.GetDrive(dDir.Drive)
- Response.Write "文件夹: " & dPath & "</th></tr>"
- Response.Write "<tr align=""center"">"
- Response.Write "<td width=""20%"" class=TableTitle>已用空间</td>"
- Response.Write "<td width=""20%"" class=TableTitle>可用空间</td>"
- Response.Write "<td width=""10%"" class=TableTitle>文件夹数</td>"
- Response.Write "<td width=""10%"" class=TableTitle>文件数</td>"
- Response.Write "<td width=""*"" class=TableTitle>创建时间</td>"
- Response.Write "</tr>"
- Response.Write "<tr>"
- Response.Write "<td " & CenterClass & ">" & cSize(dDir.Size) & "</td>"
- Response.Write "<td " & CenterClass & ">" & cSize(dDrive.AvailableSpace) & "</td>"
- Response.Write "<td " & CenterClass & ">" & dDir.SubFolders.Count & "</td>"
- Response.Write "<td " & CenterClass & ">" & dDir.Files.Count & "</td>"
- Response.Write "<td " & CenterClass & ">" & dDir.DateCreated & "</td>"
- Response.Write "</tr>"
- Response.Write "</table><br>"
- '******************************************************
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th colspan=2>磁盘文件操作速度测试</th></tr>"
- Response.Write "<tr>"
- Response.Write "<td colspan=2 " & LeftClass & ">"
- Response.Write "正在重复创建、写入和删除文本文件50次"
- dim thetime3,tempfile,iserr
- 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 iserr <> true then
- thetime3=cstr(int(( (t2-t1)*10000 )+0.5)/10)
- Response.Write "已完成!<font color=red>" & thetime3 & "毫秒</font>。"
- Response.Write "</td></tr>"
- Response.Write "<tr>"
- Response.Write "<td " & RightClass & " width=""50%""> <font color=red>您的服务器: " & Request.ServerVariables("SERVER_NAME") & "</font> </td>"
- Response.Write "<td " & LeftClass & "> <font color=red>" & thetime3 & "</font></td>"
- Response.Write "</tr>"
- Response.Write "</table><br>"
- end if
- set fsoobj=nothing
- end if
- '******************
- Response.Write "<table width=""90%"" align=center cellpadding=3 cellspacing=1 class=""tableBorder"" border=0>"
- Response.Write "<tr><th colspan=3>ASP脚本解释和运算速度测试</th></tr>"
- Response.Write "<tr>"
- Response.Write "<td colspan=3 " & LeftClass & ">"
- '因为只进行50万次计算,所以去掉了是否检测的选项而直接检测
- Response.Write "整数运算测试,正在进行50万次加法运算"
- dim t1,t2,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>"
- Response.Write "</td></tr>"
- Response.Write "<tr>"
- Response.Write "<td " & CenterClass & " width=""30%""> <font color=red>您的服务器: " & Request.ServerVariables("SERVER_NAME") & "</font> </td>"
- Response.Write "<td " & CenterClass & " width=""30%""> <font color=red>" & thetime & "</font></td>"
- Response.Write "<td " & CenterClass & "> <font color=red>" & thetime2 & "</font></td>"
- Response.Write "</tr>"
- Response.Write "</table><br>"
- '******************
- Response.Write "<table border=0 width=90% align=center cellspacing=0 cellpadding=0>"
- Response.Write "<tr>"
- Response.Write "<td align=center style=""LINE-HEIGHT: 150%"">"
- Response.Write "Powered by:<a href=http://www.863sf.Cn target=_blank>tee5 WebSite GameCMS " & Version & "</a> (ACCESS 版)<BR>"
- Response.Write RunTime
- Response.Write "</td></tr>"
- Response.Write "</table>"
- Response.Write "</BODY>"
- Response.Write "</HTML>"
- Public Function RunTime()
- Dim StrTemp,Endtime
- Endtime=timer()
- strTemp= strTemp & "页面执行时间:" & FormatNumber(Endtime - startime,3, -1) & "毫秒 "
- strTemp= strTemp & "页面装载时间:<script language=javascript>d=new Date();endTime=d.getTime();document.write((endTime-startime)/1000);</script> 秒"
- response.write strTemp
- End Function
- function cdrivetype(tnum)
- Select Case tnum
- Case 0: cdrivetype = "未知"
- Case 1: cdrivetype = "可移动磁盘"
- Case 2: cdrivetype = "本地硬盘"
- Case 3: cdrivetype = "网络磁盘"
- Case 4: cdrivetype = "CD-ROM"
- Case 5: cdrivetype = "RAM 磁盘"
- End Select
- end function
- function cIsReady(trd)
- Select Case trd
- case true: cIsReady="<font class=fonts><b>√</b></font>"
- case false: cIsReady="<font color='red'><b>×</b></font>"
- End Select
- end function
- function cSize(tSize)
- If tSize>=1073741824 then
- cSize=int((tSize/1073741824)*1000)/1000 & " GB"
- Elseif tSize>=1048576 then
- cSize=int((tSize/1048576)*1000)/1000 & " MB"
- Elseif tSize>=1024 then
- cSize=int((tSize/1024)*1000)/1000 & " KB"
- Else
- cSize=tSize & "B"
- End If
- end function
- %>