Файл: public_html/modules/model.php
Строк: 98
<?php
$root = $_SERVER['DOCUMENT_ROOT'];
$sex = intval($_GET['sex']);
$h = intval($_GET['h']);
$s = intval($_GET['s']);
$c = intval($_GET['c']);
$g = intval($_GET['g']);
$o = intval($_GET['o']);
$m = intval($_GET['m']);
$l = intval($_GET['l']);
$b = intval($_GET['b']);
$background = imagecreatefrompng($root.'/images/model/'.$sex.'.png');
$background_0 = imagesy($background);
$background_1=imagesx($background);
$head = imagecreatefrompng($root.'/images/model/'.$h.'/items/h.png');
$head_0 = imagesx($head);
$head_1= imagesy($head);
imagecopy($background, $head,$background_1-$head_0,$background_1-$background_0+50,0,0,$head_0,$head_1);
$chest = imagecreatefrompng($root.'/images/model/'.$c.'/items/c.png');
$chest_0 = imagesx($chest);
$chest_1= imagesy($chest);
imagecopy($background, $chest,$background_1-$chest_0,$background_1-$background_0+50,0,0,$chest_0,$chest_1);
$shoulders = imagecreatefrompng($root.'/images/model/'.$s.'/items/s.png');
$shoulders_0 = imagesx($shoulders);
$shoulders_1= imagesy($shoulders);
imagecopy($background, $shoulders,$background_1-$shoulders_0,$background_1-$background_0+50,0,0,$shoulders_0,$shoulders_1);
$legs = imagecreatefrompng($root.'/images/model/'.$l.'/items/l.png');
$legs_0 = imagesx($legs);
$legs_1= imagesy($legs);
imagecopy($background, $legs,$background_1-$legs_0,$background_1-$background_0+50,0,0,$legs_0,$legs_1);
$mainhand = imagecreatefrompng($root.'/images/model/'.$m.'/items/m.png');
$mainhand_0 = imagesx($mainhand);
$mainhand_1= imagesy($mainhand);
imagecopy($background, $mainhand,$background_1-$mainhand_0,$background_1-$background_0+50,0,0,$mainhand_0,$mainhand_1);
$boots = imagecreatefrompng($root.'/images/model/'.$b.'/items/b.png');
$boots_0 = imagesx($boots);
$boots_1= imagesy($boots);
imagecopy($background, $boots,$background_1-$boots_0,$background_1-$background_0+50,0,0,$boots_0,$boots_1);
$gloves = imagecreatefrompng($root.'/images/model/'.$g.'/items/g.png');
$gloves_0 = imagesx($gloves);
$gloves_1= imagesy($gloves);
imagecopy($background, $gloves,$background_1-$gloves_0,$background_1-$background_0+50,0,0,$gloves_0,$gloves_1);
$offhand = imagecreatefrompng($root.'/images/model/'.$o.'/items/o.png');
$offhand_0 = imagesx($offhand);
$offhand_1= imagesy($offhand);
imagecopy($background, $offhand,$background_1-$offhand_0,$background_1-$background_0+50,0,0,$offhand_0,$offhand_1);
header('Content-type:image/png');
imagepng($background);
imagedestroy($background);