\r\n";
$sessioncnt = 0;
print "
SESSIONS\r\n";
print "
\r\n";
// Streaming in progress
$dir_handle = @opendir('ram/');
if ($dir_handle)
{
while ($session = readdir($dir_handle))
{
if($session == "." || $session == ".." || $session == 'lost+found')
continue;
if (!is_dir('ram/' .$session))
continue;
// Get info
list($type, $realname, $title, $desc, $mode, $category, $url, $mediapath, $subdir) = readinfostream($session);
switch ($type)
{
case 1:
$sessionname = "Live: ";
$picto = "tv";
break;
case 2:
$sessionname = "Rec: ";
$picto = "record";
break;
case 3:
$sessionname = "Media: ";
$picto = "media";
break;
default:
continue;
}
// Check if encoding
if (file_exists('ram/' .$session .'/segmenter.pid'))
$sessionname = "*" .$sessionname;
$sessioncnt++;
$sessionname .= $realname;
print " \r\n";
print "
\r\n";
}
closedir($dir_handle);
}
if (!$sessioncnt)
{
print "
none
\r\n";
print "\r\n";
}
else
{
print "\r\n";
print "
\r\n";
}
// VDR menus
if ($vdrenabled)
{
print "
VDR\r\n";
print "
\r\n";
print " \r\n";
print "
\r\n";
print " \r\n";
print "
\r\n";
print " \r\n";
print "
\r\n";
print " \r\n";
print "
\r\n";
print " ";
}
// Media menus
print "
MEDIA\r\n";
print "
\r\n";
foreach($mediasources as $source)
{
$stype = $source[0];
$sname = $source[1];
$spath = $source[2];
print " \r\n";
print "
\r\n";
}
print " ";
print "
";
?>