$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= "100km24h_2011/baja"; $idcontvisitas= 13; // 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 registros con la carpeta contenedora $sql= "SELECT * FROM _CarrerasFotos WHERE CarpetaFoto= '$directorio' ORDER BY Id_CarrerasFotos ASC"; $rs= mysql_query($sql) or die ('Error1003: ' . mysql_error()); while( $c = mysql_fetch_array($rs) ) { $id_foto[] = $c["Id_CarrerasFotos"]; $dir[] = $c["CarpetaFoto"]; $foto[] = $c["FicheroFoto"]; $dorsal[] = $c["Dorsales"]; $tiempo[] = $c["Tiempo"]; } // 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
100km24h
 
Primeras | =0) { ?> - 1000 | =0) { ?> - 500 | =0) { ?> - 100 | =0) { ?> - 60 | =0) { ?> Anteriores | Siguientes | + 60 | + 100 | + 500 | + 1000 | Últimas


FOTOS DE META

Las fotos están ordenadas por el tiempo realizado. Haga clic en la foto para verla ampliada y poder descargarla.

Entre paréntesis: tiempo realizado.

s

" 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" />