Commit | Line | Data |
---|---|---|
1c6591f3 H |
1 | <?php |
2 | /* | |
3 | * Harvie's JuKe!Box configuration file. | |
4 | * | |
5 | * Quick Instalation HowTo: | |
1bbbe5ac | 6 | * 1.) Change $users array and $music_dir_url! |
8cc7aad0 | 7 | * 2.) Rename this file to: _config.php (underscore matters) |
1bbbe5ac | 8 | * 3.) Place your music into the $music_dir ($music_dir_url must point to the same directory through webserver) |
1c6591f3 H |
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 JuKe!Box'; //Title of jukebox | |
2fa64919 H |
14 | $music_dir = 'music'; //Local path to directory with music |
15 | $base_url = dirname($_SERVER['SCRIPT_NAME']); //URL of this directory ("./") | |
1c6591f3 H |
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 | |
4641c2f0 | 19 | $realm = 'music'; //HTTP Auth Banner |
1bbbe5ac H |
20 | $users = array( //List of 'user' => 'password' pairs |
21 | 'music' => 'Default-Secr3t_PaSsw0rd' //CHANGE IT! | |
4641c2f0 H |
22 | ); |
23 | $require_login = true; | |
1bbbe5ac | 24 | //Additional search engines |
1c6591f3 H |
25 | /* |
26 | $search_engines = array_merge($search_engines, array( | |
4641c2f0 | 27 | 'Harvie\'s blog!' => 'http://blog.harvie.cz/?s=' |
1c6591f3 H |
28 | )); |
29 | */ | |
30 | //Bonuses | |
31 | if(isset($bonus_dir) && is_dir($bonus_dir)) { | |
2fa64919 | 32 | $css_file = $base_url.'/'.$bonus_dir.'/themes/default/jukebox.css'; //CSS (Design/Theme) |
1c6591f3 | 33 | } |