Bardzo prosze o pomoc
Plik zdjecie.php tworzy miniaturki w zaleznosci od zmiennej $zd:
<?php if($foto==$zd) { $foto='galeria/glod/'.$zd; function resiZze($foto) { // Set a maximum height and width $width = 130; $height = 130; // Content type // Get new dimensions $ratio_orig = $width_orig/$height_orig; if ($width/$height > $ratio_orig) { $width = $height*$ratio_orig; } else { $height = $width/$ratio_orig; } // Resample $image_p = imagecreatetruecolor($width, $height); $image = imagecreatefromjpeg($foto); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig); // Output imagejpeg($image_p, null, 100); } resiZze($foto); } ?>
Plik wyswietlajacy zdjecia:
<?php function FunGal($zrodlo_norm) { { { if($plik != "." && $plik != "..") { $height2=$height+40; echo "\n".'<a href="'.$zrodlo_norm.$plik.'" title="Galeria Zooter ('.$width.'x'.$height2.')"><img src="zdjecie.php?foto='.$plik.'" alt="Fotografia: '.$plik.'" /></a>'; } } } } ?>