/**
 * Statistics tracker
 * @return array
 */
function jtracker_statistics($start = null, $limit = null)
{
    $info = jtracker_total();
    $info['all_stat'] = jtracker_info(0, 0, $start, $limit);
    return $info;
}
示例#2
0
            fclose($fp);
            break;
    }
    exit;
}
$limit = 50;
if (isset($_GET['limit'])) {
    $limit = (int) $_GET['limit'];
}
if ($limit <= 0) {
    $limit = 50;
}
if (isset($_GET['page'])) {
    $page = (int) $_GET['page'];
}
$stat = jtracker_total();
if ($page <= 0 || $page > ceil((int) $stat['track_total'] / (int) $limit)) {
    $page = 1;
}
$start = ($page - 1) * $limit;
$stat['all_stat'] = jtracker_info(0, 0, $start, $limit);
?>
<!DOCTYPE html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php 
echo HTML_PARAMS;
?>
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo CHARSET;
?>