Query($Sql); if( $Clase->NumeroReg($Res) != '1' ) { header("location: ./index.php"); exit; } $Res=$Clase->Query($Sql); $Row=$Clase->Fetch($Res); require($_SERVER["DOCUMENT_ROOT"]."/".$Row["Directorio"]."/variables.php"); //echo$_SERVER["DOCUMENT_ROOT"]."/".$Row["Directorio"]."/variables.php"; //echo"location: /"._DESTINO_DOCUMENTOS."/".$_GET["Id_contenido"]."_".$_GET["Id"].".".$Row["Nombre_archivo"]; guardar_estadistica_contenido_adjuntos($Row["Id_estructura"],$_GET["Id_contenido"],$_GET["Id"],1); header("location: /"._DESTINO_DOCUMENTOS."/".$_GET["Id_contenido"]."_".$_GET["Id"].".".$Row["Nombre_archivo"]); exit; } ?>