if(!check_perms('site_recommend_own') && !check_perms('site_manage_recommendations')){
error(403);
}
show_header('Recommendations');
$DB->query("SELECT
tr.GroupID,
tr.UserID,
tg.Name,
tg.ArtistID,
ag.Name
FROM torrents_recommended AS tr
JOIN torrents_group AS tg ON tg.ID=tr.GroupID
LEFT JOIN artists_group AS ag ON ag.ArtistID=tg.ArtistID
ORDER BY tr.Time DESC
LIMIT 10
");
?>
Recommendations
if(!in_array($LoggedUser['ID'], $DB->collect('UserID'))){ ?>
} ?>
while(list($GroupID, $UserID, $GroupName, $ArtistID, $ArtistName)=$DB->next_record()) {
?>
-
=format_username($UserID, false, false, false)?>
if($ArtistID){ ?>
- =$ArtistName?>
} ?>
- =$GroupName?>
if(check_perms('site_manage_recommendations') || $UserID == $LoggedUser['ID']){ ?>
[Delete]
} ?>
} ?>
show_footer(); ?>