View file rimg.php

File size: 565B
<?php

header ("Content-Type: image/gif");
header ("Content-Disposition: inline; filename=RuWap.gif");
$id =$_GET['id'];
if(preg_match('#^[0-9]{1,5}$#i',$id)){ 
$file = 'image/'.$id.'.gif';
$image = imageresize("",$file,25,25,100); }
function imageresize ($outfile,$infile,$neww,$newh,$quality) {  $im=imagecreatefromgif($infile); $im1=imagecreatetruecolor($neww,$newh); 
imagecopyresampled ($im1,$im,0,0,0,0,$neww,$newh,imagesx($im),imagesy($im));
imagegif($im1,$outfile,$quality); 
imagedestroy($im); 
imagedestroy($im1); 
return $outfile; } 


?>