ITPub博客

首页 > Linux操作系统 > Linux操作系统 > WAP获取手机终端信息的一段程序(转)

WAP获取手机终端信息的一段程序(转)

原创 Linux操作系统 作者:jcszjswkzhou 时间:2019-06-06 11:21:04 0 删除 编辑
<%
Dim Ip,number,mobiletype,loca,uri
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" )
number = Right(number1,Len(number1)-2)
mobile2 = Split(mobile1,"/")
mobiletype=mobile2(0)
loca=Request.Cookies( "CUI" )

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

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

Rs.Update
Rs.Close

Conn.Close
Set Rs=Nothing
Set Conn=Nothing
%>

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10294527/viewspace-125361/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2007-08-29

  • 博文量
    3481
  • 访问量
    3018469