prepared_query(" SELECT `Username` FROM `users_main` WHERE `ID` = $ID"); list($Username) = $DB->next_record(); if ($Username) { $Title = "$Username's in-progress reports"; } else { $Title = "$ID's in-progress reports"; } $Where = " WHERE r.`Status` = 'InProgress' AND r.`ResolverID` = $ID"; break; case 'resolver': $DB->prepared_query(" SELECT `Username` FROM `users_main` WHERE `ID` = $ID"); list($Username) = $DB->next_record(); if ($Username) { $Title = "$Username's resolved reports"; } else { $Title = "$ID's resolved reports"; } $Where = " WHERE r.`Status` = 'Resolved' AND r.`ResolverID` = $ID"; $Order = 'ORDER BY r.`LastChangeTime` DESC'; break; case 'group': $Title = "Unresolved reports for the group $ID"; $Where = " WHERE r.`Status` != 'Resolved' AND tg.`id` = $ID"; break; case 'torrent': $Title = "All reports for the torrent $ID"; $Where = "WHERE r.`TorrentID` = $ID"; break; case 'report': $Title = "Viewing resolution of report $ID"; $Where = "WHERE r.`ID` = $ID"; break; case 'reporter': $DB->prepared_query(" SELECT `Username` FROM `users_main` WHERE `ID` = $ID"); list($Username) = $DB->next_record(); if ($Username) { $Title = "All torrents reported by $Username"; } else { $Title = "All torrents reported by user $ID"; } $Where = "WHERE r.`ReporterID` = $ID"; $Order = 'ORDER BY r.`ReportedTime` DESC'; break; case 'uploader': $DB->prepared_query(" SELECT `Username` FROM `users_main` WHERE `ID` = $ID"); list($Username) = $DB->next_record(); if ($Username) { $Title = "All reports for torrents uploaded by $Username"; } else { $Title = "All reports for torrents uploaded by user $ID"; } $Where = " WHERE r.`Status` != 'Resolved' AND t.`UserID` = $ID"; break; case 'type': $Title = 'All new reports for the chosen type'; $Where = " WHERE r.`Status` = 'New' AND r.`Type` = '$ID'"; break; default: error(404); break; } } /** * The large query */ $DB->prepared_query(" SELECT SQL_CALC_FOUND_ROWS r.`ID`, r.`ReporterID`, reporter.`Username`, r.`TorrentID`, r.`Type`, r.`UserComment`, r.`ResolverID`, resolver.`Username`, r.`Status`, r.`ReportedTime`, r.`LastChangeTime`, r.`ModComment`, r.`Track`, r.`Image`, r.`ExtraID`, r.`Link`, r.`LogMessage`, COALESCE(NULLIF(tg.`title`, ''), NULLIF(tg.`subject`, ''), tg.`object`) AS Name, tg.`id`, CASE COUNT(ta.`GroupID`) WHEN 1 THEN ag.`ArtistID` ELSE '0' END AS `ArtistID`, CASE COUNT(ta.`GroupID`) WHEN 1 THEN ag.`Name` WHEN 0 THEN '' ELSE 'Various Artists' END AS ArtistName, tg.`year`, tg.`category_id`, t.`Time`, t.`Media`, t.`Size`, t.`UserID` AS UploaderID, uploader.`Username` FROM `reportsv2` AS r LEFT JOIN `torrents` AS t ON t.`ID` = r.`TorrentID` LEFT JOIN `torrents_group` AS tg ON tg.`id` = t.`GroupID` LEFT JOIN `torrents_artists` AS ta ON ta.`GroupID` = tg.`id` LEFT JOIN `artists_group` AS ag ON ag.`ArtistID` = ta.`ArtistID` LEFT JOIN `users_main` AS resolver ON resolver.`ID` = r.`ResolverID` LEFT JOIN `users_main` AS reporter ON reporter.`ID` = r.`ReporterID` LEFT JOIN `users_main` AS uploader ON uploader.`ID` = t.`UserID` $Where GROUP BY r.`ID` $Order LIMIT $Limit"); $Reports = $DB->to_array(); $DB->prepared_query('SELECT FOUND_ROWS()'); list($Results) = $DB->next_record(); $PageLinks = Format::get_pages($Page, $Results, REPORTS_PER_PAGE, 11); View::show_header('Reports V2!', 'reportsv2'); ?>

|
No new reports
prepared_query(" UPDATE `reportsv2` SET `Status` = 'Resolved', `LastChangeTime` = NOW(), `ModComment` = 'Report already dealt with (torrent deleted)' WHERE `ID` = $ReportID"); $Cache->decrement('num_torrent_reportsv2'); ?>
Report for torrent (deleted) has been automatically resolved.
$GroupName".($Year ? " ($Year)" : '')." ".($Format || $Encoding || $Media ? " [$Format/$Encoding/$Media]" : '') . $RemasterDisplayString . ' '.($HasCue ? ' (Cue)' : '').($HasLog ? " (Log: {$LogScore}%)" : '').' ('.number_format($Size / (1024 * 1024), 2)." MB)"; $BBName = "[url=torrents.php?id=$GroupID]$GroupName".($Year ? " ($Year)" : '')."[/url] [url=torrents.php?torrentid=$TorrentID][$Format/$Encoding/$Media]{$RemasterDisplayString}[/url] ".($HasCue ? ' (Cue)' : '').($HasLog ? " [url=torrents.php?action=viewlog&torrentid=$TorrentID&groupid=$GroupID](Log: {$LogScore}%)[/url]" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)'; } elseif ($ArtistID == 0 && $ArtistName == 'Various Artists') { $RawName = "Various Artists - $GroupName".($Year ? " ($Year)" : '')." [$Format/$Encoding/$Media]{$RemasterDisplayString}" . ($HasCue ? ' (Cue)' : '').($HasLog ? " (Log: {$LogScore}%)" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)'; $LinkName = "Various Artists - $GroupName".($Year ? " ($Year)" : '')." [$Format/$Encoding/$Media]$RemasterDisplayString ".($HasCue ? ' (Cue)' : '').($HasLog ? " (Log: {$LogScore}%)" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)'; $BBName = "Various Artists - [url=torrents.php?id=$GroupID]$GroupName".($Year ? " ($Year)" : '')."[/url] [url=torrents.php?torrentid=$TorrentID][$Format/$Encoding/$Media]{$RemasterDisplayString}[/url] ".($HasCue ? ' (Cue)' : '').($HasLog ? " [url=torrents.php?action=viewlog&torrentid=$TorrentID&groupid=$GroupID](Log: {$LogScore}%)[/url]" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)'; } else { */ $RawName = "$ArtistName - $GroupName".($Year ? " ($Year)" : '')." [$Media] (".number_format($Size / (1024 * 1024), 2).' MB)'; $LinkName = "$ArtistName - $GroupName".($Year ? " ($Year)" : '')." [$Media] (".number_format($Size / (1024 * 1024), 2).' MB)'; $BBName = "[url=artist.php?id=$ArtistID]".$ArtistName."[/url] - [url=torrents.php?id=$GroupID]$GroupName".($Year ? " ($Year)" : '')."[/url] [url=torrents.php?torrentid=$TorrentID][$Media][/url] ".' ('.number_format($Size / (1024 * 1024), 2).' MB)'; // }?>
Reported torrent: (Deleted) DL uploaded by
was reported by for the reason:
prepared_query(" SELECT r.`ID` FROM `reportsv2` AS r LEFT JOIN `torrents` AS t ON t.`ID` = r.`TorrentID` WHERE r.`Status` != 'Resolved' AND t.`GroupID` = $GroupID"); $GroupOthers = ($DB->record_count() - 1); if ($GroupOthers > 0) { ?> prepared_query(" SELECT t.`UserID` FROM `reportsv2` AS r JOIN `torrents` AS t ON t.`ID` = r.`TorrentID` WHERE r.`Status` != 'Resolved' AND t.`UserID` = $UploaderID"); $UploaderOthers = ($DB->record_count() - 1); if ($UploaderOthers > 0) { ?> prepared_query(" SELECT DISTINCT req.`ID`, req.`FillerID`, um.`Username`, req.`TimeFilled` FROM `requests` AS req LEFT JOIN `torrents` AS t ON t.`ID` = req.`TorrentID` LEFT JOIN `reportsv2` AS rep ON rep.`TorrentID` = t.`ID` JOIN `users_main` AS um ON um.`ID` = req.`FillerID` WHERE rep.`Status` != 'Resolved' AND req.`TimeFilled` > '2010-03-04 02:31:49' AND req.`TorrentID` = $TorrentID"); $Requests = ($DB->has_results()); if ($Requests > 0) { while (list($RequestID, $FillerID, $FillerName, $FilledTime) = $DB->next_record()) { ?>
used this torrent to fill this request
Relevant tracks:
Relevant links:
Relevant other torrents: prepared_query(" SELECT COALESCE(NULLIF(tg.`title`, ''), NULLIF(tg.`subject`, ''), tg.`object`) AS Name, tg.`id`, ta.`ArtistID`, CASE COUNT(ta.`GroupID`) WHEN 1 THEN ag.`Name` WHEN 0 THEN '' ELSE 'Various Artists' END AS ArtistName, tg.`year`, t.`Time`, t.`Media`, t.`Size`, t.`UserID` AS UploaderID, uploader.`Username` FROM `torrents` AS t LEFT JOIN `torrents_group` AS tg ON tg.`id` = t.`GroupID` LEFT JOIN `torrents_artists` AS ta ON ta.`GroupID` = tg.`id` LEFT JOIN `artists_group` AS ag ON ag.`ArtistID` = ta.`ArtistID` LEFT JOIN `users_main` AS uploader ON uploader.`ID` = t.`UserID` WHERE t.`ID` = ? GROUP BY tg.`id`", $ExtraID); list($ExtraGroupName, $ExtraGroupID, $ExtraArtistID, $ExtraArtistName, $ExtraYear, $ExtraTime, $ExtraMedia, $ExtraSize, $ExtraUploaderID, $ExtraUploaderName) = Misc::display_array($DB->next_record()); if ($ExtraGroupName) { if ($ArtistID == 0 && empty($ArtistName)) { $ExtraLinkName = "$ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : '')." [$ExtraFormat/$ExtraEncoding/$ExtraMedia] ".' ('.number_format($ExtraSize / (1024 * 1024), 2).' MB)'; } elseif ($ArtistID == 0 && $ArtistName == 'Various Artists') { $ExtraLinkName = "Various Artists - $ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : '')." [$ExtraFormat/$ExtraEncoding/$ExtraMedia] (".number_format($ExtraSize / (1024 * 1024), 2).' MB)'; } else { $ExtraLinkName = "$ExtraArtistName - $ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : '')." [//$ExtraMedia] (".number_format($ExtraSize / (1024 * 1024), 2).' MB)'; } ?> ')?> DL uploaded by Switch
Relevant images: Relevant image
User comment:
In progress by:
Report comment:
Resolve:   
PM :
Extra log message: /> Extra staff notes:
| | | Multi-resolve |
Resolver:
Resolve time:
Report comments:
Log message: