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


header 
("Content-Type: image/jpeg");
header ("Content-Disposition: inline; filename=RuWap.gif");
$ids $_GET['ids'];
 if(
preg_match('#^[d]{1,10}#',$ids)){
    
$files glob("./foto/".$ids."/*.jpeg");
    if(
array_key_exists(0,$files))
    
$p explode("/",$files[0]);
    
$name explode(".",$p[3]);
    
$infile './foto/'.$ids.'/'.$name[0].'.jpeg';
    
$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
Реклама