query("DELETE FROM torrents_bad_folders WHERE TorrentID = ".$_GET['remove']); $DB->query("SELECT GroupID FROM torrents WHERE ID = ".$_GET['remove']); list($GroupID) = $DB->next_record(); $Cache->delete_value('torrents_details_'.$GroupID); } if(!empty($_GET['filter']) && $_GET['filter'] == "all") { $Join = ""; $All = true; } else { $Join = "JOIN xbt_snatched as x ON x.fid=tbf.TorrentID AND x.uid = ".$LoggedUser['ID']; $All = false; } show_header('Torrents with bad folder names'); $DB->query("SELECT tbf.TorrentID, t.GroupID FROM torrents_bad_folders AS tbf JOIN torrents AS t ON t.ID = tbf.TorrentID ".$Join." ORDER BY tbf.TimeAdded ASC"); $TorrentsInfo = $DB->to_array('TorrentID', MYSQLI_ASSOC); foreach($TorrentsInfo as $Torrent) { $GroupIDs[] = $Torrent['GroupID']; } $Results = get_groups($GroupIDs); $Results = $Results['matches']; ?>
=$DisplayName?> [DL] if(check_perms('admin_reports')) { ?> [X] } ?> |