From c1ce9ec15bd75d718bb25b87ebf54b202f107194 Mon Sep 17 00:00:00 2001 From: humano Date: Fri, 18 May 2018 09:31:41 -0500 Subject: [PATCH] mejoras en el campo de texto limitado --- milfs/archivos/index.php | 5 ++++- milfs/funciones/funciones.php | 12 ++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/milfs/archivos/index.php b/milfs/archivos/index.php index abeda02..066671c 100644 --- a/milfs/archivos/index.php +++ b/milfs/archivos/index.php @@ -56,10 +56,13 @@ function mysqli_result($res,$row=0,$col=0){ $control = remplacetas('form_datos','contenido',"$archivo",'control',"") ; $privacidad = remplacetas('form_id','id',"$control[5]",'publico',"") ; + //if($privacidad[0] == 0 AND ($_SESSION['id'] != $control[6] OR $_SESSION['id_empresa'] != $control[7]) or $_SESSION['equipo'] != $control[8] ) { if($privacidad[0] == 0 AND ($_SESSION['id'] != $control[6] OR $_SESSION['id_empresa'] != $control[7]) or $_SESSION['equipo'] != $control[8] ) { - header("Location: ../images/seguridad.gif"); + header("Location: ../images/seguridad.gif"); + //echo "$privacidad[2]"; exit(); } + //else{ echo "$privacidad[2]"; exit();} $dir="$path_images_secure/full/"; if ((!$file=realpath($dir.$_GET['archivo'])) || strpos($file,realpath($dir))!==0 || substr($file,-4)=='.php'){ diff --git a/milfs/funciones/funciones.php b/milfs/funciones/funciones.php index 14f8cd9..9162792 100644 --- a/milfs/funciones/funciones.php +++ b/milfs/funciones/funciones.php @@ -15203,11 +15203,19 @@ elseif($campo_tipo_accion == 'email'){$render = " elseif($campo_tipo_accion == 'limit'){ $limite = limite("".$id_campo."[".$item."]",'','limite'); $rows = ceil($limite / 50 )+1; + if ($limite > 50){ + $cols='12'; + $dibujar_campo =""; + } + else{ + $cols='6'; + $size= $limite."em"; + $dibujar_campo =" ";} $render = "$limite / - "; - $cols='12'; + $dibujar_campo "; + } elseif($campo_tipo_accion == 'select'){