📄 ads.asp
字号:
<%
Class ImplMocomWAPmoWAPAds
Private Sub Class_Initialize()
Set MyXML = MyKernel.XMLParser
End Sub
Private Sub Class_Terminate()
End Sub
Public Sub main()
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
Call doPost
Else
Call doGet
End If
End Sub
Private Sub doGet()
Dim strURL
Dim lngId
Dim rs, strSQL
lngId = atol(Request.QueryString("id"))
strURL = Request.QueryString("URL")
If strURL = "" Then
MyXML.Println "未知请求"
ElseIf lngId < 1 Then
MyXML.Println "未知请求"
Else
strSQL = getLimitSQL(1, "HIT", T_ADS, "SEQID=" & lngId, "", "")
Set rs = MyKernel.DB.Query(strSQL, adOpenKeyset, adLockOptimistic, adCmdText)
If rs.EOF Then
MyXML.Println "广告连接丢失"
Else
rs("Hit") = rs("Hit") + 1
rs.Update
End If
rs.Close
Set rs = Nothing
MyRedirect strURL
End If
Call BackHome
MyXML.Transform Response
End Sub
Private Sub doPost()
End Sub
Public Function newInstance()
Set newInstance = New ImplMocomWAPmoWAPAds
End Function
End Class
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -