if(!isset($_GET['id']) || !is_number($_GET['id']) || !isset($_GET['torrentid']) || !is_number($_GET['torrentid'])) { error(0); } $GroupID = $_GET['id']; $TorrentID = $_GET['torrentid']; $DB->query("SELECT t.Media, t.Format, t.Encoding AS Bitrate, t.RemasterYear, t.Remastered, t.RemasterTitle, t.Scene, t.FreeTorrent, t.Dupable, t.DupeReason, t.Description AS TorrentDescription, tg.CategoryID, tg.Name AS Title, tg.Year, tg.ArtistID, ag.Name AS ArtistName, t.GroupID, t.UserID, t.FreeTorrent FROM torrents AS t JOIN torrents_group AS tg ON tg.ID=t.GroupID LEFT JOIN artists_group AS ag ON ag.ArtistID=tg.ArtistID WHERE t.ID='$TorrentID'"); list($Properties) = $DB->to_array(false,MYSQLI_BOTH); if(!$Properties) { error(404); } View::show_header('Edit torrent', 'upload'); if(!check_perms('site_moderate_requests')) { error(403); } ?>