<Script Language="VB" Runat="Server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Sw As StreamWriter
Dim Bc as HttpBrowserCapabilities
Dim Flag as Boolean
Dim DownStr As String
If ObjCheck("ADODB.RecordSet") Then
Obj_Access.Text="支持" & ObjVer("ADODB.RecordSet")
Else
Obj_Access.Text="不支持"
End If
If ObjCheck("Scripting.FileSystemObject") Then
Obj_Fso.Text="支持"
Else
Obj_Fso.Text="不支持"
End If
If ObjCheck("JMail.SmtpMail") Then
Obj_Jmail.Text="支持,版本:" & ObjVer("JMail.SmtpMail") & DownStr
Else
Obj_Jmail.Text="不支持" & DownStr
End If
If ObjCheck("CDONTS.NewMail") Then
Obj_Cdonts.Text="支持,版本:" & ObjVer("CDONTS.NewMail")
Else
Obj_Cdonts.Text="不支持"
End If
If ObjCheck("Persits.Jpeg") Then
Obj_AspJpeg.Text="支持,版本:" & ObjVer("Persits.Jpeg") & DownStr
Else
Obj_AspJpeg.Text="不支持" & DownStr
End If
If ObjCheck("Persits.Upload.1") Then
Obj_AspUpload.Text="支持,版本:" & ObjVer("Persits.Upload.1") & DownStr
Else
Obj_AspUpload.Text="不支持" & DownStr
End If
If ObjCheck("ADODB.RecordSet") Then
Obj_Access.Text="支持"
Else
Obj_Access.Text="不支持"
End If
Try
Sw = New StreamWriter(Server.MapPath("AspxCheck_Temp.htm"), False, System.Text.Encoding.GetEncoding("GB2312"))
Sw.WriteLine(Now())
Sw.Close()
Flag = True
Catch ex As Exception
Flag = False
End Try
If Flag=True Then
Obj_Write.Text="<b>支持</b>"
Else
Obj_Write.Text="<font color='ff0000'><b>不支持</b></font>"
End If
systitle.text=" <strong style='font-size:18pt'>乘风ASP<SUP><font size='2' style='font-size:12pt'>.net</font></SUP> 探针 V1.1</strong><br><a href=http://www.qqcf.com target=_blank style='font-size:12px;color:#ff0000;text-decoration:underline'>Powered By CF</a>"
End Sub
Private Sub SelfObjChk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim ObjName As String
ObjName = Trim(SelObj.value)
If ObjCheck(ObjName) Then
Obj_SelfObj.Text="支持,版本:" & ObjVer(ObjName)
Else
Obj_SelfObj.Text="不支持"
End If
End Sub
Private Function ObjCheck(ByVal a As String) As Boolean
Dim b As Boolean
Try
Dim c = Server.CreateObject(a)
b = True
Catch exception1 As Exception
ProjectData.SetProjectError(exception1)
b = False
ProjectData.ClearProjectError
End Try
Return b
End Function
Private Function ObjVer(ByVal a As String) As string
Dim b As string
Try
Dim c = Server.CreateObject(a)
b = c.version
Catch exception1 As Exception
ProjectData.SetProjectError(exception1)
ProjectData.ClearProjectError
End Try
Return b
End Function
</Script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html><head><title>小菜asp.net探针</title>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<style type="text/css">
body {text-align: left; font-family:Arial; margin:0; padding:0; background: #FFF; font-size:12px; color:#333333;}
table{font-size:12px;}