/* Photorama - GuppY PHP Script - version 3.0 GPL Copyright (C) 2002-2004 by Laurent Duveau Made by Laurent Duveau, Nicolas Alves and Team Web site = http://www.freeguppy.org/ e-mail = info@aldweb.com Version History : v2.0 (27 February 2003) : initial release v2.1 (10 March 2003) : no change v2.2 (22 April 2003) : no change v2.3 (27 July 2003) : no change v2.4 (24 September 2003) : added section icon in central boxes added ReadDoc() function reviewed all Files Read & Write functions secured transfered parameters created $typ_[name] variables v3.0 (25 February 2004) : no change */ header("Pragma: no-cache"); $chemin = ""; include("inc/includes.inc"); if ($serviz[9] != "on") { exit($web143); } $pg = strip_tags($pg); $id = strip_tags($id); $photo = ReadDBFields($dbphoto); $photocat = array(); $k = 0; if ($lng == $lang[0]) { $l = 0; } else { $l = 1; } for ($i = 0; $i < count($photo); $i++) { if (trim($photo[$i][$l]) != "") { $photocatemp = $photo[$i][$l]; } else { $photocatemp = $web137; } $photocatest = 0; for ($j = 0; $j < count($photocat); $j++) { if ($photocatemp == $photocat[$j]) { $photocatest = 1; } } if ($photocatest == 0) { $photocat[$k] = $photocatemp; $k++; } } @sort($photocat); if (empty($fotocat)) { $fotocat = $photocat[0]; } $k = 0; for ($i = 0; $i < count($photo); $i++) { if (trim($photo[$i][$l]) != "") { $photocatemp = $photo[$i][$l]; } else { $photocatemp = $web137; } if ($fotocat == $photocatemp) { $photoname[$k][0] = $photo[$i][$l+2]; $photoname[$k][1] = $photo[$i][4]; $k++; } } @sort($photoname); if (!empty($pg)) { if (count(SelectDBFields($typ_photo,"a",$pg)) != 0) { $dbwork = SelectDBFields($typ_photo,"a",$pg); } else { $dbwork = array(); } } include("inc/hpage.inc"); if ($lng == $lang[0]) { $tit = $nom[2]; } else { $tit = $nom[12]; } if (!empty($fotocat)) { $tit = $tit." - ".strip_tags($fotocat); } if ($page[9] != "") { $tit = "".$tit; } htable($tit, "100%"); if (!empty($pg)) { ReadDoc($dbbase.$dbwork[0][1]); if (is_file("photo/".$fieldd1)) { if ($lng == $lang[0]) { $phototitre = $fieldb1; $photodesc = $fieldc1; } else { $phototitre = $fieldb2; $photodesc = $fieldc2; } } ?>
echo $fieldd1; ?> ( echo (round(filesize("photo/".$fieldd1) / 102.4) / 10)." ".$web28; ?>)
echo $phototitre; ?>
echo $photodesc; ?>
echo "