s.LastVisit
GROUP BY c.ID";
} else {
$sql = "
SELECT
c.ID,
c.Name,
c.NumTorrents,
s.LastVisit
FROM collages AS c
JOIN users_collage_subs AS s ON s.CollageID = c.ID
LEFT JOIN collages_torrents AS ct ON ct.CollageID = c.ID
WHERE s.UserID = $LoggedUser[ID] AND c.Deleted = '0'
GROUP BY c.ID";
}
$DB->query($sql);
$NumResults = $DB->record_count();
$CollageSubs = $DB->to_array();
?>
No subscribed collections=($ShowAll ? '' : ' with new additions')?>
query("
SELECT GroupID
FROM collages_torrents
WHERE CollageID = $CollageID
AND AddedOn > '" . db_string($LastVisit) . "'
ORDER BY AddedOn");
$NewTorrentCount = $DB->record_count();
$GroupIDs = $DB->collect('GroupID', false);
if (count($GroupIDs) > 0) {
$TorrentList = Torrents::get_groups($GroupIDs);
} else {
$TorrentList = [];
}
$Artists = Artists::get_artists($GroupIDs);
$Number = 0;
foreach ($GroupIDs as $GroupID) {
if (!isset($TorrentList[$GroupID])) {
continue;
}
$Group = $TorrentList[$GroupID];
extract(Torrents::array_group($Group));
$TorrentTags = new Tags($TagList);
$DisplayName = '';
if (isset($Artists)) {
$DisplayName .= '
'.Artists::display_artists($Artists).'
';
}
$DisplayName .= "
".($GroupName ? $GroupName : ($GroupTitle2 ? $GroupTitle2 : $GroupNameJP))."";
if ($GroupYear > 0) {
$DisplayName = "$DisplayName [$GroupYear]";
}
$SnatchedGroupClass = $GroupFlags['IsSnatched'] ? ' snatched_group' : '';
// Start an output buffer, so we can store this output in $TorrentTable
ob_start();
if (count($Torrents) > 1 || $GroupCategoryID == 1) {
?>
|
|
=$DisplayName?>
=$TorrentTags->format()?>
|
$Torrent) {
$SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : ''; ?>
DL
» =Torrents::torrent_info($Torrent)?>
|
=Format::get_size($Torrent['Size'])?>
|
=number_format($Torrent['Snatched'])?>
|
=number_format($Torrent['Seeders'])?>
|
=number_format($Torrent['Leechers'])?>
|
'.Artists::display_artists($Artists).'
';
}
$DisplayName .= "
|
|
[ DL
| RP ]
=$DisplayName?>
=$TorrentTags->format()?>
|
=Format::get_size($Torrent['Size'])?>
|
=number_format($Torrent['Snatched'])?>
|
=number_format($Torrent['Seeders'])?>
|
=number_format($Torrent['Leechers'])?>
|