");
// Test photos
if (!$gal->buggy)
foreach ($gal->photos as $photo) {
doecho('
');
doecho('
'.$photo->filename.'');
if (!$photo->display) doecho('
LA PHOTO N\'EST PAS AFFICHÉE!!!');
if ($photo->ref != '') doecho('
Réf: '.$photo->ref.'');
if ($photo->prix != '') doecho('
Prix:'.$photo->prix.'');
// Check descriptions in all defined languages
foreach ($languages as $lan) {
if (!array_key_exists($lan, $photo->name)) {
doecho('
Langue '.$lan.' pas trouvée!');
$gal->buggy = true;
}
}
// Check descriptions in all languages
$photonames = array_keys($photo->name);
foreach ($photonames as $name) {
doecho($name.' -> '.$photo->name[$name].'
');
$textecheck = explode('/',$photo->name[$name]);
if (count($textecheck) < 2) {
doecho('
Il manque une partie du texte (vérifier /)!');
$gal->buggy = true;
}
}
// Check thumbnail
if (!$gal->buggy)
if (file_exists($rootpath.$gal->dir.'/thumbnails/'.$photo->filename)) {
if ($pictures) doecho('
');
}
else {
doecho('
La vignette n\'existe pas!');
$gal->buggy = true;
}
// Check image file
if (!$gal->buggy)
if (file_exists($rootpath.$gal->dir.'/images/'.$photo->filename)) {
if ($pictures) doecho('
');
}
else {
doecho('
Le fichier n\'existe pas!');
$gal->buggy = true;
}
}
doecho('
');
if ($gal->buggy) {
doecho('');
} else {
doecho('');
}
}
if (!$noecho) {
?>
}
?>