📄 chkserver.asp
字号:
<!--#include file="toptable.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
head()
Sailing.Admin()
Sailing.chkAdmin(0)
' 使用输出缓冲区,避免在WIN2003显示过慢
Response.Buffer = true
' 声明待检测数组
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) = Sailing.SiteSetting(56) '"Scripting.FileSystemObject"
ObjTotest(9,1) = "(FSO 文本文件读写)"
ObjTotest(10,0) = "adodb.connection"
ObjTotest(10,1) = "(ADO 数据对象)"
ObjTotest(11,0) = "SoftArtisans.FileUp"
ObjTotest(11,1) = "(SA-FileUp 文件上传)"
ObjTotest(12,0) = "SoftArtisans.FileManager"
ObjTotest(12,1) = "(SoftArtisans 文件管理)"
ObjTotest(13,0) = "LyfUpload.UploadFile"
ObjTotest(13,1) = "(刘云峰的文件上传组件)"
ObjTotest(14,0) = "Persits.Upload.1"
ObjTotest(14,1) = "(ASPUpload 文件上传)"
ObjTotest(15,0) = "w3.upload"
ObjTotest(15,1) = "(Dimac 文件上传)"
ObjTotest(16,0) = "JMail.SmtpMail"
ObjTotest(16,1) = "(Dimac JMail 邮件收发)"
ObjTotest(17,0) = "CDONTS.NewMail"
ObjTotest(17,1) = "(虚拟 SMTP 发信)"
ObjTotest(18,0) = "Persits.MailSender"
ObjTotest(18,1) = "(ASPemail 发信)"
ObjTotest(19,0) = "SMTPsvg.Mailer"
ObjTotest(19,1) = "(ASPmail 发信)"
ObjTotest(20,0) = "DkQmail.Qmail"
ObjTotest(20,1) = "(dkQmail 发信)"
ObjTotest(21,0) = "Geocel.Mailer"
ObjTotest(21,1) = "(Geocel 发信)"
ObjTotest(22,0) = "IISmail.Iismail.1"
ObjTotest(22,1) = "(IISmail 发信)"
ObjTotest(23,0) = "SmtpMail.SmtpMail.1"
ObjTotest(23,1) = "(SmtpMail 发信)"
ObjTotest(24,0) = "SoftArtisans.ImageGen"
ObjTotest(24,1) = "(SA 的图像读写组件)"
ObjTotest(25,0) = "W3Image.Image"
ObjTotest(25,1) = "(Dimac 的图像读写组件)"
'良精科技加入:
ObjTotest(26,0) = "Persits.Jpeg"
ObjTotest(26,1) = "(AspJpeg 图像读写组件)"
public IsObj,VerObj,TestObj
public okOS,okCPUS,okCPU
'检查预查组件支持情况及版本
dim i
for i=0 to 26
on error resume next
IsObj=false
VerObj=""
'dim TestObj
TestObj=""
set TestObj=server.CreateObject(ObjTotest(i,0))
If -2147221005 <> Err then '感谢网友iAmFisher的宝贵建议
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 '感谢网友iAmFisher的宝贵建议
IsObj = True
VerObj = TestObj.version
if VerObj="" or isnull(VerObj) then VerObj=TestObj.about
end if
End sub
%>
<table width="97%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableBorder">
<tr>
<td width="100%" colspan="2" class="title"><div align="center" class="title">服务器检测器</div></td>
</tr>
<tr height=18>
<td colspan="2" align=left class="table"> 出现以下情况即表示您的空间不支持ASP: <br>
1、访问本文件时提示下载。 <br>
2、访问本文件时看到类似“<%@ Language="VBScript" %>”的文字。</td>
</tr>
</table>
<br>
<table width="97%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableBorder">
<tr>
<td width="100%" colspan="2" class="title"><div align="center" class="title">服务器的有关参数<%getsysinfo()%></div></td>
</tr>
<tr height=18>
<td align=left class="table"> 服务器名</td>
<td class="table"> <%=Request.ServerVariables("SERVER_NAME")%></td>
</tr>
<tr height=18>
<td align=left class="table"> 服务器IP</td>
<td class="table"> <%=Request.ServerVariables("LOCAL_ADDR")%></td>
</tr>
<tr height=18>
<td align=left class="table"> 服务器端口</td>
<td class="table"> <%=Request.ServerVariables("SERVER_PORT")%></td>
</tr>
<tr height=18>
<td align=left class="table"> 服务器时间</td>
<td class="table"> <%=now%></td>
</tr>
<tr height=18>
<td align=left class="table"> IIS版本</td>
<td class="table"> <%=Request.ServerVariables("SERVER_SOFTWARE")%></td>
</tr>
<tr height=18>
<td align=left class="table"> 脚本超时时间</td>
<td class="table"> <%=Server.ScriptTimeout%> 秒</td>
</tr>
<tr height=18>
<td align=left class="table"> 本文件路径</td>
<td class="table"> <%=Request.ServerVariables("PATH_TRANSLATED")%></td>
</tr>
<tr height=18>
<td align=left class="table"> 服务器解译引擎</td>
<td class="table"> <%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></td>
</tr>
<tr height=18>
<td align=left class="table"> 服务器CPU数量</td>
<td class="table"> <%=okCPUS%> 个</td>
</tr>
<tr height=18>
<td align=left class="table"> 服务器CPU详情</td>
<td class="table"> <%=okCPU%></td>
</tr>
<tr height=18>
<td align=left class="table"> 服务器操作系统</td>
<td class="table"> <%=okOS%></td>
</tr>
</table>
<br>
<table width="97%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableBorder">
<tr>
<td colspan="2" class="title"><div align="center">组件支持情况</div></td>
</tr>
<tr height=18>
<td width="30%" align=left class="items"> 组件名称</td>
<td width="70%" align=left class="items"> 支持情况及版本信息</td>
</tr>
<tr height=18>
<td colspan="2" align=left class="title3">■ IIS自带的ASP组件</td>
</tr>
<%For i=0 to 10%>
<tr height=18>
<td align=left class="table"> <%=ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1)%></font></td>
<td align=left class="table"> <%
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%></td>
</tr>
<%next%>
<tr height=18>
<td colspan="2" align=left class="title3">■ 常见的文件上传和管理组件</td>
</tr>
<%For i=11 to 15%>
<tr height=18>
<td align=left class="table"> <%=ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1)%></td>
<td align=left class="table">
<%
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%></td>
</tr>
<%next%>
<tr height=18>
<td colspan="2" align=left class="title3">■ 常见的收发邮件组件</td>
</tr>
<%For i=16 to 23%>
<tr height=18>
<td align=left class="table"> <%=ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1)%></td>
<td align=left class="table">
<%
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%></td>
</tr>
<%next%>
<tr height=18>
<td colspan="2" align=left class="title3">■ 图像处理组件</td>
</tr>
<%For i=24 to 26%>
<tr height=18>
<td align=left class="table"> <%=ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1)%></td>
<td align=left class="table">
<%
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%></td>
</tr>
<%next%>
<tr height=18>
<td colspan="2" align=left class="title3"> ■ 其他组件支持情况检测<br>
在下面的输入框中输入你要检测的组件的ProgId或ClassId。 </td>
</tr>
<tr height=18>
<FORM action=<%=Request.ServerVariables("SCRIPT_NAME")%> method=post id=form1 name=form1>
<td colspan="2" align=left class="table">
<input type=text value="" name="classname" size=40 class="lostfocus" gf="0" onmouseover='this.className="getfocus"' onmouseout='if (this.gf=="0") this.className="lostfocus"' onblur='this.className="lostfocus";this.gf="0"' onfocus='this.className="getfocus";this.gf="1"'>
<INPUT type=submit value="确定" id=submit1 name=submit1 class="btn">
<INPUT type=reset value="重填" id=reset1 name=reset1 class="btn">
<%
Dim strClass
strClass = Trim(Request.Form("classname"))
If "" <> strClass then
Response.Write "<br>您指定的组件的检查结果:"
Dim Verobj1
ObjTest(strClass)
If Not IsObj then
Response.Write "<br><font color=red>很遗憾,该服务器不支持 " & strclass & " 组件!</font>"
Else
if VerObj="" or isnull(VerObj) then
Verobj1="无法取得该组件版本"
Else
Verobj1="该组件版本是:" & VerObj
End If
Response.Write "<br><font class=fonts>恭喜!该服务器支持 " & strclass & " 组件。" & verobj1 & "</font>"
End If
Response.Write "<br>"
end if
%></td></FORM>
</tr>
</table>
<%
Response.Flush
if ObjTest("Scripting.FileSystemObject") then
set fsoobj=server.CreateObject("Scripting.FileSystemObject")
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -