query("SELECT 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, tg.Name, tg.ID, CASE COUNT(ta.GroupID) WHEN 1 THEN aa.ArtistID WHEN 0 THEN '0' ELSE '0' END AS ArtistID, CASE COUNT(ta.GroupID) WHEN 1 THEN aa.Name WHEN 0 THEN '' ELSE 'Various Artists' END AS ArtistName, tg.Year, tg.CategoryID, t.Time, t.Remastered, t.RemasterTitle, t.RemasterYear, t.Media, t.Format, t.Encoding, t.Size, t.HasCue, t.HasLog, t.LogScore, t.UserID AS UploaderID, t.Tasted, 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 AND ta.Importance='1' LEFT JOIN artists_alias AS aa ON aa.AliasID=ta.AliasID 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 r.Status = 'New' GROUP BY r.ID ORDER BY ReportedTime ASC LIMIT 1"); if($DB->record_count() < 1) { die(); } list($ReportID, $ReporterID, $ReporterName, $TorrentID, $Type, $UserComment, $ResolverID, $ResolverName, $Status, $ReportedTime, $LastChangeTime, $ModComment, $Tracks, $Images, $ExtraIDs, $Links, $LogMessage, $GroupName, $GroupID, $ArtistID, $ArtistName, $Year, $CategoryID, $Time, $Remastered, $RemasterTitle, $RemasterYear, $Media, $Format, $Encoding, $Size, $HasCue, $HasLog, $LogScore, $UploaderID, $UploaderName) = $DB->next_record(MYSQLI_BOTH, array("ModComment")); if(!$GroupID) { //Torrent already deleted $DB->query("UPDATE reportsv2 SET Status='Resolved', LastChangeTime='".sqltime()."', ModComment='Report already dealt with (Torrent deleted)' WHERE ID=".$ReportID); ?>
Report for torrent (deleted) has been automatically resolved.
query("UPDATE reportsv2 SET Status='InProgress', ResolverID=".$LoggedUser['ID']." WHERE ID=".$ReportID); if (array_key_exists($Type, $Types[$CategoryID])) { $ReportType = $Types[$CategoryID][$Type]; } else if(array_key_exists($Type,$Types['master'])) { $ReportType = $Types['master'][$Type]; } else { //There was a type but it wasn't an option! $Type = 'other'; $ReportType = $Types['master']['other']; } if ($ArtistID == 0 && empty($ArtistName)) { $RawName = $GroupName.($Year ? " ($Year)" : "")." [$Format/$Encoding/$Media]".($Remastered ? " <$RemasterTitle - $RemasterYear>" : "").($HasCue ? " (Cue)" : '').($HasLog ? " (Log: $LogScore %)" : "")." (".number_format($Size/(1024*1024), 2)." MB)"; $LinkName = "$GroupName".($Year ? " ($Year)" : "")." [$Format/$Encoding/$Media]".($Remastered ? " <$RemasterTitle - $RemasterYear>" : "")." ".($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]".($Remastered ? " <$RemasterTitle - $RemasterYear>" : "")."[/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]".($Remastered ? " <$RemasterTitle - $RemasterYear>" : "").($HasCue ? " (Cue)" : '').($HasLog ? " (Log: $LogScore %)" : "")." (".number_format($Size/(1024*1024), 2)." MB)"; $LinkName = "Various Artists - $GroupName".($Year ? " ($Year)" : "")." [$Format/$Encoding/$Media]".($Remastered ? " <$RemasterTitle - $RemasterYear>" : "")." ".($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]".($Remastered ? " <$RemasterTitle - $RemasterYear>" : "")."[/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)" : "")." [$Format/$Encoding/$Media]".($Remastered ? " <$RemasterTitle - $RemasterYear>" : "").($HasCue ? " (Cue)" : '').($HasLog ? " (Log: $LogScore %)" : "")." (".number_format($Size/(1024*1024), 2)." MB)"; $LinkName = "$ArtistName - $GroupName".($Year ? " ($Year)" : "")." [$Format/$Encoding/$Media]".($Remastered ? " <$RemasterTitle - $RemasterYear>" : "")." ".($HasCue ? " (Cue)" : '').($HasLog ? " (Log: $LogScore %)" : "")." (".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][$Format/$Encoding/$Media]".($Remastered ? " <$RemasterTitle - $RemasterYear>" : "")."[/url] ".($HasCue ? " (Cue)" : '').($HasLog ? " [url=torrents.php?action=viewlog&torrentid=$TorrentID&groupid=$GroupID'](Log: $LogScore %)[/url]" : "")." (".number_format($Size/(1024*1024), 2)." MB)"; } ?>
Reported Torrent: (Deleted) [DL] uploaded by
was reported by for the reason:
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) { ?> 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) { ?> 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->record_count()); if($Requests > 0) { while(list($RequestID, $FillerID, $FillerName, $FilledTime) = $DB->next_record()) { ?>
used this torrent to fill this request
Relevant Tracks:
Relevant Links: local_url($Link)) { $Link = $local_url; } ?>
Relevant Other Torrents: query("SELECT tg.Name, tg.ID, CASE COUNT(ta.GroupID) WHEN 1 THEN aa.ArtistID WHEN 0 THEN '0' ELSE '0' END AS ArtistID, CASE COUNT(ta.GroupID) WHEN 1 THEN aa.Name WHEN 0 THEN '' ELSE 'Various Artists' END AS ArtistName, tg.Year, t.Time, t.Remastered, t.RemasterTitle, t.RemasterYear, t.Media, t.Format, t.Encoding, t.Size, t.HasCue, t.HasLog, t.LogScore, 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 AND ta.Importance='1' LEFT JOIN artists_alias AS aa ON aa.AliasID=ta.AliasID LEFT JOIN users_main AS uploader ON uploader.ID=t.UserID WHERE t.ID='$ExtraID' GROUP BY tg.ID"); list($ExtraGroupName, $ExtraGroupID, $ExtraArtistID, $ExtraArtistName, $ExtraYear, $ExtraTime, $ExtraRemastered, $ExtraRemasterTitle, $ExtraRemasterYear, $ExtraMedia, $ExtraFormat, $ExtraEncoding, $ExtraSize, $ExtraHasCue, $ExtraHasLog, $ExtraLogScore, $ExtraUploaderID, $ExtraUploaderName) = display_array($DB->next_record()); if($ExtraGroupName) { if ($ArtistID == 0 && empty($ArtistName)) { $ExtraLinkName = "$ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : "")." [$ExtraFormat/$ExtraEncoding/$ExtraMedia]".($ExtraRemastered ? " <$ExtraRemasterTitle - $ExtraRemasterYear>" : "")." ".($ExtraHasLog == '1' ? " (Log: $ExtraLogScore %)" : "")." (".number_format($ExtraSize/(1024*1024), 2)." MB)"; } elseif ($ArtistID == 0 && $ArtistName == 'Various Artists') { $ExtraLinkName = "Various Artists - $ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : "")." [$ExtraFormat/$ExtraEncoding/$ExtraMedia]".($ExtraRemastered ? " <$ExtraRemasterTitle - $ExtraRemasterYear>" : "")." ".($ExtraHasLog == '1' ? " (Log: $ExtraLogScore %)" : "")." (".number_format($ExtraSize/(1024*1024), 2)." MB)"; } else { $ExtraLinkName = "$ExtraArtistName - $ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : "")." [$ExtraFormat/$ExtraEncoding/$ExtraMedia]".($ExtraRemastered ? " <$ExtraRemasterTitle - $ExtraRemasterYear>" : "")." ".($ExtraHasLog == '1' ? " (Log: $ExtraLogScore %)" : "")." (".number_format($ExtraSize/(1024*1024), 2)." MB)"; } ?> ")?> [DL] uploaded by [Switch]
Relevant Images: <?=$Image?>
User Comment: full_format($UserComment)?>
Report Comment:
Resolve Delete Warning Upload   
PM :
Extra Log Message: /> Extra Staff Notes:
| | | Multi-Resolve |