From 0921ec0f64d6782076d1e1fb2333cb53c86d279f Mon Sep 17 00:00:00 2001 From: Alib Date: Thu, 25 Feb 2010 13:39:11 +0100 Subject: trying to debug js array --- includes/inc_audio.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'includes/inc_audio.php') diff --git a/includes/inc_audio.php b/includes/inc_audio.php index df7e401..d8fd09d 100755 --- a/includes/inc_audio.php +++ b/includes/inc_audio.php @@ -37,7 +37,6 @@ if ($medianame_array[0]) sort($medianame_array); $count = count($medianame_array); - for ($cnt=0; $cnt < $count; $cnt++) { // Dirs @@ -63,7 +62,16 @@ if ($medianame_array[0]) if (mediagettype($mediapath .$subdir .$medianame_array[$cnt]) == 2) { print "
  • \r\n"; - print " \r\n"; + //print " \r\n"; + + for ($cnt2=$cnt; $cnt2<$count; $cnt2++) + { + $track[$cnt2] = $httppath."playlist/".$medianame_array[$cnt2]; + + } + $jsarray = php2js($track); + + print " \r\n"; print " $idx{$medianame_array[$cnt]}\r\n"; print " \r\n"; print "
  • \r\n"; @@ -74,11 +82,7 @@ if ($medianame_array[0]) print(""); - print "
    \r\n"; - print "\r\n"; + print "
    \r\n"; print("
    "); } -- cgit v1.2.3