query(" SELECT SQL_CALC_FOUND_ROWS ud.UserID, ud.Time FROM users_downloads AS ud WHERE ud.TorrentID='$TorrentID' ORDER BY ud.Time DESC LIMIT $Limit"); $UserIDs = $DB->collect('UserID'); $Results = $DB->to_array('UserID', MYSQLI_ASSOC); $DB->query('SELECT FOUND_ROWS()'); list($NumResults) = $DB->next_record(); if (count($UserIDs) > 0) { $UserIDs = implode(',',$UserIDs); $DB->query(" SELECT uid FROM xbt_snatched WHERE fid='$TorrentID' AND uid IN($UserIDs)"); $Snatched = $DB->to_array('uid'); $DB->query(" SELECT uid FROM xbt_files_users WHERE fid='$TorrentID' AND Remaining=0 AND uid IN($UserIDs)"); $Seeding = $DB->to_array('uid'); } ?>

List of Downloaders

100) { ?> $Data) { list($SnatcherID, $Timestamp) = array_values($Data); $User = Users::format_username($SnatcherID, true, true, true, true); if (!array_key_exists($SnatcherID, $Snatched) && $SnatcherID != $UserID) { $User = ''.$User.''; if (array_key_exists($SnatcherID, $Seeding)) { $User = ''.$User.''; } } if ($i % 2 == 0 && $i > 0) { ?>
User Time User Time
100) { ?>