mejoras en la api

This commit is contained in:
humano 2017-11-06 11:49:07 -05:00
parent 52d96e6a87
commit c0a88bf2ea
8 changed files with 7 additions and 5 deletions

View File

@ -4,9 +4,10 @@
<script src="jquery/jquery-2.1.4.min.js" ></script>
<script src="bootstrap/js/bootstrap.min.js" ></script>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css?" >
<script type="text/javascript">
$(document).ready(function () {
var count = 2;
var count = 1;
$("div").scroll(function () {
var offset = $('#scroll-content div').length;
var $this = $(this);
@ -88,7 +89,7 @@
</script>
</head>
<body>
<div style="overflow: scroll;height: 400px; border: 1px solid red;">
<div class='container' style="overflow-y: scroll; overflow-x: hidden; height: 400px; border: 1px solid red;">
<p>This is the div content</p>
<p>This is the div content</p>
<p>This is the div content</p>

View File

@ -31,7 +31,7 @@ if(!isset($_REQUEST['formato'])) {
header('Content-Type: application/json');
echo json($datos);
}else{
echo "<input value='$datos[pagina]' id='pagina'>".consultar_contenido_formulario("$datos[id]","$datos[registros]","$datos[pagina]","$datos[formato]",'',"li");
echo "".consultar_contenido_formulario("$datos[id]","$datos[registros]","$datos[pagina]","$datos[formato]",'',"li");
}
//echo "hola /// $_REQUEST[id] // " ;

View File

@ -2207,7 +2207,7 @@ while( $row = mysqli_fetch_array( $datos_consulta ) ) {
$contenido = remplacetas('form_datos','form_id',"$row[form_id]",'contenido'," id_campo ='$row[id_campo]' and control ='$identificador' $orden_multiple ") ;
if($contenido[0] !="" AND $privado !="1") {
$tipo_campo = remplacetas('form_campos','id',"$row[id_campo]",'campo_tipo',"") ;
if($tipo_campo[0] =="15" ) {$imagen ="<img style='' class='img img-responsive imagen_estructurada' src='$_SESSION[site]milfs/images/secure/?file=300/$contenido[0]'> "; $contenido[0]="";}else{$imagen ="";}
if($tipo_campo[0] =="15" ) {$imagen ="<img style='' class='lazy img img-responsive imagen_estructurada' src='$_SESSION[site]milfs/images/secure/?file=300/$contenido[0]'> "; $contenido[0]="";}else{$imagen ="";}
if($tipo_campo[0] =="6" ) {$contenido[0] =imprimir_buscador_campo("$row[id_campo]",$contenido[0]) ; }
if($tipo_campo[0] =="29" ) {$contenido[0] ="<img class='img img-responsive' src='$contenido[0]'> "; }//$contenido="<img class='img img-responsive' src='$contenido'>";
if($tipo_campo[0] =="31" ) {

View File

@ -15,8 +15,9 @@ if(!isset($_GET['file']) ){
$dir="$path_images_secure/";
if ((!$file=realpath($dir.$_GET['file']))
|| strpos($file,realpath($dir))!==0 || substr($file,-4)=='.php'){
$size= substr($_GET['file'],0,3);
//header('HTTP/1.0 404 Not Found');
header("Location: ../sinimagen.jpg?$dir");
header("Location: ../sinimagen_".$size.".jpg");
exit();
}
$ref=$_SERVER['HTTP_REFERER'];

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB