query("SELECT Username FROM users_main WHERE ID='$UserID'"); list($Username) = $DB->next_record(); } else { $UserID = $LoggedUser['ID']; } $Sneaky = $UserID != $LoggedUser['ID']; $Title = $Sneaky ? "$Username's bookmarked torrents" : 'Your bookmarked torrents'; // Loop through the result set, building up $Collage and $TorrentTable // Then we print them. $Collage = array(); $TorrentTable = ''; $NumGroups = 0; $ArtistCount = array(); list(, $CollageDataList, $TorrentList) = Users::get_bookmarks($UserID); foreach ($TorrentList as $GroupID => $Group) { extract(Torrents::array_group($Group)); list(, $Sort, $AddedTime) = array_values($CollageDataList[$GroupID]); // Handle stats and stuff $NumGroups++; if($Artists) { foreach($Artists as $Artist) { if(!isset($ArtistCount[$Artist['id']])) { $ArtistCount[$Artist['id']] = array('name'=>$Artist['name'], 'count'=>1); } else { $ArtistCount[$Artist['id']]['count']++; } } } $TorrentTags = new Tags($TagList); if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5]) || !empty($ExtendedArtists[6])) { unset($ExtendedArtists[2]); unset($ExtendedArtists[3]); $DisplayName = Artists::display_artists($ExtendedArtists); } elseif(count($Artists)>0) { $DisplayName = Artists::display_artists(array('1'=>$Artists)); } else { $DisplayName = ''; } $DisplayName .= ''.$GroupName.''; if($GroupYear>0) { $DisplayName = $DisplayName. ' ['. $GroupYear .']';} if($GroupVanityHouse) { $DisplayName .= ' [VH]'; } $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) { // Grouped torrents $ShowGroups = !(!empty($LoggedUser['TorrentGrouping']) && $LoggedUser['TorrentGrouping'] == 1); ?>
Unbookmark
format()?>
$Torrent) { if ($Torrent['Remastered'] && !$Torrent['RemasterYear']) { $FirstUnknown = !isset($FirstUnknown); } $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : ''; if($Torrent['RemasterTitle'] != $LastRemasterTitle || $Torrent['RemasterYear'] != $LastRemasterYear || $Torrent['RemasterRecordLabel'] != $LastRemasterRecordLabel || $Torrent['RemasterCatalogueNumber'] != $LastRemasterCatalogueNumber || $FirstUnknown || $Torrent['Media'] != $LastMedia) { $EditionID++; ?> [ DL | FL | RP ]   »  > '.$GroupName.''; if ($Torrent['IsSnatched']) { $DisplayName .= ' ' . Format::torrent_label('Snatched!'); } if ($Torrent['FreeTorrent'] == '1') { $DisplayName .= ' ' . Format::torrent_label('Freeleech!'); } elseif ($Torrent['FreeTorrent'] == '2') { $DisplayName .= ' ' . Format::torrent_label('Neutral leech!'); } elseif ($Torrent['PersonalFL']) { $DisplayName .= ' ' . Format::torrent_label('Personal Freeleech!'); } $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : ''; ?>
[ DL | FL | RP ]
format()?>
Unbookmark > 0) { $DisplayName .= Artists::display_artists(array('1'=>$Artists), false); } $DisplayName .= $GroupName; if($GroupYear>0) { $DisplayName = $DisplayName. ' ['. $GroupYear .']';} ?>
  • <?=$DisplayName?>
  • You have not bookmarked any torrents.

    Cover art
    $CollageCovers) { ?>
    Torrents (View) Size Snatches Seeders Leechers