\r\n";
print "
Select stream mode\r\n";
// Print the right logo
print "
\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";
}
print " \r\n";
print "
\r\n";
print "
\r\n";
print "
\r\n";
print " {$title}\r\n";
print "
{$desc}
\r\n";
print "
\r\n";
foreach ($quality as $qname => $qparams)
{
print "