include("include/init.php"); $db->table("paginas"); if ($_GET['m']) $r1=$db->find("tag_es='".cleanQuery($_GET['m'])."'"); if ($_GET['n']) $r2=$db->find("padre=".$r1[0]->id." and tag_es='".cleanQuery($_GET['n'])."'"); if ($_GET['o']) $r3=$db->find("padre=".$r2[0]->id." and tag_es='".cleanQuery($_GET['o'])."'"); $cont=null; if ($_GET['o']) $cont=$r3; else if ($_GET['n']) $cont=$r2; else if ($_GET['m']) $cont=$r1; if ($cont) { $titulo=($cont[0]->{"nombre_".$lng}) ? $cont[0]->{"nombre_".$lng} : $cont[0]->nombre_es; $stitulo=($cont[0]->{"subtitulo_".$lng}) ? $cont[0]->{"subtitulo_".$lng} : $cont[0]->subtitulo_es; $contenido=($cont[0]->{"descripcion_".$lng}) ? $cont[0]->{"descripcion_".$lng} : $cont[0]->descripcion_es; $tag=($cont[0]->{"tag_".$lng}) ? $cont[0]->{"tag_".$lng} : $cont[0]->tag_es; $bnid=$cont[0]->id; $imagen=$cont[0]->imagen; $mt2=($cont[0]->{"title_".$lng}) ? $cont[0]->{"title_".$lng} : $cont[0]->title_es; $ms2=($cont[0]->{"description_".$lng}) ? $cont[0]->{"description_".$lng} : $cont[0]->description_es; if ($mt2) $sharetitle=$mt2; if ($ms2) $sharedescription=$mt2; } include('include/header.php'); ?> if ($_GET['n']=="ubicacion") { ?> } ?>