$UserID = $LoggedUser['ID']; $DB->query(" SELECT g.ID, g.Name, g.WikiImage, g.CategoryID, f.active, t.UserID, s.TorrentID, s.LastUpdate, s.SeedTime, s.Uploaded FROM users_seedtime as s JOIN torrents AS t ON s.TorrentID = t.ID JOIN torrents_group AS g ON g.ID = t.GroupID LEFT JOIN xbt_files_users AS f ON s.TorrentID = f.fid AND s.UserID = f.uid WHERE s.UserID = $UserID"); if ($DB->has_results()) { $Torrents = $DB->to_array(false, MYSQLI_ASSOC, false); } //Include the header View::show_header('Snatch List'); ?>
Torrent | Time Seeded | Last Active | HnR | |
=$DisplayName ?> | =time_diff(time()+$Torrent['SeedTime'], 2, false) ?> | =$Torrent['LastUpdate'] ?> | =($HnR?'Yes':'No') ?> |