1
0
forked from qwerty/milfs

VISUALIZACION GALERIA: Mejoras en la visualización

This commit is contained in:
humano 2015-11-02 20:32:06 -05:00
parent 61ef50281f
commit 37c1b68f60
4 changed files with 38 additions and 72 deletions

View File

@ -2578,13 +2578,13 @@ while( $row = mysql_fetch_array( $sql ) ) {
$identificador = explode(',',$row[identificador]); $identificador = explode(',',$row[identificador]);
$identificador = $identificador[0]; $identificador = $identificador[0];
if($orden === 0) {$activo = "active";}else{$activo="";} if($orden === 0) {$activo = "active";}else{$activo="";}
//$contenido_desplegado = contenido_mostrar("$row[form_id]","$row[control]",'',"$plantilla"); $contenido_desplegado = contenido_mostrar("$row[form_id]","$row[control]",'',"$plantilla");
$campo = buscar_campo_tipo($id,"15"); $campo = buscar_campo_tipo($id,"15");
$id_campo = $campo[0]; $id_campo = $campo[0];
$imagen = remplacetas('form_datos','control',$row[control],'contenido',"id_campo = '$id_campo'") ; $imagen = remplacetas('form_datos','control',$row[control],'contenido',"id_campo = '$id_campo'") ;
$items .= " <div class='item $activo'> $items .= " <div class='item $activo'>
<div style='height:100%' class=''> <div style='height:100%' class=''>
<img class='img img-responsive center-block' style='height:100%; display: table; margin: 0 auto;' src='http://$_SERVER[HTTP_HOST]/milfs/images/secure/?file=600/$imagen[0]'> <!-- <img class='img img-responsive center-block' style='height:100%; display: table; margin: 0 auto;' src='http://$_SERVER[HTTP_HOST]/milfs/images/secure/?file=600/$imagen[0]'> -->
$contenido_desplegado $contenido_desplegado
</div> </div>
</div>"; </div>";
@ -2597,8 +2597,8 @@ $contenido .= "
<!-- Carousel <!-- Carousel
================================================== --> ================================================== -->
<div > <div >
<h2>$nombre[0]</h2> <h3>$nombre[0] <small>$descripcion[0]</small></h3>
<p>$descripcion[0]</p>
</div> </div>
<div id='myCarousel_$id' class='carousel slide' data-ride='carousel'> <div id='myCarousel_$id' class='carousel slide' data-ride='carousel'>
<!-- Indicators --> <!-- Indicators -->

View File

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

9
milfs/includes/upload.php Executable file → Normal file
View File

@ -30,9 +30,8 @@ if (($tipo == 'image/jpeg' or $tipo =='image/png') AND $size <= $upload_size )
$name = MD5(time())."$ext"; $name = MD5(time())."$ext";
$nombre= "$_SESSION[path_images_secure]/full/".$name; $nombre= "$_SESSION[path_images_secure]/full/".$name;
$imagenX = $_FILES[fileUpload][tmp_name]; $imagenX = $_FILES[fileUpload][tmp_name];
/*$coordenadas = leer_exif($imagenX); $coordenadas = leer_exif($imagenX);
if($coordenadas !='') { $alerta = "alert('Se han detectado coordenadas en los metadatos de la imagen y se ubicará el mapa en ese lugar.($coordenadas) ');";} if($coordenadas !='') { $alerta = "alert('Se han detectado coordenadas en los metadatos de la imagen y se ubicará el mapa en ese lugar.');";}
*/
//if (!copy($_FILES['fileUpload']['tmp_name'],"$nombre")) //if (!copy($_FILES['fileUpload']['tmp_name'],"$nombre"))
if (!move_uploaded_file($_FILES['fileUpload']['tmp_name'],$nombre)) if (!move_uploaded_file($_FILES['fileUpload']['tmp_name'],$nombre))
//move_uploaded_file($tmp_name, "$uploads_dir/$name"); //move_uploaded_file($tmp_name, "$uploads_dir/$name");
@ -48,10 +47,10 @@ else{
echo generar_miniatura($name,"300"); echo generar_miniatura($name,"300");
echo generar_miniatura($name,"600"); echo generar_miniatura($name,"600");
///$name= "$name?$coordenadas" ///$name= "$name?$coordenadas"
echo " <script>parent.resultadoUpload(0, '$name','$_SESSION[url]/','$imagen','$coordenadas'); $alerta </script> "; echo " <script>parent.resultadoUpload(0, '$name','$_SESSION[url]','$imagen','$coordenadas'); $alerta </script> ";
} }
} }
else echo "<script>parent.resultadoUpload(2,'','$_SESSION[url]/','$imagen');</script> "; else echo "<script>parent.resultadoUpload(2,'','$_SESSION[url]','$imagen');</script> ";
} }
else{ else{

View File

@ -1,7 +1,26 @@
<?php <?php
/// ESTE ARCHIVO DEBE ESTAR UN NIVEL POR ENCIMA DEL DIRECTORIO milfs
session_start(); session_start();
//ini_set('display_errors', 'On'); if(isset($_REQUEST[debug])) {ini_set('display_errors', 'On');}
/// ESTE ARCHIVO DEBE ESTAR UN NIVEL POR ENCIMA DEL DIRECTORIO milfs
$id_form="1";
$plantilla ="galeria";
/*
EJEMPLO DE PLANTILLA PÁRA GALERIA
<div class=' ' style=' position:relative; text-align:center; border-radius : 5px; width:100%; height:100% '>
<img style=' height:100%; ' src ='/milfs/images/secure/?file=600/$campo_limpio[26] ' alt=' ' title=' ' class=''>
<div style=' margin-left: auto;
position:absolute;
margin-right: auto;
margin-top:30px;
left:0;
right:0; bottom: 50px;
width:400px; ' >
<h1> $campo_limpio[1] $campo_limpio[3] </h1>
</div>
</div>
*/
require ('milfs/xajax/xajax.inc.php'); require ('milfs/xajax/xajax.inc.php');
$xajax = new xajax(); $xajax = new xajax();
require ('milfs/funciones/funciones.php'); require ('milfs/funciones/funciones.php');
@ -48,30 +67,7 @@ $web = remplacetas('empresa','id','1','web') ;
<!-- <link rel="points" type="application/json" href="json.php?id=<?php echo $_REQUEST["id"] ?>"> --> <!-- <link rel="points" type="application/json" href="json.php?id=<?php echo $_REQUEST["id"] ?>"> -->
<link href="milfs/css/carousel.css" rel="stylesheet"> <link href="milfs/css/carousel.css" rel="stylesheet">
<style type="text/css"> <style type="text/css">
body {
/* background: url("") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
color: gray;
background-color: black;
*/
}
.alert-info{
color: #341208;
border-color: #341208;
background-image: url("");
}
.jumbotron {
/* background-image: url("milfs/images/secure/?file=full/<?php echo $logo[0];?>"); */
background-size: cover;
background-position: center;
/* text-shadow: 1px 1px 1px rgba(255,255,255,0.8) ; */
background-color: black;
}
.navbar-header > p { font-size:20px; color: white; font-family: "Open Sans",sans-serif; font-weight: normal;display:inline } .navbar-header > p { font-size:20px; color: white; font-family: "Open Sans",sans-serif; font-weight: normal;display:inline }
.navbar-header > strong{ font-size:20px; color: #802a2a; font-weight: normal; font-family: "Open Sans",sans-serif; ;display:inline} .navbar-header > strong{ font-size:20px; color: #802a2a; font-weight: normal; font-family: "Open Sans",sans-serif; ;display:inline}
@ -143,7 +139,7 @@ background-color: black;
} }
</style> </style>
<?php if($_REQUEST[id] !='' AND $_REQUEST[c]){$onload ="<script type=\"text/javascript\"> xajax_formulario_modal('$_REQUEST[id]','','$_REQUEST[c]','$_REQUEST[t]')</script>";} ?>
</head> </head>
<body> <body>
<body> <body>
@ -179,8 +175,7 @@ background-color: black;
<div class="navbar-collapse collapse"> <div class="navbar-collapse collapse">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><?php echo $ingresar; ?></li>
</ul> </ul>
</div><!--/.nav-collapse --> </div><!--/.nav-collapse -->
@ -197,42 +192,14 @@ background-color: black;
<div class="col-sm-4"> <div class="col-sm-4">
</div> </div>
</div> </div>
<?php
if(isset($_REQUEST[id])){ echo contenido_aplicacion("$_REQUEST[id]","contenido"); } <div class="container" style="width:100%">
else{ <?php echo aplicacion_carrusel("","$id_form","galeria") ?>
//echo contenido_aplicacion_nombre("Portada","banner") ;
//echo aplicaciones_listado("","grid");} ?>
<div class="container" style="width:80%">
<?php echo aplicaciones_listado("","carrusel","");}
?>
</div> </div>
<br></br>
</div> </div>
<div class="center-block" style=" z-index:10000; bottom:10px;">
<div role='row' class='row center-block' style="width:95% ; "><?php //echo aplicacion_datos("$_REQUEST[id]");?></div>
</div>
<!-- Modal -->
<div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
<div class='modal-dialog' >
<div class='modal-content'>
<div class='modal-header' >
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</button>
<h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div></h4>
</div>
<div class='modal-body'>
<div id='muestra_form'></div>
</div>
<div class='modal-footer' id='pie_modal'>
</div>
</div>
</div>
</div>
<div class='pie' style=" position: fixed; z-index: 10000; <div class='pie' style=" position: fixed; z-index: 10000;
bottom: 0; bottom: 0;
width: 100%; width: 100%;