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

require'../includes.php';

error_reporting(E_PARSE);
$nk=@$_SERVER['QUERY_STRING'];

$img = H.user_inf2($nk,'love_photo');


$W = 80;
$H = 80;


$getim = getimagesize($img);
if (
$getim[2] == 1 || $getim[2] == 2 || $getim[2] == 3) {

if (
$getim[2] == 1)$old = imagecreatefromgif($img);
elseif (
$getim[2] == 2) $old = imagecreatefromjpeg($img);
elseif (
$getim[2] == 3)$old = imagecreatefrompng($img);
{
$wn = imageSX($old);
$hn = imageSY($old);

if(!
$W and !$H)
{
$W = $set['w_photo']; // ширина картинки
$H = $set['h_photo']; // высота картинки
}

$new = imageCreateTrueColor($W, $H);
imageCopyResampled($new, $old, 0, 0, 0, 0, $W, $H, $wn, $hn);

// цвет
$color = imagecolorallocate($new, 255, 255, 255);

imagestring($new, 3, $W-(strlen(user_inf2($nk,'love_vote_photo'))*10), 2, user_inf2($nk,'love_vote_photo'), $color);


imageJpeg($new,null,100);
}
}



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