='$date1' AND `timestamp`<'$date2' $mac_where ORDER BY id DESC"; $count_records = get_single_field($db_link,$countSQL); $total=ceil($count_records/$displayed); if ($page>$total) { $page=$total; } if ($page<1) { $page=1; } $start = ($page * $displayed) - $displayed; print_navigation($page_url,$page,$displayed,$count_records,$total); ?>
='$date1' AND `timestamp`<'$date2' $mac_where ORDER BY `timestamp` DESC LIMIT $start,$displayed"; $maclog = get_records_sql($db_link, $sSQL); foreach ($maclog as $row) { print "\n"; print "\n"; print "\n"; print "\n"; if (isset($row['auth_id']) and $row['auth_id'] > 0) { print "\n"; } else { print "\n"; } print "\n"; } print "
" . $row['timestamp'] . "" . expand_mac($db_link,mac_dotted($row['mac'])) . "" . get_port($db_link, $row['port_id']) . "" . $row['ip'] . "" . $row['ip'] . "
\n"; print_navigation($page_url,$page,$displayed,$count_records[0],$total); require_once ($_SERVER['DOCUMENT_ROOT']."/inc/footer.php"); ?>