query(" SELECT SQL_CALC_FOUND_ROWS xu.uid, t.Size, xu.active, xu.connectable, xu.uploaded, xu.remaining, xu.useragent FROM xbt_files_users AS xu LEFT JOIN users_main AS um ON um.ID = xu.uid JOIN torrents AS t ON t.ID = xu.fid WHERE xu.fid = '$TorrentID' AND um.Visible = '1' ORDER BY xu.uid = '$LoggedUser[ID]' DESC, xu.uploaded DESC LIMIT $Limit"); $DB->query('SELECT FOUND_ROWS()'); list($NumResults) = $DB->next_record(); $DB->set_query_id($Result); ?>
User | Active | Connectable | Up | % | Client |
=Users::format_username($PeerUserID, false, false, false)?> | =($Active) ? 'Yes' : 'No' ?> | = ($Connectable) ? 'Yes' : 'No' ?> | =Format::get_size($Uploaded) ?> | =number_format(($Size - $Remaining) / $Size * 100, 2)?> | =display_str($UserAgent)?> |