Removed flash fallback message (breaks things in chromium)
[mirrors/JukeBox.git] / index.php
index 40b7db3eca2de8a7b8ed76df73cd6ab8e6db03c6..03017676ba35fb31803e19b6fea11038e0f11022 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -58,7 +58,7 @@ $search_engines = array(
 $flash_player_swf =    $bonus_dir.'/player.swf'; //path to musicplayer
 $flash_player_frame =  'playframe-show'; //FlashPlayer Target (playframe-show|playframe-hide) - usefull for compatibility with old music player
 $flash_player_options = '?bg=000099&loader=000000&tracker=AAAAFF&skip=FFFFFF' //.'&leftbg=000077&rightbg=000077&righticon=999999'
-                        .'&autostart=yes&initialvolume=100&soundFile='; //& arguments (urlencoded song url will be added)
+                        .'&autostart=yes&initialvolume=100&buffer=30&animation=no&soundFile='; //& arguments (urlencoded song url will be added)
 
 //Security
 error_reporting(0); //This will disable error reporting, wich can pass sensitive data to users
@@ -204,8 +204,8 @@ function render_file_line($dir, $item, $dir_url, $index, $filesize, $parent = fa
                        '" target="'.$GLOBALS['flash_player_frame'].'" class="icon ifplay">F</a>/'.
                        '<a href="?blank" target="'.$GLOBALS['flash_player_frame'].'" class="icon ifstop">S</a>');
        }
-       echo('&nbsp;</td><td class="maximize-width"><a href="'.$temp.'">'.unxss(str_replace('-',' - ',str_replace('_', ' ', 
-$item))).'</a></td><td>'.$filesize."&nbsp;MiB&nbsp;</td></tr>\n");                     
+       echo('&nbsp;</td><td class="maximize-width"><a href="'.$temp.'">'.unxss(str_replace('-',' - ',str_replace('_', ' ', $item))).
+       '</a></td><td>'.$filesize."&nbsp;MiB&nbsp;</td></tr>\n");
 }
 
 function render_dir_line($current_dir, $item, $i) {
@@ -215,7 +215,7 @@ function render_dir_line($current_dir, $item, $i) {
        '<td><a href="#up">'.$i.'</a></td><td class="btntd"><a href="?download&playlist&dir='.$temp.'" class="icon iplay">P</a>/'.
        '<a href="?download&recursive&playlist&dir='.$temp.'" class="icon irplay">R</a>');
        if($GLOBALS['useflash']) echo('/<a href="?f&playlist&dir='.$temp.'" target="'.$GLOBALS['flash_player_frame'].'" class="icon ifplay">F</a>');
-       echo('</td><td colspan="100%" class="maximize-width"><span class="icon ifolder">[DIR] </span><a href="?dir='.$temp.'">'.unxss(str_replace('_', ' ', $item)).
+       echo('</td><td colspan="100%" class="maximize-width"><span class="icon ifolder">[DIR] </span><a href="?dir='.$temp.'">'.unxss(str_replace('-',' - ',str_replace('_', ' ', $item))).
        "</a></td></tr>\n");
 }
 
@@ -223,10 +223,11 @@ function render_tr_playframe_show() {
        if($GLOBALS['flash_player_frame'] == 'playframe-show' && $GLOBALS['useflash']) { ?>
 <tr id="playframe-tr">
 <td><a href="?blank" target="playframe-show" title="Stop playback" class="icon ifstop">S</a></td>
-<td colspan="100%">
+<td colspan="100%" class="noradius nomarpad">
 <iframe
 src="?blank"
 name="playframe-show"
+class="noradius nomarpad"
 width="100%"
 height="24"
 style="border:none;"
@@ -291,7 +292,7 @@ function flash_mp3_player() {
                 transparentpagebg="yes" 
                 quality="low"
                 width="100%" height="24px"                
-        >You need Adobe Flash enabled browser to play records directly in website.</embed>
+        ><!-- You need Adobe Flash enabled browser to play records directly in website. --></embed>
 </object></body></html>
 <?php die();
 }
@@ -332,7 +333,7 @@ if(isset($_GET['random'])) {
 if(isset($_GET['blank'])) {
        ?>
        <link rel="stylesheet" type="text/css" href="<?=$css_file?>" />
-       <body class="blank"><div class="blank"><b>Music player</b> <small><i>(click 'F' link next to the song name to start, 'S' to stop...)</i></small></div></body>
+       <body class="blank"><div class="blank" title="Currently you will need FlashPlayer to get this working..."><b>Music player</b> <small><i>(click 'F' link next to the song name to start, 'S' to stop...)</i></small></div></body>
        <?php die();
 }
 
This page took 0.125688 seconds and 4 git commands to generate.