Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/07/2007, 15:12
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Re: Problema de seguridad

En lugar de eso podrias hacer algo asi:
Código PHP:
<?php
$default 
"main.php";
$sec $_REQUEST['sec'];

switch( 
$sec ) {
case 
"home":
      
$file "main.php";
      break;
case 
"contacto":
      
$file "contacto.php";
      break;
}
?>
contenido
<?php
include( $file );
?>