Browse Source

mejoras en funciones

milfux
humano 1 year ago
parent
commit
b79b646f13
3 changed files with 13 additions and 11 deletions
  1. +11
    -9
      funciones/funciones.php
  2. +1
    -2
      images/secure/index.php
  3. +1
    -0
      xajax/xajax.inc.php

+ 11
- 9
funciones/funciones.php View File

@@ -10335,21 +10335,23 @@ $xajax->registerFunction("buscador_campo");


function imprimir_buscador_campo($id_campo,$valor,$plantilla) {

$campo1=array();
$campo2=array();
$claves = remplacetas("form_campos_valores","id_form_campo","$id_campo","campo_valor","");
$consulta=$claves;
$claves = $claves[0];

$claves = explode(' ',$claves);
$claves = @explode(' ',$claves);
$formulario = explode(':',$claves[0]) ;
$formulario = $formulario[1];
$key = explode(':',$claves[1]) ;
$key = $key[1];
$descripcion = explode(':',$claves[2]) ;
$descripcion = $descripcion[1];
$formulario = @$formulario[1];
$key = @explode(':',$claves[1]) ;
$key = @$key[1];
$descripcion = @explode(':',$claves[2]) ;
if(isset($descripcion[1])){$descripcion = $descripcion[1];
$campo2 = remplacetas("form_datos","control","$valor","contenido","form_id = '$formulario' AND id_campo = '$descripcion' ");
}else{$campo2[0] ="";}
$campo1 = remplacetas("form_datos","control","$valor","contenido","form_id = '$formulario' AND id_campo = '$key' ");
$campo2 = remplacetas("form_datos","control","$valor","contenido","form_id = '$formulario' AND id_campo = '$descripcion' ");
$imprimir ="$campo1[0] $campo2[0]";
$imprimir = @"$campo1[0] $campo2[0]";


if($plantilla =="") {$plantilla= "buscador";}

+ 1
- 2
images/secure/index.php View File

@@ -1,5 +1,4 @@
<?php

session_start();
// Comprobamos si existe la variable
/*if ( !isset ( $_SESSION['id'] ) ) {
@@ -16,7 +15,7 @@ $dir="$path_images_secure/";
if ((!$file=realpath($dir.$_GET['file']))
|| strpos($file,realpath($dir))!==0 || substr($file,-4)=='.php'){
//header('HTTP/1.0 404 Not Found');
header("Location: ../sinimagen.jpg?$dir");
header("Location: ../sinimagen.jpg?");
exit();
}
$ref=@$_SERVER['HTTP_REFERER'];

+ 1
- 0
xajax/xajax.inc.php View File

@@ -90,6 +90,7 @@ class xajax
$this->sWrapperPrefix = $sWrapperPrefix;
$this->setCharEncoding($sEncoding);
$this->bDebug =$bDebug;
//$this->bDebug =true;//$bDebug;
$this->bWaitCursor = true;
$this->bExitAllowed = true;
$this->bErrorHandler = false;

Loading…
Cancel
Save