\r\n";
print "
Now streaming\r\n";
// Print the right logo
print "
\r\n";
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";
}
print " \r\n";
print "
\r\n";
print "
\r\n";
print " {$title}\r\n";
print "
{$desc}
\r\n";
print "
\r\n";
print " - \r\n";
print "
{$mode}
\r\n";
print "
\r\n";
print " \r\n";
print "
Select stream mode\r\n";
// Print the right logo
print "
\r\n";
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";
}
print " \r\n";
print "
\r\n";
// Check if running to display the start buttons
print "
\r\n";
print "
\r\n";
print " {$title}\r\n";
print "
{$desc}
\r\n";
print "
\r\n";
foreach ($quality as $qname => $qparams)
{
print "