existe()){ include($page); die; } // actions if (substr($page, -6) === "Action") { include($page.".php"); die; } //Mostramos las paginas sin extension if(strpos($page, ".php") === false){ $URL = Url::getInstanceByUrlAndIdioma($page, RequestTool::get("lang")); if ($URL) { $file = new Ficheros($rutaServer.$URL->nombre.".php"); if($file->existe()){ include($URL->nombre.".php"); die; } } } //Cargamos la pagina de NotFound $URL = Url::getInstanceByPaginaAndIdioma("not-found", RequestTool::get("lang")); include("not-found.php"); die; ?>