摘要:
自己的网站一直在使用别人提供的免费统计,如51YES,ITSUN,1TONG,51.LA,ADMIN88,50BANG等等,其中有很不错的统计系统,但免费归免费,这些服务器由于承受的负载都很大,偶尔还是会挂机的,一挂一般都是半天以上;况且有一些统计系统是不准确的.关键字:
ASP 统计 正文:
tnum=30 每页显示数
今日IP
function todayip()
sql="Select count(id) from ip"
set ips=conn.execute(sql)
todayip=ips(0)
ips.close
set ips=nothing
end function
今日PV
function todaypv()
sql="Select sum(n) from ip"
set rs=conn.execute(sql)
If rs.eof and rs.bof Then
todaypv=0
Else
todaypv=rs(0)
end if
rs.close
set rs=nothing
end function
在线人数
function online()
sql="Select count(id) from ip WHERE DATEDIFF(s, lastime, now()) < "&kicktime&"*60"
set ips=conn.execute(sql)
online=ips(0)
ips.close
set ips=nothing
end function
%>
<html>
<head>
<title>在线IP - 飘易网站统计程序 V1.5</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="css.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.style1 {
font-size: 14pt;
font-weight: bold;
}
-->
</style>
</head>
<body>
<!--#include file="head.asp"-->
<!--飘易网站统计程序 V1.5 Powered by flymorn,www.cn-pn.com-->
<div align="center"><br>
<span class="style1">IP列表 - 飘易网站统计程序 V1.5</span><br>
<br>
(为节约系统开支,仅保留当天所有即时IP数据!)
</div>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="756" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td><hr noshade size="1">[ 当前在线:<font color=red><b><%=online()%></b></font>人 ] [ 今日IP:<b><%=todayip()%></b> ] [ 今日PV:<b><%=todaypv()%></b> ]<br>
<b>当前IP列表:</b> </td>
</tr>
</table></td>
</tr>
</table>
<!--Powered by flymorn,www.cn-pn.com-->
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="biao_bdr3">
<tr>
<td><table width="758" border="1" align="left" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#DADCE4" class="xi">
<tr>
<td width="40"><div align="center"><strong>用户</strong></div></td>
<td width="100"><div align="center"><strong>IP</strong></div></td>
<td width="150"><div align="c
[1][2][3][4][5][6][7][8][9][10]