/* * This is the frontend of reporting a torrent, it's what users see when * they visit reportsv2.php?id=xxx */ //If we're not coming from torrents.php, check we're being returned because of an error. if(!isset($_GET['id']) || !is_number($_GET['id'])) { if(!isset($Err)) { error(404); } } else { $TorrentID = $_GET['id']; $DB->query("SELECT tg.CategoryID FROM torrents_group AS tg LEFT JOIN torrents AS t ON t.GroupID=tg.ID WHERE t.ID=".$_GET['id']); list($CategoryID) = $DB->next_record(); } show_header('Report', 'reportsv2'); ?>