summaryrefslogtreecommitdiff
path: root/includes/inc_home.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/inc_home.php')
-rwxr-xr-xincludes/inc_home.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/includes/inc_home.php b/includes/inc_home.php
index bc9a402..00a19e6 100755
--- a/includes/inc_home.php
+++ b/includes/inc_home.php
@@ -8,11 +8,15 @@ print "<div id=\"title\">iStreamdev</div>\r\n";
print "</div>\r\n";
print "<div id=\"content\">\r\n";
+$sessioncnt = 0;
+
+print " <span class=\"graytitle\">SESSIONS</span>\r\n";
+print " <ul class=\"pageitem\">\r\n";
+
// Streaming in progress
$dir_handle = @opendir('ram/');
if ($dir_handle)
{
- print " <ul class=\"pageitem\">\r\n";
while ($session = readdir($dir_handle))
{
if($session == "." || $session == ".." || $session == 'lost+found')
@@ -32,7 +36,7 @@ if ($dir_handle)
break;
case 2:
$sessionname = "Rec: ";
- $picto = "rec";
+ $picto = "record";
break;
case 3:
$sessionname = "Media: ";
@@ -42,6 +46,8 @@ if ($dir_handle)
continue;
}
+ $sessioncnt++;
+
$sessionname .= $realname;
print " <li class=\"menu\">";
@@ -55,11 +61,15 @@ if ($dir_handle)
print " <input name=\"session\" type=\"hidden\" id=\"session\" value=\"{$session}\" />";
print " </form>\r\n";
}
- print " </ul>\r\n";
closedir($dir_handle);
}
+if (!$sessioncnt)
+ print "<li class=\"textbox\"><p>none</p></li>\r\n";
+
+print " </ul>\r\n";
+
// VDR menus
if ($vdrenabled)
{