if(!isset($_GET['torrentid']) || !is_number($_GET['torrentid']) || !check_perms('site_view_torrent_snatchlist')) { error(404); } $TorrentID = $_GET['torrentid']; if(!empty($_GET['page']) && is_number($_GET['page'])) { $Page = $_GET['page']; $Limit = (string)(($Page-1)*100) .', 100'; } else { $Page = 1; $Limit = 100; } $Result = $DB->query("SELECT SQL_CALC_FOUND_ROWS xs.uid, xs.tstamp FROM xbt_snatched AS xs WHERE xs.fid='$TorrentID' ORDER BY xs.tstamp DESC LIMIT $Limit"); $Results = $DB->to_array('uid', MYSQLI_ASSOC); $DB->query("SELECT FOUND_ROWS()"); list($NumResults) = $DB->next_record(); ?>
User | Time | User | Time |
=Users::format_username($SnatcherID, true, true, true, true)?> | =time_diff($Timestamp)?> | $i++; } ?>