Вход Регистрация
Файл: pages/render/petImage.php
Строк: 104
<?php
// Physical module map v50.6: public URL stays clean while code lives in /pages.
if (!defined('GAME_ROOT')) define('GAME_ROOT'dirname(__DIR__2));
chdir(GAME_ROOT);
if (
PHP_SAPI !== 'cli') { $_SERVER['PHP_SELF']='/petImage.php'$_SERVER['SCRIPT_NAME']='/petImage.php'; }

/* Обновление игры под PHP 8.4 / PDO и усиление безопасности: by Метриум (Стэлп) */

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




$small_maneken_x 80;
$small_maneken_y 100;









$small_maneken   imagecreatetruecolor(
        
$small_maneken_x,
        
$small_maneken_y
        
);

$_GET['pet']= isset ($_GET['pet']) ? intval($_GET['pet']):0;

$_GET['sex']= isset ($_GET['sex']) ? intval($_GET['sex']):0;


$_GET['w_8'] = isset ($_GET['w_8'])?intval($_GET['w_8']):0;
$_GET['w_7'] = isset ($_GET['w_7'])?intval($_GET['w_7']):0;
$_GET['w_6'] = isset ($_GET['w_6'])?intval($_GET['w_6']):0;
$_GET['w_5'] = isset ($_GET['w_5'])?intval($_GET['w_5']):0;
$_GET['w_4'] = isset ($_GET['w_4'])?intval($_GET['w_4']):0;
$_GET['w_3'] = isset ($_GET['w_3'])?intval($_GET['w_3']):0;
$_GET['w_2'] = isset ($_GET['w_2'])?intval($_GET['w_2']):0;
$_GET['w_1'] = isset ($_GET['w_1'])?intval($_GET['w_1']):0;
/* by Метриум (Стэлп)
$filtr_sex = htmlspecialchars($_GET['sex']);
$filtr_w8 = htmlspecialchars($_GET['w_8']);
$filtr_w7 = htmlspecialchars($_GET['w_7']);
$filtr_w6 = htmlspecialchars($_GET['w_6']);
$filtr_w5 = htmlspecialchars($_GET['w_5']);
$filtr_w4 = htmlspecialchars($_GET['w_4']);
$filtr_w3 = htmlspecialchars($_GET['w_3']);
$filtr_w2 = htmlspecialchars($_GET['w_2']);
$filtr_w1 = htmlspecialchars($_GET['w_1']);




*/
$maneken     imagecreatefrompng ("images/maneken/sex/$filtr_sex.png");


if (
$_GET['w_7']!=0) {
    
imagecopy($manekenimagecreatefrompng ("images/maneken/$filtr_sex/$filtr_w7.png"), 0000120160);
}
if (
$_GET['w_8']!=0) {
    
imagecopy($manekenimagecreatefrompng ("images/maneken/$filtr_sex/$filtr_w8.png"), 0000120160);
}
if (
$_GET['w_3']!=0) {
    
imagecopy($manekenimagecreatefrompng ("images/maneken/$filtr_sex/$filtr_w3.png"), 0000120160);
}
if (
$_GET['w_1']!=0) {
    
imagecopy($manekenimagecreatefrompng ("images/maneken/$filtr_sex/$filtr_w1.png"), 0000120160);
}
if (
$_GET['w_2']!=0) {
    
imagecopy($manekenimagecreatefrompng ("images/maneken/$filtr_sex/$filtr_w2.png"), 0000120160);
}
if (
$_GET['w_4']!=0) {
    
imagecopy($manekenimagecreatefrompng ("images/maneken/$filtr_sex/$filtr_w4.png"), 0000120160);
}
if (
$_GET['w_6']!=0) {
    
imagecopy($manekenimagecreatefrompng ("images/maneken/$filtr_sex/$filtr_w6.png"), 0000120160);
}
if (
$_GET['w_5']!=0) {
    
imagecopy($manekenimagecreatefrompng ("images/maneken/$filtr_sex/$filtr_w5.png"), 0000120160);
}


imagecopyresized (
        
$small_maneken,
        
$maneken,
        
0,
        
0,
        
0,
        
0,
        
$small_maneken_x,
        
$small_maneken_y,
        
120,
        
160
);

imagecolortransparent (
        
$small_maneken,
        
imagecolorallocate (
                
$small_maneken,
                
0,
                
0,
                
0
        
)
);

$images_pets htmlspecialchars ($_GET['pet']);
$pet imagecreatefrompng("images/pet/$images_pets.png");


$offset_x  = array(
    
0,   // 0 
    
10,   // 1
    
110// 2
    
65,  // 3
    
65   // 4
);
$offset_y = array (

);

imagecopymerge (
        
$pet,
        
$small_maneken,
        
$offset_x$_GET['pet'] ],
        
20,
        
10,
        
0,
        
$small_maneken_x,
        
$small_maneken_y,
        
100
);

imagejpeg ($pet);
Онлайн: 2
Реклама