diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-25 19:22:16 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-25 19:22:16 +0100 |
commit | 627da0570e79865643ae3c23c0f5244ac46d5d68 (patch) | |
tree | da526f76a8176a0f182f275f5834bccc7c8a0e59 /includes/inc_video.php | |
parent | c57e43d3caa214c0067ed1ec452fc5cd94c67121 (diff) | |
download | istreamdev-627da0570e79865643ae3c23c0f5244ac46d5d68.tar.gz istreamdev-627da0570e79865643ae3c23c0f5244ac46d5d68.tar.bz2 |
Added a source type and now show the media browsing respect to the type
Diffstat (limited to 'includes/inc_video.php')
-rwxr-xr-x | includes/inc_video.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/includes/inc_video.php b/includes/inc_video.php index d933a04..10a5714 100755 --- a/includes/inc_video.php +++ b/includes/inc_video.php @@ -1,5 +1,14 @@ <?php +$mediapath = $_REQUEST['mediapath']; +$subdir = $_REQUEST['subdir']; + +/* Add last slash to dirs */ +if ($mediapath[strlen($mediapath)-1] != '/') + $mediapath = $mediapath .'/'; +if ($subdir[strlen($subdir)-1] != '/') + $subdir = $subdir .'/'; + print "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n"; print "<div id=\"topbar\" class=\"transparent\">\r\n"; print "<div id=\"leftnav\">\r\n"; @@ -57,7 +66,7 @@ if ($medianame_array[0]) print " </a>\r\n"; print "</li>\r\n"; print "<form name=\"$value\" id=\"$value\" method=\"post\" action=\"index.php\">"; - print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"media\"/>"; + print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"video\"/>"; print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />"; print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$subdir}{$value}\" />\r\n"; print "</form>\r\n"; @@ -91,7 +100,7 @@ if ($medianame_array[0]) $upsubdir = dirname($subdir); print "<form name=\"getback\" id=\"getback\" method=\"post\" action=\"index.php\">\r\n"; -print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"media\"/>\r\n"; +print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"video\"/>\r\n"; print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />\r\n"; print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$upsubdir}\" />\r\n"; print "</form>\r\n"; |