permitted('admin_reports')) { Error403::error(); } $torMan = new Manager\Torrent(); $reportMan = new Manager\Torrent\Report($torMan); $reportTypeMan = new Manager\Torrent\ReportType(); $requestMan = new Manager\Request(); $userMan = new Manager\User(); $search = new Search\Torrent\Report($_GET['view'] ?? '', $_GET['id'] ?? '', $reportTypeMan, $userMan); $imgProxy = new Util\ImageProxy($Viewer); $paginator = new Util\Paginator(REPORTS_PER_PAGE, (int)($_GET['page'] ?? 1)); $paginator->setTotal($search->total()); $page = $search->page($reportMan, $paginator->limit(), $paginator->offset()); View::show_header('Torrent Reports', ['js' => 'reportsv2,bbcode,browse,torrent']); ?>

title() ?>

mode() !== 'resolved') { ?> canUnclaim($Viewer)) { ?> |
linkbox() ?>
No reports here! \o/
id; $resolverId = $report->resolverId(); $resolverName = $userMan->findById($resolverId)?->username() ?? 'System'; if (is_null($report->torrent()) && $report->status() != 'Resolved') { //Torrent already deleted $report->resolve('Report already dealt with (torrent deleted)'); ?>
Report for torrent torrentId() ?> (deleted) has been automatically resolved.
torrentId(); $torrent = $report->torrent(); $tgroupId = (int)$torrent?->groupId(); ?>
render('reportsv2/detail.twig', [ 'report' => $report, 'request_list' => $requestMan->findByTorrentReported($torrent), 'torrent' => $torrent, 'total_group' => $reportMan->totalReportsTGroup($torrent->group()), 'total_uploader' => $reportMan->totalReportsUploader($torrent->uploader()), 'total_torrent' => $reportMan->totalReportsTorrent($torrent), 'viewer' => $Viewer, ]); $otherTorrentList = $report->otherTorrentList(); if ($otherTorrentList) { ?> Relevant other torrents: ' ?> group()->link() ?> shortLabelLink() ?> (size()) ?>)
edition() ?>
DL Downloaders Snatchers Seeders Contents
uploaded by uploader()->link() ?> on created() ?> (created()) < strtotime($torrent?->created() ?? '2000-01-01 00:00:00') ? 'older upload' : 'more recent upload' ?>)
Last action: lastActiveDate() ?: 'Never' ?>
Audio files present: fileListPrimaryMap(); if (count($extMap) == 0) { ?> none "$ext: {$extMap[$ext]}", array_keys($extMap))) ?> description()) { ?>
Release info: description()) ?> hasLog() || $extra->hasLog()) { ?> Logfiles:
ReportedRelevant
logDetails(); ?>
  • No logs
  • $info) { if ($info['adjustment']) { $adj = $info['adjustment']; $adjUser = $userMan->findById($adj['userId']); ?>
  • Log adjusted link()}" : '' ?> from score to
  • Logfile #: Show
  • HTML logfile #: Show
id); $details = $log->logDetails(); ?>
  • No logs
  • $info) { if ($info['adjustment']) { $adj = $info['adjustment']; $adjUser = $userMan->findById($adj['userId']); ?>
  • Log adjusted link()}" : '' ?> from score to
  • Raw logfile #: Show
  • HTML logfile #: Show
Switch: Switch the source and target torrents (you become the report owner). image()) { ?> Relevant images: image() as $image) { ?> Relevant image User comment: reason()) ?> status() == 'InProgress') { /* BEGIN MOD STUFF */ ?> In progress by: status() != 'Resolved') { $logMessage = trim($report->message() ?? ''); if (!$logMessage) { $logMessage = implode(' ', array_map(fn($id) => $torMan->findById($id)?->publicLocation() ?? '', $report->otherIdList())); } $reportType = $report->reportType(); ?> Report comment: Resolve: | | permitted('users_mod')) { ?> doDeleteUpload() ? ' checked' : '' ?> />  | doRevokeUploadPrivs() ? ' checked' : '' ?> />  | PM : Extra log message: Extra staff notes: (These notes will be added to the user profile)   | status() == 'InProgress' && $Viewer->id == $resolverId) { ?> | | |   | render('reportsv2/resolved.twig', [ 'report' => $report, 'torrent' => $torrent, ]); } ?>
linkbox(); View::show_footer();