"
AdMentor_GetAdEx = sRet
' Lets update impression for it
AdMentor_DBAddShowCount oConn, nBanner
oRS.Close
Set oRS = Nothing
oConn.Close
Set oConn = Nothing
End Function
Public Function AdMentor_ClickAd(nBannerId, sWay)
Dim oConn
Dim sSQL
Dim sSQL2
Dim oRS
Dim sRedir
Dim fIsUnderText
If sWay ="txt" Then
fIsUnderText = true
Else
fIsUnderText = false ' Clicked on actual banner
End If
'Pretty easy...
Set oConn = AdMentor_DBOpenConnection()
sRedir = AdMentor_DBUpdateClickCountAndGetUrl( oConn, nBannerId, fIsUnderText )
oConn.Close
Set oConn = Nothing
AdMentor_ClickAd = sRedir
End Function
Private Function FixupSpecialVariables( sHTML )
'Now check for ' 0 Then
sLeftHTML = Left( sHTML, nIndStart -1 )
nIndEnd = InStr( nIndStart, sHTML, ">" )
sRightHTML = Mid( sHTML, nIndEnd + 1 )
sSubStr = Mid( sHTML, nIndStart, nIndEnd - nIndStart )
vData = Split( sSubStr, "-")
If vData(1) = "LAST" Then
nNumber = Session("AdMentor_RndNumber")
Else
nLow = CLng(vData(1))
nHigh = CLng(vData(2))
Randomize
nNumber = CLng((nHigh * Rnd) + nLow)
Session("AdMentor_RndNumber") = nNumber
End If
sHTML = sLeftHTML & CStr(nNumber) & sRightHTML
End If
If InStr( 1,CStr(sHTML), " 0 Then
fCont = True
Else
fCont = False
End If
Wend
FixupSpecialVariables = sHTML
End Function
Public Function GetAdminPagesBannerCode()
'Want to advertise on your admin pages?
'Then just change this function to what you want...
'What I do is just call AdMentorGetAd with a special banner id
'to get by Datais-banners showed
' Dim sRet
' sRet = AdMentor_GetAdASP("B=93")
GetAdminPagesBannerCode = ""
End Function
%>
Natural Awakenings Miami & Key West