Вход Регистрация
Файл: in4at/scra.php
Строк: 32
<?php
##################################################################################################
##                    Script name  :  In4at                                                       ##
##                        Version  :  Final                                                       ##
##                      Made by  :  XPYCT(?????? ???????)                                       ##
##                         E-mail  :  bce-ok@bk.ru                                                ##
##                          ICQ  :  447-50-50-62                                                ##
##                         Site  :  http://vkontakte.ru/id31604521                              ##
## ????????! ?????? ???????????????? ?????????! ??????????? W4at by XPYCT                       ##
##################################################################################################
error_reporting(0);
$img="ava/".$img;
$mini=substr($img07);
if(
$mini!="http://" and $mini!="Http://" and $mini!="HTTP://");
$array=explode("."$img);
$type=$array[1];
function 
resizeimage($name$type$w$h)
{
$ratio=$w/$h;
$size_image=getimagesize($name);
if((
$size_image[0]<$w) && ($size_image[1]<$h))
RETURN 
TRUE;
$src_ratio=$size_image[0]/$size_image[1];
if(
$ratio<$src_ratio)
$h=$w/$src_ratio;
else 
$w=$h*$src_ratio;
$destroy=imagecreatetruecolor($w$h);
if(
strtolower($type)=="jpg"$src_image=imagecreatefromjpeg($name);
elseif(
strtolower($type)=="gif"$src_image=imagecreatefromgif($name);
else 
$src_image=imagecreatefrompng($name);
if(!@
imagecopyresampled($destroy$src_image0000$w$h$size_image[0], $size_image[1])) return false;
if(
strtolower($type)=="jpg")
{
header("Content-type: image/jpeg");
imagejpeg($destroy);
}
if(
strtolower($type)=="gif")
{
header("Content-type: image/gif");
imagegif($destroy);
}
if(
strtolower($type)=="png")
{
header("Content-type: image/png");
imagepng($destroy);
}
imagedestroy($destroy);
imagedestroy($src_image);
return 
TRUE;
}
if (!
$r$r 50;
$r2 $r;
resizeimage($img$type$r$r2);

?>
Онлайн: 0
Реклама