query(" SELECT t.`Media`, t.`Container`, t.`Codec`, t.`Resolution`, t.`Version`, t.`Censored`, t.`Anonymous`, t.`Archive`, t.`FreeTorrent`, t.`FreeLeechType`, t.`Description` AS TorrentDescription, t.`FileList`, tg.`category_id`, tg.`title` AS title, tg.`subject` AS subject, tg.`object` AS object, tg.`published`, tg.`workgroup`, tg.`location`, tg.`identifier`, ag.`Name` AS ArtistName, t.`GroupID`, t.`UserID`, bt.`TorrentID` AS BadTags, bf.`TorrentID` AS BadFolders, bfi.`TorrentID` AS BadFiles FROM `torrents` AS t LEFT JOIN `torrents_group` AS tg ON tg.`id` = t.`GroupID` LEFT JOIN `torrents_artists` AS ta ON tg.`id` = ta.`GroupID` LEFT JOIN `artists_group` AS ag ON ag.`ArtistID` = ta.`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` WHERE t.`ID` = '$TorrentID' "); # Error on no results list($Properties) = $DB->to_array(false, MYSQLI_BOTH); if (!$Properties) { error(404); } # Error on bad permissions $UploadForm = $Categories[$Properties['CategoryID'] - 1]; if (($LoggedUser['ID'] !== $Properties['UserID'] && !check_perms('torrents_edit')) || $LoggedUser['DisableWiki']) { error(403); } /** * Torrent Form * * This is the actual edit form. * Commenting only to see it better. */ View::show_header('Edit torrent', 'upload,torrent,bbcode'); $TorrentForm = new TorrentForm( $Torrent = $Properties, $Error = $Err, $NewTorrent = false ); $TorrentForm->upload_form(); /** * Moderator tools * * Various inlined tools to manage torrent grouping, etc. */ if (check_perms('torrents_edit') || check_perms('users_mod')) { ?>

Change Group

Group ID

Split off into new group

Author
Torrent Title
Organism
Strain/Variety
Year

Change Category

Category
Author
Torrent Title
Year