summaryrefslogtreecommitdiff
path: root/includes/inc_stream.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-02-23 19:17:19 +0100
committerTheTroll <trolldev@gmail.com>2010-02-23 19:17:19 +0100
commit9062d1fa575867946bed6c2feb4cea7e26695142 (patch)
tree025421f75aa8ed2b6df417fff2334dd07bd31d73 /includes/inc_stream.php
parentdd6e291748779399e9950f8810ffdd4eef1fdd4b (diff)
downloadistreamdev-9062d1fa575867946bed6c2feb4cea7e26695142.tar.gz
istreamdev-9062d1fa575867946bed6c2feb4cea7e26695142.tar.bz2
Display folder.jpg, poster.jpg or filename.tbn if present (picture must be resized for now)
Diffstat (limited to 'includes/inc_stream.php')
-rwxr-xr-xincludes/inc_stream.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/includes/inc_stream.php b/includes/inc_stream.php
index b4cb5bd..28a962c 100755
--- a/includes/inc_stream.php
+++ b/includes/inc_stream.php
@@ -23,7 +23,14 @@ if (infostreamexist())
print " <ul class=\"pageitem\">\r\n";
if ($type == 3)
- $logopath = "ram/stream-tb.png";
+ {
+ if (file_exists("ram/stream-tb.png"))
+ $logopath = "ram/stream-tb.png";
+ else if (file_exists("ram/stream-tb.jpg"))
+ $logopath = "ram/stream-tb.jpg";
+ else
+ $logopath = "";
+ }
else
$logopath = "logos/" .$realname .".png";
@@ -111,7 +118,14 @@ else
print " <ul class=\"pageitem\">\r\n";
if ($type == 3)
- $logopath = "ram/stream-tb.png";
+ {
+ if (file_exists("ram/stream-tb.png"))
+ $logopath = "ram/stream-tb.png";
+ else if (file_exists("ram/stream-tb.jpg"))
+ $logopath = "ram/stream-tb.jpg";
+ else
+ $logopath = "";
+ }
else
$logopath = "logos/" .$realname .".png";