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_audio.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_audio.php')
-rwxr-xr-x | includes/inc_audio.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/includes/inc_audio.php b/includes/inc_audio.php index 1806703..b1f58e3 100755 --- a/includes/inc_audio.php +++ b/includes/inc_audio.php @@ -2,6 +2,15 @@ global $httppath; +$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 class=\"ipodlist\">\r\n"; print "<div id=\"topbar\" class=\"transparent\">\r\n"; print "<div id=\"leftnav\">\r\n"; @@ -50,7 +59,7 @@ if ($medianame_array[0]) print " </a>\r\n"; print " </li>\r\n"; print " <form name=\"dir_{$medianame_array[$cnt]}\" id=\"dir_{$medianame_array[$cnt]}\" 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=\"audio\"/>\r\n"; print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />\r\n"; print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$subdir}{$medianame_array[$cnt]}\" />\r\n"; print " </form>\r\n"; @@ -98,7 +107,7 @@ else $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=\"audio\" />\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"; |