diff --git a/milfs/funciones/funciones.php b/milfs/funciones/funciones.php index c8523c4..ef33298 100644 --- a/milfs/funciones/funciones.php +++ b/milfs/funciones/funciones.php @@ -3295,7 +3295,7 @@ $archivo = "$_SESSION[path_images_secure]/full/".$file; // Ponemos el . antes de imagealphablending( $thumb, false ); imagesavealpha( $thumb, true ); // La redimensionamos imagecopyresampled($thumb, $img, 0, 0, 0, 0, $newwidth, $newheight, $file_info[0], $file_info[1]); // La mostramos como jpg //header("Content-type: image/jpeg"); imagejpeg($thumb,"$_SESSION[path_images_secure]/".$width."/$file", 80); imagepng($thumb,"$_SESSION[path_images_secure]/".$width."/$file", 9); -//imagegif($thumb,"$_SESSION[path_images_secure]/".$width."/$file"); +imagegif($thumb,"$_SESSION[path_images_secure]/".$width."/$file"); //imagejpeg($thumb,null, 80); } @@ -8301,6 +8301,7 @@ return $resultado; + function imprime_geojson($id,$id2,$plantilla,$busqueda){ $id_form = mysql_seguridad($id); $id_form2 = mysql_seguridad($id2); diff --git a/milfs/geojson.php b/milfs/geojson.php index b8581b7..dc9af0f 100644 --- a/milfs/geojson.php +++ b/milfs/geojson.php @@ -7,9 +7,14 @@ require ('funciones/convert.php'); require ("funciones/conex.php"); - - +if(!isset($_REQUEST['plantilla'])) { $geojson = imprime_geojson("$_REQUEST[id]","","mapa","$_REQUEST[buscar]"); + +}else{ +$geojson = imprime_geojson("$_REQUEST[id]","","$_REQUEST[plantilla]","$_REQUEST[buscar]"); +} + + //header('Content-Type: application/json'); echo $geojson;