/************************************************************************ ||------------|| Delete artist ||--------------------------------------|| This is a very powerful page - it deletes an artist, and all associated requests and torrents. It is called when $_GET['action'] == 'delete'. ************************************************************************/ authorize(); $ArtistID = $_GET['artistid']; if(!is_number($ArtistID) || empty($ArtistID)) { error(0); } if(!check_perms('site_delete_artist') || !check_perms('torrents_delete')) { error(403); } show_header('Artist deleted'); $DB->query('SELECT Name FROM artists_group WHERE ArtistID='.$ArtistID); list($Name) = $DB->next_record(); $DB->query('SELECT tg.Name, tg.ID FROM torrents_group AS tg LEFT JOIN torrents_artists AS ta ON ta.GroupID=tg.ID WHERE ta.ArtistID='.$ArtistID); $Count = $DB->record_count(); if($DB->record_count() > 0) { ?>