query(" SELECT t.Media, t.Format, t.Encoding AS Bitrate, t.RemasterYear, t.Remastered, t.RemasterTitle, t.RemasterCatalogueNumber, t.RemasterRecordLabel, t.Scene, t.FreeTorrent, t.FreeLeechType, t.Description AS TorrentDescription, tg.CategoryID, tg.Name AS Title, tg.Year, tg.ArtistID, tg.VanityHouse, ag.Name AS ArtistName, t.GroupID, t.UserID, t.HasLog, t.HasCue, t.LogScore, bt.TorrentID AS BadTags, bf.TorrentID AS BadFolders, bfi.TorrentID AS BadFiles, ca.TorrentID AS CassetteApproved, lma.TorrentID AS LossymasterApproved, lwa.TorrentID AS LossywebApproved FROM torrents AS t LEFT JOIN torrents_group AS tg ON tg.ID=t.GroupID LEFT JOIN artists_group AS ag ON ag.ArtistID=tg.ArtistID LEFT JOIN torrents_bad_tags AS bt ON bt.TorrentID=t.ID LEFT JOIN torrents_bad_folders AS bf ON bf.TorrentID=t.ID LEFT JOIN torrents_bad_files AS bfi ON bfi.TorrentID=t.ID LEFT JOIN torrents_cassette_approved AS ca ON ca.TorrentID=t.ID LEFT JOIN torrents_lossymaster_approved AS lma ON lma.TorrentID=t.ID LEFT JOIN torrents_lossyweb_approved AS lwa ON lwa.TorrentID=t.id WHERE t.ID='$TorrentID'"); list($Properties) = $DB->to_array(false,MYSQLI_BOTH); if (!$Properties) { error(404); } $UploadForm = $Categories[$Properties['CategoryID'] - 1]; if (($LoggedUser['ID'] != $Properties['UserID'] && !check_perms('torrents_edit')) || $LoggedUser['DisableWiki']) { error(403); } View::show_header('Edit torrent', 'upload'); if (!($Properties['Remastered'] && !$Properties['RemasterYear']) || check_perms('edit_unknowns')) { $TorrentForm = new TORRENT_FORM($Properties, $Err, false); $TorrentForm->head(); switch ($UploadForm) { case 'Music': $TorrentForm->music_form(''); break; case 'Audiobooks': case 'Comedy': $TorrentForm->audiobook_form(); break; case 'Applications': case 'Comics': case 'E-Books': case 'E-Learning Videos': $TorrentForm->simple_form($Properties['CategoryID']); break; default: $TorrentForm->music_form(''); } $TorrentForm->foot(); } if (check_perms('torrents_edit') && (check_perms('users_mod') || $Properties['CategoryID'] == 1)) { ?>

Change group

Group ID

Split off into new group

Artist
Title
Year

Change category

Change category
Release type
Artist
Title
Year