query(" SELECT um.Username, p.Level AS Class FROM users_main AS um LEFT JOIN permissions AS p ON p.ID=um.PermissionID WHERE um.ID = ".$UserID); list($Username, $Class) = $DB->next_record(); if (!check_perms('users_view_ips', $Class)) { error(403); } $UsersOnly = $_GET['usersonly']; View::show_header("Tracker IP history for $Username"); ?> list($Page, $Limit) = Format::page_limit(IPS_PER_PAGE); $TrackerIps = $DB->query(" SELECT IP, fid, tstamp FROM xbt_snatched WHERE uid = $UserID AND IP != '' ORDER BY tstamp DESC LIMIT $Limit"); $DB->query("SELECT FOUND_ROWS()"); list($NumResults) = $DB->next_record(); $DB->set_query_id($TrackerIps); $Pages = Format::get_pages($Page, $NumResults, IPS_PER_PAGE, 9); ?>
IP address | Torrent | Time |
=$IP?> (=Tools::get_country_code_by_ajax($IP)?>) =Tools::get_host_by_ajax($IP)?> WI |
=$TorrentID?> | =date('Y-m-d g:i:s', $Time)?> |