兔子专栏

刘晓逸(liuxiaoyi666)的小地盘

用户操作
[即时聊天] [发私信] [加为好友]
刘晓逸ID:liuxiaoyi666
70794次访问,排名1448好友121人,关注者435
微软最有价值专家,asp,asp.net
liuxiaoyi666的文章
原创 51 篇
翻译 0 篇
转载 0 篇
评论 91 篇
最近评论
wwd252:支持这种文章,lz能多写点就好了
liuxiaoyi666:我在有一次部门内部的讲课中,我提到的方法是先分析涉众利益,根据利益相关度及权重进行计算,不过通常我所说的计算并非真实的计算,当然如果真的有数据的可以算的,这个的思考模型来自于决策论
holiday1001:分析团队人员的兴趣点很重要, 用什么计算公式去分析呢?
coder_java:老师您好,我想请教如何在上传时验证服务器端文件是否已经存在,若存在弹出js提示是否覆盖,确定时,就覆盖已有的文件,取消就返回浏览状态,若有示例能否发到小弟email:pigdone@126.com, 谢谢!
loveblack123:好文
文章分类
收藏
    相册
    朋友
    lingll的专栏
    孟子E章
    我小弟寻斌
    殷鹏
    特种兵
    莫依
    虎子的blog
    超级笨狼
    陈锐新书
    龙的天空
    自己的其他blog
    博客园的blog
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 用asp文件制作的网站流量统计工具收藏

    新一篇: vb6下制作托盘程序 | 旧一篇: dotnet下用c#制作下载工具

    <!-- #include virtual = "/include/conn.asp" -->
    <%
       str_referrer=str_inject(request("referrer"))
      Response.Expires = 0
      queryurl=str_inject(Request.ServerVariables("HTTP_REFERER"))
      str_url=str_inject(Request.ServerVariables("URL"))
      str_ip=str_inject(Request.ServerVariables("REMOTE_ADDR"))
      membername=str_inject(session("member_id"))
      domainurl=str_inject(Request.ServerVariables("SERVER_NAME"))
      thesoft=Request.ServerVariables("HTTP_USER_AGENT")
    ' 浏览器
    if instr(thesoft,"NetCaptor") then
     vsoft="NetCaptor"
    elseif instr(thesoft,"MSIE 6") then
     vsoft="MSIE 6.x"
    elseif instr(thesoft,"MSIE 5") then
     vsoft="MSIE 5.x"
    elseif instr(thesoft,"MSIE 4") then
     vsoft="MSIE 4.x"
    elseif instr(thesoft,"Netscape") then
     vsoft="Netscape"
    elseif instr(thesoft,"Opera") then
     vsoft="Opera"
    else
     vsoft="Other"
    end if
    ' 操作系统
    if instr(thesoft,"Windows NT 5.0") then
     vOS="Win 2000"
    elseif instr(thesoft,"Windows NT 5.1") then
     vOs="Win XP"
    elseif instr(thesoft,"Windows NT") then
     vOs="Win NT"
    elseif instr(thesoft,"Windows 9") then
     vOs="Win 9x"
    elseif instr(thesoft,"unix") or instr(thesoft,"linux") or instr(thesoft,"SunOS") or instr(thesoft,"BSD") then
     vOs="类Unix"
    elseif instr(thesoft,"Mac") then
     vOs="Mac"
    else
     vOs="Other"
    end if
    if len(membername)=0 then
       membername="游客"
    end if
      str_ip=cip(str_ip)
      sql="select top 1 * from ip where onip<=" & str_ip & " and offip>=" & str_ip
      set rs=conn.execute(sql)
      if not rs.eof then
         addr=rs("addj") & " " & rs("addf")
      else
         addr=""
      end if
      rs.close
      queryurl=replace(queryurl,"http://","")
      if len(queryurl)<>0 then
      queryurl=mid(queryurl,instr(queryurl,"/")+1,len(queryurl)-1)
       if instr(queryurl,"?")<>0 then
      queryurl=left(queryurl,instr(queryurl,"?")-1)
      end if
        if instrrev(queryurl,"/",-1)=len(queryurl) then
             queryurl=queryurl & "default.asp"
         end if
      end if
      sql="insert into urlcount(refferer,queryurl,visittime,domainurl,membername,ip,addr,vos,vsoft) values('" & str_referrer & "','" & queryurl & "',getdate(),'" & domainurl & "','" & membername & "','" & str_ip & "','" & addr & "','" & vOS & "','" & vsoft & "')"
      conn.execute(sql)
     
      connclose
     
      function str_inject(str)
         if len(str)<>0 then
          str_inject=replace(str,"'","''")
       else
          str_inject=""
       end if
      end function
     
      function cip(sip)
     tip=cstr(sip)
     sip1=left(tip,cint(instr(tip,".")-1))
     tip=mid(tip,cint(instr(tip,".")+1))
     sip2=left(tip,cint(instr(tip,".")-1))
     tip=mid(tip,cint(instr(tip,".")+1))
     sip3=left(tip,cint(instr(tip,".")-1))
     sip4=mid(tip,cint(instr(tip,".")+1))
     cip=cint(sip1)*256*256*256+cint(sip2)*256*256+cint(sip3)*256+cint(sip4)
    end function
    %>

    发表于 @ 2006年06月02日 14:25:00|评论(loading...)|编辑

    新一篇: vb6下制作托盘程序 | 旧一篇: dotnet下用c#制作下载工具

    评论:没有评论。

    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © liuxiaoyi666