<%@ CODEPAGE = "936" %> <% '================================= ' ' 阿江酷站访问统计系统 ' Ajiang info@ajiang.net ' www.ajiang.net ' ' 版权所有·抄袭挪用必究 ' '================================= %> <% '权限分配 if session.Contents("master")=false and whatcan<1 then Response.Redirect "help.asp?id=004&error=本统计系统管理员不允许访客查看任何信息。" set conn=server.createobject("adodb.connection") DBPath = Server.MapPath(connpath) conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath '所有总访问数、开始访问日期(从主数据库读取) tmprs=conn.execute("Select vtop,starttime from vjian") vtotal=tmprs("vtop") vfirst=tmprs("starttime") set tmprs=nothing if isnull(vtotal) then vtotal=0 if vtotal=0 then conn.Close set conn=nothing Response.Redirect "help.asp?id=007&error=统计系统还没有启用,尚不能查看统计报告。" end if '在线人数 Set rs = Server.CreateObject("ADODB.Recordset") sql="select vip from view where vtime >= dateadd('n',-20,now()) group by vip" rs.Open sql,conn,1,1 vonline=rs.RecordCount rs.Close set rs=nothing '今日访问量、昨日访问量(从简数据朝读取) tmprs=conn.execute("Select today,yesterday from vjian") vtoday=tmprs("today") vyesterday=tmprs("yesterday") if isnull(vtoday) then vtoday=0 if isnull(vyesterday) then vyesterday=0 '今年访问量 tmprs=conn.execute("Select count(id) as vthisyear from view where vyear=" & year(now)) vthisyear=tmprs("vthisyear") if isnull(vthisyear) then vthisyear=0 '本月访问量 tmprs=conn.execute("Select count(id) as vthismonth from view where vmonth=" & month(now) & " and vyear=" & year(now)) vthismonth=tmprs("vthismonth") if isnull(vthismonth) then vthismonth=0 '访问天数、平均每天访问量 vdays=now()-vfirst vdayavg=vtotal/vdays vdays=int((vdays*10^mPrecision)+0.5)/(10^mPrecision) if vdays<1 then vdays="0" & vdays vdayavg=int((vdayavg*10^mPrecision)+0.5)/(10^mPrecision) '预计今日访问量 vdaylong=now()-date() vguess=int(((vtoday/vdaylong)+vyesterday)/2+0.5) if vguess< vtoday then vguess=int((vtoday/vdaylong)+0.5) '当前用户放量 vuser=cint(Request.Cookies(mNameEn)("lao")) conn.Close set conn=nothing %> <%=countname%>
   ∷∷∷ 总 体 数 据 ∷∷∷

总访问量:   <%=vtotal+old_count%>
用本系统前: <%=old_count%>
用本系统后: <%=vtotal%>
在线人数:   <%=vonline%>
您的访问量: <%=vuser%>
开始统计于: <%=vfirst%>
今日访问量: <%=vtoday%>
昨日访问量: <%=vyesterday%>
今年访问量: <%=vthisyear%>
本月访问量: <%=vthismonth%>
统计天数:   <%=vdays%>
平均日访量: <%=vdayavg%>
预计今日:   <%=vguess%>

网站: <%=mName%>
连接: <%=mURL%>
站长: <%=masterName%>
信箱: <%=masterEmail%>

简介: <%=SiteBrief%>


<%if yestop=0 and yesleft=0 then%>
<%end if%>