get_value("artist_{$ArtistID}_revision_$RevisionID", true); } else { // viewing the live version $Data = $Cache->get_value("artist_$ArtistID", true); $RevisionID = false; } if ($Data) { #list($K, list($Name, $Image, $Body, $NumSimilar, $SimilarArray, , , $VanityHouseArtist)) = each($Data); list($K, list($Name, $Image, $Body, $NumSimilar, $SimilarArray)) = each($Data); } else { if ($RevisionID) { $sql = " SELECT a.Name, wiki.Image, wiki.body FROM wiki_artists AS wiki LEFT JOIN artists_group AS a ON wiki.RevisionID = a.RevisionID WHERE wiki.RevisionID = '$RevisionID' "; } else { $sql = " SELECT a.Name, wiki.Image, wiki.body FROM artists_group AS a LEFT JOIN wiki_artists AS wiki ON wiki.RevisionID = a.RevisionID WHERE a.ArtistID = '$ArtistID' "; } $sql .= " GROUP BY a.ArtistID"; $DB->query($sql); if (!$DB->has_results()) { error(404); } list($Name, $Image, $Body) = $DB->next_record(MYSQLI_NUM, array(0)); } //----------------- Build list and get stats ob_start(); // Requests $Requests = array(); if (empty($LoggedUser['DisableRequests'])) { $Requests = $Cache->get_value("artists_requests_$ArtistID"); if (!is_array($Requests)) { $DB->query(" SELECT r.ID, r.CategoryID, r.Title, r.TitleJP, r.CatalogueNumber, r.DLSiteID, 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->has_results()) { $Requests = $DB->to_array('ID', MYSQLI_ASSOC, false); } else { $Requests = array(); } $Cache->cache_value("artists_requests_$ArtistID", $Requests); } } $NumRequests = count($Requests); if (($GroupIDs = $Cache->get_value("artist_groups_$ArtistID")) === false) { $DB->query(" SELECT DISTINCTROW ta.GroupID FROM torrents_artists AS ta WHERE ta.ArtistID = '$ArtistID'"); $GroupIDs = $DB->collect('GroupID'); $Cache->cache_value("artist_groups_$ArtistID", $GroupIDs, 0); } if (count($GroupIDs) > 0) { $TorrentList = Torrents::get_groups($GroupIDs, true, true); } else { $TorrentList = array(); } $NumGroups = count($TorrentList); if (!empty($TorrentList)) { ?>
$Group) { // $Tags array is for the sidebar on the right. $TorrentTags = new Tags($Group['TagList'], true); foreach ($Group['Torrents'] as $TorrentID => $Torrent) { $NumTorrents++; $Torrent['Seeders'] = (int)$Torrent['Seeders']; $Torrent['Leechers'] = (int)$Torrent['Leechers']; $Torrent['Snatched'] = (int)$Torrent['Snatched']; $NumSeeders += $Torrent['Seeders']; $NumLeechers += $Torrent['Leechers']; $NumSnatches += $Torrent['Snatched']; } } $OpenTable = false; $ShowGroups = !isset($LoggedUser['TorrentGrouping']) || $LoggedUser['TorrentGrouping'] == 0; $HideTorrents = ($ShowGroups ? '' : ' hidden'); $OldGroupID = 0; ?> 1) { $TorrentTags = new Tags($TagList, false); $DisplayName = Artists::display_artists(Artists::get_artist($GroupID), true, true); $DisplayName .= "$GroupName"; if ($GroupYear) { $DisplayName .= " [$GroupYear]"; } if ($GroupStudio) { $DisplayName .= " [$GroupStudio]"; } if ($GroupCatalogueNumber) { $DisplayName .= " [$GroupCatalogueNumber]"; } if ($GroupPages) { $DisplayName .= " [{$GroupPages}p]"; } if ($GroupDLSiteID) { $DisplayName .= " [$GroupDLSiteID]"; } if (check_perms('users_mod') || check_perms('torrents_fix_ghosts')) { $DisplayName .= ' Fix'; } $SnatchedGroupClass = ($GroupFlags['IsSnatched'] ? ' snatched_group' : ''); ?> $Torrent) { $Reported = false; $Reports = Torrents::get_reports($TorrentID); if (count($Reports) > 0) { $Reported = true; } $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : ''; $TorrentDL = "torrents.php?action=download&id=".$TorrentID."&authkey=".$LoggedUser['AuthKey']."&torrent_pass=".$LoggedUser['torrent_pass']; $TorrentMG = "magnet:?xt=urn:btih:".$Torrent['info_hash']."&as=https://".SITE_DOMAIN."/".str_replace('&','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Torrent['Size']; ?> 0) { $Reported = true; } $DisplayName .= "$GroupName"; if ($GroupYear) { $DisplayName .= " [$GroupYear]"; } if ($GroupStudio) { $DisplayName .= " [$GroupStudio]"; } if ($GroupCatalogueNumber) { $DisplayName .= " [$GroupCatalogueNumber]"; } if ($GroupPages) { $DisplayName .= " [{$GroupPages}p]"; } if ($GroupDLSiteID) { $DisplayName .= " [$GroupDLSiteID]"; } if (check_perms('users_mod') || check_perms('torrents_fix_ghosts')) { $DisplayName .= ' Fix'; } $ExtraInfo = Torrents::torrent_info($Torrent, true, true); $SnatchedGroupClass = ($GroupFlags['IsSnatched'] ? ' snatched_group' : ''); $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : ''; $TorrentDL = "torrents.php?action=download&id=".$TorrentID."&authkey=".$LoggedUser['AuthKey']."&torrent_pass=".$LoggedUser['torrent_pass']; $TorrentMG = "magnet:?xt=urn:btih:".$Torrent['info_hash']."&as=https://".SITE_DOMAIN."/".str_replace('&','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Torrent['Size']; ?>
 Name Size Snatches
Remove bookmark Bookmark
format('torrents.php?taglist=', $Name)?>
[ DL | MG | FL | RP ]   » 

/ Reported
format('torrents.php?taglist=', $Name)?>

(Revision #)

  Information Toggle
get_value("artists_collages_$ArtistID"); if (!is_array($Collages)) { $DB->query(" SELECT c.Name, c.NumTorrents, c.ID FROM collages AS c JOIN collages_artists AS ca ON ca.CollageID = c.ID WHERE ca.ArtistID = '$ArtistID' AND Deleted = '0' AND CategoryID = '7'"); $Collages = $DB->to_array(); $Cache->cache_value("artists_collages_$ArtistID", $Collages, 3600 * 6); } if (count($Collages) > 0) { if (count($Collages) > MAX_COLLAGES) { // Pick some at random $Range = range(0,count($Collages) - 1); shuffle($Range); $Indices = array_slice($Range, 0, MAX_COLLAGES); $SeeAll = ' (See all)'; } else { $Indices = range(0, count($Collages)-1); $SeeAll = ''; } ?>
 This artist is in collage 1) ? 's' : '')?> # artists
0) { ?> $Request) { $CategoryName = $Categories[$Request['CategoryID'] - 1]; $Title = display_str($Request['Title']); if ($CategoryName != 'Other') { $ArtistForm = Requests::get_artists($RequestID); $ArtistLink = Artists::display_artists($ArtistForm, true, true); $FullName = $ArtistLink."$Title"; if ($Request['CatalogueNumber']) { $FullName .= " [$Request[CatalogueNumber]]"; } if ($Request['DLSiteID']) { $FullName.= " [$Request[DLSiteID]]"; } } else { $FullName = "$Title"; } if (!empty($Tags[$RequestID])) { $ReqTagList = array(); foreach ($Tags[$RequestID] as $TagID => $TagName) { $ReqTagList[] = "".display_str($TagName).''; } $ReqTagList = implode(', ', $ReqTagList); } else { $ReqTagList = ''; } ?>
  Request Name Vote Bounty Added
   +
0) { if ($SimilarData = $Cache->get_value("similar_positions_$ArtistID")) { $Similar = new ARTISTS_SIMILAR($ArtistID, $Name); $Similar->load_data($SimilarData); if (!(current($Similar->Artists)->NameLength)) { unset($Similar); } } if (empty($Similar) || empty($Similar->Artists)) { include(SERVER_ROOT.'/classes/image.class.php'); $Img = new IMAGE; $Img->create(WIDTH, HEIGHT); $Img->color(255, 255, 255, 127); $Similar = new ARTISTS_SIMILAR($ArtistID, $Name); $Similar->set_up(); $Similar->set_positions(); $Similar->background_image(); $SimilarData = $Similar->dump_data(); $Cache->cache_value("similar_positions_$ArtistID", $SimilarData, 3600 * 24); } ?>
  Similar Map Switch to cloud
write_artists(); ?>
'pageid', 'InputID' => $ArtistID, 'Action' => 'comments.php?page=artist', 'InputAction' => 'take_post', 'SubscribeBox' => true )); ?>
cache_value($Key, $Data, 3600); ?>