Added $base_url to fix PATH_INFO issues (still need to edit links to use it)
[mirrors/JukeBox.git] / example_config.php
index 9b5f90df99e05b14c94c3561a7ea83d4870f4aa9..2de765b6705dd77a878237d6155e4cb7b74d0b14 100755 (executable)
@@ -11,7 +11,8 @@
  */
 //Config-basic
 $title =                'Harvie\'s JuKe!Box'; //Title of jukebox
-$music_dir =            './music'; //Local path to directory with music
+$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
@@ -28,5 +29,5 @@ $search_engines = array_merge($search_engines, array(
 */
 //Bonuses
 if(isset($bonus_dir) && is_dir($bonus_dir)) {
-       $css_file =     $bonus_dir.'/themes/default/jukebox.css'; //CSS (Design/Theme)
+       $css_file =     $base_url.'/'.$bonus_dir.'/themes/default/jukebox.css'; //CSS (Design/Theme)
 }
This page took 0.13098 seconds and 4 git commands to generate.