diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-27 01:04:29 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-27 01:04:29 +0100 |
commit | 0c9414a9fecf2278d468acb1cf184e776b5a15c7 (patch) | |
tree | 4fd8140bb93e525976b3c7acde9cfb2ef3052961 /includes/inc_home.php | |
parent | 6d9cbb4df3b1aa89126069162dbf9f1e330b5fa6 (diff) | |
download | istreamdev-0c9414a9fecf2278d468acb1cf184e776b5a15c7.tar.gz istreamdev-0c9414a9fecf2278d468acb1cf184e776b5a15c7.tar.bz2 |
Multiple sessions support WIP
Diffstat (limited to 'includes/inc_home.php')
-rwxr-xr-x | includes/inc_home.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/includes/inc_home.php b/includes/inc_home.php index d907b87..0c372ac 100755 --- a/includes/inc_home.php +++ b/includes/inc_home.php @@ -8,6 +8,31 @@ print "<div id=\"title\">iStreamdev</div>\r\n"; print "</div>\r\n";
print "<div id=\"content\">\r\n";
+// Streaming in progress
+$dir_handle = @opendir('ram');
+if ($dir_handle)
+{
+ print " <span class=\"graytitle\">Streaming...</span>\r\n";
+ print " <ul class=\"pageitem\">\r\n";
+ while ($session = readdir($dir_handle))
+ {
+ if (!is_dir($session))
+ continue;
+
+ print " <li class=\"menu\">";
+ print " <a href=\"javascript:sendForm('{$session}');\">";
+ print " <img src=\"images/pictos/tv.png\" />";
+ print " <span class=\"name\">{$session}</span><span class=\"arrow\"></span>";
+ print " </a>";
+ print " </li>\r\n";
+ print " <form name=\"{$session}\" id=\"{$session}\" method=\"post\" action=\"index.php\">";
+ print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"streaming\" />";
+ print " <input name=\"session\" type=\"hidden\" id=\"session\" value=\"{$session}\" />";
+ print " </form>\r\n";
+ }
+ print " </ul>\r\n";
+}
+
// VDR menus
if ($vdrenabled)
{
|