diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-23 19:38:47 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-23 19:38:47 +0100 |
commit | 26aa824d469209ca18d6ae60c34fc09b484a1409 (patch) | |
tree | aafd02b0a2126e2a9bca0fdbd107002da900ea1b | |
parent | 22327380c154a4aabffb8b3aa7014363833403a9 (diff) | |
download | istreamdev-26aa824d469209ca18d6ae60c34fc09b484a1409.tar.gz istreamdev-26aa824d469209ca18d6ae60c34fc09b484a1409.tar.bz2 |
Show the right logo
-rwxr-xr-x | includes/inc_stream.php | 68 |
1 files changed, 40 insertions, 28 deletions
diff --git a/includes/inc_stream.php b/includes/inc_stream.php index 28a962c..215d107 100755 --- a/includes/inc_stream.php +++ b/includes/inc_stream.php @@ -22,22 +22,28 @@ if (infostreamexist()) // Print the right logo print " <ul class=\"pageitem\">\r\n"; - if ($type == 3) + switch ($type) { - 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 = ""; + case 1: + $logopath = "logos/" .$realname .".png"; + if (!file_exists($logopath)) + $logopath = "logos/nologoTV.png"; + break; + case 2: + $logopath = "logos/" .$realname .".png"; + if (!file_exists($logopath)) + $logopath = "logos/nologoREC.png"; + break; + case 3: + 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 = "logos/nologoMEDIA.png"; } - else - $logopath = "logos/" .$realname .".png"; - if (!file_exists($logopath)) - print " <center><video id=\"videofeed\" poster=\"logos/nologoTV.png\" width='80' height='80' /></center>\r\n"; - else - print " <center><video id=\"videofeed\" poster=\"{$logopath}\" width='80' height='80' /></center>\r\n"; + print " <center><video id=\"videofeed\" poster=\"{$logopath}\" width='80' height='80' /></center>\r\n"; print " </ul>\r\n"; @@ -117,22 +123,28 @@ else // Print the right logo print " <ul class=\"pageitem\">\r\n"; - if ($type == 3) - { - 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"; + switch ($type) + { + case 1: + $logopath = "logos/" .$realname .".png"; + if (!file_exists($logopath)) + $logopath = "logos/nologoTV.png"; + break; + case 2: + $logopath = "logos/" .$realname .".png"; + if (!file_exists($logopath)) + $logopath = "logos/nologoREC.png"; + break; + case 3: + 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 = "logos/nologoMEDIA.png"; + } - if (!file_exists($logopath)) - print " <center><img src=\"logos/nologoTV.png\"></img></center>\r\n"; - else - print " <center><img src=\"{$logopath}\"></img></center>\r\n"; + print " <center><img src=\"{$logopath}\"></img></center>\r\n"; print " </ul>\r\n"; |