if (check_perms('site_submit_requests')) { ?>
[Add Request]
}
if (check_perms('site_torrents_notify')) {
if (($Notify = $Cache->get_value('notify_artists_'.$LoggedUser['ID'])) === FALSE) {
$DB->query("SELECT ID, Artists FROM users_notify_filters WHERE UserID='$LoggedUser[ID]' AND Label='Artist notifications' LIMIT 1");
$Notify = $DB->next_record(MYSQLI_ASSOC);
$Cache->cache_value('notify_artists_'.$LoggedUser['ID'], $Notify, 0);
}
if (stripos($Notify['Artists'], '|'.$Name.'|') === FALSE) {
?>
[Notify of new uploads]
} else {
?>
[Do not notify of new uploads]
}
}
if (has_bookmarked('artist', $ArtistID)) {
?>
[Remove bookmark]
} else {
?>
[Bookmark]
}
if (check_perms('site_edit_wiki')) {
?>
[Edit]
} ?>
[View history]
if (check_perms('site_delete_artist') && check_perms('torrents_delete')) { ?>
[Delete]
}
if ($RevisionID && check_perms('site_edit_wiki')) {
?>
[Revert to this revision]
} ?>
echo $TorrentDisplayList;
if($NumRequests > 0) {
?>
↑
Request Name
Vote
Bounty
Added
foreach($Requests as $Request) {
list($RequestID, $CategoryID, $Title, $Year, $TimeAdded, $Votes, $Bounty) = $Request;
$CategoryName = $Categories[$CategoryID - 1];
if($CategoryName == "Music") {
$ArtistForm = get_request_artists($RequestID);
$ArtistLink = display_artists($ArtistForm, true, true);
$FullName = $ArtistLink."".$Title." [".$Year."] ";
} else if($CategoryName == "Audiobooks" || $CategoryName == "Comedy") {
$FullName = "".$Title." [".$Year."] ";
} else {
$FullName ="".$Title." ";
}
$Row = ($Row == 'a') ? 'b' : 'a';
$Tags = get_request_tags($RequestID);
?>
=$FullName?>
=$Votes?>
if(check_perms('site_vote')){ ?>
(+)
} ?>
=get_size($Bounty)?>
=time_diff($TimeAdded)?>
} ?>
}
// Similar artist map
if($NumSimilar>0) {
$SimilarData = $Cache->get_value('similar_positions_'.$ArtistID);
if(!$Data) {
include(SERVER_ROOT.'/classes/class_image.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);
} else {
$Similar = new ARTISTS_SIMILAR($ArtistID);
$Similar->load_data($SimilarData);
}
?>
Similar artist map
$Similar->write_artists();
?>
} // if $NumSimilar>0 ?>
Artist info
=$Text->full_format($Body)?>