include("include/config.inc.php");
$db=mysql_connect( $dbhost , $dblogin , $dbpassw );
if( !$db ) echo 'Connessione non riuscita: password e user da verificare' ;
mysql_select_db($dbname, $db)
or die ("Errore nella selezione del database. Verificarne i parametri");
?>
function vedi($imm,$nome,$id,$download,$evento,$data_in) {
$LX=140;
$LY=100;
$foto="fotogallery/".$imm;
list($width, $height, $type, $attr) = getimagesize("$foto");
$dimensioni="";
if ($width>=$height) { if($width>$LX) $dimensioni="width=$LX"; }
else { if($height>$LY) $dimensioni="height=$LY"; }
list($g,$m,$a)=split("-",$data_in);
echo"
$nome
$evento
inserita il $g/$m/$a
[visualizza 100%]
n. visite: $download
";
}
?>
Asini si nasce
include("top.php"); ?>
|
include("sx.php"); ?>
|
|
if($_REQUEST[auto]) {
if (!$q=mysql_query("select * from 05_gallery where id>'$_REQUEST[auto]'", $db)) die("err1 ".mysql_error());
$r=mysql_fetch_object($q);
$_REQUEST[id]=$r->id;
}
else {
if (!$q=mysql_query("select * from 05_gallery where id=$_REQUEST[id]", $db)) die("err1 ".mysql_error());
$r=mysql_fetch_object($q);
}
if (!$q=mysql_query("update 05_gallery set download='".($r->download+1)."', ultima='".date("d/m/Y")."' where id=$_REQUEST[id]", $db)) die("err1 ".mysql_error());
if (!$q=mysql_query("select * from 05_gallery where id=$_REQUEST[id]", $db)) die("err1 ".mysql_error());
$r=mysql_fetch_object($q);
echo" $r->nome";
?>
|
list($a,$m,$g)=split("-",$r->data_in);
echo"inserita il: $g/$m/$a";
?>
|
|
echo" $r->evento";
?>
|
echo"n° visite: $r->download";
?>
|
$foto="fotogallery/".$r->fotoH;
//echo"-$foto- ";
$LX=400; $LY=350;
list($width, $height, $type, $attr) = getimagesize("$foto");
$dimensioni="";
if ($width>=$height) { if($width>$LX) $dimensioni="width=$LX"; }
else { if($height>$LY) $dimensioni="height=$LY"; }
echo"";
?>
|
echo" $r->nome";
?>
|
|
echo" $r->evento
$r->descrizione ";
if($r->email) echo"$r->email ";
if($r->link) echo"$r->link ";
?>
|
dettaglio |
|
echo"inserita il $g/$m/$a
n° visite: $r->download
ultima visita: $r->ultima
$r->fotoH
$r->formato | $r->peso Kb| $r->x * $r->y pixel
";
?>
|
|
if (!$q=mysql_query("select * from 05_gallery order by id asc", $db)) die("err1 ".mysql_error());
$r=mysql_fetch_object($q); $prima=$r->id;
if (!$q=mysql_query("select * from 05_gallery order by id desc", $db)) die("err1 ".mysql_error());
$r=mysql_fetch_object($q); $ultima=$r->id;
?>
[ ] HOME |
"><<PRIMA FOTO "><PRECEDENTE |
">SUCCESSIVA> ">ULTIMA FOTO> |
|
|
|
|
|
include("fondo.php"); ?>
|