$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= "XXXIMediaUniversitaria/MMCU2011"; // Contador de visitas $sql= "SELECT * FROM Contador WHERE IdContador= 2"; $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 = 2"; mysql_query($sql, $dbh) or die ('Error1005: ' . mysql_error()); // Comprobar si existen registros con la carpeta contenedora $sql= "SELECT * FROM _CarrerasFotos WHERE CarpetaFoto= '$directorio'"; $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: " . $min . "
"; echo "Mayor: " . $max . "
"; 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
Medio Maratón
 
 
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.

El tiempo que aparece en el reloj de las fotografías es el tiempo oficial, que puede verse en las clasificaciones.

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