↑ Request name | Vote | Bounty | Added |
=$FullName?> | =$Votes?> if(check_perms('site_vote')){ ?> (+) } ?> | =Format::get_size($Bounty)?> | =time_diff($TimeAdded)?> |
//~~~~~~~~~~~ Main artist page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// //For sorting tags function compare($X, $Y){ return($Y['count'] - $X['count']); } include(SERVER_ROOT.'/sections/bookmarks/functions.php'); // has_bookmarked() include(SERVER_ROOT.'/sections/requests/functions.php'); include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class $Text = new TEXT; // Similar artist map include(SERVER_ROOT.'/classes/class_artists_similar.php'); $ArtistID = $_GET['id']; if(!is_number($ArtistID)) { error(0); } if(!empty($_GET['revisionid'])) { // if they're viewing an old revision $RevisionID=$_GET['revisionid']; if(!is_number($RevisionID)){ error(0); } $Data = $Cache->get_value("artist_$ArtistID"."_revision_$RevisionID"); } else { // viewing the live version $Data = $Cache->get_value('artist_'.$ArtistID); $RevisionID = false; } if($Data) { $Data = unserialize($Data); list($K, list($Name, $Image, $Body, $NumSimilar, $SimilarArray, $TorrentList, $GroupMeta)) = each($Data); } else { $sql = "SELECT a.Name, wiki.Image, wiki.body, a.VanityHouse FROM artists_group AS a LEFT JOIN wiki_artists AS wiki ON wiki.RevisionID=a.RevisionID WHERE "; if($RevisionID){ $sql.=" wiki.RevisionID='$RevisionID' "; } else { $sql.=" a.ArtistID='$ArtistID' "; } $sql .= " GROUP BY a.ArtistID"; $DB->query($sql, MYSQLI_NUM, true); if($DB->record_count()==0) { error(404); } list($Name, $Image, $Body, $VanityHouseArtist) = $DB->next_record(); } //----------------- Build list and get stats ob_start(); // Requests $Requests = $Cache->get_value('artists_requests_'.$ArtistID); if(!is_array($Requests)) { $DB->query("SELECT r.ID, r.CategoryID, r.Title, r.Year, r.TimeAdded, COUNT(rv.UserID) AS Votes, SUM(rv.Bounty) AS Bounty FROM requests AS r LEFT JOIN requests_votes AS rv ON rv.RequestID=r.ID LEFT JOIN requests_artists AS ra ON r.ID=ra.RequestID WHERE ra.ArtistID = ".$ArtistID." AND r.TorrentID = 0 GROUP BY r.ID ORDER BY Votes DESC"); if($DB->record_count() > 0) { $Requests = $DB->to_array(); } else { $Requests = array(); } $Cache->cache_value('artists_requests_'.$ArtistID, $Requests); } $NumRequests = count($Requests); $LastReleaseType = 0; if(empty($GroupMeta) || empty($TorrentList)) { $DB->query("SELECT DISTINCT ta.GroupID, ta.Importance, tg.VanityHouse FROM torrents_artists AS ta JOIN torrents_group AS tg ON tg.ID=ta.GroupID WHERE ta.ArtistID='$ArtistID' ORDER BY ta.Importance, tg.ReleaseType ASC, tg.Year DESC"); $GroupIDs = $DB->collect('GroupID'); $GroupMeta = $DB->to_array('GroupID', MYSQLI_BOTH, false); if(count($GroupIDs)>0) { $TorrentList = Torrents::get_groups($GroupIDs, true, true); $TorrentList = $TorrentList['matches']; } else { $TorrentList = array(); } } $NumGroups = count($TorrentList); if(!empty($TorrentList)) { ?>
if($NumTorrentsReleaseType > 0) { ?> ↑ } ?> =$DisplayName?> if($NumTorrentsReleaseType > 0) { ?> ( id="releases_=$ReleaseType?>_viewlink" onclick="setShow('=$ReleaseType?>',true);return false;">View id="releases_=$ReleaseType?>_hidelink" onclick="setShow('=$ReleaseType?>',false);return false;">Hide) } ?> | Size | |||||
=$DisplayName?> | ||||||
− =$RemasterName?> | ||||||
− =$MasterName?> | ||||||
DL » =Torrents::torrent_info($Torrent)?> | =Format::get_size($Torrent['Size'])?> | =number_format($Torrent['Snatched'])?> | =number_format($Torrent['Seeders'])?> | =number_format($Torrent['Leechers'])?> |
↑ Request name | Vote | Bounty | Added |
=$FullName?> | =$Votes?> if(check_perms('site_vote')){ ?> (+) } ?> | =Format::get_size($Bounty)?> | =time_diff($TimeAdded)?> |