X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=27a54b8119318c93ccf9bc1d3f7c6b64fcaffbed;hb=74524fb0c86f3f45878acdf84d92294e9a8a0fce;hp=91b2afb7de3b3a1c0ddaeccbdf31ffdbdcc932bc;hpb=aa3a0f3272105445bd4f6de949c0ccf70a16fad3;p=mirrors%2FJukeBox.git diff --git a/index.php b/index.php index 91b2afb..27a54b8 100755 --- a/index.php +++ b/index.php @@ -1,8 +1,9 @@ F/'. 'S'); } - echo(' '.unxss(str_replace('_', ' ', $item)).''.$filesize." MiB \n"); + echo(' '.unxss(str_replace('-',' - ',str_replace('_', ' ', +$item))).''.$filesize." MiB \n"); } -function render_dir_line($item, $i) { - $parclass=($i%2?'even':'odd'); $parcolor=($index%2?'lightblue':'white'); +function render_dir_line($current_dir, $item, $i) { + $parclass=($i%2?'even':'odd'); $parcolor=($i%2?'lightblue':'white'); $temp=str_replace('%2F', '/', rawurlencode($current_dir)).rawurlencode($item); echo("". ''.$i.'P/'. 'R'); if($GLOBALS['useflash']) echo('/F'); - echo('[DIR] '.unxss(str_replace('_', ' ', $item)). + echo('[DIR] '.unxss(str_replace('_', ' ', $item)). "\n"); } function render_tr_playframe_show() { if($GLOBALS['flash_player_frame'] == 'playframe-show' && $GLOBALS['useflash']) { ?> -S +S '.$GLOBALS['title'].' on GIThub :-)Fork me on GitHub' ); echo(''.$quotes[rand(0,sizeof($quotes)-1)]."\n"); @@ -292,6 +296,7 @@ function flash_mp3_player() { } //GET +if(isset($_GET['dj'])) { ?><?php echo "DJ MODE @ $title"; ?> - + + @@ -345,7 +351,8 @@ if(isset($_GET['blank'])) { < BACK - | HOME () + | HOME () + | DJ | ABOUT/HELP | LOGOUT @@ -374,11 +381,13 @@ if(!isset($_GET['search'])) {
- +
- @@ -393,7 +402,7 @@ if(!isset($_GET['search'])) { ?> - +   @@ -420,8 +429,8 @@ if(!($searchfp = fopen($search_cache, 'r'))) $i = 0; echo(''); render_tr_playframe_show(); -echo(''); while(!feof($searchfp)) { @@ -476,7 +485,7 @@ for($s=2;$s;$s--) { while(($item = readdir($dd)) != false) { render_file_line($dir, $item, $music_dir_url, $i, filesize($dir.$item)); } if(is_dir($dir.$item)) { - render_dir_line($item, $i); + render_dir_line($current_dir, $item, $i); } } } rewinddir($dd); } @@ -486,7 +495,7 @@ if($sort > 1) { @sort($itemsd); foreach($itemsd as $item) { $i++; - render_dir_line($item, $i); + render_dir_line($current_dir, $item, $i); } foreach($itemsf as $item) { $i++;
SP'); -if($GLOBALS['useflash']) echo('/F'); +echo('
SP'); +if($GLOBALS['useflash']) echo('/F'); echo('Search: '.unxss($_GET['search']).'