View file fotogallery/img/pic.php

File size: 292B
<?
include 'config.php';
list(, , $type,)=getimagesize($file);
$funci="imagecreatefromjpeg";
$im1 = $funci($file);
$im2=ImageCreate($neww,$newh); 
imagecopyresized($im2, $im1, 0,0,0,0,$neww,$newh, imagesx($im1), imagesy($im1));
header("Content-type: image/jprg");
imagejpeg($im2);
?>