X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=27a54b8119318c93ccf9bc1d3f7c6b64fcaffbed;hb=74524fb0c86f3f45878acdf84d92294e9a8a0fce;hp=4c53da9b84a7a664ef1ef094ff72ffdb00a188dc;hpb=5cf5c6ebb181ede671f0ecdae2215bbdbd7af616;p=mirrors%2FJukeBox.git diff --git a/index.php b/index.php index 4c53da9..27a54b8 100755 --- a/index.php +++ b/index.php @@ -76,6 +76,7 @@ if(get_magic_quotes_gpc()) die("Error: magic_quotes_gpc needs to be disabled!\n" $useflash = is_file($flash_player_swf); //Little magic with directories ;o) +if($_SERVER['PATH_INFO']!='') $_GET['dir']=$_SERVER['PATH_INFO']; $current_dir = ereg_replace('/+', '/', '/'.$_GET['dir'].'/'); if(eregi('(/|\\\\)\\.\\.(/|\\\\)', $current_dir)) { //check for directory traversal ;) header('Location: ?'); @@ -295,7 +296,7 @@ function flash_mp3_player() { } //GET -if(isset($_GET['dj'])) { ?><?php echo "DJ MODE @ $title"; ?> < BACK - | HOME () + | HOME () | DJ | ABOUT/HELP | LOGOUT