prepare_query(" SELECT tg.`Name`, tg.`Title2`, tg.`NameJP`, wt.`Image`, wt.`Body`, tg.`WikiImage`, tg.`WikiBody`, tg.`Year`, tg.`Studio`, tg.`Series`, tg.`CatalogueNumber`, tg.`CategoryID` FROM `torrents_group` AS tg LEFT JOIN `wiki_torrents` AS wt ON wt.`RevisionID` = tg.`RevisionID` WHERE tg.`ID` = '$GroupID' "); $DB->exec_prepared_query(); if (!$DB->has_results()) { error(404); } list($Name, $Title2, $NameJP, $Image, $Body, $WikiImage, $WikiBody, $Year, $Studio, $Series, $CatalogueNumber, $CategoryID) = $DB->next_record(); $DB->prepare_query(" SELECT `ID`, `UserID`, `Time`, `URI` FROM `torrents_doi` WHERE `TorrentID` = '$GroupID' "); $DB->exec_prepared_query(); if ($DB->has_results()) { $Screenshots = []; while ($S = $DB->next_record(MYSQLI_ASSOC, true)) { $Screenshots[] = $S; } } $Artists = Artists::get_artists(array($GroupID))[$GroupID]; if (!$Body) { $Body = $WikiBody; $Image = $WikiImage; } View::show_header( 'Edit torrent group', 'upload,bbcode,vendor/easymde.min', 'vendor/easymde.min' ); ?>