?? adminserver.asp
字號:
<!--#include file="head.asp" -->
<%
Dim theInstalledObjects(17)
theInstalledObjects(0) = "MSWC.AdRotator"
theInstalledObjects(1) = "MSWC.BrowserType"
theInstalledObjects(2) = "MSWC.NextLink"
theInstalledObjects(3) = "MSWC.Tools"
theInstalledObjects(4) = "MSWC.Status"
theInstalledObjects(5) = "MSWC.Counters"
theInstalledObjects(6) = "IISSample.ContentRotator"
theInstalledObjects(7) = "IISSample.PageCounter"
theInstalledObjects(8) = "MSWC.PermissionChecker"
theInstalledObjects(9) = "Scripting.FileSystemObject"
theInstalledObjects(10) = "adodb.connection"
theInstalledObjects(11) = "SoftArtisans.FileUp"
theInstalledObjects(12) = "SoftArtisans.FileManager"
theInstalledObjects(13) = "JMail.SMTPMail"
theInstalledObjects(14) = "CDONTS.NewMail"
theInstalledObjects(15) = "Persits.MailSender"
theInstalledObjects(16) = "LyfUpload.UploadFile"
theInstalledObjects(17) = "Persits.Upload.1"
%>
<table width="100%" border="0">
<tr>
<td colspan="2"><b>服務器有關的變量:</b>
</td>
</tr>
<tr>
<td width="29%">顯示客戶發出的所有HTTP標題</td>
<td width="71%"><%=request.ServerVariables("All_Http")%></td>
</tr>
<tr>
<td width="29%">檢取ISAPIDLL的metabase路徑</td>
<td width="71%"><%=request.ServerVariables("APPL_MD_PATH")%></td>
</tr>
<tr>
<td width="29%">顯示站點物理路徑</td>
<td width="71%"><%=request.ServerVariables("APPL_PHYSICAL_PATH")%></td>
</tr>
<tr>
<td width="29%">路徑信息</td>
<td width="71%"><%=request.ServerVariables("PATH_INFO")%></td>
</tr>
<tr>
<td width="29%">顯示請求機器IP地址</td> <td width="71%"><%=request.ServerVariables("REMOTE_ADDR")%></td>
</tr>
<tr>
<td width="29%">服務器IP地址</td> <td width="71%"><%=Request.ServerVariables("LOCAL_ADDR")%></td>
</tr>
<tr>
<td width="29%">顯示執行SCRIPT的虛擬路徑</td> <td width="71%"><%=request.ServerVariables("SCRIPT_NAME")%> </td>
</tr>
<tr>
<td width="29%">返回服務器的主機名,DNS別名,或IP地址</td>
<td width="71%"><%=request.ServerVariables("SERVER_NAME")%></td>
</tr>
<tr>
<td width="29%">返回服務器處理請求的端口</td>
<td width="71%"><%=request.ServerVariables("SERVER_PORT")%></td>
</tr>
<tr>
<td width="29%">協議的名稱和版本</td>
<td width="71%"><%=request.ServerVariables("SERVER_PROTOCOL")%></td>
</tr>
<tr>
<td width="29%">服務器的名稱和版本</td> <td width="71%"><%=request.ServerVariables("SERVER_SOFTWARE")%></td>
</tr>
<tr>
<td width="29%">服務器操作系統</td> <td width="71%"><%=Request.ServerVariables("OS")%></td>
</tr>
<tr>
<td width="29%">腳本超時時間</td> <td width="71%"><%=Server.ScriptTimeout%> 秒</td>
</tr>
<tr>
<td width="29%">服務器CPU數量</td> <td width="71%"><%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%> 個</td>
</tr>
<tr>
<td width="29%">服務器解譯引擎</td> <td width="71%"><%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></td>
</tr>
<tr>
<td colspan="2"><b>組件支持情況:</b> </td>
</tr>
<tr>
<td width="29%">
<%
Dim strClass
strClass = Trim(Request.Form("classname"))
If "" <> strClass then
Response.Write "<br>您指定的組件的檢查結果:"
If Not IsObjInstalled(strClass) then
Response.Write "<br><font color=red>很遺憾,該服務器不支持" & strclass & "組件!</font>"
Else
Response.Write "<br><font color=green>恭喜!該服務器支持" & strclass & "組件。</font>"
End If
Response.Write "<br>"
end if
%>
</td>
<td width="71%"> </td>
</tr>
<tr>
<td colspan="2"><b>--IIS自帶組件:</b> </td>
</tr>
<tr>
<td colspan="2" align="center">
<table border=0 width="95%" cellspacing=1 cellpadding=0>
<tr height=22 align=center>
<td width="70%">組 件 名 稱</td> <td width="15%">支 持</td> <td width="15%">不支持</td>
</tr>
<%
For i=11 to UBound(theInstalledObjects)
Response.Write "<TR align=center height=18><TD align=left> " & theInstalledObjects(i) & "<font color=#888888> "
select case i
case 11
Response.Write "(SA-FileUp 文件上傳)"
case 12
Response.Write "(SA-FM 文件管理)"
case 13
Response.Write "(JMail 郵件發送)"
case 14
Response.Write "(CDONTS 郵件發送 SMTP Service)"
case 15
Response.Write "(ASPEmail 郵件發送)"
case 16
Response.Write "(LyfUpload 文件上傳)"
case 17
Response.Write "(ASPUpload 文件上傳)"
end select
Response.Write "</font></td>"
If Not IsObjInstalled(theInstalledObjects(i)) Then
Response.Write "<td></td><td><font color=red><b>×</b></font></td>"
Else
Response.Write "<td><b>√</b></td><td></td>"
End If
Response.Write "</TR>" & vbCrLf
Next
%>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="center"><b>--其他組件支持情況檢測:</b>在下面的輸入框中輸入你要檢測的組件的ProgId或ClassId。</td>
</tr>
<tr>
<td colspan="2" align="center"><table border=0 width="95%" cellspacing=1 cellpadding=0>
<FORM action="adminserver.asp" method=post id=form1 name=form1>
<tr>
<td align=center height=30>
<input class=smallInput type=text value="" name="classname" size=40>
<INPUT type=submit value="確定" id=submit1 name=submit1 class="buttonface">
<INPUT type=reset value="重填" id=reset1 name=reset1 class="buttonface">
</td>
</tr>
</FORM>
</table></td>
</tr>
</table>
<!--#include file="copy.asp" -->
<%
Function IsObjInstalled(strClassString)
On Error Resume Next
IsObjInstalled = False
Err = 0
Dim xTestObj
Set xTestObj = Server.CreateObject(strClassString)
If 0 = Err Then IsObjInstalled = True
Set xTestObj = Nothing
Err = 0
End Function
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -