:]]'"; } } } $Year1 = (int)$_GET['year1']; $Year2 = (int)$_GET['year2']; if ($Year1 > 0 && $Year2 <= 0) { $Where[] = "g.Year = $Year1"; } elseif ($Year1 > 0 && $Year2 > 0) { $Where[] = "g.Year BETWEEN $Year1 AND $Year2"; } elseif ($Year2 > 0 && $Year1 <= 0) { $Where[] = "g.Year <= $Year2"; } } else { $Details = 'all'; // defaults to 10 (duh) $Limit = isset($_GET['limit']) ? intval($_GET['limit']) : 25; $Limit = in_array($Limit, array(25, 100, 250)) ? $Limit : 25; } $Filtered = !empty($Where); if ($_GET['anyall'] === 'any' && !empty($Where)) { $Where = '('.implode(' OR ', $Where).')'; } else { $Where = implode(' AND ', $Where); } $WhereSum = (empty($Where)) ? '' : md5($Where); // Unlike the other top 10s, this query just gets some raw stats // We'll need to do some fancy-pants stuff to translate it into // BPCI scores before getting the torrent data $Query = ' SELECT v.GroupID, v.Ups, v.Total, v.Score FROM torrents_votes AS v'; if (!empty($Where)) { $Query .= " JOIN torrents_group AS g ON g.ID = v.GroupID WHERE $Where AND "; } else { $Query .= ' WHERE '; } $Query .= " Score > 0 ORDER BY Score DESC LIMIT $Limit"; $TopVotes = $Cache->get_value('top10votes_'.$Limit.$WhereSum); if ($TopVotes === false) { if ($Cache->get_query_lock('top10votes')) { $DB->query($Query); $Results = $DB->collect('GroupID'); $Data = $DB->to_array('GroupID'); $Groups = Torrents::get_groups($Results); $TopVotes = array(); foreach ($Results as $GroupID) { $TopVotes[$GroupID] = $Groups['matches'][$GroupID]; $TopVotes[$GroupID]['Ups'] = $Data[$GroupID]['Ups']; $TopVotes[$GroupID]['Total'] = $Data[$GroupID]['Total']; $TopVotes[$GroupID]['Score'] = $Data[$GroupID]['Score']; } $Cache->cache_value('top10votes_'.$Limit.$WhereSum, $TopVotes, 60 * 30); $Cache->clear_query_lock('top10votes'); } else { $TopVotes = false; } } View::show_header("Top $Limit Voted Groups",'browse,voting'); ?>

Top Voted Groups

Tags (comma-separated):   />   />
Year: to

Top - Top 25 - Top 100 - Top 250 - Top 25 - Top 100 - Top 250 - Top 25 - Top 100 - Top 250

$Group) { extract(Torrents::array_group($Group)); $Ups = $Group['Ups']; $Total = $Group['Total']; $Score = $Group['Score']; $IsBookmarked = in_array($GroupID, $Bookmarks); // Handle stats and stuff $Number++; $NumGroups++; $TorrentTags = new Tags($TagList); $DisplayName = $Number.' - '; 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($GroupArtists) > 0) { $DisplayName .= Artists::display_artists(array('1'=>$GroupArtists)); } $DisplayName .= ''.$GroupName.''; if ($GroupYear > 0) { $DisplayName = $DisplayName. " [$GroupYear]"; } if ($GroupVanityHouse) { $DisplayName .= ' [VH]'; } // Start an output buffer, so we can store this output in $TorrentTable ob_start(); if (count($Torrents) > 1 || $GroupCategoryID == 1) : // Grouped torrents $GroupSnatched = false; foreach ($Torrents as &$Torrent) { if (($Torrent['IsSnatched'] = Torrents::has_snatched($Torrent['ID'])) && !$GroupSnatched) { $GroupSnatched = true; } } unset($Torrent); $SnatchedGroupClass = $GroupSnatched ? ' snatched_group' : ''; ?>
Unbookmark Bookmark
format()?>
upvotes out of total (Score: ). $Torrent) : //Get report info, use the cache if available, if not, add to it. $Reported = false; $Reports = get_reports($TorrentID); if (count($Reports) > 0) { $Reported = true; } 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 ]   »  / Reported > '.$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 (Torrents::has_token($TorrentID)) { $DisplayName .= ' ' . Format::torrent_label('Personal freeleech!'); } $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : ''; ?>
[ DL | FL | RP | Unbookmark | Bookmark ]
format()?>
>
Torrents Size Snatches Seeders Leechers
Server is busy processing another top list request. Please try again in a minute.
No torrents were found that meet your criteria.