mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 10:48:53 +00:00
Change leftover references to imgdata.
This commit is contained in:
@@ -195,7 +195,7 @@ class Releases
|
||||
m.id AS movie_id, m.title, m.rating, m.cover, m.plot, m.year, m.genre, m.director, m.actors, m.tagline,
|
||||
mu.id AS music_id, mu.title AS mu_title, mu.cover AS mu_cover, mu.year AS mu_year, mu.artist AS mu_artist, mu.tracks AS mu_tracks, mu.review AS mu_review,
|
||||
ep.id AS ep_id, ep.showtitle AS ep_showtitle, ep.airdate AS ep_airdate, ep.fullep AS ep_fullep, ep.overview AS ep_overview,
|
||||
tvrage.imgdata AS rage_imgdata, tvrage.id AS rg_ID
|
||||
tvrage.hascover AS rage_hascover, tvrage.id AS rg_ID
|
||||
FROM releases
|
||||
LEFT OUTER JOIN category c ON c.id = releases.categoryid
|
||||
LEFT OUTER JOIN category cp ON cp.id = c.parentid
|
||||
|
||||
@@ -6,7 +6,7 @@ $tvRage = new TvRage(['Settings' => $page->settings]);
|
||||
|
||||
$rage = [
|
||||
'id' => '', 'description' => '', 'releasetitle' => '', 'genre' => '',
|
||||
'rageid' => '', 'country' => '', 'imgdata' => ''
|
||||
'rageid' => '', 'country' => '', 'hascover' => ''
|
||||
];
|
||||
|
||||
switch ((isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view')) {
|
||||
|
||||
@@ -25,8 +25,8 @@ else
|
||||
$rage = $t->getByRageID($rel["rageid"]);
|
||||
if (count($rage) > 0)
|
||||
{
|
||||
if ($rage[0]["imgdata"] != "")
|
||||
print "<img class=\"shadow\" src=\"".WWW_TOP."/getimage?type=tvrage&id=".$rage[0]["id"]."\" width=\"180\"/>";
|
||||
if ($rage[0]["hascover"] != "0")
|
||||
print "<img class=\"shadow\" src=\"".WWW_TOP."/covers/tvrage/$rage[0]['id'].jpg\" width=\"180\"/>";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
//
|
||||
// page is accessible only to logged in users.
|
||||
//
|
||||
if (!$page->users->isLoggedIn())
|
||||
$page->show403();
|
||||
|
||||
if (!isset($_GET["type"]) || !isset($_GET["id"]) || !ctype_digit($_GET["id"]))
|
||||
$page->show404();
|
||||
|
||||
//
|
||||
// user requested a tvrage image.
|
||||
//
|
||||
if ($_GET["type"] == "tvrage")
|
||||
{
|
||||
$rage = new TvRage;
|
||||
$r = $rage->getByID($_GET["id"]);
|
||||
if (!$r)
|
||||
$page->show404();
|
||||
|
||||
header("Content-type: image/jpeg");
|
||||
print $r["imgdata"];
|
||||
die();
|
||||
}
|
||||
else
|
||||
{
|
||||
$page->show404();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user