2013-02-04 08:00:13 +00:00
|
|
|
<?php
|
|
|
|
require(SERVER_ROOT.'/sections/torrents/functions.php');
|
|
|
|
|
|
|
|
$GroupID = (int)$_GET['id'];
|
2013-07-17 08:00:52 +00:00
|
|
|
if ($GroupID === 0) {
|
2013-05-14 08:00:34 +00:00
|
|
|
error('bad id parameter', true);
|
|
|
|
}
|
2013-02-04 08:00:13 +00:00
|
|
|
|
|
|
|
$TorrentDetails = get_group_info($GroupID, true, 0, false);
|
|
|
|
$TorrentDetails = $TorrentDetails[0];
|
|
|
|
$Image = $TorrentDetails['WikiImage'];
|
|
|
|
if (!$Image) { // handle no artwork
|
2013-07-17 08:00:52 +00:00
|
|
|
$Image = STATIC_SERVER.'common/noartwork/'.$CategoryIcons[$TorrentDetails['CategoryID'] - 1];
|
2013-02-04 08:00:13 +00:00
|
|
|
}
|
|
|
|
|
2013-04-24 08:00:23 +00:00
|
|
|
json_die("success", array(
|
2013-05-14 08:00:34 +00:00
|
|
|
'wikiImage' => $Image
|
2013-07-17 08:00:52 +00:00
|
|
|
));
|