![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/09/2010, 10:54
|
![Avatar de jamesjara](http://static.forosdelweb.com/customavatars/avatar237398_1.gif) | | | Fecha de Ingreso: mayo-2008 Ubicación: san jose
Mensajes: 449
Antigüedad: 16 años, 9 meses Puntos: 7 | |
Respuesta: Mejorar web modular eso si es vulnerable a inclusion remota o a una escalacion.. por eso te recomiendo hacer como dice un amigo mas arriba o agregas un CASE SWICHT Cita: $modulo=!empty($_GET['modulo']) ? $_GET['modulo'] : 'home';
$module=htmlentities($modulo);
$module=strip_tags($module);
$module=(string)$module;
$chequeodemodulos=array('home', 'ubicacion', 'historia', 'editorial', 'foro', 'fotos', 'contacto');
if(!in_array($module, $chequeodemodulos)){
$module="error";
}
__________________ X7CLOUD El webservice latino!
Compatible con mysql,sql,sqlitte. Compatible con extjs , sencha , smargwt, Gwt , Jquery , Charts, Streaming. |