$WikiBody = $Text->full_format($WikiBody); $Artists = Artists::get_artist($GroupID); if ($Artists) { $DisplayName = ''.Artists::display_artists($Artists, true) . "$DisplayName"; $AltName = display_str(Artists::display_artists($Artists, false)) . $AltName; $Title = $AltName; } if ($GroupYear > 0) { $DisplayName .= " [$GroupYear]"; $AltName .= " [$GroupYear]"; $Title .= " [$GroupYear]"; } if ($GroupVanityHouse) { $DisplayName .= ' [Vanity House]'; $AltName .= ' [Vanity House]'; } if ($GroupCategoryID == 1) { $DisplayName .= ' ['.$ReleaseTypes[$ReleaseType].']'; $AltName .= ' ['.$ReleaseTypes[$ReleaseType].']'; } $Tags = array(); if ($TorrentTags != '') { $TorrentTags = explode('|', $TorrentTags); $TorrentTagIDs = explode('|', $TorrentTagIDs); $TorrentTagUserIDs = explode('|', $TorrentTagUserIDs); $TagPositiveVotes = explode('|', $TagPositiveVotes); $TagNegativeVotes = explode('|', $TagNegativeVotes); foreach ($TorrentTags as $TagKey => $TagName) { $Tags[$TagKey]['name'] = $TagName; $Tags[$TagKey]['score'] = ($TagPositiveVotes[$TagKey] - $TagNegativeVotes[$TagKey]); $Tags[$TagKey]['id'] = $TorrentTagIDs[$TagKey]; $Tags[$TagKey]['userid'] = $TorrentTagUserIDs[$TagKey]; } uasort($Tags, 'compare'); } /*if (check_perms('site_debug')) { print_r($TorrentTags); print_r($Tags); print_r($TorrentTagUserIDs); die(); }*/ $CoverArt = $Cache->get_value("torrents_cover_art_$GroupID"); if (!$CoverArt) { $DB->query(" SELECT ID, Image, Summary, UserID, Time FROM cover_art WHERE GroupID = '$GroupID' ORDER BY Time ASC"); $CoverArt = array(); $CoverArt = $DB->to_array(); if ($DB->has_results()) { $Cache->cache_value("torrents_cover_art_$GroupID", $CoverArt, 0); } } // Start output View::show_header($Title, 'browse,comments,torrent,bbcode,recommend,cover_art,subscriptions'); ?>

"; } $LastRemasterYear = '-'; $LastRemasterTitle = ''; $LastRemasterRecordLabel = ''; $LastRemasterCatalogueNumber = ''; $EditionID = 0; foreach ($TorrentList as $Torrent) { //t.ID, t.Media, t.Format, t.Encoding, t.Remastered, t.RemasterYear, //t.RemasterTitle, t.RemasterRecordLabel, t.RemasterCatalogueNumber, t.Scene, //t.HasLog, t.HasCue, t.LogScore, t.FileCount, t.Size, t.Seeders, t.Leechers, //t.Snatched, t.FreeTorrent, t.Time, t.Description, t.FileList, //t.FilePath, t.UserID, t.last_action, HEX(t.info_hash), (bad tags), (bad folders), (bad filenames), //(cassette approved), (lossy master approved), (lossy web approved), t.LastReseedRequest, //LogInDB, (has file), Torrents::torrent_properties() list($TorrentID, $Media, $Format, $Encoding, $Remastered, $RemasterYear, $RemasterTitle, $RemasterRecordLabel, $RemasterCatalogueNumber, $Scene, $HasLog, $HasCue, $LogScore, $FileCount, $Size, $Seeders, $Leechers, $Snatched, $FreeTorrent, $TorrentTime, $Description, $FileList, $FilePath, $UserID, $LastActive, $InfoHash, $BadTags, $BadFolders, $BadFiles, $CassetteApproved, $LossymasterApproved, $LossywebApproved, $LastReseedRequest, $LogInDB, $HasFile, $PersonalFL, $IsSnatched) = array_values($Torrent); if ($Remastered && !$RemasterYear) { $FirstUnknown = !isset($FirstUnknown); } $Reported = false; unset($ReportedTimes); $Reports = Torrents::get_reports($TorrentID); $NumReports = count($Reports); if ($NumReports > 0) { $Reported = true; include(SERVER_ROOT.'/sections/reportsv2/array.php'); $ReportInfo = '
Torrents Size Snatches Seeders Leechers
".Format::get_size($Str[1])."
"; foreach ($Reports as $Report) { if (check_perms('admin_reports')) { $ReporterID = $Report['ReporterID']; $Reporter = Users::user_info($ReporterID); $ReporterName = $Reporter['Username']; $ReportLinks = "$ReporterNamereported it"; } else { $ReportLinks = 'Someone reported it'; } if (isset($Types[$GroupCategoryID][$Report['Type']])) { $ReportType = $Types[$GroupCategoryID][$Report['Type']]; } elseif (isset($Types['master'][$Report['Type']])) { $ReportType = $Types['master'][$Report['Type']]; } else { //There was a type but it wasn't an option! $ReportType = $Types['master']['other']; } $ReportInfo .= " '; } $ReportInfo .= "\n\t\t
This torrent has '.$NumReports.' active '.($NumReports === 1 ? 'report' : 'reports').":
$ReportLinks ".time_diff($Report['ReportedTime'], 2, true, true).' for the reason "'.$ReportType['title'].'":
'.$Text->full_format($Report['UserComment']).'
"; } $CanEdit = (check_perms('torrents_edit') || (($UserID == $LoggedUser['ID'] && !$LoggedUser['DisableWiki']) && !($Remastered && !$RemasterYear))); $RegenLink = check_perms('users_mod') ? ' Regenerate' : ''; $FileTable = ' '; if (substr($FileList, -3) == '}}}') { // Old style $FileListSplit = explode('|||', $FileList); foreach ($FileListSplit as $File) { $NameEnd = strrpos($File, '{{{'); $Name = substr($File, 0, $NameEnd); if ($Spaces = strspn($Name, ' ')) { $Name = str_replace(' ', ' ', substr($Name, 0, $Spaces)) . substr($Name, $Spaces); } $FileSize = substr($File, $NameEnd + 3, -3); $FileTable .= sprintf("\n", $Name, Format::get_size($FileSize)); } } else { $FileListSplit = explode("\n", $FileList); foreach ($FileListSplit as $File) { $FileInfo = Torrents::filelist_get_file($File); $FileTable .= sprintf("\n", $FileInfo['name'], Format::get_size($FileInfo['size'])); } } $FileTable .= '
File Names' . $RegenLink . '
' . ($FilePath ? "/$FilePath/" : '') . '
Size
%s%s
%s%s
'; $ExtraInfo = ''; // String that contains information on the torrent (e.g. format and encoding) $AddExtra = ''; // Separator between torrent properties // similar to Torrents::torrent_info() if ($Format) { $ExtraInfo.=display_str($Format); $AddExtra=' / '; } if ($Encoding) { $ExtraInfo.=$AddExtra.display_str($Encoding); $AddExtra=' / '; } if ($HasLog) { $ExtraInfo.=$AddExtra.'Log'; $AddExtra=' / '; } if ($HasLog && $LogInDB) { $ExtraInfo.=' ('.(int)$LogScore.'%)'; } if ($HasCue) { $ExtraInfo.=$AddExtra.'Cue'; $AddExtra=' / '; } if ($Scene) { $ExtraInfo.=$AddExtra.'Scene'; $AddExtra=' / '; } if (!$ExtraInfo) { $ExtraInfo = $GroupName ; $AddExtra=' / '; } if ($IsSnatched) { $ExtraInfo.=$AddExtra. Format::torrent_label('Snatched!'); $AddExtra=' / '; } if ($FreeTorrent == '1') { $ExtraInfo.=$AddExtra. Format::torrent_label('Freeleech!'); $AddExtra=' / '; } if ($FreeTorrent == '2') { $ExtraInfo.=$AddExtra. Format::torrent_label('Neutral Leech!'); $AddExtra=' / '; } if ($PersonalFL) { $ExtraInfo.=$AddExtra. Format::torrent_label('Personal Freeleech!'); $AddExtra=' / '; } if ($Reported) { $ExtraInfo.=$AddExtra. Format::torrent_label('Reported'); $AddExtra=' / '; } if (!empty($BadTags)) { $ExtraInfo.=$AddExtra. Format::torrent_label('Bad Tags'); $AddExtra=' / '; } if (!empty($BadFolders)) { $ExtraInfo.=$AddExtra. Format::torrent_label('Bad Folders'); $AddExtra=' / '; } if (!empty($CassetteApproved)) { $ExtraInfo.=$AddExtra. Format::torrent_label('Cassette Approved'); $AddExtra=' / '; } if (!empty($LossymasterApproved)) { $ExtraInfo.=$AddExtra. Format::torrent_label('Lossy Master Approved'); $AddExtra=' / '; } if (!empty($LossywebApproved)) { $ExtraInfo.=$AddExtra. Format::torrent_label('Lossy WEB Approved'); $AddExtra = ' / '; } if (!empty($BadFiles)) { $ExtraInfo.=$AddExtra. Format::torrent_label('Bad File Names'); $AddExtra=' / '; } if ($GroupCategoryID == 1 && ($RemasterTitle != $LastRemasterTitle || $RemasterYear != $LastRemasterYear || $RemasterRecordLabel != $LastRemasterRecordLabel || $RemasterCatalogueNumber != $LastRemasterCatalogueNumber || $FirstUnknown || $Media != $LastMedia)) { $EditionID++; ?> [ | FL | RP | ED | RM | PL ] »
Uploaded by = 1209600) { ?>
Last active:
Last active: = 345678 && time() - strtotime($LastReseedRequest) >= 864000) || check_perms('users_mod')) { ?>
Request re-seed
".$Text->full_format($Description).''; } ?> 0) { $i = 0; ?>
Requests () Show
get_value("torrent_collages_$GroupID"); if (!is_array($Collages)) { $DB->query(" SELECT c.Name, c.NumTorrents, c.ID FROM collages AS c JOIN collages_torrents AS ct ON ct.CollageID = c.ID WHERE ct.GroupID = '$GroupID' AND Deleted = '0' AND CategoryID != '0'"); $Collages = $DB->to_array(); $Cache->cache_value("torrent_collages_$GroupID", $Collages, 3600 * 6); } if (count($Collages) > 0) { if (count($Collages) > MAX_COLLAGES) { // Pick some at random $Range = range(0, count($Collages) - 1); shuffle($Range); $Indices = array_slice($Range, 0, MAX_COLLAGES); $SeeAll = ' (See all)'; } else { $Indices = range(0, count($Collages) - 1); $SeeAll = ''; } ?>
 This album is in collage 1) ? 's' : '')?> # torrents
get_value("torrent_collages_personal_$GroupID"); if (!is_array($PersonalCollages)) { $DB->query(" SELECT c.Name, c.NumTorrents, c.ID FROM collages AS c JOIN collages_torrents AS ct ON ct.CollageID = c.ID WHERE ct.GroupID = '$GroupID' AND Deleted = '0' AND CategoryID = '0'"); $PersonalCollages = $DB->to_array(false, MYSQLI_NUM); $Cache->cache_value("torrent_collages_personal_$GroupID", $PersonalCollages, 3600 * 6); } if (count($PersonalCollages) > 0) { if (count($PersonalCollages) > MAX_PERS_COLLAGES) { // Pick some at random $Range = range(0,count($PersonalCollages) - 1); shuffle($Range); $Indices = array_slice($Range, 0, MAX_PERS_COLLAGES); $SeeAll = ' (See all)'; } else { $Indices = range(0, count($PersonalCollages) - 1); $SeeAll = ''; } ?>
 This album is in personal collage 1) ? 's' : '')?> # torrents
 
'pageid', 'InputID' => $GroupID, 'Action' => 'comments.php?page=torrents', 'InputAction' => 'take_post', 'TextareaCols' => 65, 'SubscribeBox' => true )); ?>