diff options
author | Alib <aliboba@free.fr> | 2010-02-24 19:04:21 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-02-24 19:04:21 +0100 |
commit | c297edd1d308cff6c17da12c0ff7d08f9a6223f6 (patch) | |
tree | c6f0aaf81fc34a980504083a98eb8950a6f0b5bf /includes | |
parent | ff270318f7859bb99de1dc679ad3093c31f304dd (diff) | |
download | istreamdev-c297edd1d308cff6c17da12c0ff7d08f9a6223f6.tar.gz istreamdev-c297edd1d308cff6c17da12c0ff7d08f9a6223f6.tar.bz2 |
fixed safari opening when accessing playlist
Diffstat (limited to 'includes')
-rwxr-xr-x | includes/inc_media.php | 16 | ||||
-rwxr-xr-x | includes/inc_mp3.php | 2 |
2 files changed, 15 insertions, 3 deletions
diff --git a/includes/inc_media.php b/includes/inc_media.php index d0f94c1..eaed547 100755 --- a/includes/inc_media.php +++ b/includes/inc_media.php @@ -46,12 +46,18 @@ foreach ($audioextarray as $num => $audioext) if ($playlist) { print " <li class=\"menu\">\r\n"; - print " <a href=\"index.php?action=playdir&mediapath={$mediapath}&subdir={$subdir}\">\r\n"; + print " <a class=\"noeffect\" href=\"javascript:sendForm('track_all');\">\r\n"; print " <img src=\"images/pictos/playlist.png\" />\r\n"; print " <span class=\"name\">Play current dir</span>\r\n"; print " <span class=\"arrow\"></span>\r\n"; print " </a>\r\n"; print " </li>\r\n"; + print "<form name=\"track_all\" id=\"track_all\" method=\"post\" action=\"index.php\">"; + print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"playdir\"/>"; + print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />"; + print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$subdir}\" />"; + print " <input name=\"play\" type=\"hidden\" id=\"play\" value= />"; + print "</form>"; } $dir_handle = @opendir($mediapath .$subdir); @@ -119,11 +125,17 @@ if ($medianame_array[0]) $audiocnt++; print "<li class=\"menu\">\r\n"; - print " <a href=\"index.php?action=playdir&mediapath={$mediapath}&subdir={$subdir}&play={$audiocnt}\">\r\n"; + print " <a class=\"noeffect\" href=\"javascript:sendForm('track_{$audiocnt}');\">\r\n"; print " <img src=\"images/pictos/audio.png\" />\r\n"; print " <span class=\"name\">$value</span><span class=\"arrow\"></span>\r\n"; print " </a>\r\n"; print "</li>\r\n"; + print "<form name=\"track_{$audiocnt}\" id=\"track_{$audiocnt}\" method=\"post\" action=\"index.php\">"; + print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"playdir\"/>"; + print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />"; + print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$subdir}\" />"; + print " <input name=\"play\" type=\"hidden\" id=\"play\" value={$audiocnt} />"; + print "</form>"; } } } diff --git a/includes/inc_mp3.php b/includes/inc_mp3.php index 9e3cd62..813ca3b 100755 --- a/includes/inc_mp3.php +++ b/includes/inc_mp3.php @@ -4,7 +4,7 @@ $play =$_REQUEST['play']; if ($play == "") print "<body class=\"ipodlist\">\r\n"; else - print "<body class=\"ipodlist\" onload=\"javascript:Document.s{$play}.Play()\">\r\n"; + print "<body class=\"ipodlist\">\r\n"; print "<div id=\"topbar\" class=\"transparent\">\r\n"; print "<div id=\"leftnav\">\r\n"; |