Loading...
Не отоброжаються картинки манекена
код в старт пхп
<?php
include_once ('core/base.php');
$header = 'Начало пути';
include_once ('core/head.php');

trueauth();

if(isset($_GET['sex']) == 1 || isset($_GET['sex']) == 2){
/* Игрок выбрал сторону */
$sex = fl($_GET['sex']);

if($sex == '1') $s = 'm';
else $s = 'w'; // Для записи в BASE

if(isset($_SESSION['ref']))$ref = $_SESSION['ref'];

$base -> query("INSERT INTO `users` SET
`password` = ' ',
`sex` = '".$s."',
`silver` = '1000',
`gold` = '10',
`id_ref` = '$ref',
`date_registr` = '".time()."',
`date_online` = '".time()."'
");
$id = mysqli_insert_id($base);
$login = 'Незнакомец_'.$id.'';
$base -> query("UPDATE `users` SET `login` = '".$login."' WHERE `id` = '".$id."'");
if($ref)
{
$base -> query("UPDATE `users` SET `id_ref` = '".$ref."' WHERE `id` = '".$id."' LIMIT 1");
$user = $base -> query("SELECT * FROM `users` WHERE `id` = '$ref' LIMIT 1") -> fetch_assoc();
if($user)
{
$base -> query("UPDATE `users` SET `k_ref` = `k_ref`+'1' WHERE `id` = '".$user['id']."' LIMIT 1");
}
}
$item = $base -> query("SELECT * FROM `items` WHERE `mark` = '0' AND `type` = 'golova' ORDER BY RAND() DESC LIMIT 1") -> fetch_assoc();
$base -> query("INSERT INTO `users_inv` SET
`name` = '$item[name]',
`id_item` = '$item[id]',
`id_user` = '$id',
`level` = '$item[level]',
`max_level` = '$item[max_level]',
`power` = '$item[power]',
`block` = '$item[block]',
`health` = '$item[health]',
`type` = '$item[type]',
`mark` = '$item[mark]',
`odeta` = 'da',
`type_2` = '$item[type_2]'");
$base -> query("UPDATE `users` SET `power` = `power`+'$item[power]', `block` = `block`+'$item[block]', `max_health` = `max_health`+'$item[health]' WHERE `id` = '".$id."'");

$item = $base -> query("SELECT * FROM `items` WHERE `mark` = '0' AND `type` = 'tors' ORDER BY RAND() DESC LIMIT 1") -> fetch_assoc();
$base -> query("INSERT INTO `users_inv` SET
`name` = '$item[name]',
`id_item` = '$item[id]',
`id_user` = '$id',
`level` = '$item[level]',
`max_level` = '$item[max_level]',
`power` = '$item[power]',
`block` = '$item[block]',
`health` = '$item[health]',
`type` = '$item[type]',
`mark` = '$item[mark]',
`odeta` = 'da',
`type_2` = '$item[type_2]'");
$base -> query("UPDATE `users` SET `power` = `power`+'$item[power]', `block` = `block`+'$item[block]', `max_health` = `max_health`+'$item[health]' WHERE `id` = '".$id."'");


$item = $base -> query("SELECT * FROM `items` WHERE `mark` = '0' AND `type` = 'prav' ORDER BY RAND() DESC LIMIT 1") -> fetch_assoc();
$base -> query("INSERT INTO `users_inv` SET
`name` = '$item[name]',
`id_item` = '$item[id]',
`id_user` = '$id',
`level` = '$item[level]',
`max_level` = '$item[max_level]',
`power` = '$item[power]',
`block` = '$item[block]',
`health` = '$item[health]',
`type` = '$item[type]',
`mark` = '$item[mark]',
`odeta` = 'da',
`type_2` = '$item[type_2]'");
$base -> query("UPDATE `users` SET `power` = `power`+'$item[power]', `block` = `block`+'$item[block]', `max_health` = `max_health`+'$item[health]' WHERE `id` = '".$id."'");


$item = $base -> query("SELECT * FROM `items` WHERE `mark` = '0' AND `type` = 'nogi' ORDER BY RAND() DESC LIMIT 1") -> fetch_assoc();
$base -> query("INSERT INTO `users_inv` SET
`name` = '$item[name]',
`id_item` = '$item[id]',
`id_user` = '$id',
`level` = '$item[level]',
`max_level` = '$item[max_level]',
`power` = '$item[power]',
`block` = '$item[block]',
`health` = '$item[health]',
`type` = '$item[type]',
`mark` = '$item[mark]',
`odeta` = 'da',
`type_2` = '$item[type_2]'");
$base -> query("UPDATE `users` SET `power` = `power`+'$item[power]', `block` = `block`+'$item[block]', `max_health` = `max_health`+'$item[health]' WHERE `id` = '".$id."'");


$item = $base -> query("SELECT * FROM `items` WHERE `mark` = '0' AND `type` = 'obuv' ORDER BY RAND() DESC LIMIT 1") -> fetch_assoc();
$base -> query("INSERT INTO `users_inv` SET
`name` = '$item[name]',
`id_item` = '$item[id]',
`id_user` = '$id',
`level` = '$item[level]',
`max_level` = '$item[max_level]',
`power` = '$item[power]',
`block` = '$item[block]',
`health` = '$item[health]',
`type` = '$item[type]',
`mark` = '$item[mark]',
`odeta` = 'da',
`type_2` = '$item[type_2]'");
$base -> query("UPDATE `users` SET `power` = `power`+'$item[power]', `block` = `block`+'$item[block]', `max_health` = `max_health`+'$item[health]' WHERE `id` = '".$id."'");

if($_SESSION['id_ref']){
$id = mysql_insert_id();
$base -> query("INSERT INTO `users` set `id_ref` = '".$_SESSION['id']."' where `id` = '".$u[id]."'");
}

setcookie('login', $login, time()+86400*365, '/');
setcookie('password', ' ', time()+86400*365, '/');
header('location: /');
}
echo '<div class="cntr">';
echo 'Укажите ваш пол:<br>';
echo '<a href="/start/1/" class="link_for"><img src="/manekenImage/m/17/0/19/0/0/22/23/24/" width="140"><br>Мужчина</a>';
echo '<a href="/start/2/" class="link_for"><img src="/manekenImage/w/17/0/19/0/0/22/23/24/" width="140"><br>Женщина</a>';
echo '</div>';
echo '<div class="cntr small mt10 mb10"><a href="/" class="c_lblue">Назад</a></div></a>';
include_once ('core/
код в манекен пхп
<?

header('content-type: image/');
$mini = $_GET['mini'];
$sex = $_GET['sex'];
$header = 'Манекен';
$image = imageCreateFromPng('./design/images/maneken/fons/0.png');

$maneken = imageCreateFromPng('./design/images/maneken/'.$sex.'/maneken.png');
imagecopy($image, $maneken, 0, 0, 0, 0, 480, 640);

$i7 = $_GET['i7'];
$item_7_image = imageCreateFromPng('./design/images/maneken/'.$sex.'/'.$i7.'.png');
imagecopy($image, $item_7_image, 0, 0, 0, 0, 480, 640);

$i8 = $_GET['i8'];
$item_8_image = imageCreateFromPng('./design/images/maneken/'.$sex.'/'.$i8.'.png');
imagecopy($image, $item_8_image, 0, 0, 0, 0, 480, 640);

$i3 = $_GET['i3'];
$item_3_image = imageCreateFromPng('./design/images/maneken/'.$sex.'/'.$i3.'.png');
imagecopy($image, $item_3_image, 0, 0, 0, 0, 480, 640);

$i1 = $_GET['i1'];
$item_1_image = imageCreateFromPng('./design/images/maneken/'.$sex.'/'.$i1.'.png');
imagecopy($image, $item_1_image, 0, 0, 0, 0, 480, 640);

$i2 = $_GET['i2'];
$item_2_image = imageCreateFromPng('./design/images/maneken/'.$sex.'/'.$i2.'.png');
imagecopy($image, $item_2_image, 0, 0, 0, 0, 480, 640);

$i4 = $_GET['i4'];
$item_4_image = imageCreateFromPng('./design/images/maneken/'.$sex.'/'.$i4.'.png');
imagecopy($image, $item_4_image, 0, 0, 0, 0, 480, 640);

$i5 = $_GET['i5'];
$item_5_image = imageCreateFromPng('./design/images/maneken/'.$sex.'/'.$i5.'.png');
imagecopy($image, $item_5_image, 0, 0, 0, 0, 480, 640);

$i6 = $_GET['i6'];
$item_6_image = imageCreateFromPng('./design/images/maneken/'.$sex.'/'.$i6.'.png');
imagecopy($image, $item_6_image, 0, 0, 0, 0, 480, 640);

image($image);
?>
ARKEYN ,


header('content-type: image/');
$mini = $_GET['mini'];
$sex = $_GET['sex'];
$header = 'Манекен';
$image = imageCreateFromPng('../design/images/maneken/fons/0.png');



Попробуй вот так с точкой может путь к картинке не видет
Механик , Не сработало
Что ни у кого нет ни каких вариантов?
Что ни кто не че не знает?!
Онлайн: 2
Время:
Gen. 0.0875
(c) Bym.Guru 2010-2026