From be2c3d71d1fb1ddb4e73b2a98ee88d70e56aaf4f Mon Sep 17 00:00:00 2001 From: humano Date: Wed, 24 Oct 2018 05:50:07 -0500 Subject: [PATCH] correccion html --- funciones/funciones.php | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/funciones/funciones.php b/funciones/funciones.php index b9a9d8f..8b61273 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -3120,7 +3120,7 @@ if($accion =="enviar" OR $accion =="preview" ) { $web = remplacetas("empresa","id",$id_empresa,"web",""); $slogan = remplacetas("empresa","id",$id_empresa,"slogan",""); $headers = "MIME-Version: 1.0\r\n"; - $headers .= "Content-type: text/html; charset=iso-utf-8\r\n"; + $headers .= "Content-type: text/html; charset=utf-8\r\n"; $headers .= "From: $razon_social[0] ".$administrador[0]."\r\n"; $headers .= "Reply-To: $razon_social[0] ".$email[0]."\r\n"; $headers .= "Return-path: $email[0]\r\n"; @@ -3821,6 +3821,8 @@ while( $row = mysqli_fetch_array( $datos_consulta ) ) { if( !is_null($row['orden'])) { $orden_multiple ="and orden ='$row[orden]' ";}else { $orden_multiple ="";} $contenido = remplacetas('form_datos','form_id',"$row[form_id]",'contenido'," id_campo ='$row[id_campo]' and control ='$identificador' $orden_multiple ") ; $contenido[0]= str_replace('\n','
',$contenido[0]); + $contenido[0]= stripslashes($contenido[0]); + //$contenido[0] = "mas $contenido[0]"; if($contenido[0] !="" AND $privado !="1") { $tipo_campo = remplacetas('form_campos','id',"$row[id_campo]",'campo_tipo',"") ; @@ -3834,9 +3836,18 @@ while( $row = mysqli_fetch_array( $datos_consulta ) ) { if($tipo_campo[0]=='10'){ $render = relacion_render("$row[form_id]","$row[id_campo]",$contenido[0],'5',''); $contenido[0] = "$valor_actual";} - else {$render=html_entity_decode($contenido[0]);} + + else { + $render=html_entity_decode($contenido[0]);} if($tipo_campo[0]=='24' or $tipo_campo[0]=='30'){ $render= json_render("$contenido[0]","html","$control");} - + /*if($tipo_campo[0] =='2'){ + $render="$contenido[0] xxx"; + //$contenido[0]="$contenido[0] xxx"; + $contenido[0]= str_replace('\"','"',$contenido[0]); + $contenido[0]= str_replace("\'","'",$contenido[0]); + $contenido[0]="$contenido[0] xxx"; + } +*/ $json_array[$row['campo_nombre']."_titulo"] = "$contenido[0]"; //imprimir_buscador_campo($id_campo,$valor) @@ -13016,6 +13027,8 @@ if (mysqli_num_rows($sql)!='0'){ $campo_tipo =$campo_tipo[0]; $contenido = formulario_valor_campo("$id","$row[id_campo]","","$control",'',"$timestamp"); //$contenido= nl2br($contenido); + + $contenido_array = $contenido; $contenido_multiple= $contenido[10]; // $contenido = formulario_valor_campo("$id","$row[id_campo]","","$control"); @@ -13026,6 +13039,7 @@ if (mysqli_num_rows($sql)!='0'){ + if($campo_tipo =='15' AND $tipo==""){if($contenido !=""){ $contenido = " Mostrar @@ -13114,7 +13128,11 @@ if (mysqli_num_rows($sql)!='0'){ "; } } - + elseif(($campo_tipo=='2' OR $campo_tipo=='7')AND $contenido !=""){ + + $contenido= html_entity_decode(stripslashes("$contenido")); + + } else { $html ="$contenido"; @@ -16326,7 +16344,7 @@ while( $row = mysqli_fetch_array( $sql ) ) { $existe[]= $control; $existe[] = $timestamp; $existe[] = $consulta; -$existe[] = "$contenido"; +$existe[] = $contenido; $existe[] = $md5_contenido; $existe[] = $orden; $existe[] = $id_usuario;