2011-04-13 15:36:33 +00:00
|
|
|
<?
|
|
|
|
if(($GroupIDs = $Cache->get_value('better_single_groupids')) === false) {
|
|
|
|
$DB->query("SELECT t.ID AS TorrentID,
|
|
|
|
t.GroupID AS GroupID
|
|
|
|
FROM xbt_files_users AS x
|
|
|
|
JOIN torrents AS t ON t.ID=x.fid
|
|
|
|
WHERE t.Format='FLAC'
|
|
|
|
GROUP BY x.fid
|
|
|
|
HAVING COUNT(x.uid) = 1
|
|
|
|
ORDER BY t.LogScore DESC, t.Time ASC LIMIT 30");
|
|
|
|
|
|
|
|
$GroupIDs = $DB->to_array('GroupID');
|
|
|
|
$Cache->cache_value('better_single_groupids', $GroupIDs, 30*60);
|
|
|
|
}
|
|
|
|
|
|
|
|
$Results = get_groups(array_keys($GroupIDs));
|
|
|
|
|
|
|
|
show_header('Single seeder FLACs');
|
|
|
|
?>
|
|
|
|
<div class="thin">
|
|
|
|
<table width="100%">
|
|
|
|
<tr class="colhead">
|
|
|
|
<td>Torrent</td>
|
|
|
|
</tr>
|
|
|
|
<?
|
|
|
|
$Results = $Results['matches'];
|
|
|
|
foreach ($Results as $GroupID=>$Group) {
|
2012-02-05 08:00:20 +00:00
|
|
|
list($GroupID, $GroupName, $GroupYear, $GroupRecordLabel, $GroupCatalogueNumber, $TorrentTags, $ReleaseType, $GroupVanityHouse, $Torrents, $Artists) = array_values($Group);
|
2011-04-13 15:36:33 +00:00
|
|
|
$FlacID = $GroupIDs[$GroupID]['TorrentID'];
|
|
|
|
|
|
|
|
$DisplayName = '';
|
|
|
|
if(count($Artists)>0) {
|
|
|
|
$DisplayName = display_artists(array('1'=>$Artists));
|
|
|
|
}
|
|
|
|
$DisplayName.='<a href="torrents.php?id='.$GroupID.'&torrentid='.$FlacID.'" title="View Torrent">'.$GroupName.'</a>';
|
|
|
|
if($GroupYear>0) { $DisplayName.=" [".$GroupYear."]"; }
|
2012-02-09 08:00:20 +00:00
|
|
|
if($ReleaseType>0) { $DisplayName.=" [".$ReleaseTypes[$ReleaseType]."]"; }
|
2011-04-13 15:36:33 +00:00
|
|
|
|
2012-02-05 08:00:20 +00:00
|
|
|
$TagList=array();
|
|
|
|
if($TorrentTags!='') {
|
|
|
|
$TorrentTags=explode(' ',$TorrentTags);
|
|
|
|
foreach ($TorrentTags as $TagKey => $TagName) {
|
|
|
|
$TagName = str_replace('_','.',$TagName);
|
|
|
|
$TagList[]='<a href="torrents.php?searchtags='.$TagName.'">'.$TagName.'</a>';
|
|
|
|
}
|
|
|
|
$PrimaryTag = $TorrentTags[0];
|
|
|
|
$TagList = implode(', ', $TagList);
|
|
|
|
$TorrentTags='<br /><div class="tags">'.$TagList.'</div>';
|
|
|
|
}
|
2011-04-13 15:36:33 +00:00
|
|
|
?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<?=$DisplayName?>
|
|
|
|
[<a href="torrents.php?action=download&id=<?=$FlacID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>">DL</a>]
|
2012-02-05 08:00:20 +00:00
|
|
|
<?=$TorrentTags?>
|
2011-04-13 15:36:33 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<? } ?>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<?
|
|
|
|
show_footer();
|
|
|
|
?>
|