Change leftover references to imgdata.

This commit is contained in:
Darko
2015-10-06 15:19:27 +02:00
parent a1058f9453
commit 43b93f300d
4 changed files with 4 additions and 34 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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')) {
+2 -2
View File
@@ -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&amp;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\"/>";
}
}
}
-30
View File
@@ -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();
}