diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-27 03:26:17 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-27 03:26:17 +0100 |
commit | 05a58ef6e05078fde0e90f74bf2a609dbc543fd5 (patch) | |
tree | 621691bedfd73d2f0642c39a4f9c2d00934c3584 /includes/inc_stream.php | |
parent | 32b78254c76ebd9a07ad19edf25f1f0846a33bb8 (diff) | |
download | istreamdev-05a58ef6e05078fde0e90f74bf2a609dbc543fd5.tar.gz istreamdev-05a58ef6e05078fde0e90f74bf2a609dbc543fd5.tar.bz2 |
Sessions are now working yeah!
Diffstat (limited to 'includes/inc_stream.php')
-rwxr-xr-x | includes/inc_stream.php | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/includes/inc_stream.php b/includes/inc_stream.php index f29271e..925fd7b 100755 --- a/includes/inc_stream.php +++ b/includes/inc_stream.php @@ -20,7 +20,7 @@ switch ($type) break; // Media case 3: - list($title, $desc) = mediagetinfostream($name); + list($title, $desc) = mediagetinfostream($name, 0); $realname = basename($name); break; default: @@ -49,30 +49,13 @@ print " <span class=\"graytitle\">Select stream mode</span>\r\n"; // Print the right logo print " <ul class=\"pageitem\">\r\n"; -switch ($type) -{ - case 1: - $channoslash = preg_replace("$/$", " ", $realname); - $logopath = "logos/" .$channoslash .".png"; - if (!file_exists($logopath)) - $logopath = "logos/nologoTV.png"; - break; - case 2: - $channoslash = preg_replace("$/$", " ", $realname); - $logopath = "logos/" .$channoslash .".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"; -} +// Get logo +if ($type == 2) + generatelogo($type, $realname, 'ram/tmp-logo.png'); +else + generatelogo($type, $name, 'ram/tmp-logo.png'); -print " <center><img src=\"{$logopath}\"></img></center>\r\n"; +print " <center><img src=\"ram/tmp-logo.png\"></img></center>\r\n"; print " </ul>\r\n"; |