⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checken.asp

📁 商品订单管理:商品分类管理 添加与修改商品 管理订单 投诉订单 反馈信息 商品留言管理 管理网站用户:管理用户 管理后台管理员 新闻公告管理:新闻添加(支持图片新闻) 修改删除 首页公告设置 网站常规
💻 ASP
字号:
<%@ Language="VBScript" %>
<% Option Explicit %>
<%
if session("admin_name")="" then
    response.redirect "ad_login.asp"
end if
%>
<%
Response.Buffer = False
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 Textfile Read/Write)"
ObjTotest(10,0) = "adodb.connection"
	ObjTotest(10,1) = "(ADO Data Object)"
	
ObjTotest(11,0) = "SoftArtisans.FileUp"
	ObjTotest(11,1) = "(SA-FileUpload)"
ObjTotest(12,0) = "SoftArtisans.FileManager"
	ObjTotest(12,1) = ""
ObjTotest(13,0) = "LyfUpload.UploadFile"
	ObjTotest(13,1) = "(Liu Yunfeng's Uploader)"
ObjTotest(14,0) = "Persits.Upload.1"
	ObjTotest(14,1) = "(ASPUpload FileUpload)"
ObjTotest(15,0) = "w3.upload"
	ObjTotest(15,1) = "(Dimac FileUpload)"

ObjTotest(16,0) = "JMail.SmtpMail"
	ObjTotest(16,1) = "(Dimac JMail Send/Receive email)"
ObjTotest(17,0) = "CDONTS.NewMail"
	ObjTotest(17,1) = "(NT SMTP Send Mail)"
ObjTotest(18,0) = "Persits.MailSender"
	ObjTotest(18,1) = "(ASPemail Send Mail)"
ObjTotest(19,0) = "SMTPsvg.Mailer"
	ObjTotest(19,1) = "(ASPmail Send Mail)"
ObjTotest(20,0) = "DkQmail.Qmail"
	ObjTotest(20,1) = "(dkQmail Send Mail)"
ObjTotest(21,0) = "Geocel.Mailer"
	ObjTotest(21,1) = "(Geocel Send Mail)"
ObjTotest(22,0) = "IISmail.Iismail.1"
	ObjTotest(22,1) = "(IISmail Send Mail)"
ObjTotest(23,0) = "SmtpMail.SmtpMail.1"
	ObjTotest(23,1) = "(SmtpMail Send Mail)"
	
ObjTotest(24,0) = "SoftArtisans.ImageGen"
	ObjTotest(24,1) = "(SA image component)"
ObjTotest(25,0) = "W3Image.Image"
	ObjTotest(25,1) = "(Dimac image component)"

public IsObj,VerObj

'test all

dim i
for i=0 to 25
	on error resume next
	IsObj=false
	VerObj=""
	dim 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

'test sub
sub ObjTest(strObj)
	on error resume next
	IsObj=false
	VerObj=""
	dim 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
%>
<HTML>
<HEAD>
<TITLE>ASP</TITLE>
<link href=img/css.css rel=STYLESHEET type=text/css></HEAD>
<BODY>
<br>


<b>SUPPORT ASP?</b>
<br>Yor space do NOT support  ASP if the following case happened:
<br>1. You have to download this file when you visit it.
<br>2. You see words like '&lt;%@ Language="VBScript" %&gt;'.
<br><br>

<font class="fonts"><b>PARAMATER OF THE SERVER</b></font>
<table border=0 width=450 cellspacing=0 cellpadding=0 bgcolor="#FFFFFF">
<tr><td>

	<table border=0 width=450 cellspacing=1 cellpadding=0>
	  <tr bgcolor="#EEFEE0" height=18>
		<td align=left bgcolor="#F5EFE7">&nbsp;Name</td><td bgcolor="#F5EFE7">&nbsp;<%=Request.ServerVariables("SERVER_NAME")%></td>
	  </tr>
	  <tr bgcolor="#EEFEE0" height=18>
		<td align=left bgcolor="#F5EFE7">&nbsp;IP</td><td bgcolor="#F5EFE7">&nbsp;<%=Request.ServerVariables("LOCAL_ADDR")%></td>
	  </tr>
	  <tr bgcolor="#EEFEE0" height=18>
		<td align=left bgcolor="#F5EFE7">&nbsp;Port</td><td bgcolor="#F5EFE7">&nbsp;<%=Request.ServerVariables("SERVER_PORT")%></td>
	  </tr>
	  <tr bgcolor="#EEFEE0" height=18>
		<td align=left bgcolor="#F5EFE7">&nbsp;Time</td><td bgcolor="#F5EFE7">&nbsp;<%=now%></td>
	  </tr>
	  <tr bgcolor="#EEFEE0" height=18>
		<td align=left bgcolor="#F5EFE7">&nbsp;IIS Version</td>
		<td bgcolor="#F5EFE7">&nbsp;<%=Request.ServerVariables("SERVER_SOFTWARE")%></td>
	  </tr>
	  <tr bgcolor="#EEFEE0" height=18>
		<td align=left bgcolor="#F5EFE7">&nbsp;Script Timeout</td>
		<td bgcolor="#F5EFE7">&nbsp;<%=Server.ScriptTimeout%> s</td>
	  </tr>
	  <tr bgcolor="#EEFEE0" height=18>
		<td align=left bgcolor="#F5EFE7">&nbsp;Path</td><td bgcolor="#F5EFE7">&nbsp;<%=server.mappath(Request.ServerVariables("SCRIPT_NAME"))%></td>
	  </tr>
	  <tr bgcolor="#EEFEE0" height=18>
		<td align=left bgcolor="#F5EFE7">&nbsp;CPU Number</td>
		<td bgcolor="#F5EFE7">&nbsp;<%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%></td>
	  </tr>
	  <tr bgcolor="#EEFEE0" height=18>
		<td align=left bgcolor="#F5EFE7">&nbsp;Script Version</td>
		<td bgcolor="#F5EFE7">&nbsp;<%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></td>
	  </tr>
	  <tr bgcolor="#EEFEE0" height=18>
		<td align=left bgcolor="#F5EFE7">&nbsp;OS</td><td bgcolor="#F5EFE7">&nbsp;<%=Request.ServerVariables("OS")%></td>
	  </tr>
	</table>

</td></tr>
</table>
<br>
<font class=fonts>WHICH MODULE BE SUPPORTED</font>
<%
Dim strClass
	strClass = Trim(Request.Form("classname"))
	If "" <> strClass then
	Response.Write "<br>The Component You Typed:"
	ObjTest(strClass)
	  If Not IsObj then 
		Response.Write "<br><font color=red>" & strclass & " is NOT supported</font>"
	  Else
		Response.Write "<br><font class=fonts>" & strclass & "is supported, The version is" & VerObj & "</font>"
	  End If
	  Response.Write "<br>"
	end if
	%>


<br><li>The Component of IIS.
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="450">
	<tr height=18 class=backs align=center><td width=320>Component Name</td><td width=130>Support & Version</td></tr>
	<%For i=0 to 10%>
	<tr height="18" class=backq>
		<td align=left>&nbsp;<%=ObjTotest(i,0) & "<font color=#888888>&nbsp;" & ObjTotest(i,1)%></font></td>
		<td align=left>&nbsp;<%
		If Not ObjTotest(i,2) Then 
			Response.Write "<font color=red>No!</font>"
		Else
			Response.Write "<font class=fonts><b>Yes!</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
		End If%></td>
	</tr>
	<%next%>
</table>

<br><li>Some File Upload/Manager Component
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#DBC2B0" width="450">
	<tr height=18 class=backs align=center><td width=320>Component Name</td><td width=130>Support & Version</td></tr>
	<%For i=11 to 15%>
	<tr height="18" class=backq>
		<td align=left>&nbsp;<%=ObjTotest(i,0) & "<font color=#888888>&nbsp;" & ObjTotest(i,1)%></font></td>
		<td align=left>&nbsp;<%
		If Not ObjTotest(i,2) Then 
			Response.Write "<font color=red>No!</font>"
		Else
			Response.Write "<font class=fonts><b>Yes!</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
		End If%></td>
	</tr>
	<%next%>
</table>

<br><li>Some Email Component
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="450">
	<tr height=18 class=backs align=center><td width=320>Component Name</td><td width=130>Support & Version</td></tr>
	<%For i=16 to 23%>
	<tr height="18" class=backq>
		<td align=left>&nbsp;<%=ObjTotest(i,0) & "<font color=#888888>&nbsp;" & ObjTotest(i,1)%></font></td>
		<td align=left>&nbsp;<%
		If Not ObjTotest(i,2) Then 
			Response.Write "<font color=red>No!</font>"
		Else
			Response.Write "<font class=fonts><b>Yes!</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
		End If%></td>
	</tr>
	<%next%>
</table>

<br><li>Some Image Component
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="450">
	<tr height=18 class=backs align=center><td width=320>Component Name</td><td width=130>Support & Version</td></tr>
	<%For i=24 to 25%>
	<tr height="18" class=backq>
		<td align=left>&nbsp;<%=ObjTotest(i,0) & "<font color=#888888>&nbsp;" & ObjTotest(i,1)%></font></td>
		<td align=left>&nbsp;<%
		If Not ObjTotest(i,2) Then 
			Response.Write "<font color=red>No!</font>"
		Else
			Response.Write "<font class=fonts><b>Yes!</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
		End If%></td>
	</tr>
	<%next%>
</table>

<br>
<li><font class=fonts>Check the Other Module</font><br>
Please type the ProgId or ClassId of the module.

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="450">
<FORM action=<%=Request.ServerVariables("SCRIPT_NAME")%> method=post id=form1 name=form1>
	<tr height="18" class=backq>
		<td align=center height=30><input class=input type=text value="" name="classname" size=40>
<INPUT type=submit value=" Submit " class=backc id=submit1 name=submit1>
<INPUT type=reset value=" Reset " class=backc id=reset1 name=reset1> 
</td>
	  </tr>
</FORM>
</table>
<br>
<font class=fonts>TEST THE SPEED OF THE SCRIPT SERVER</font><br>
We order the server to make the addition '1+1' for 5 hundred thousand times, and<br>
show how long it used.
<table class=backq border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="450">
  <tr height=18 class=backs align=center>
	<td width=320>Server</td><td width=130>Time</td></tr>
  </tr>
  <tr height=18>
	<td align=left>&nbsp;My computer</td><td>&nbsp;253 ms</td>
  </tr>
  <tr height=18>
	<td align=left>&nbsp;The server of the china-channel.com</td><td>&nbsp;610 ms</td>
  </tr>
  <form action="<%=Request.ServerVariables("SCRIPT_NAME")%>" method=post>
<%

	dim t1,t2,lsabc,thetime
	t1=timer
	for i=1 to 500000
		lsabc= 1 + 1
	next
	t2=timer

	thetime=cstr(int(( (t2-t1)*10000 )+0.5)/10)
%>
  <tr height=18>
	<td align=left>&nbsp;<font color=red>This Server</font>&nbsp;</td><td>&nbsp;<font color=red><%=thetime%> ms</font></td>
  </tr>
  </form>
</table>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -