I need help....
Posted: Fri Jan 18, 2008 9:56 am
So i have problem , I don“t know how to get this example url: index.php?page=foto&action=sky ,
if i know that this script is for index.php?page=foto
<?php
if (isset($_GET['page'])){
$soubor=$_GET['page'];
$soubor2= dirname($_SERVER['SCRIPT_FILENAME'])."/".$soubor.".inc";
if(file_exists($soubor2)){
if(substr_count($soubor,"../")>0){
echo "error";
}elseif($soubor=="index" or $soubor=="/index"){
echo "error";
header("HTTP/1.0 404 Not Found");
}else{
include $soubor2;
}
}else{
include "error404.inc";
}
}else{
include "index.inc";
}
?>
I am amateur ....Pls help me......thank a lot...
if i know that this script is for index.php?page=foto
<?php
if (isset($_GET['page'])){
$soubor=$_GET['page'];
$soubor2= dirname($_SERVER['SCRIPT_FILENAME'])."/".$soubor.".inc";
if(file_exists($soubor2)){
if(substr_count($soubor,"../")>0){
echo "error";
}elseif($soubor=="index" or $soubor=="/index"){
echo "error";
header("HTTP/1.0 404 Not Found");
}else{
include $soubor2;
}
}else{
include "error404.inc";
}
}else{
include "index.inc";
}
?>
I am amateur ....Pls help me......thank a lot...