mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-15 03:46:25 +00:00
22 lines
529 B
PHP
22 lines
529 B
PHP
|
<?php
|
||
|
require(SERVER_ROOT.'/sections/torrents/functions.php');
|
||
|
|
||
|
$GroupID = (int)$_GET['id'];
|
||
|
if ($GroupID == 0) { error('bad id parameter', true); }
|
||
|
|
||
|
$TorrentDetails = get_group_info($GroupID, true, 0, false);
|
||
|
$TorrentDetails = $TorrentDetails[0];
|
||
|
$Image = $TorrentDetails['WikiImage'];
|
||
|
if (!$Image) { // handle no artwork
|
||
|
$Image = STATIC_SERVER.'common/noartwork/'.$CategoryIcons[$TorrentDetails['CategoryID']-1];
|
||
|
}
|
||
|
|
||
|
print json_encode(
|
||
|
array(
|
||
|
'status' => 'success',
|
||
|
'response' => array(
|
||
|
'wikiImage' => $Image
|
||
|
)
|
||
|
)
|
||
|
);
|