{% else-1 %}
(22 фев 2015, 22:26) (0/0) [0]
BARRAcUDA, я посмотрел вроде норм все
Добавлено 23.02.15 в 10:54:57:
помогите плиз
(22 фев 2015, 22:10) (0/0) [0]
CTACOH, вот код <?

include './system/common.php';

include './system/functions.php';


header('content-type: image/jpeg');

$g = _string(_num($_GET['g']));

$image = imageCreateFromPng('./images/maneken/'.$g.'.png');

$w_7 = _string(_num($_GET['w_7']));

$w_7_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_7.'"');
$w_7_item = mysql_fetch_array($w_7_item);

if($w_7 && is_file('./images/maneken/'.$g.'/'.$w_7.'.png') && $w_7_item['w'] == 7) {

$w_7_image = imageCreateFromPng('./images/maneken/'.$g.'/'.$w_7.'.png');

imagecopy($image, $w_7_image, 0, 0, 0, 0, 120, 160);

}

$w_8 = _string(_num($_GET['w_8']));

$w_8_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_8.'"');
$w_8_item = mysql_fetch_array($w_8_item);

if($w_8 && is_file('./images/maneken/'.$g.'/'.$w_8.'.png') && $w_8_item['w'] == 8) {

$w_8_image = imageCreateFromPng('./images/maneken/'.$g.'/'.$w_8.'.png');

imagecopy($image, $w_8_image, 0, 0, 0, 0, 120, 160);

}

$w_3 = _string(_num($_GET['w_3']));

$w_3_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_3.'"');
$w_3_item = mysql_fetch_array($w_3_item);

if($w_3 && is_file('./images/maneken/'.$g.'/'.$w_3.'.png') && $w_3_item['w'] == 3) {

$w_3_image = imageCreateFromPng('./images/maneken/'.$g.'/'.$w_3.'.png');

imagecopy($image, $w_3_image, 0, 0, 0, 0, 120, 160);

}

$w_1 = _string(_num($_GET['w_1']));

$w_1_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_1.'"');
$w_1_item = mysql_fetch_array($w_1_item);

if($w_1 && is_file('./images/maneken/'.$g.'/'.$w_1.'.png') && $w_1_item['w'] == 1) {

$w_1_image = imageCreateFromPng('./images/maneken/'.$g.'/'.$w_1.'.png');

imagecopy($image, $w_1_image, 0, 0, 0, 0, 120, 160);

}

$w_2 = _string(_num($_GET['w_2']));

$w_2_item = mysql_query('SELECT * FROM `items` WHERE `id` = "'.$w_2.'"');
$w_2_item = mysql_fetch_array($w_2_item);

if($w_2 && is_file('./images/maneken/'.$g.'/'.$w_2.'.png') && $w_2_item['w'] == 2) {

$w_2_image = imageCreateFromPng('./images/maneken/'.$g.'/'.$w_2.'.png');

imagecopy($image, $w_2_image, 0, 0, 0, 0, 120, 160);
Добавлено 22.02.15 в 22:11:58:
а названия манекенов 0 и 1 и куда вставлять?
(22 фев 2015, 22:05) (0/0) [0]
кто знает как на двиге бт наладить манекен у
меня вместо изображения манекена кубик и
знак вопроса
  • 1 из 1