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_home.php | |
parent | 32b78254c76ebd9a07ad19edf25f1f0846a33bb8 (diff) | |
download | istreamdev-05a58ef6e05078fde0e90f74bf2a609dbc543fd5.tar.gz istreamdev-05a58ef6e05078fde0e90f74bf2a609dbc543fd5.tar.bz2 |
Sessions are now working yeah!
Diffstat (limited to 'includes/inc_home.php')
-rwxr-xr-x | includes/inc_home.php | 16 |
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)
{
|