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 ..