点击这里给我发消息 点击这里给我发消息
首页 > 行业资讯 > Wap>详细内容

WAP站点统计系统一小段程序

添加时间:2010-1-5
    相关阅读: 程序 Access VC 系统

<%
DbName="info.mdb"
Set Conn=Server.CreateObject("ADODB.CONNECTION")
ConnStr="DBQ="+Server.Mappath(DbName)+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
Conn.Open ConnStr
Set Rs=Server.CreateObject("ADODB.RECORDSET")
%>
<%
Dim Ip,number,mobiletype,loca,uri,size
Dim Conn,Sql,Rs

Ip=Request.ServerVariables("REMOTE_ADDR")
uri=Request.ServerVariables("PATH_INFO")

number1=Request.ServerVariables ( "HTTP_x-up-calling-line-id" )
mobile1=Request.ServerVariables ( "HTTP_User-Agent" )
if Len(number1)=13 then
number = Right(number1,Len(number1)-2)
else
number= number1
end if
mobile2 = Split(mobile1,"/")
mobiletype=mobile2(0)
loca=Request.Cookies( "CUI" )
size = Request("HTTP_X_UP_DEVCAP_SCREENPIXELS")
uri1 = Split(uri,"/")
uri2=uri1(1)

Sql="Select * From Visitor Order By Id DESC"
Rs.Open Sql,Conn,1,3

if not ((number=Session("number")) and (uri2=Session("uri2")) and (HOUR(time)-HOUR(Session("time"))=0) ) then

  Session("time")=time
  Session("number")=number
  Session("uri2")=uri2

  Rs.Addnew
  Rs("SDate")=date
  Rs("STime")=time
  Rs("IP")=Ip
  Rs("UserNo")=number
  Rs("MobileType")=mobiletype
  Rs("CUI")=loca
  Rs("URI")=uri2
  Rs("size")=size
  Rs.Update
  Rs.Close

else
  Rs.close
end if
Conn.Close
Set Rs=Nothing
Set Conn=Nothing
%>

本文作者:
咨询热线:020-85648757 85648755 85648616 0755-27912581 客服:020-85648756 0755-27912581 业务传真:020-32579052
广州市网景网络科技有限公司 Copyright◎2003-2008 Veelink.com. All Rights Reserved.
广州商务地址:广东省广州市黄埔大道中203号(海景园区)海景花园C栋501室
= 深圳商务地址:深圳市宝源路华丰宝源大厦606
研发中心:广东广州市天河软件园海景园区 粤ICP备05103322号 工商注册