Go back"; } else { ?> = $start) { $pic = explode(" ", $val); if ($newrij == $pic_rijlimit) { echo ""; $newrij = 0; } $newrij++; $pic = "$pic[1]"; $size = GetImageSize ($pic); $width = $size[0]; $height = $size[1]; if ($height == $width) { $height = "150"; $width = "150"; } elseif ($width < $height) { $size = GetImageSize ("$pic"); $max = 150; $verhouding = $width / $height; $height = $max; $width = $max * $verhouding; } elseif ($width > $height) { $size = GetImageSize ("$pic"); $max = 150; $verhouding = $height / $width; $width = $max; $height = $max * $verhouding; } if (!file_exists($filepath[screenshots]["$version"] . "thumbnails/" . $pic)) { imageresize($pic, "thumbnails/" . $pic, 150); } echo ""; } } ?>
< Back "; } $printnr = 0; while ($pages > $printnr) { $printnr++; echo " $printnr"; } if ($nr >= $pages) { echo " Next > "; } else { echo " Next > "; } } ?>
$height) { $verhouding = $height / $width; $width = $max; $height = $max * $verhouding; } $im2 = imagecreatetruecolor ($width, $height); imagecopyresized ($im2, $im1, 0, 0, 0, 0,$width, $height, $size[0], $size[1]); imagedestroy($im1); imagejpeg ($im2, "$newfilename"); imagedestroy($im2); } } ?>