dan113
Apr 26th 2009, 7:15 am
<?php
$nav = 'people';
include 'navigation/htmlhead.php';
?>
<body>
<div id="wrap">
<?php
// add a line to check for allowed $nav values.
include 'navigation/header.php';
include 'navigation/nav.php';
if (!isset($_GET['main'])) {
$main = 'default';
}
else {
$main = $_GET['main'];
}
include ($nav.'/sidebar.php');
include ($nav.'/'.$main.'.php');
$filename=$nav.'/'.$main.'.php';
include 'navigation/footer.php';
?>
</div>
</body>
</html>
this is the code. it seems someone actually entered on my server with Local File Inclusion and was able to upload some files on my server without my permission. What should i change in this code so the people wont be able to see my /etc/passwd file ? Actually they can see it !
Thanks a lot
who helps me , i pay 10$ paypal
$nav = 'people';
include 'navigation/htmlhead.php';
?>
<body>
<div id="wrap">
<?php
// add a line to check for allowed $nav values.
include 'navigation/header.php';
include 'navigation/nav.php';
if (!isset($_GET['main'])) {
$main = 'default';
}
else {
$main = $_GET['main'];
}
include ($nav.'/sidebar.php');
include ($nav.'/'.$main.'.php');
$filename=$nav.'/'.$main.'.php';
include 'navigation/footer.php';
?>
</div>
</body>
</html>
this is the code. it seems someone actually entered on my server with Local File Inclusion and was able to upload some files on my server without my permission. What should i change in this code so the people wont be able to see my /etc/passwd file ? Actually they can see it !
Thanks a lot
who helps me , i pay 10$ paypal