$valor) { $asignacion = "\$" . $nombre_campo . "='" . $valor . "';"; eval($asignacion); } if (!$id_min) { // Conexión BD $dbh=mysql_connect ("lldd075.servidoresdns.net", "qgr404", "c100cpBveP") or die ('Error1001: ' . mysql_error()); // seleccionado la base de datos mysql_select_db ("qgr404",$dbh); // *****MODIFICAR DIRECTORIO PARA LECTURA DE FOTOS E IDCONTADOR PARA CONTADOR DE ESTA URL***** // $directorio= "../cocacola/2013/baja"; $idcontvisitas= 23; // id del registro para esta carrera // Contador de visitas $sql= "SELECT * FROM Contador WHERE IdContador= $idcontvisitas"; $rs= mysql_query($sql) or die ('Error1004: ' . mysql_error()); while( $c = mysql_fetch_array($rs) ) $visitas = $c["Visitas"]; $visitas = $visitas + 1; $sql = "UPDATE Contador SET Visitas = $visitas WHERE IdContador = $idcontvisitas"; mysql_query($sql, $dbh) or die ('Error1005: ' . mysql_error()); // Comprobar si existen imagenes en la carpeta contenedora /* $sql= "SELECT * FROM _CarrerasFotos2013 WHERE CarpetaFoto= '$directorio' ORDER BY Id_CarrerasFotos ASC"; $rs= mysql_query($sql) or die ('Error1003: ' . mysql_error()); while( $c = mysql_fetch_array($rs) ) */ $cont=1; if ($handle = opendir($directorio)) { while (false !== ($entry = readdir($handle))) { if (strpos($entry, ".jpg")) { $id_foto[] = $cont; $dir[] = $directorio; $foto[] = $entry; $cont++; } } } // Rellenar array $_SESSION['id_foto'] = $id_foto; $_SESSION['dir'] = $dir; $_SESSION['foto'] = $foto; // $_SESSION['dorsal'] = $dorsal; // $_SESSION['tiempo'] = $tiempo; $_SESSION['id_min'] = $id_foto[0]; mysql_close(); } // Asignar variables. $dir = $_SESSION['dir'][0]; $total = count($_SESSION['id_foto']); $min = $_SESSION['id_min']; $max = $_SESSION['id_foto'][$total - 1]; // $x es una variable para conocer cuál es el primer número de los arrays, de tal manera que la serie comience por 0. $x = $min - $_SESSION['id_foto'][0]; $xmax = $max - $_SESSION['id_foto'][0] + 1; // nº mayor que puede obtener $x, + 1. /* // TEST echo "Total: " . $total . "
"; echo "Menor: " . $_SESSION['id_foto'][0] . "
"; echo "Mayor: " . $_SESSION['id_foto'][41] . "
"; echo $dir; */ // Redimensionar imágenes: function widthimage ($dir, $archivo) { $max_width = 190; $max_height = 190; $archivo = list($width, $height) = getimagesize($dir . "/" . $archivo); $ratioh = $max_height/$height; $ratiow = $max_width/$width; $ratio = min($ratioh, $ratiow); // New dimensions return intval($ratio*$width); } function heightimage ($dir, $archivo) { $max_width = 190; $max_height = 190; $archivo = list($width, $height) = getimagesize($dir . "/" . $archivo); $ratioh = $max_height/$height; $ratiow = $max_width/$width; $ratio = min($ratioh, $ratiow); // New dimensions return intval($ratio*$height); } ?> Galería fotográfica
 
Primeras | =0) { ?> - 1000 | =0) { ?> - 500 | =0) { ?> - 100 | =0) { ?> - 60 | =0) { ?> Anteriores | Siguientes | + 60 | + 100 | + 500 | + 1000 | Últimas

Las fotos están ordenadas por tiempo de llegada. Haga clic en la foto para verla ampliada.

" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />
" width="" height="" border="0" />