From 4a4f36fd50c747c90a4eed918ab9beda43e8b262 Mon Sep 17 00:00:00 2001 From: humano Date: Mon, 23 Nov 2015 19:22:35 -0500 Subject: [PATCH] BUG correcion url pin para los mapas --- website/milfs/funciones/funciones.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/website/milfs/funciones/funciones.php b/website/milfs/funciones/funciones.php index 05bfb82..f4c9268 100755 --- a/website/milfs/funciones/funciones.php +++ b/website/milfs/funciones/funciones.php @@ -181,9 +181,10 @@ if (mysql_num_rows($sql)!='0'){ @$zoom = $campos['2']; if($error_token != 1) { + $url_pin =urlencode("$_SESSION[site]milfs/images/iconos/negro.png"); $miniatura = " - + "; }else{ $miniatura ="
No se ha definido un token de mapbox
";} } if($geo[0] !='') { $mapa= "$miniatura";}else {$mapa='';} @@ -1176,7 +1177,7 @@ while( $row = mysql_fetch_array( $sql ) ) { $icono = remplacetas('form_parametrizacion','campo',$perfil,'descripcion'," tabla='form_id' and opcion = 'categoria:icon:$row[md5_contenido]'") ; if($icono[0] =='') { - $icon = "https://raw.githubusercontent.com/humano/milfs/master/milfs/images/iconos/negro.png"; + $icon = "$_SESSION[site]milfs/images/iconos/negro.png"; }else{ $icon = $icono[0]; @@ -3974,7 +3975,7 @@ while( $row = mysql_fetch_array( $sql ) ) { //$propiedades[title] ='Hola mundo'; if($propiedades[icon][iconUrl] =="") { - $propiedades[icon][iconUrl] = "https://raw.githubusercontent.com/humano/milfs/master/milfs/images/iconos/negro.png"; + $propiedades[icon][iconUrl] = "$_SESSION[site]/milfs/images/iconos/negro.png"; } $geometria .= "{\"type\":\"Feature\",\"geometry\":".json_encode($marcador,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT).",\"properties\":".json_encode($propiedades,JSON_NUMERIC_CHECK|JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT)."},"; $features[] = $marcador; @@ -4976,9 +4977,10 @@ if (mysql_num_rows($sql)!='0'){ $error_token =""; if(!isset($mapbox_token)) { include("milfs/includes/datos.php"); if(!isset($mapbox_token)) {$error_token = 1; }} if($error_token != 1) { + $url_pin = urlencode("$_SESSION[site]milfs/images/iconos/negro.png"); $contenido = " - + "; }else{ $contenido ="
No se ha definido un token de mapbox
";} } } @@ -5041,7 +5043,8 @@ $campo_imagen = $campo_imagen[0]; $icono = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'categoria:icon:$md5_contenido'") ; if($icono[0] =='') { //$icon = "http://$_SERVER[HTTP_HOST]/milfs/images/pin.png"; - $icon = "https://raw.githubusercontent.com/humano/milfs/master/milfs/images/iconos/negro.png"; + $url_pin = urlencode("$_SESSION[site]milfs/images/iconos/negro.png"); + $icon = "$_SESSION[site]milfs/images/iconos/negro.png"; }else{ $icon = $icono[0]; @@ -5517,10 +5520,11 @@ $td .= "$imagen"; $lat = $campos[0]; $lon = $campos[1]; $zoom = $campos[2]; - require("includes/datos.php"); + require("includes/datos.php"); + $url_pin =urlencode("$_SESSION[site]milfs/images/iconos/negro.png"); $contenido = " - "; + "; } else { $contenido ='';} } elseif($campo_tipo=='4'){ $contenido = "$contenido";}