diff options
author | Alib <aliboba@free.fr> | 2010-02-25 13:50:13 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-02-25 13:50:13 +0100 |
commit | 0523957900c8962c67aa466236b579d1e870a5fb (patch) | |
tree | 1e813a0823b40776717c92c583cb4c6106947d39 /includes/inc_audio.php | |
parent | 0921ec0f64d6782076d1e1fb2333cb53c86d279f (diff) | |
parent | 0e5d920a64954cd415ae17f73bdabf8d1fe6cf39 (diff) | |
download | istreamdev-0523957900c8962c67aa466236b579d1e870a5fb.tar.gz istreamdev-0523957900c8962c67aa466236b579d1e870a5fb.tar.bz2 |
Merge branch 'master' of projects.vdr-developer.org:istreamdev
Conflicts:
includes/inc_audio.php
Diffstat (limited to 'includes/inc_audio.php')
-rwxr-xr-x | includes/inc_audio.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/includes/inc_audio.php b/includes/inc_audio.php index d8fd09d..04d3a12 100755 --- a/includes/inc_audio.php +++ b/includes/inc_audio.php @@ -42,8 +42,10 @@ if ($medianame_array[0]) // Dirs if (mediagettype($mediapath .$subdir .$medianame_array[$cnt]) == 3) { + $medianame2=addslashes($medianame_array[$cnt]); + print " <li>\r\n"; - print " <a class=\"noeffect\" href=\"javascript:sendForm('dir_{$medianame_array[$cnt]}');\">\r\n"; + print " <a class=\"noeffect\" href=\"javascript:sendForm('dir_$medianame2');\">\r\n"; print " <span class=\"name\">{$medianame_array[$cnt]}</span><span class=\"time\">></span>\r\n"; print " </a>\r\n"; print " </li>\r\n"; @@ -58,20 +60,24 @@ if ($medianame_array[0]) $idx = 1; for ($cnt=0; $cnt < $count; $cnt++) { + $medianame2=addslashes($medianame_array[$cnt]); + $mediapath2=addslashes($mediapath); + $subdir2=addslashes($subdir); + // Audio if (mediagettype($mediapath .$subdir .$medianame_array[$cnt]) == 2) { print " <li>\r\n"; - //print " <a class=\"noeffect\" href=\"javascript:playmusic('{$mediapath}{$subdir}','{$medianame_array[$cnt]}');document.player.Play();\">\r\n"; - + for ($cnt2=$cnt; $cnt2<$count; $cnt2++) { - $track[$cnt2] = $httppath."playlist/".$medianame_array[$cnt2]; + $track[$cnt2] = $httppath."playlist/".$medianame2; } $jsarray = php2js($track); print " <a class=\"noeffect\" href=\"javascript:var myarray = new Array({$jsarray});addplayer(myarray);document.player.Play();\">\r\n"; + print " <span class=\"number\">$idx</span><span class=\"stop\"></span><span class=\"name\">{$medianame_array[$cnt]}</span>\r\n"; print " </a>\r\n"; print " </li>\r\n"; |