Вход Регистрация
Файл: rusikanlove/rusikanlove/f_all.php
Строк: 22
<?php


header 
("Content-Type: image/jpeg");
header ("Content-Disposition: inline; filename=RuWap.gif");
$ids $_GET['ids'];
if(
preg_match('#^[d]{1,10}$#',$ids)){
  if(
preg_match('#^[d]{10,11}.jpeg$#',$_GET['read'])){
      
$read $_GET['read'];
      
$infile "./foto/".$ids."/".$read;
       
$image imageresize("",$infile,80,80,100);
  }
}
function 
imageresize ($outfile,$infile,$neww,$newh,$quality) {
    
$im=imagecreatefromjpeg($infile);
    
$im1=imagecreatetruecolor($neww,$newh);
    
imagecopyresampled ($im1,$im,0,0,0,0,$neww,$newh,imagesx($im),imagesy($im));
    
imagejpeg($im1,$outfile,$quality);
    
imagedestroy($im);
    
imagedestroy($im1);
    return 
$outfile;
}
?>
Онлайн: 1
Реклама