query(" SELECT ct.`GroupID`, ct.`UserID` FROM `collages_torrents` AS ct JOIN `torrents_group` AS tg ON tg.`ID` = ct.`GroupID` WHERE ct.`CollageID` = '$CollageID' ORDER BY ct.`Sort` "); $GroupIDs = $DB->collect('GroupID'); $Contributors = $DB->to_pair('GroupID', 'UserID', false); if (count($GroupIDs) > 0) { $TorrentList = Torrents::get_groups($GroupIDs); } else { $TorrentList = []; } // Loop through the result set, building up $Collage and $TorrentTable // Then we print them. $Collage = []; $TorrentTable = ''; $NumGroups = count($TorrentList); $NumGroupsByUser = 0; $TopArtists = []; $UserAdditions = []; $Number = 0; foreach ($GroupIDs as $GroupID) { if (!isset($TorrentList[$GroupID])) { continue; } $Group = $TorrentList[$GroupID]; extract(Torrents::array_group($Group)); $UserID = $Contributors[$GroupID]; $TorrentTags = new Tags($TagList); // Handle stats and stuff $Number++; if ($UserID === $LoggedUser['ID']) { $NumGroupsByUser++; } $CountArtists = $Artists; if ($CountArtists) { foreach ($CountArtists as $Artist) { if (!isset($TopArtists[$Artist['id']])) { $TopArtists[$Artist['id']] = array('name' => $Artist['name'], 'count' => 1); } else { $TopArtists[$Artist['id']]['count']++; } } } if (!isset($UserAdditions[$UserID])) { $UserAdditions[$UserID] = 0; } $UserAdditions[$UserID]++; $DisplayName = "$Number. "; $DisplayName .= "$GroupYear"; } # Studio if ($GroupStudio) { $Label = ' 📍 '; $DisplayName .= $Label."$GroupStudio"; } # Catalogue Number if ($GroupCatalogueNumber) { $Label = ' 🔑 '; $DisplayName .= $Label."$GroupCatalogueNumber"; } # Authors if ($Artists) { # Emoji in classes/astists.class.php $Label = ' '; $DisplayName .= $Label.'
'.Artists::display_artists($Artists).'
'; } $SnatchedGroupClass = ($GroupFlags['IsSnatched'] ? ' snatched_group' : ''); // Start an output buffer, so we can store this output in $TorrentTable ob_start(); if (count($Torrents) > 1) { // Grouped torrents $ShowGroups = !(!empty($LoggedUser['TorrentGrouping']) && $LoggedUser['TorrentGrouping'] === 1); ?>
Remove bookmark Bookmark
format()?>
$Torrent) { $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : ''; ?> DL | FL | RP   »  $ExtraInfo"; /* $TorrentID = key($Torrents); $Torrent = current($Torrents); if ($Torrent['IsLeeching']) { $DisplayName .= ' ' . Format::torrent_label('Leeching', 'important_text'); } elseif ($Torrent['IsSeeding']) { $DisplayName .= ' ' . Format::torrent_label('Seeding', 'important_text_alt'); } elseif ($Torrent['IsSnatched']) { $DisplayName .= ' ' . Format::torrent_label('Snatched', 'bold'); } if ($Torrent['FreeTorrent'] == '1') { $DisplayName .= ' | ' . Format::torrent_label('Freeleech!', 'important_text_alt'); } elseif ($Torrent['FreeTorrent'] == '2') { $DisplayName .= ' | ' . Format::torrent_label('Neutral Leech!', 'bold'); } elseif ($Torrent['PersonalFL']) { $DisplayName .= ' | ' . Format::torrent_label('Personal Freeleech!', 'important_text_alt'); } $SnatchedTorrentClass = ($Torrent['IsSnatched'] ? ' snatched_torrent' : ''); ?> */ ?>
DL | FL | RP
format()?>
0) { $DisplayName = "$DisplayName [$GroupYear]"; } $Tags = display_str($TorrentTags->format()); $PlainTags = implode(', ', $TorrentTags->get_tags()); ?>
<?=$DisplayName?>" width="100%" />
0 && $NumGroups >= $MaxGroups) || ($MaxGroupsPerUser > 0 && $NumGroupsByUser >= $MaxGroupsPerUser) ) ) { $PreventAdditions = true; } // Silly hack for people who are on the old setting $CollageCovers = isset($LoggedUser['CollageCovers']) ? $LoggedUser['CollageCovers'] : 25 * (abs($LoggedUser['HideCollage'] - 1)); $CollagePages = []; if ($CollageCovers) { for ($i = 0; $i < $NumGroups / $CollageCovers; $i++) { $Groups = array_slice($Collage, $i * $CollageCovers, $CollageCovers); $CollagePage = ''; foreach ($Groups as $Group) { $CollagePage .= $Group; } $CollagePages[] = $CollagePage; } } View::show_header( $Name, 'browse,collage,bbcode,recommend,wall' ); ?>

Pictures
$CollageCovers) { ?>
Torrents Size