From 627da0570e79865643ae3c23c0f5244ac46d5d68 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Thu, 25 Feb 2010 19:22:16 +0100 Subject: Added a source type and now show the media browsing respect to the type --- includes/inc_audio.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'includes/inc_audio.php') 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 "\r\n"; print "
\r\n"; print "
\r\n"; @@ -50,7 +59,7 @@ if ($medianame_array[0]) print " \r\n"; print " \r\n"; print "
\r\n"; - print " \r\n"; + print " \r\n"; print " \r\n"; print " \r\n"; print "
\r\n"; @@ -98,7 +107,7 @@ else $upsubdir = dirname($subdir); print "
\r\n"; -print " \r\n"; +print " \r\n"; print " \r\n"; print " \r\n"; print "
\r\n"; -- cgit v1.2.3