| 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 JuKe!Box'; //Title of jukebox |
| 14 | $music_dir = 'music'; //Local path to directory with music |
| 15 | $music_dir_url = 'http://your-server.net/jukebox/music'; //URL path to the same directory CHANGE IT! |
| 16 | $cache_passwd = 'renew123'; //You need this passwd to refresh search cache CHANGE IT! |
| 17 | //Login |
| 18 | $realm = 'music'; //HTTP Auth Banner |
| 19 | $users = array( //List of 'user' => 'password' pairs |
| 20 | 'music' => 'Default-Secr3t_PaSsw0rd' //CHANGE IT! |
| 21 | ); |
| 22 | $require_login = true; |
| 23 | //Additional search engines |
| 24 | /* |
| 25 | $search_engines = array_merge($search_engines, array( |
| 26 | 'Harvie\'s blog!' => 'http://blog.harvie.cz/?s=' |
| 27 | )); |
| 28 | */ |
| 29 | //Bonuses |
| 30 | if(isset($bonus_dir) && is_dir($bonus_dir)) { |
| 31 | $css_file = $base_url.$bonus_dir.'/themes/default/jukebox.css'; //CSS (Design/Theme) |
| 32 | } |