include "_header.php";
DrawHeader($_VAR['PROJECT_LONG_NAME'].' - Online Users',"");
$sql="Select idx,hash,UNIX_TIMESTAMP(thetime) as tm from online order by thetime desc";
$result = mysql_query($sql) or die("Query failed: $sql");
?>
if($_VAR['NumOnline']==1){
print "{$_VAR['NumOnline']} user is currently online.";
} else {
print "{$_VAR['NumOnline']} users are currently online.";
}
?>
|
Visitor Signature |
Last Page Access |
$toggle=1;
$num=0;
while($rs = mysql_fetch_assoc($result)){
$toggle=1-$toggle;
if($toggle==1){
$cls="bline";
} else {
$cls="bline shaded";
}
$num++;
echo "";
echo "$num. | ";
echo "{$rs['hash']} | ";
echo "".date("n/j/Y \a\\t g:i a",$rs['tm'])." | ";
echo "
";
}
?>
Unique users are identified by their IP address and browser signiture.
include "_footer.php";?>