?? admin_server.asp
字號(hào):
<!-- #include file="conn.asp" -->
<!-- #include file="inc/const.asp" -->
<!--#include file=inc/char.asp-->
<!--#include file=chkuser.asp-->
<title><%=ForumName%>--管理頁面</title>
<link rel="stylesheet" type="text/css" href="forum.css">
<meta NAME=GENERATOR Content=""Microsoft FrontPage 3.0"" CHARSET=GB2312>
<BODY <%=ForumBody%>>
<%
if instr(session("flag"),"29")=0 then
Errmsg=Errmsg+"<br>"+"<li>本頁面為管理員專用,請(qǐng)<a href=admin_index.asp target=_top>登陸</a>后進(jìn)入。<br><li>您沒有管理本頁面的權(quán)限。"
call Error()
else
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"
call main()
end if
sub main()
%>
<table cellpadding=0 cellspacing=0 border=0 width=<%=tablewidth%> bgcolor=<%=tablebackcolor%> align=center>
<tr>
<td>
<table cellpadding=3 cellspacing=1 border=0 width=100%>
<tr bgcolor='<%=Tabletitlecolor%>'>
<td align=center colspan="2"><font color="<%=TablefontColor%>">歡迎<b><%=membername%></b>進(jìn)入管理頁面</font>
</td>
</tr>
<tr bgcolor=<%=tablebodycolor%>>
<td width="100%" valign=top><font color="<%=TableContentColor%>"> <%call servervar()%></font></td>
</tr>
</table>
</td>
</tr>
</table>
<%
end sub
sub servervar()
%>
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td colspan="2" bgcolor=<%=atabletitlecolor%> height=20>
<font color="<%=TableContentColor%>"><b>服務(wù)器有關(guān)的變量</b></font>
</td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">顯示客戶發(fā)出的所有HTTP標(biāo)題</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=request.ServerVariables("All_Http")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">檢取ISAPIDLL的metabase路徑</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=request.ServerVariables("APPL_MD_PATH")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">顯示站點(diǎn)物理路徑</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=request.ServerVariables("APPL_PHYSICAL_PATH")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">路徑信息</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=request.ServerVariables("PATH_INFO")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">顯示請(qǐng)求機(jī)器IP地址</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=request.ServerVariables("REMOTE_ADDR")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">服務(wù)器IP地址</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=Request.ServerVariables("LOCAL_ADDR")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">顯示執(zhí)行SCRIPT的虛擬路徑</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=request.ServerVariables("SCRIPT_NAME")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">返回服務(wù)器的主機(jī)名,DNS別名,或IP地址</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=request.ServerVariables("SERVER_NAME")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">返回服務(wù)器處理請(qǐng)求的端口</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=request.ServerVariables("SERVER_PORT")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">協(xié)議的名稱和版本</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=request.ServerVariables("SERVER_PROTOCOL")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">服務(wù)器的名稱和版本</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=request.ServerVariables("SERVER_SOFTWARE")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">服務(wù)器操作系統(tǒng)</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=Request.ServerVariables("OS")%></font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">腳本超時(shí)時(shí)間</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=Server.ScriptTimeout%> </font>秒</td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">服務(wù)器CPU數(shù)量</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%> 個(gè)</font></td>
</tr>
<tr>
<td width="30%" valign=top><font color="<%=TableContentColor%>">服務(wù)器解譯引擎</font></td>
<td width="70%"><font color="<%=TableContentColor%>"><%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></font></td>
</tr>
<tr>
<td colspan="2" bgcolor=<%=atabletitlecolor%> height=20> <font color="<%=TableContentColor%>">
<b>組件支持情況</b></font>
</td>
</tr>
<tr>
<td colspan="2" height=20> <font color="<%=TableContentColor%>">
<%
Dim strClass
strClass = Trim(Request.Form("classname"))
If "" <> strClass then
Response.Write "<br>您指定的組件的檢查結(jié)果:"
If Not IsObjInstalled(strClass) then
Response.Write "<br><font color=red>很遺憾,該服務(wù)器不支持" & strclass & "組件!</font>"
Else
Response.Write "<br><font color=green>恭喜!該服務(wù)器支持" & strclass & "組件。</font>"
End If
Response.Write "<br>"
end if
%></font>
</td>
</tr>
<tr>
<td colspan="2" height=20> <font color="<%=TableContentColor%>">
<b>--IIS自帶組件</b></font>
</td>
</tr>
<tr>
<td colspan="2" height=20> <font color="<%=TableContentColor%>">
<table border=0 width="95%" cellspacing=1 cellpadding=0>
<tr height=22 align=center>
<td width="70%"><font color="<%=TableContentColor%>">組 件 名 稱</font></td><td width="15%"><font color="<%=TableContentColor%>">支 持</font></td><td width="15%"><font color="<%=TableContentColor%>">不支持</font></td>
</tr>
<%
dim i
For i=0 to 10
Response.Write "<TR align=center height=22><TD align=left> " & theInstalledObjects(i) & "<font color=#888888> "
select case i
case 9
Response.Write "(FSO 文本文件讀寫)"
case 10
Response.Write "(ACCESS 數(shù)據(jù)庫)"
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" height=20>
<font color="<%=TableContentColor%>"><b>--其他常見組件</font></b>
</td>
</tr>
<tr>
<td colspan="2" height=20>
<table border=0 width="95%" cellspacing=1 cellpadding=0>
<tr height=22 align=center>
<td width="70%"><font color="<%=TableContentColor%>">組 件 名 稱</font></td><td width="15%"><font color="<%=TableContentColor%>">支 持</font></td><td width="15%"><font color="<%=TableContentColor%>">不支持</font></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 郵件發(fā)送)"
case 14
Response.Write "(CDONTS 郵件發(fā)送 SMTP Service)"
case 15
Response.Write "(ASPEmail 郵件發(fā)送)"
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" height=20> <font color="<%=TableContentColor%>">
<b>--其他組件支持情況檢測(cè):</b>在下面的輸入框中輸入你要檢測(cè)的組件的ProgId或ClassId。</font>
</td>
</tr>
<tr>
<td colspan="2" height=20>
<table border=0 width="95%" cellspacing=1 cellpadding=0>
<FORM action="admin_server" method=post id=form1 name=form1>
<tr>
<td align=center height=30>
<input class=input type=text value="" name="classname" size=40>
<INPUT type=submit value="確定" id=submit1 name=submit1>
<INPUT type=reset value="重填" id=reset1 name=reset1>
</td>
</tr>
</FORM>
</table>
</td>
</tr>
</table>
<%
end sub
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
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -