- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
if ($_GET[action] == "avatar") {
if ($info = $_GET[info]) {
if ($info[avatar]) {
echo $info[avatar];
} else {
header("Content-type: image/png");
$im = imagecreatetruecolor(80, 80);
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 80, 80, $white);
$font = "fonts/avatar.ttf";
$text = "HET";
imagettftext($im, 20, 0, 15, 40, $grey, $font, $text);
imagettftext($im, 20, 0, 14, 39, $black, $font, $text);
$text = "ABATAPA";
imagettftext($im, 14, 0, 5, 55, $grey, $font, $text);
imagettftext($im, 14, 0, 4, 54, $black, $font, $text);
imagepng($im);
imagedestroy($im);
}
} else {
header("Content-type: image/png");
$im = imagecreatetruecolor(80, 80);
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 80, 80, $white);
$font = "fonts/avatar.ttf";
$text = "HET";
imagettftext($im, 20, 0, 15, 40, $grey, $font, $text);
imagettftext($im, 20, 0, 14, 39, $black, $font, $text);
$text = "ABATAPA";
imagettftext($im, 14, 0, 5, 55, $grey, $font, $text);
imagettftext($im, 14, 0, 4, 54, $black, $font, $text);
imagepng($im);
imagedestroy($im);
}
}
Int 19.02.2011 15:41 # 0
Sulik78 19.02.2011 16:24 # 0
Lure Of Chaos 19.02.2011 17:10 # +5
Мистер Хэнки 19.02.2011 17:25 # +3
Lure Of Chaos 19.02.2011 17:28 # 0