Create FUNDING.yml
[mirrors/JukeBox.git] / index.php
index 288d031764fcb262cbc1fcd376d6301e9b375872..704dc91d92c588a45f082f101863df8992807c04 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -21,7 +21,7 @@ $title =              'Harvie\'s JuKe!Box'; //Title of jukebox
 $music_dir =           'music'; //Local path to directory with music
 $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
+$cache_passwd =        ''; //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)
 $access_limit =                40; //How many files could be accessed without using cache (while searching)
 
@@ -292,7 +292,7 @@ function flash_mp3_player() {
                 transparentpagebg="yes" 
                 quality="low"
                 width="100%" height="24px"                
-        >You need Adobe Flash enabled browser to play records directly in website.</embed>
+        ><!-- You need Adobe Flash enabled browser to play records directly in website. --></embed>
 </object></body></html>
 <?php die();
 }
@@ -307,11 +307,12 @@ if(isset($_GET['song'])) {
 
 
 
-if($_POST['cache-refresh'] == $cache_passwd) {
+if(isset($_POST['cache-refresh']) && $_POST['cache-refresh'] == $cache_passwd) {
        generate_search_cache($music_dir, $search_cache);
        die("\n");
 }
 
+
 if(isset($_GET['playlist'])) {
        generate_m3u($dir, dirname($music_dir_url), isset($_GET['recursive']));
        die();
@@ -333,7 +334,7 @@ if(isset($_GET['random'])) {
 if(isset($_GET['blank'])) {
        ?>
        <link rel="stylesheet" type="text/css" href="<?=$css_file?>" />
-       <body class="blank"><div class="blank"><b>Music player</b> <small><i>(click 'F' link next to the song name to start, 'S' to stop...)</i></small></div></body>
+       <body class="blank"><div class="blank" title="Currently you will need FlashPlayer to get this working..."><b>Music player</b> <small><i>(click 'F' link next to the song name to start, 'S' to stop...)</i></small></div></body>
        <?php die();
 }
 
This page took 0.10859 seconds and 4 git commands to generate.