Código PHP:
<?php
if(isset($_GET['page']))
{
$page = $_GET['page'];
$section = "include";
if(isset($_GET['section']))
{
$section = $_GET['section'];
if(!strpos($page,"/") && !strpos($section,"/") &&
!strpos($page,".")&& !strpos($section,"."))
{
$path = $section . "/" . $page . "/index.php";
if(file_exists($path))
{
include($path);
}
else
{
echo "La Pagina solicitada no existe.";
}
}
else
{
echo "No se permite ingresar a esta pagina";
}
}
}
else
{
echo "Estamos en la pagina principal";
}
?>
[URL="http://www.radiomyhouse.com/ya"]http://www.radiomyhouse.com/ya[/URL]