//Config-basic
$title = 'Harvie\'s JuKe!Box'; //Title of jukebox
$music_dir = 'music'; //Local path to directory with music
-$base_url = dirname($_SERVER['SCRIPT_NAME']); //URL of this directory ("./")
$music_dir_url = 'http://your-server.net/jukebox/music'; //URL path to the same directory CHANGE IT!
$cache_passwd = 'renew123'; //You need this passwd to refresh search cache CHANGE IT!
//Login
*/
//Bonuses
if(isset($bonus_dir) && is_dir($bonus_dir)) {
- $css_file = $base_url.'/'.$bonus_dir.'/themes/default/jukebox.css'; //CSS (Design/Theme)
+ $css_file = $base_url.$bonus_dir.'/themes/default/jukebox.css'; //CSS (Design/Theme)
}
//Config-basic
$title = 'Harvie\'s JuKe!Box'; //Title of jukebox
$music_dir = 'music'; //Local path to directory with music
-$base_url = dirname($_SERVER['SCRIPT_NAME']); //URL of this directory ("./")
+$base_url = preg_replace('/[^\/]*$/', '', $_SERVER['SCRIPT_NAME']); //URL of this directory (always ends with slash)
$music_dir_url = 'http://your-server.net/jukebox/music'; //URL path to the same directory
$cache_passwd = 'renew123'; //You need this passwd to refresh search cache
$sort = 3; //Sort? 0 = none, 1 = playlists, 2 = 1+listings; 3 = 2+search-EXPERIMENTAL! (sorting could eat lot of memory)
$bonus_dir = 'jbx'; //Misc. files directory
////
$search_cache = $bonus_dir.'/cache.db'; //Database for searching music (php +rw) - .htaccess: Deny from all!!!
-$css_file = $base_url.'/'.$bonus_dir.'/themes/default/jukebox.css'; //CSS (Design)
-$favicon_file = $base_url.'/favicon.png'; //favicon
+$css_file = $base_url.$bonus_dir.'/themes/default/jukebox.css'; //CSS (Design)
+$favicon_file = $base_url.'favicon.png'; //favicon
$header_file = $bonus_dir.'/header.html'; //header file
$footer_file = $bonus_dir.'/footer.html'; //footer file
<style> * { margin: 0; padding: 0; border: 0; } </style></head><body>
<object width="100%" height="344">
<embed src="<?php
- echo($GLOBALS['base_url'].'/'.$GLOBALS['flash_player_swf'].$GLOBALS['flash_player_options']);
+ echo($GLOBALS['base_url'].$GLOBALS['flash_player_swf'].$GLOBALS['flash_player_options']);
if(isset($_GET['song'])) echo(rawurlencode($_GET['song']));
if(isset($_GET['playlist'])) generate_m3u($GLOBALS['dir'], dirname($GLOBALS['music_dir_url']), isset($_GET['recursive']), ',', true);
?>"