summaryrefslogtreecommitdiff
path: root/includes/inc_stream.php
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-02-28 11:20:06 +0100
committerAlib <aliboba@free.fr>2010-02-28 11:20:06 +0100
commit5f5250a9b693ea62075e9677b0efe53b6c4bc013 (patch)
treed390ddf859918efa7b52781b7b41ba34f3a3089c /includes/inc_stream.php
parente3111d568164aa1f0d3bd303e3b80dcb6f375047 (diff)
downloadistreamdev-5f5250a9b693ea62075e9677b0efe53b6c4bc013.tar.gz
istreamdev-5f5250a9b693ea62075e9677b0efe53b6c4bc013.tar.bz2
fixed back when coming from Home active session
Diffstat (limited to 'includes/inc_stream.php')
-rwxr-xr-xincludes/inc_stream.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/includes/inc_stream.php b/includes/inc_stream.php
index d160263..d35a37e 100755
--- a/includes/inc_stream.php
+++ b/includes/inc_stream.php
@@ -16,6 +16,7 @@ switch ($type)
break;
// Recording
case 2:
+ $realname = $name;
list($title, $desc, $realname) = vdrgetinfostream($name, 0);
break;
// Media
@@ -97,7 +98,7 @@ foreach ($quality as $qname => $qparams)
print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$subdir}\" />\r\n";
// NO BREAK
case 2:
- print " <input name=\"url\" type=\"hidden\" id=\"url\" value=\"{$name}\" />\r\n";
+ print " <input name=\"url\" type=\"hidden\" id=\"url\" value=\"" . stripslashes($name) ."\" />\r\n";
break;
}
print " </form>";
@@ -107,13 +108,20 @@ print " <form name=\"getback\" id=\"getback\" method=\"post\" action=\"index.ph
switch ($type)
{
case 1:
+ if ($category==null)
+ {
+ print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"listcategory\" />";
+ }
+ else
+ {
print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"listchannels\" />";
print " <input name=\"cat\"type=\"hidden\" id=\"cat\" value=\"{$category}\" />";
+ }
break;
case 2:
$dir = dirname($name);
print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"recordings\" />";
- print " <input name=\"dir\"type=\"hidden\" id=\"dir\" value=\"{$dir}\" />";
+ print " <input name=\"dir\"type=\"hidden\" id=\"dir\" value=\"" . stripslashes($dir) . "\" />";
break;
case 3:
$mediapath = $_REQUEST['mediapath'];