无为清净楼资源网 Design By www.qnjia.com
复制代码 代码如下:
<%
Dim Domain
Set Domain = New Cls_DomainFunction
Class Cls_DomainFunction
Private vListURL
Private Thief_
Private vDomainArr, vDomainName
Private vLoopI
Private vDomainsName, vDomainMainBody
Private TLDCode
Private Rs, Sql
Private ExtraDataArr
Private WhoisArr, WhoisCreationDate, WhoisExpirationDate, WhoisORG, WhoisName, WhoisBaiduSite, WhoisBaiduBody, WhoisPageRank
Public SqlQueryLengthID, SqlQueryComposeTypeID, SqlQueryTLDID, SqlOrderByID
Private SqlQueryLength, SqlQueryComposeType, SqlQueryTLD, SqlOrderBy
Public Function GetDomainList(vListID)
Select Case vListID
Case 1 : vListURL = "http://www.cnnic.net.cn/download/registar_list/pendingDel.txt"
Case 2 : vListURL = "http://www.cnnic.net.cn/download/registar_list/future2todayDel.txt"
Case 3 : vListURL = "http://www.cnnic.net.cn/download/registar_list/future1todayDel.txt"
Case 4 : vListURL = "http://www.cnnic.net.cn/download/registar_list/1todayDel.txt"
Case 5 : vListURL = "http://www.cnnic.net.cn/download/registar_list/2todayDel.txt"
Case 6 : vListURL = "http://www.cnnic.net.cn/download/registar_list/3todayDel.txt"
Case Else : vListURL = "http://www.cnnic.net.cn/download/registar_list/future1todayDel.txt"
End Select
Set Thief_ = New Cls_Thief
Thief_.Source = vListURL
Thief_.Steal
vDomainArr = Split(Thief_.Value, vbLf)
Set Thief_ = Nothing
If UBound(vDomainArr) < 2 Then Call Cmd.OutputJavaInfo("CNNIC最新数据库尚未发布。")
Call ConnDB()
For vLoopI = 0 To UBound(vDomainArr)
vDomainsName = LCase(vDomainArr(vLoopI))
If Instr(vDomainsName, ".") > 0 Then
vDomainMainBody = Split(vDomainsName, ".")(0)
Conn.Execute("INSERT INTO [CNDomainList](DomainName, Body, Length, ComposeType, TLD) VALUES('" & vDomainsName & "', '" & vDomainMainBody & "', " & Len(vDomainMainBody) & ", " & GetDomainComposeType(vDomainMainBody) & ", " & GetDomainLTD(vDomainsName) & ")")
End If
Next
Call DisconnDB()
Call CompactDataBase(vDatabasePath, False)
End Function
Public Function ClearUpDatabase()
Call ConnDB()
Conn.Execute("DELETE * FROM [CNDomainList]")
Call DisconnDB()
Call CompactDataBase(vDatabasePath, False)
End Function
Private Function GetDomainComposeType(DomainName)
If Cmd.IsAlpha(DomainName) Then
GetDomainComposeType=1
ElseIf Cmd.IsDigit(DomainName) Then
GetDomainComposeType=2
ElseIf Cmd.IsAlphaDigit(DomainName) Then
GetDomainComposeType=3
Else
GetDomainComposeType=4
End If
End Function
Private Function GetDomainLTD(DomainName)
If UBound(Split(DomainName, ".")) > 1 Then
Select Case Split(DomainName, ".")(1)
Case "com"
TLDCode = 10011
Case "net"
TLDCode = 10021
Case "org"
TLDCode = 10051
Case "gov"
TLDCode = 10061
Case "ac"
TLDCode = 10071
Case Else
TLDCode = 10041
End Select
Else
TLDCode = 10001
End If
GetDomainLTD = TLDCode
End Function
Private Sub CompactDataBase(DataBasePath, boolIs97)
On Error Resume Next
Dim Fso, Engine, strDataBasePath,JET_3X
strDataBasePath = Left(DataBasePath,InstrRev(DataBasePath,"\"))
Set Fso = CreateObject("Scripting.FileSystemObject")
If Err.Number <> 0 Then
Err.Clear()
Exit Sub
End If
If Fso.FileExists(DataBasePath) Then
Fso.CopyFile DataBasePath,strDataBasePath & "CompactDBTemp.mdb"
Set Engine = CreateObject("JRO.JetEngine")
If BoolIs97 = "True" Then
Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDataBasePath & "CompactDBTemp.mdb", _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDataBasePath & "CompactDBTemp1.mdb;" _
& "Jet OLEDB:Engine Type=" & JET_3X
Else
Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDataBasePath & "CompactDBTemp.mdb", _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDataBasePath & "CompactDBTemp1.mdb"
End If
Fso.CopyFile strDataBasePath & "CompactDBTemp1.mdb",DataBasePath
Fso.DeleteFile(strDataBasePath & "CompactDBTemp.mdb")
Fso.DeleteFile(strDataBasePath & "CompactDBTemp1.mdb")
Set Fso = nothing
Set Engine = nothing
If Err.Number <> 0 Then
Err.Clear()
Exit Sub
End If
End If
End Sub
End Class
%>
<%
Dim Domain
Set Domain = New Cls_DomainFunction
Class Cls_DomainFunction
Private vListURL
Private Thief_
Private vDomainArr, vDomainName
Private vLoopI
Private vDomainsName, vDomainMainBody
Private TLDCode
Private Rs, Sql
Private ExtraDataArr
Private WhoisArr, WhoisCreationDate, WhoisExpirationDate, WhoisORG, WhoisName, WhoisBaiduSite, WhoisBaiduBody, WhoisPageRank
Public SqlQueryLengthID, SqlQueryComposeTypeID, SqlQueryTLDID, SqlOrderByID
Private SqlQueryLength, SqlQueryComposeType, SqlQueryTLD, SqlOrderBy
Public Function GetDomainList(vListID)
Select Case vListID
Case 1 : vListURL = "http://www.cnnic.net.cn/download/registar_list/pendingDel.txt"
Case 2 : vListURL = "http://www.cnnic.net.cn/download/registar_list/future2todayDel.txt"
Case 3 : vListURL = "http://www.cnnic.net.cn/download/registar_list/future1todayDel.txt"
Case 4 : vListURL = "http://www.cnnic.net.cn/download/registar_list/1todayDel.txt"
Case 5 : vListURL = "http://www.cnnic.net.cn/download/registar_list/2todayDel.txt"
Case 6 : vListURL = "http://www.cnnic.net.cn/download/registar_list/3todayDel.txt"
Case Else : vListURL = "http://www.cnnic.net.cn/download/registar_list/future1todayDel.txt"
End Select
Set Thief_ = New Cls_Thief
Thief_.Source = vListURL
Thief_.Steal
vDomainArr = Split(Thief_.Value, vbLf)
Set Thief_ = Nothing
If UBound(vDomainArr) < 2 Then Call Cmd.OutputJavaInfo("CNNIC最新数据库尚未发布。")
Call ConnDB()
For vLoopI = 0 To UBound(vDomainArr)
vDomainsName = LCase(vDomainArr(vLoopI))
If Instr(vDomainsName, ".") > 0 Then
vDomainMainBody = Split(vDomainsName, ".")(0)
Conn.Execute("INSERT INTO [CNDomainList](DomainName, Body, Length, ComposeType, TLD) VALUES('" & vDomainsName & "', '" & vDomainMainBody & "', " & Len(vDomainMainBody) & ", " & GetDomainComposeType(vDomainMainBody) & ", " & GetDomainLTD(vDomainsName) & ")")
End If
Next
Call DisconnDB()
Call CompactDataBase(vDatabasePath, False)
End Function
Public Function ClearUpDatabase()
Call ConnDB()
Conn.Execute("DELETE * FROM [CNDomainList]")
Call DisconnDB()
Call CompactDataBase(vDatabasePath, False)
End Function
Private Function GetDomainComposeType(DomainName)
If Cmd.IsAlpha(DomainName) Then
GetDomainComposeType=1
ElseIf Cmd.IsDigit(DomainName) Then
GetDomainComposeType=2
ElseIf Cmd.IsAlphaDigit(DomainName) Then
GetDomainComposeType=3
Else
GetDomainComposeType=4
End If
End Function
Private Function GetDomainLTD(DomainName)
If UBound(Split(DomainName, ".")) > 1 Then
Select Case Split(DomainName, ".")(1)
Case "com"
TLDCode = 10011
Case "net"
TLDCode = 10021
Case "org"
TLDCode = 10051
Case "gov"
TLDCode = 10061
Case "ac"
TLDCode = 10071
Case Else
TLDCode = 10041
End Select
Else
TLDCode = 10001
End If
GetDomainLTD = TLDCode
End Function
Private Sub CompactDataBase(DataBasePath, boolIs97)
On Error Resume Next
Dim Fso, Engine, strDataBasePath,JET_3X
strDataBasePath = Left(DataBasePath,InstrRev(DataBasePath,"\"))
Set Fso = CreateObject("Scripting.FileSystemObject")
If Err.Number <> 0 Then
Err.Clear()
Exit Sub
End If
If Fso.FileExists(DataBasePath) Then
Fso.CopyFile DataBasePath,strDataBasePath & "CompactDBTemp.mdb"
Set Engine = CreateObject("JRO.JetEngine")
If BoolIs97 = "True" Then
Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDataBasePath & "CompactDBTemp.mdb", _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDataBasePath & "CompactDBTemp1.mdb;" _
& "Jet OLEDB:Engine Type=" & JET_3X
Else
Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDataBasePath & "CompactDBTemp.mdb", _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDataBasePath & "CompactDBTemp1.mdb"
End If
Fso.CopyFile strDataBasePath & "CompactDBTemp1.mdb",DataBasePath
Fso.DeleteFile(strDataBasePath & "CompactDBTemp.mdb")
Fso.DeleteFile(strDataBasePath & "CompactDBTemp1.mdb")
Set Fso = nothing
Set Engine = nothing
If Err.Number <> 0 Then
Err.Clear()
Exit Sub
End If
End If
End Sub
End Class
%>
标签:
域名查询系统用到的类
无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com
暂无评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
2024年11月16日
2024年11月16日
- 周华健《粤语精选》[WAV+CUE][1G]
- 蔡婧2024《天空》HQCDII头版限量编号[WAV+CUE][1G]
- 陈奂仁.2011-谁是陈奂仁【BBS】【FLAC分轨】
- 群星.2024-幻乐森林影视原声带【韶愔音乐】【FLAC分轨】
- 黎明.1999-向往金色的黎明新歌+精选2CD【环球】【WAV+CUE】
- 发烧女声Méav《美芙的祈祷》发烧女声 [WAV+CUE][820M]
- 雷婷 《我的爱回不来》紫银合金AQCD [WAV+CUE][1G]
- 群星 DTS《天籁之音·唱醉了草原》2CD[WAV分轨][1.6G]
- 魔兽世界wlk毁灭术一键输出宏是什么 wlk毁灭术一键输出宏介绍
- 三国志8重制版无法与武将交流怎么办 无法与武将交流解决方法一览
- 三国志8重制版恶名怎么消除 恶名影响与消除方法介绍
- 模拟之声慢刻CD《柏林之声5》2019[原抓WAV+CUE]
- AlexandraSoumm-Parisestunefte(2024)[24Bit-96kHz]FLAC
- 李嘉《国语转调1》[天王唱片][WAV整轨]
- 不是哥们 这都能跑?网友展示用720显卡跑《黑神话》