Added experimental PATH_INFO support (will need further changes to make this realy...
authorHarvie <tomas@mudrunka.cz>
Fri, 29 Oct 2010 16:29:08 +0000 (18:29 +0200)
committerHarvie <tomas@mudrunka.cz>
Fri, 29 Oct 2010 16:29:08 +0000 (18:29 +0200)
index.php

index bae54eb72f847c3030423cd8c4b590f3b2998f66..27a54b8119318c93ccf9bc1d3f7c6b64fcaffbed 100755 (executable)
--- 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)
 $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: ?');
 $current_dir = ereg_replace('/+', '/', '/'.$_GET['dir'].'/');
 if(eregi('(/|\\\\)\\.\\.(/|\\\\)', $current_dir)) { //check for directory traversal ;)
        header('Location: ?');
This page took 0.326899 seconds and 4 git commands to generate.