Added $base_url to fix PATH_INFO issues (still need to edit links to use it)
[mirrors/JukeBox.git] / example_config.php
1 <?php
2 /*
3 * Harvie's JuKe!Box configuration file.
4 *
5 * Quick Instalation HowTo:
6 * 1.) Change $users array and $music_dir_url!
7 * 2.) Rename this file to: _config.php (underscore matters)
8 * 3.) Place your music into the $music_dir ($music_dir_url must point to the same directory through webserver)
9 * 4.) create file jbx/cache.db writeable by webserver (set permissions)
10 * 5.) Refresh search database using $cache_passwd on search page
11 */
12 //Config-basic
13 $title = 'Harvie\'s&nbsp;JuKe!Box'; //Title of jukebox
14 $music_dir = 'music'; //Local path to directory with music
15 $base_url = dirname($_SERVER['SCRIPT_NAME']); //URL of this directory ("./")
16 $music_dir_url = 'http://your-server.net/jukebox/music'; //URL path to the same directory CHANGE IT!
17 $cache_passwd = 'renew123'; //You need this passwd to refresh search cache CHANGE IT!
18 //Login
19 $realm = 'music'; //HTTP Auth Banner
20 $users = array( //List of 'user' => 'password' pairs
21 'music' => 'Default-Secr3t_PaSsw0rd' //CHANGE IT!
22 );
23 $require_login = true;
24 //Additional search engines
25 /*
26 $search_engines = array_merge($search_engines, array(
27 'Harvie\'s blog!' => 'http://blog.harvie.cz/?s='
28 ));
29 */
30 //Bonuses
31 if(isset($bonus_dir) && is_dir($bonus_dir)) {
32 $css_file = $base_url.'/'.$bonus_dir.'/themes/default/jukebox.css'; //CSS (Design/Theme)
33 }
This page took 0.289106 seconds and 4 git commands to generate.