2013-05-27 08:00:58 +00:00
|
|
|
<?
|
|
|
|
authorize();
|
|
|
|
if (!check_perms('site_edit_wiki')) {
|
|
|
|
error(403);
|
|
|
|
}
|
|
|
|
|
|
|
|
$ID = $_GET['id'];
|
2013-05-28 08:01:02 +00:00
|
|
|
$GroupID = $_GET['groupid'];
|
2013-05-27 08:00:58 +00:00
|
|
|
|
2013-05-28 08:01:02 +00:00
|
|
|
|
|
|
|
if (!is_number($ID) || !is_number($ID) || !is_number($GroupID) || !is_number($GroupID)) {
|
2013-05-27 08:00:58 +00:00
|
|
|
error(404);
|
|
|
|
}
|
|
|
|
|
2013-07-04 08:00:56 +00:00
|
|
|
$DB->query("
|
|
|
|
SELECT Image, Summary
|
|
|
|
FROM cover_art
|
|
|
|
WHERE ID = '$ID'");
|
2013-05-28 08:01:02 +00:00
|
|
|
list($Image, $Summary) = $DB->next_record();
|
|
|
|
|
2013-07-04 08:00:56 +00:00
|
|
|
$DB->query("
|
|
|
|
DELETE FROM cover_art
|
|
|
|
WHERE ID = '$ID'");
|
2013-05-27 08:00:58 +00:00
|
|
|
|
2013-07-04 08:00:56 +00:00
|
|
|
$DB->query("
|
|
|
|
INSERT INTO group_log
|
|
|
|
(GroupID, UserID, Time, Info)
|
|
|
|
VALUES
|
2013-07-10 00:08:53 +00:00
|
|
|
('$GroupID', ".$LoggedUser['ID'].", '".sqltime()."', '".db_string("Additional cover \"$Summary - $Image\" removed from group")."')");
|
2013-05-28 08:01:02 +00:00
|
|
|
|
2013-07-04 08:00:56 +00:00
|
|
|
$Cache->delete_value("torrents_cover_art_$GroupID");
|
2013-05-27 08:00:58 +00:00
|
|
|
header('Location: '.$_SERVER['HTTP_REFERER']);
|
|
|
|
?>
|