} elseif ($_POST['aktion'] == 'alle' OR $_POST['aktion'] == 'alle_no') {
$erg = db_query("SELECT id,endung FROM prefix_gallery_imgs WHERE cat = ".$menu->get(2));
while ($r = db_fetch_assoc($erg)) {
$endung = $r['endung'];
$id = $r['id'];
$bild_url = 'include/images/gallery/img_'.$id.'.'.$endung;
if (file_exists ($bild_url)) {
$bild_thumb = 'include/images/gallery/img_thumb_'.$id.'.'.$endung;
$bild_norm = 'include/images/gallery/img_norm_'.$id.'.'.$endung;
if ($_POST['aktion'] == 'alle' OR !file_exists($bild_thumb)) {
create_thumb ($bild_url, $bild_thumb, $allgAr['gallery_preview_width']);
}
if ($_POST['aktion'] == 'alle' OR !file_exists($bild_norm)) {
create_thumb ($bild_url, $bild_norm , $allgAr['gallery_normal_width']);
}
}
}
if ($_POST['aktion'] == 'alle') {
$msg = 'Alle Bilder erneuert';
} else {
$msg = 'Alle Bilder erneuert, nicht überschrieben';
}
}
}