Hello ,I have problem with this code ... <?php if (isset($_GET['page']) && isset($_GET['action'])){ $soubor = $_GET['page']; $action = $_GET['action']; $soubor2= dirname($_SERVER["SCRIPT_FILENAME"])."/".$soubor."/".$action.".php"; if(file_exists($soubor2)){ if(substr_count($soubor,$action,"../")>0){ echo "Error"; }elseif($soubor=="index" or $soubor=="/index" or $action=="index" or $action=="/index"){ echo "Error"; header("HTTP/1.0 404 Not Found"); }else{ include $soubor2; } }else{ include "error404.php"; } }else{ include "uvod.php"; } ?> But i dont know where is mistakes .... I want to the code , when I get this index.php?page=some&action=some Pls help me ,I am amateur in PHP , thank you ..
Hi there, Maybe you should explain exactly what you want the script to do and then maybe i can help, as i don't understand what you are trying to communicate in the post. Kind Regards, Nick CEO Xeter Design and Development