= ? AND ts < ?" . $whereClause; $count_records = (int)get_single_field($db_link, $countSQL, $params); $total = ceil($count_records / $displayed); $page = max(1, min($page, $total)); $start = ($page - 1) * $displayed; print_navigation($page_url, $page, $displayed, $count_records, $total); $dataParams = array_merge($params, [$displayed, $start]); $sSQL = " SELECT * FROM user_auth WHERE ts >= ? AND ts < ?" . $whereClause . " ORDER BY id DESC LIMIT ? OFFSET ? "; $iplog = get_records_sql($db_link, $sSQL, $dataParams); ?>
\n"; print "\n"; print "\n"; print "\n"; if (isset($row['id']) and $row['id'] > 0) { print "\n"; } else { print "\n"; } print "\n"; print "\n"; print "\n"; print "\n"; } print "
id
" . $row['id'] . "" . get_datetime_display($row['ts']) . "" . get_datetime_display($row['last_found']) . "" . $row['ip'] . "" . $row['ip'] . "" . expand_mac($db_link,mac_dotted($row['mac'])) . "" . $row['dhcp_hostname'] . "" . $row['dns_name'] . "
\n"; print_navigation($page_url,$page,$displayed,$count_records,$total); require_once ($_SERVER['DOCUMENT_ROOT']."/inc/footer.php"); ?>