2022-12-30 19:03:37 +00:00
< ? php
if ( ! defined ( 'GAME' )) {
die ();
2022-06-06 21:30:34 +00:00
}
2022-12-30 19:03:37 +00:00
$uShow = explode ( '|' , $u -> info [ 'showmenu' ]);
if ( isset ( $_GET [ 'showmenu' ])) {
$_GET [ 'showmenu' ] = round ( $_GET [ 'showmenu' ]);
if ( $_GET [ 'showmenu' ] >= 1 && $_GET [ 'showmenu' ] <= 8 ) {
if ( $uShow [ $_GET [ 'showmenu' ] - 1 ] == 0 ) {
$uShow [ $_GET [ 'showmenu' ] - 1 ] = 1 ;
} else {
$uShow [ $_GET [ 'showmenu' ] - 1 ] = 0 ;
}
$u -> info [ 'showmenu' ] = implode ( '|' , $uShow );
mysql_query ( 'UPDATE `stats` SET `showmenu`="' . $u -> info [ 'showmenu' ] . '" WHERE `id`="' . $u -> info [ 'id' ] . '"' );
}
2022-06-06 21:30:34 +00:00
}
?>
< style type = " text/css " >
2022-12-30 19:03:37 +00:00
. linestl1 {
background - color : #ececec;
font - size : 11 px ;
font - weight : bold ;
border - radius : 2 px ;
- moz - border - radius : 2 px ;
- webkit - border - radius : 2 px ;
padding - right : 4 px ;
padding - bottom : 1 px ;
}
2022-06-06 21:30:34 +00:00
</ style >
< script >
2022-12-30 19:03:37 +00:00
function getLine ( id , name , a , b , o , id2 ) {
2023-03-31 18:30:14 +00:00
var tss = '<td width="20"><img src="//img.new-combats.tech/i/minus.gif" style="display:block;cursor:pointer;margin-bottom:3px;" title="Скрыть" class="btn-slide" onClick="location=\'main.php?inv=1&otdel=<?= $_GET[' otdel ']; ?>&showmenu=' + id2 + '&rnd=<?= $code; ?>\';"></td>' ;
2022-12-30 19:03:37 +00:00
if ( o == 0 ) {
2023-03-31 18:30:14 +00:00
tss = '<td width="20"><img src="//img.new-combats.tech/i/plus.gif" style="display:block;cursor:pointer;margin-bottom:3px;" title="Показать" class="btn-slide" onClick="location=\'main.php?inv=1&otdel=<?= $_GET[' otdel ']; ?>&showmenu=' + id2 + '&rnd=<?= $code; ?>\';"></td>' ;
2022-12-30 19:03:37 +00:00
}
2023-03-31 18:30:14 +00:00
var sts01 = '<a href="main.php?inv=1&otdel=<?= $_GET[' otdel ']; ?>&up=' + id + '&rnd=<?= $code; ?>"><img style="display:block;float:right; margin-bottom:3px;" src="//img.new-combats.tech/i/3.gif"></a>' ;
2022-12-30 19:03:37 +00:00
if ( id == 0 ) {
2023-03-31 18:30:14 +00:00
sts01 = '<img style="display:block;float:right;margin-bottom:3px;" src="//img.new-combats.tech/i/4.gif">' ;
2022-12-30 19:03:37 +00:00
}
2023-03-31 18:30:14 +00:00
var sts02 = '<a href="main.php?inv=1&otdel=<?= $_GET[' otdel ']; ?>&down=' + id + '&rnd=<?= $code; ?>"><img style="display:block; margin-bottom:3px; float:right;" src="//img.new-combats.tech/i/1.gif"></a>' ;
2022-12-30 19:03:37 +00:00
if ( id == 6 ) {
2023-03-31 18:30:14 +00:00
sts02 = '<img style="display:block;float:right;margin-bottom:3px;" src="//img.new-combats.tech/i/2.gif">' ;
2022-12-30 19:03:37 +00:00
}
var sts2 = '<td width="40"><div style="float:right;">' + sts01 + '' + sts02 + '</div></td>' ;
document . write ( '<table class="mroinv" width="100%" border="0" cellspacing="2" cellpadding="0">' +
'<tr>' + tss +
'<td style="font-size:9px;"><span class="linestl1"> ' + name + '</span></td>' + sts2 + '</tr>' +
'</table>' );
}
2022-06-06 21:30:34 +00:00
2022-12-30 19:03:37 +00:00
function showDiv ( id ) {
var block = document . getElementById ( 'block_' + id );
block . style . display = 'block' ;
}
function hiddenDiv ( id ) {
var block = document . getElementById ( 'block_' + id );
block . style . display = 'none' ;
}
function save_com_can () {
var ddtpsBankDiv = document . getElementById ( 'chpassbank' );
if ( ddtpsBankDiv != undefined ) {
ddtpsBankDiv . style . display = 'none' ;
ddtpsBankDiv . innerHTML = '' ;
}
}
function save_compl () {
2023-03-31 16:54:33 +00:00
var ddtpswBank = '<div><form action="main.php?inv=1&otdel=<?= $_GET[' otdel ']; ?>&rnd=<?= $code; ?>" method="post">' +
2023-01-10 16:29:32 +00:00
'<table style="border:1px solid #B1A996;" width="250" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#B1A996"><div align="center"><strong>Сохранить комплект</strong></div></td></tr><tr><td bgcolor="#DDD5C2" style="padding:5px;"><div align="center"><small>Введите название боевого комплекта:<br />' +
'<input style="width:90%;" type="text" name="compname" value="" id="compname" /><label></label></small><br><input style="margin-left:3px;cursor:pointer;" type="submit" name="button" id="button" value=" Сохранить " /><input style="margin-left:3px;cursor:pointer;" onClick="save_com_can();" type="button" value=" Отмена " /></div></td></tr></table></form></div>' ;
2022-12-30 19:03:37 +00:00
var ddtpsBankDiv = document . getElementById ( 'chpassbank' );
if ( ddtpsBankDiv != undefined ) {
ddtpsBankDiv . style . display = '' ;
ddtpsBankDiv . innerHTML = ddtpswBank ;
}
}
function za_block ( id ) {
if ( $ ( '#za_block_' + id ) . css ( 'display' ) == 'none' ) {
$ ( '#za_block_' + id ) . css ( 'display' , '' );
} else {
$ ( '#za_block_' + id ) . css ( 'display' , 'none' );
}
}
2022-06-06 21:30:34 +00:00
</ script >
< style >
2022-12-30 19:03:37 +00:00
. mroinv {
/*background-color:#e2e2e2;border-top:1px solid #eeeeee;border-left:1px solid #eeeeee;border-right:1px solid #a0a0a0;border-bottom:1px solid #a0a0a0;*/
2023-03-31 18:30:14 +00:00
background : url ( //img.new-combats.tech/i/back.gif) 0 2px;
2022-12-30 19:03:37 +00:00
}
. mroinv img {
display : inline - block ;
border : 0 ;
padding - top : 3 px ;
padding - left : 1 px ;
}
. dot {
display : block ;
padding - bottom : 2 px ;
2023-01-10 16:29:32 +00:00
text - decoration : none ; /* Убираем подчеркивание */
border - bottom : 1 px dotted #080808; /* Добавляем свою линию */
2022-12-30 19:03:37 +00:00
cursor : pointer ;
}
. dot : hover {
2023-01-10 16:29:32 +00:00
border - bottom : 1 px dotted #080808; /* Добавляем свою линию */
2022-12-30 19:03:37 +00:00
background - color : #BEBEBE;
}
2022-06-06 21:30:34 +00:00
</ style >
< div id = " chpassbank " style = " display:none; position:absolute; top:50px; left:250px; " ></ div >
< ? php
2022-12-30 19:03:37 +00:00
$rz0 = '' ;
$rz1 = '' ;
$rz2 = '' ;
$rz3 = '' ;
$rz4 = '' ;
$rz5 = '' ;
$expbase = number_format ( $u -> stats [ 'levels' ][ 'exp' ], 0 , " , " , " " );
if ( $expbase - 1 == $u -> info [ 'exp' ] && $c [ 'nolevel' ]) {
2023-01-10 16:29:32 +00:00
//Проверяем блок опыта
2022-12-30 19:03:37 +00:00
$tlus = mysql_fetch_array (
mysql_query ( 'SELECT COUNT(*) FROM `users` WHERE `real` = 1 AND `level` = "' . $u -> info [ 'level' ] . '" LIMIT 1' )
);
if ( $tlus [ 0 ] < $u -> info [ 'level' ] * 10 ) {
$expbase = '<strike>' . $expbase . '</strike>' ;
}
2023-03-31 18:30:14 +00:00
$expbase = '(<a href="/exp" target="_blank">' . $expbase . '</a>)' ;
2022-12-30 19:03:37 +00:00
if ((( 1 + $u -> info [ 'level' ] * 10 ) - $tlus [ 0 ]) > 0 ) {
2023-01-10 16:29:32 +00:00
$expbase .= ' <u><a onMouseOver="top.hi(this,\'<b>Персонажи ' . $u -> info [ 'level' ] . ' уровня не получают опыт.</b><br>Для разблокировки не хватает <u>' . (( 1 + $u -> info [ 'level' ] * 10 ) - $tlus [ 0 ]) . ' персонажей</u> данного уровня.\',event,0,1,1,1,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();" style="cursor:help">[?]</a></u>' ;
2022-12-30 19:03:37 +00:00
}
} else {
2023-03-31 18:30:14 +00:00
$expbase = '(<a href="/exp" target="_blank">' . $expbase . '</a>)' ;
2022-12-30 19:03:37 +00:00
}
if ( $u -> info [ 'exp' ] == 12499 && $c [ 'infinity5level' ]) {
2023-03-31 18:30:14 +00:00
$trks5 = '<div align="center"><hr><font color=red>Для получения следующего уровня вам необходим <a target="_blank" href="/item/1204">Кристалл Вечности</a></font><hr></div>' ;
2022-12-30 19:03:37 +00:00
}
$repovo = $u -> rep [ 'rep3' ] - $u -> rep [ 'rep3_buy' ];
echo '
2022-06-06 21:30:34 +00:00
< table width = " 100% " border = " 0 " cellspacing = " 3 " cellpadding = " 0 " >
< tr >< td >& nbsp ; </ td ></ tr >
< tr >
< td height = " 15 " >
< small style = " font-size:12px; " >
< div style = " padding:5px 5px 0px 5px; " >
2023-01-10 16:29:32 +00:00
Опыт :& nbsp ; < span style = " float0:right " >< a href = " /exp " target = " _blank " > ' . number_format (
2022-12-30 19:03:37 +00:00
$u -> info [ 'exp' ], 0 , " , " , " "
) . '</a></span><br>' . $trks5 . '
2022-06-06 21:30:34 +00:00
' ;
2022-12-30 19:03:37 +00:00
if ( $u -> info [ 'expstopu' ] < 3 && $u -> info [ 'exp' ] == $c [ 'expstop' ]) {
echo '
2023-01-10 16:29:32 +00:00
Квест < b > 12 </ b > й :& nbsp ; < span style = " float0:right " >
< a href = " /quest " target = " _blank " >< b > ' . ($u->info[' expstopu '] + 1) . ' / 3 </ b ></ a > статия ' ;
2022-12-30 19:03:37 +00:00
echo ' < button style = " width:224px;margin-top:5px; " class = " btnnew " onclick = " location.href= \ '/main.php?inv&propusk=1 \ '; " >
2023-01-10 16:29:32 +00:00
Стоимость пропуска 600 Екр </ button > < br > ' ;
2022-12-30 19:03:37 +00:00
/*
takelevelplease
*/
}
echo '
2023-01-10 16:29:32 +00:00
Бои :& nbsp ; < span style = " float0:right " >< span title = " Побед: ' . number_format(
2022-12-30 19:03:37 +00:00
$u -> info [ 'win' ], 0 , " , " , " "
) . '"><b>' . number_format (
$u -> info [ 'win' ], 0 , " , " , " "
2023-01-10 16:29:32 +00:00
) . ' <img width="7" height="7" title="Побед: ' . number_format ( $u -> info [ 'win' ], 0 , " , " , " " ) . ' "
2023-03-31 18:30:14 +00:00
src = " //img.new-combats.tech/i/ico/wins.gif " style = " display:inline-block; " /></ b ></ span > & nbsp ; < span title = " Поражений: ' . number_format(
2022-12-30 19:03:37 +00:00
$u -> info [ 'lose' ], 0 , " , " , " "
) . '"><b>' . number_format (
$u -> info [ 'lose' ], 0 , " , " , " "
2023-01-10 16:29:32 +00:00
) . ' <img width="7" height="7" alt="Поражений: ' . number_format ( $u -> info [ 'lose' ], 0 , " , " , " " ) . ' "
2023-03-31 18:30:14 +00:00
src = " //img.new-combats.tech/i/ico/looses.gif " style = " display:inline-block; " /></ b ></ span > & nbsp ; < span title = " Ничьих: ' . number_format(
2022-12-30 19:03:37 +00:00
$u -> info [ 'nich' ], 0 , " , " , " "
) . '"><b>' . number_format (
$u -> info [ 'nich' ], 0 , " , " , " "
2023-01-10 16:29:32 +00:00
) . ' <img width="7" height="7" alt="Ничьих: ' . number_format ( $u -> info [ 'nich' ], 0 , " , " , " " ) . ' "
2023-03-31 18:30:14 +00:00
src = " //img.new-combats.tech/i/ico/draw.gif " style = " display:inline-block; " /></ b ></ span ></ span >< br />
2022-06-06 21:30:34 +00:00
</ div >< div style = " padding:0px 5px 5px 5px; " >
2023-01-10 16:29:32 +00:00
Деньги :& nbsp ; < b > ' . $u->info[' money '] . ' кр .</ b >< br />
Деньги :& nbsp ; < b style = " color:green " > ' . $u->info[' money2 '] . ' екр .</ b >< br />
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
Воинственность :& nbsp ; < b style = " color:green " > ' . $repovo . ' ед .</ b >< br />
2022-06-06 21:30:34 +00:00
' ;
2022-12-30 19:03:37 +00:00
if ( $u -> stats [ 'pbe' ] > 0 ) {
2023-03-31 18:30:14 +00:00
echo '<a href="/news/268/" target="_blank">Бонус покупателя: ' . $u -> stats [ 'pbe' ] . ' уровень</a>' ;
2022-12-30 19:03:37 +00:00
$nowby = mysql_fetch_array (
mysql_query (
'SELECT `good` FROM `pay_operation` WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `good` > 0 ORDER BY `good` DESC LIMIT 1'
)
);
if ( $u -> stats [ 'pbe' ] > 0 && date ( 'd.m.Y' ) != date ( 'd.m.Y' , $nowby [ 'good' ])) {
2023-01-10 16:29:32 +00:00
echo ' <font color="red"><br>(Совершите покупку Е К Р чтобы сохранить и увеличить бонус покупателя)</font>' ;
2022-12-30 19:03:37 +00:00
}
echo '<br>' ;
}
if ( $u -> info [ 'level' ] < 8 && $c [ 'zuby' ] == true ) {
2023-01-10 16:29:32 +00:00
echo 'Зубы: ' . $u -> zuby ( $u -> info [ 'money4' ]) . '<br>' ;
2022-12-30 19:03:37 +00:00
}
if ( $u -> info [ 'ability' ] > 0 || ( $u -> info [ 'skills' ] > 0 && $u -> info [ 'level' ] > 0 )) {
2023-01-10 16:29:32 +00:00
echo ' <a href="main.php?skills=1&side=1">+ Способности</a><br>' ;
2022-12-30 19:03:37 +00:00
}
if ( $_GET [ 'propusk' ] == 1 ) {
$usrdata = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `users` WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' ));
if ( $usrdata [ 'money2' ] >= 600 && $u -> info [ 'level' ] == 11 ) {
mysql_query ( 'UPDATE `users` SET `money2` = `money2` - 600 WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
mysql_query (
'UPDATE `stats` SET `exp`= 150000000, `expstopu` = 3 WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1'
);
2023-01-10 16:29:32 +00:00
$er8 = 'В с е прошло успешно!!!' ;
2022-12-30 19:03:37 +00:00
die ( '<script>top.frames[\'main\'].location = "main.php";</script>' );
} else {
2023-01-10 16:29:32 +00:00
$er8 = 'Недостаточно средств!!!' ;
2022-12-30 19:03:37 +00:00
}
}
2023-01-10 16:29:32 +00:00
//Получение уровня задания
2023-06-13 00:44:13 +00:00
if ( $u -> info [ 'level' ] >= 0 && $u -> info [ 'inTurnir' ] == 0 && $c [ 'bonuslevel' ] && ! isset ( $u -> info [ 'noreal' ]) && $c [ 'bonussocial' ]) {
2022-12-30 19:03:37 +00:00
/*
2023-01-10 16:29:32 +00:00
[ 1 ] Нужно докачаться на клоне до 1 уровня .
[ 2 ] - [ 3 ] - [ 4 ] Нужно подтвердить e - mail чтобы получить с о 2 по 4 уровень на выбор .
[ 5 ] - [ 6 ] Нужно подтвердить страницу ВКонтакте чтобы получить 5 или 6 уровень на выбор .
[ 7 ] Нужно привести 1 друга .
[ 8 ] Нужно привести 3 друзей и провести 3 хаота .
[ 9 ] Нужно привести 5 друзей и провести 50 хаотов .
[ 10 ] Нужно привести 7 друзей и провести 100 хаотов .
2022-12-30 19:03:37 +00:00
*/
$mxlvl = mysql_fetch_array (
mysql_query (
'SELECT `id`,`level` FROM `users` WHERE `real` = 1 AND `admin` = 0 AND `banned` = 0 ORDER BY `level` DESC LIMIT 1'
)
);
if ( isset ( $mxlvl [ 'id' ]) && $mxlvl [ 'level' ] > $u -> info [ 'level' ] + 1 ) {
$gd = 1 ;
$gb = 1 ;
$sl = $u -> info [ 'level' ];
$ml = $u -> info [ 'level' ] + 1 ;
//
if ( isset ( $_GET [ 'takelevelplease' ])) {
$er8 = '' ;
//
if ( $ml <= 1 ) {
2023-01-10 16:29:32 +00:00
$er8 = 'Качайтесь на клоне до 1 уровня.' ;
2022-12-30 19:03:37 +00:00
} elseif ( $ml <= 4 ) {
$mcf = mysql_fetch_array (
mysql_query (
'SELECT * FROM `mini_actions` WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `val` = "mailconfirm" AND `ok` > 0 LIMIT 1'
)
);
if ( ! isset ( $mcf [ 'id' ])) {
2023-01-10 16:29:32 +00:00
$er8 = 'Вы не подтвердили E-mail.' ;
2022-12-30 19:03:37 +00:00
} else {
if ( $ml == 2 ) {
mysql_query ( 'UPDATE `stats` SET `exp` = 420 WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
} elseif ( $ml == 3 ) {
mysql_query ( 'UPDATE `stats` SET `exp` = 1300 WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
} elseif ( $ml == 4 ) {
mysql_query ( 'UPDATE `stats` SET `exp` = 2500 WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
}
2023-01-10 16:29:32 +00:00
$er8 = 'Вы успешно получили ' . $ml . ' уровень!' ;
2022-12-30 19:03:37 +00:00
$u -> info [ 'level' ] ++ ;
$ml ++ ;
}
} elseif ( $ml <= 6 ) {
$mcf = mysql_fetch_array (
mysql_query (
'SELECT * FROM `mini_actions` WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND (`val` = "vkauth" OR `val` = "fbauth" OR `val` = "okauth") LIMIT 1'
)
);
if ( ! isset ( $mcf [ 'id' ])) {
2023-01-10 16:29:32 +00:00
$er8 = 'Вы не подтвердили страницу в социальной сети.' ;
2022-12-30 19:03:37 +00:00
} else {
$itmsv = mysql_fetch_array (
mysql_query (
'SELECT `id` FROM `items_users` WHERE `item_id` = 1204 AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 AND `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 1'
)
);
if ( $ml == 5 ) {
mysql_query ( 'UPDATE `stats` SET `exp` = 5000 WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
} elseif ( $ml == 6 ) {
mysql_query ( 'UPDATE `stats` SET `exp` = 12500 WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
}
if ( $ml == 6 && ! isset ( $itmsv [ 'id' ]) && $c [ 'infinity5level' ] == true ) {
2023-01-10 16:29:32 +00:00
$er8 = 'Требуется Кристалл Вечности!' ;
2022-12-30 19:03:37 +00:00
} else {
if ( $ml == 6 ) {
mysql_query (
' INSERT INTO `mini_actions` (
2022-06-06 21:30:34 +00:00
`uid` , `time` , `val` , `var`
) VALUES (
2022-12-30 19:03:37 +00:00
" ' . $u->info ['id'] . ' " , " ' . time() . ' " , " mbtnlvl6 " , " 0 "
) '
);
}
2023-01-10 16:29:32 +00:00
$er8 = 'Вы успешно получили ' . $ml . ' уровень!' ;
2022-12-30 19:03:37 +00:00
$u -> info [ 'level' ] ++ ;
$ml ++ ;
}
}
} elseif ( $ml <= 7 ) {
$tstlvl = mysql_fetch_array (
mysql_query (
'SELECT * FROM `mini_actions` WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `val` = "mbtnlvl6" LIMIT 1'
)
);
$btls [ 0 ] = $u -> info [ 'win' ];
if ( $btls [ 0 ] >= 50 ) {
//
mysql_query ( 'UPDATE `stats` SET `exp` = 30000 WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
//
mysql_query (
' INSERT INTO `mini_actions` (
2022-06-06 21:30:34 +00:00
`uid` , `time` , `val` , `var`
) VALUES (
2022-12-30 19:03:37 +00:00
" ' . $u->info ['id'] . ' " , " ' . time() . ' " , " mbtnlvl7 " , " 0 "
) '
);
2023-01-10 16:29:32 +00:00
$er8 = 'Вы успешно получили ' . $ml . ' уровень!' ;
2022-12-30 19:03:37 +00:00
$u -> info [ 'level' ] ++ ;
$ml ++ ;
} else {
2023-01-10 16:29:32 +00:00
$er8 = 'Вы не провели несколько боев (Осталось ' . ( 50 - $btls [ 0 ]) . ' побед).' ;
2022-12-30 19:03:37 +00:00
}
} elseif ( $ml <= 8 ) {
$tstlvl = mysql_fetch_array (
mysql_query (
'SELECT * FROM `mini_actions` WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `val` = "mbtnlvl7" LIMIT 1'
)
);
$refs = mysql_fetch_array (
mysql_query (
'SELECT COUNT(*) FROM `users` WHERE `level` >= 5 AND `timereg` > "' . ( 0 + $tstlvl [ 'time' ]) . '" AND `real` = 1 AND `host_reg` = "' . $u -> info [ 'id' ] . '" LIMIT 1'
)
);
$btls = mysql_fetch_array (
mysql_query (
'SELECT COUNT(*) FROM `battle` WHERE `time_start` > "' . ( 0 + $tstlvl [ 'time' ]) . '" AND `razdel` = 5 AND `id` IN (SELECT `battle_id` FROM `battle_last` WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `time` > "' . ( 0 + $tstlvl [ 'time' ]) . '") LIMIT 1'
)
);
//
if ( $refs [ 0 ] < 3 || $btls [ 0 ] < 3 ) {
2023-01-10 16:29:32 +00:00
$er8 = 'Вы не пригласили ' . ( 0 + $refs [ 0 ]) . '/3 друзей или не провели ' . ( 0 + $btls [ 0 ]) . '/3 хаота.' ;
2022-12-30 19:03:37 +00:00
} else {
//
mysql_query ( 'UPDATE `stats` SET `exp` = 300000 WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
//
mysql_query (
' INSERT INTO `mini_actions` (
2022-06-06 21:30:34 +00:00
`uid` , `time` , `val` , `var`
) VALUES (
2022-12-30 19:03:37 +00:00
" ' . $u->info ['id'] . ' " , " ' . time() . ' " , " mbtnlvl8 " , " 0 "
) '
);
2023-01-10 16:29:32 +00:00
$er8 = 'Вы успешно получили ' . $ml . ' уровень!' ;
2022-12-30 19:03:37 +00:00
$u -> info [ 'level' ] ++ ;
$ml ++ ;
}
} elseif ( $ml <= 9 ) {
2023-01-10 16:29:32 +00:00
$er8 = 'Вы не пригласили 5 друзей или не провели 50 хаотов.' ;
$er8 = 'Доступ закрыт!' ;
2022-12-30 19:03:37 +00:00
} elseif ( $ml <= 10 ) {
2023-01-10 16:29:32 +00:00
$er8 = 'Вы не пригласили 7 друзей или не провели 100 хаотов.' ;
$er8 = 'Доступ закрыт!' ;
2022-12-30 19:03:37 +00:00
} else {
2023-01-10 16:29:32 +00:00
$er8 = 'Что-то тут не так...' ;
$er8 = 'Доступ закрыт!' ;
2022-12-30 19:03:37 +00:00
}
//
if ( $sl != $u -> info [ 'level' ]) {
die ( '<script>location.href="/main.php?inv";</script>' );
}
if ( isset ( $mxlvl [ 'id' ]) && ( $mxlvl [ 'level' ] > $ml + 1 || $u -> info [ 'admin' ] > 0 )) {
//
} else {
if ( $sl != $u -> info [ 'level' ]) {
$gd = 0 ;
}
}
}
//
if ( $ml <= 1 ) {
2023-01-10 16:29:32 +00:00
$zd = '<font color=red>Нужно докачаться на клоне до 1 уровня.</font>' ;
2022-12-30 19:03:37 +00:00
$gb = 1 ;
} elseif ( $ml <= 4 ) {
2023-01-10 16:29:32 +00:00
$zd = 'Нужно подтвердить E-mail, чтобы получить 2-4 уровень.' ;
2022-12-30 19:03:37 +00:00
$gb = 1 ;
} elseif ( $ml <= 6 ) {
2023-01-10 16:29:32 +00:00
$zd = 'Нужно подтвердить страницу в социальной сети, чтобы получить 5-6 уровень.' ;
2022-12-30 19:03:37 +00:00
$gb = 1 ;
} elseif ( $ml <= 7 ) {
2023-01-10 16:29:32 +00:00
$zd = 'Нужно <!--привести одного друга по реферальной ссылке и -->выиграть 50 боев, чтобы получить 7 уровень.' ;
2022-12-30 19:03:37 +00:00
$gb = 1 ;
} elseif ( $ml <= 8 ) {
2023-01-10 16:29:32 +00:00
$zd = 'Нужно привести 3 друзей по реферальной ссылке и провести 3 хаотичных поединка, чтобы получить 8 уровень.' ;
2022-12-30 19:03:37 +00:00
$gb = 1 ;
} elseif ( $ml <= 9 ) {
2023-01-10 16:29:32 +00:00
$zd = 'Нужно привести 5 друзей по реферальной ссылке и провести 50 хаотичных поединков, чтобы получить 9 уровень.' ;
2022-12-30 19:03:37 +00:00
$gb = 1 ;
} elseif ( $ml <= 10 ) {
2023-01-10 16:29:32 +00:00
$zd = 'Нужно привести 7 друзей по реферальной ссылке и провести 100 хаотичных поединков, чтобы получить 10 уровень.' ;
2022-12-30 19:03:37 +00:00
$gb = 1 ;
} else {
$zd = '' ;
$gb = 0 ;
}
//
if ( $gd == 1 ) {
//
if ( $zd != '' ) {
2023-01-10 16:29:32 +00:00
echo '<hr><b><center>Необходимо выполнить задание:</center></b><div align="center" style="border:1px solid #aeaeae;background-color:#FFF;margin-top:3px;padding:4px;">' . $zd . '</div>' ;
2022-12-30 19:03:37 +00:00
} else {
echo '<hr>' ;
}
if ( $er8 != '' ) {
echo '<div style="padding:3px;" align="center"><font color=red>' . $er8 . '</font></div>' ;
}
//
if ( $gb == 1 && $ml > 1 ) {
2023-01-10 16:29:32 +00:00
//Получаем
echo '<button style="width:224px;margin-top:5px;" class="btnnew" onclick="location.href=\'/main.php?inv&takelevelplease=1\';">Получить ' . ( $u -> info [ 'level' ] + 1 ) . ' уровень</button></div>' ;
2022-12-30 19:03:37 +00:00
}
//
}
}
}
2023-01-10 16:29:32 +00:00
//Бонус за мыло, контакт
2022-12-30 19:03:37 +00:00
if ( ! isset ( $u -> info [ 'noreal' ]) && $c [ 'bonussocial' ] == true ) {
$mcf = mysql_fetch_array (
mysql_query (
'SELECT * FROM `mini_actions` WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `val` = "mailconfirm" LIMIT 1'
)
);
if (( isset ( $mcf [ 'id' ]) && $mcf [ 'ok' ] == 0 ) || ! isset ( $mcf [ 'id' ])) {
if ( isset ( $_GET [ 'confmail' ])) {
//
$gd = 0 ;
2023-01-10 16:29:32 +00:00
$zdml = 3600 ; //час
2022-12-30 19:03:37 +00:00
if ( isset ( $mcf [ 'id' ]) && $mcf [ 'time' ] > time () - $zdml ) {
2023-01-10 16:29:32 +00:00
echo '<hr><center><font color="red">Нельзя подтверждать эл.почту так часто. Осталось ' . $u -> timeOut (
2022-12-30 19:03:37 +00:00
$mcf [ 'time' ] + $zdml - time ()
) . '</font></center>' ;
$gd = 1 ;
} elseif ( ! preg_match (
'#^[a-z0-9.!\#$%&\'*+-/=?^_`{|}~]+@([0-9.]+|([^\s]+\.+[a-z]{2,6}))$#si' , $_GET [ 'confmail' ]
)) {
2023-01-10 16:29:32 +00:00
echo '<hr><center><font color="red">Вы указали явно ошибочный E-mail.</font></center>' ;
2022-12-30 19:03:37 +00:00
$gd = 1 ;
}
if ( $gd == 0 ) {
if ( isset ( $mcf [ 'id' ])) {
mysql_query (
'UPDATE `mini_actions` SET `time` = "' . time () . '",`var` = "' . mysql_real_escape_string (
$_GET [ 'confmail' ]
) . '" WHERE `id` = "' . $mcf [ 'id' ] . '" LIMIT 1'
);
} else {
mysql_query (
' INSERT INTO `mini_actions` ( `uid` , `time` , `val` , `var` , `ok` ) VALUES (
" ' . $u->info ['id'] . ' " , " ' . time() . ' " , " mailconfirm " , " ' . mysql_real_escape_string(
$_GET [ 'confmail' ]
) . ' " , " 0 "
) '
);
}
function sendmail ( $message , $keymd5 , $mail )
{
global $u ;
//
$md5mail = md5 ( $keymd5 . '+' . $mail );
//
2023-01-10 16:29:32 +00:00
$msgtxt = 'Для подтверждения вашего E-mail у персонажа <b>' . $u -> info [ 'login' ] . '</b> перейдите по ссылке:' ;
2023-03-31 18:30:14 +00:00
$msgtxt .= ' <a href="/mail/key=' . $md5mail . '&mail=' . $mail . '">Нажмите тут</a> (/mail/key=' . $md5mail . '&mail=' . $mail . ')' ;
2023-01-10 16:29:32 +00:00
$msgtxt .= '<br>Переходя по ссылке, вы подтверждаете свое желание получать игровые новости.' ;
2023-03-31 18:30:14 +00:00
$msgtxt .= '<br>Если вы не имеете отношения к нашей игре и не хотите получать письма, тогда перейдите по этой ссылке: <a href="/mail/key=' . $md5mail . '&mail=' . $mail . '&cancel">Нажмите тут</a> (/mail/key=' . $md5mail . '&mail=' . $mail . '&cancel)<br><br>- - - - - - -<br><br>С уважением,<br>Администрация Легендарного Бойцовского Клуба' ;
2022-12-30 19:03:37 +00:00
//
$headers = " MIME-Version: 1.0 \r \n " ;
2023-01-10 17:26:14 +00:00
$headers .= " Content-type: text/html; charset=utf-8 \r \n " ;
2023-01-10 16:29:32 +00:00
$headers .= " From: Старый Бойцовский Клуб \r \n " ;
2022-12-30 19:03:37 +00:00
$to = $mail ;
//
2023-01-10 16:29:32 +00:00
$subject = 'Бойцовский Клуб: ' . $u -> info [ 'login' ] . ' - Подтверждение вашей эл.почты' ;
2022-12-30 19:03:37 +00:00
//
if ( mail ( $to , $subject , $msgtxt , $headers ) == true ) {
return true ;
} else {
return false ;
}
}
//
$mcf = mysql_fetch_array (
mysql_query (
'SELECT * FROM `mini_actions` WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `val` = "mailconfirm" LIMIT 1'
)
);
//
sendmail ( '' , 'mailconf*15' , $mcf [ 'var' ]);
//
2023-01-10 16:29:32 +00:00
echo '<hr><center><font color="red">Н а ваш E-mail отправлено письмо.</font></center>' ;
2022-12-30 19:03:37 +00:00
//
}
}
2023-01-10 16:29:32 +00:00
$mcff = 'Подтвердить E-mail за 1 екр.' ;
2022-12-30 19:03:37 +00:00
if ( isset ( $mcf [ 'id' ])) {
2023-01-10 16:29:32 +00:00
$mcff = '<b>' . $mcf [ 'var' ] . '</b><br><font color="grey"><small>(Н а этот адрес отправлено письмо)</small></font>' ;
2022-12-30 19:03:37 +00:00
}
2023-03-31 18:30:14 +00:00
echo '<div align="center"><button style="width:224px;margin-top:5px;" class="btnnew" onclick="top.mailConf();"><img src="//img.new-combats.tech/mini_mail.png" height="13" width="13"> ' . $mcff . '</button></div>' ;
2022-12-30 19:03:37 +00:00
}
}
echo '</div>' ;
$prt = explode ( '|' , $u -> info [ 'prmenu' ]);
if ( isset ( $_GET [ 'up' ])) {
$i = 0 ;
if ( isset ( $prt [ $_GET [ 'up' ]], $prt [ $_GET [ 'up' ] - 1 ])) {
$prt1 = $prt [ intval ( $_GET [ 'up' ])];
$prt [ $_GET [ 'up' ]] = $prt [ $_GET [ 'up' ] - 1 ];
$prt [ $_GET [ 'up' ] - 1 ] = $prt1 ;
$prtNew = implode ( '|' , $prt );
$u -> info [ 'prmenu' ] = $prtNew ;
mysql_query (
'UPDATE `stats` SET `prmenu`="' . mysql_real_escape_string (
$u -> info [ 'prmenu' ]
) . '" WHERE `id`="' . $u -> info [ 'id' ] . '" LIMIT 1'
);
$prt = explode ( '|' , $u -> info [ 'prmenu' ]);
}
} elseif ( isset ( $_GET [ 'down' ])) {
$i = 0 ;
if ( isset ( $prt [ $_GET [ 'down' ]], $prt [ $_GET [ 'down' ] + 1 ])) {
$prt1 = $prt [ intval ( $_GET [ 'down' ])];
$prt [ $_GET [ 'down' ]] = $prt [ $_GET [ 'down' ] + 1 ];
$prt [ $_GET [ 'down' ] + 1 ] = $prt1 ;
$prtNew = implode ( '|' , $prt );
$u -> info [ 'prmenu' ] = $prtNew ;
mysql_query (
'UPDATE `stats` SET `prmenu`="' . mysql_real_escape_string (
$u -> info [ 'prmenu' ]
) . '" WHERE `id`="' . $u -> info [ 'id' ] . '" LIMIT 1'
);
$prt = explode ( '|' , $u -> info [ 'prmenu' ]);
}
}
$i = 0 ;
while ( $i < count ( $prt )) {
$prtpos [ $prt [ $i ]] = $i ;
$i ++ ;
}
function intSpan ( $val )
{
$val = explode ( '>' , $val );
$val = explode ( '<' , $val [ 1 ]);
$val = $val [ 0 ];
return $val ;
}
2023-01-10 16:29:32 +00:00
$rz0 = '<script>getLine(' . $prtpos [ 0 ] . ',"Характеристики ","0","0","' . $uShow [ 0 ] . '",1);</script>' ;
2022-12-30 19:03:37 +00:00
$rz0 .= '<font id="rz0">' ;
if ( $uShow [ 0 ] == 1 ) {
$i = 1 ;
while ( $i <= 10 ) {
$u -> stats [ 's' . $i ] = 0 + $u -> stats [ 's' . $i ];
$i ++ ;
}
$rz0 .= ' < div style = " display:none " id = " lnk0 " >
2023-01-10 16:29:32 +00:00
Сила : < b > ' . $u->stats[' s1 '] . ' </ b >< br />
Ловкость :& nbsp ; < b > ' . $u->stats[' s2 '] . ' </ b >< br />
Интуиция :& nbsp ; < b > ' . $u->stats[' s3 '] . ' </ b >< br />
Выносливость :& nbsp ; < b > ' . $u->stats[' s4 '] . ' </ b >< br />
2022-06-06 21:30:34 +00:00
' ;
2022-12-30 19:03:37 +00:00
if ( $u -> info [ 'level' ] >= 4 || $u -> stats [ 'n5' ] != 0 ) {
$rz0 .= '
2023-01-10 16:29:32 +00:00
Интеллект :& nbsp ; < b > ' . $u->stats[' s5 '] . ' </ b >< br />
2022-06-06 21:30:34 +00:00
' ;
2022-12-30 19:03:37 +00:00
}
if ( $u -> info [ 'level' ] >= 7 || ( @ isset ( $u -> stats [ 'n6' ]) && @ $u -> stats [ 'n6' ] > 0 )) {
$rz0 .= '
2023-01-10 16:29:32 +00:00
Мудрость :& nbsp ; < b > ' . @$u->stats[' s6 '] . ' </ b >< br />
2022-06-06 21:30:34 +00:00
' ;
2022-12-30 19:03:37 +00:00
}
if ( $u -> info [ 'level' ] >= 10 || @ $u -> stats [ 's7' ] > 0 ) {
$rz0 .= '
2023-01-10 16:29:32 +00:00
Духовность :& nbsp ; < b > ' . @$u->stats[' s7 '] . ' </ b >< br />
2022-06-06 21:30:34 +00:00
' ;
2022-12-30 19:03:37 +00:00
}
}
$rz0 .= '</font></div>' ;
2023-01-10 16:29:32 +00:00
$rz1 = '<script>getLine(' . $prtpos [ 1 ] . ',"Модификаторы ","0","0",' . $uShow [ 1 ] . ',2);</script>' ;
2022-12-30 19:03:37 +00:00
if ( $uShow [ 1 ] == 1 ) {
//if( $u->info['admin'] > 0 ) {
$rz1 .= '<div style="display:none" id="lnk1">' ;
2023-01-10 16:29:32 +00:00
$rz1 .= 'Урон: ' . $u -> inform ( 'yrontest' ) . '' ;
$rz1 .= '<br><font color=maroon>Крит. урон: ' . $u -> inform ( 'yrontest-krit' ) . '</font>' ;
2022-12-30 19:03:37 +00:00
$rz1 .= '
2022-06-06 21:30:34 +00:00
< br >
2023-01-10 16:29:32 +00:00
< span > Мф . крит . удара : ' . $u->inform(' m1 ') . ' ' ;
2022-12-30 19:03:37 +00:00
if ( intSpan ( $u -> inform ( 'm3' )) != 0 ) {
$rz1 .= '
2022-06-06 21:30:34 +00:00
</ span >< br >
< nobr >
2023-01-10 16:29:32 +00:00
< span > Мф . мощности крит . удара : ' . $u->inform(' m3 ') . ' ' ;
2022-12-30 19:03:37 +00:00
}
if ( intSpan ( $u -> inform ( 'antm3' )) != 0 ) {
$rz1 .= '
2022-06-06 21:30:34 +00:00
</ span >< br >
< nobr >
2023-01-10 16:29:32 +00:00
< span > Мф . против мощности крита : ' . $u->inform(' antm3 ') . ' ' ;
2022-12-30 19:03:37 +00:00
}
$rz1 .= '
2022-06-06 21:30:34 +00:00
</ span ></ nobr >< br />
2023-01-10 16:29:32 +00:00
< span > Мф . против крит . удара : ' . $u->inform(' m2 ') . ' ' ;
2022-12-30 19:03:37 +00:00
$rz1 .= ' </ span >< br />
2023-01-10 16:29:32 +00:00
< span > Мф . увертывания : ' . $u->inform(' m4 ') . ' ' ;
2022-12-30 19:03:37 +00:00
$rz1 .= ' </ span >< br >
2023-01-10 16:29:32 +00:00
< nobr >< span > Мф . против увертывания : ' . $u->inform(' m5 ') . ' ' ;
2022-12-30 19:03:37 +00:00
$rz1 .= ' </ span ></ nobr >< br >
2023-01-10 16:29:32 +00:00
< span > Мф . пробоя брони : ' . $u->inform(' m9 ') . ' ' ;
2022-12-30 19:03:37 +00:00
$rz1 .= ' </ span >< br >
2023-01-10 16:29:32 +00:00
< span > Мф . контрудара : ' . $u->inform(' m6 ') . ' ' ;
2022-12-30 19:03:37 +00:00
if ( intSpan ( $u -> inform ( 'm7' )) != 0 ) {
$rz1 .= '
2022-06-06 21:30:34 +00:00
</ span >< br >
2023-01-10 16:29:32 +00:00
< span > Мф . парирования : ' . $u->inform(' m7 ') . ' ' ;
2022-12-30 19:03:37 +00:00
}
if ( intSpan ( $u -> inform ( 'm8' )) != 0 ) {
$rz1 .= ' </ span >< br />
2023-01-10 16:29:32 +00:00
< span > Мф . блока щитом : ' . $u->inform(' m8 ') . ' ' ;
2022-12-30 19:03:37 +00:00
}
if ( intSpan ( $u -> inform ( 'za' )) != 0 ) {
$rz1 .= ' </ span >< br />
2023-01-10 16:29:32 +00:00
< span > Защита от урона : ' . $u->inform(' za ') . ' ( ' . round($u->zago($u->stats[' za '])) . ' % ) ' ;
2022-12-30 19:03:37 +00:00
}
if ( intSpan ( $u -> inform ( 'zm' )) != 0 ) {
$rz1 .= ' </ span >< br />
2023-01-10 16:29:32 +00:00
< span > Защита от магии : ' . $u->inform(' zma ') . ' ( ' . round($u->zago($u->stats[' zma '])) . ' % ) ' ;
2022-12-30 19:03:37 +00:00
}
if ( intSpan ( $u -> inform ( 'zmproc' )) != 0 ) {
$rz1 .= ' </ span >< br />
2023-01-10 16:29:32 +00:00
< span > Блокировка Магического Урона : ' . $u->inform(' zmproc ') . ' % ' ;
2022-12-30 19:03:37 +00:00
}
if ( intSpan ( $u -> inform ( 'zaproc' )) != 0 ) {
$rz1 .= ' </ span >< br />
2023-01-10 16:29:32 +00:00
< span > Блокировка Физического Урона : ' . $u->inform(' zaproc ') . ' % ' ;
2022-12-30 19:03:37 +00:00
}
$rz1 .= '</span>' ;
$rz1 .= '</nobr></div>' ;
}
2023-01-10 16:29:32 +00:00
$rz2 = '<script>getLine(' . $prtpos [ 2 ] . ',"Броня ","0","0",' . $uShow [ 2 ] . ',3);</script>' ;
2022-12-30 19:03:37 +00:00
if ( $uShow [ 2 ] == 1 ) {
$rz2 .= ' < div style = " display:none " id = " lnk2 " >
2023-01-10 16:29:32 +00:00
Броня головы : ' . $u->stats[' mib1 '] . ' - ' . $u->stats[' mab1 '] . ' ( ' . ($u->stats[' mib1 ']) . ' + d ' . ($u->stats[' mab1 '] - ($u->stats[' mib1 ']) + 1) . ' ) < br />
Броня груди : ' . $u->stats[' mib2 '] . ' - ' . $u->stats[' mab2 '] . ' ( ' . ($u->stats[' mib2 ']) . ' + d ' . ($u->stats[' mab2 '] - ($u->stats[' mib2 ']) + 1) . ' ) < br />
Броня живота : ' . $u->stats[' mib2 '] . ' - ' . $u->stats[' mab2 '] . ' ( ' . ($u->stats[' mib2 ']) . ' + d ' . ($u->stats[' mab2 '] - ($u->stats[' mib2 ']) + 1) . ' ) < br />
Броня пояса : ' . $u->stats[' mib3 '] . ' - ' . $u->stats[' mab3 '] . ' ( ' . ($u->stats[' mib3 ']) . ' + d ' . ($u->stats[' mab3 '] - ($u->stats[' mib3 ']) + 1) . ' ) < br />
Броня ног : ' . $u->stats[' mib4 '] . ' - ' . $u->stats[' mab4 '] . ' ( ' . ($u->stats[' mib4 ']) . ' + d ' . ($u->stats[' mab4 '] - ($u->stats[' mib4 ']) + 1) . ' ) < br /></ div > ' ;
2022-12-30 19:03:37 +00:00
}
2023-01-10 16:29:32 +00:00
$rz3 = '<script>getLine(' . $prtpos [ 3 ] . ',"Мощность ","0","0",' . $uShow [ 3 ] . ',4);</script>' ;
2022-12-30 19:03:37 +00:00
if ( $uShow [ 3 ] == 1 ) {
$rz3 .= '<div style="display:none" id="lnk3">' ;
$i = 1 ;
2023-01-10 16:29:32 +00:00
$rz3 .= ucfirst ( str_replace ( 'Мф. мощности' , 'Мощность ' , $u -> is [ 'm10' ] . ': ' ));
2022-12-30 19:03:37 +00:00
if ( intSpan ( $u -> inform ( 'm10' )) > 0 ) {
$rz3 .= '+' ;
}
$rz3 .= $u -> inform ( 'm10' ) . '%<br>' ;
while ( $i <= 4 ) {
if ( intSpan ( $u -> inform ( 'pa' . $i )) != 0 ) {
2023-01-10 16:29:32 +00:00
$rz3 .= ucfirst ( str_replace ( 'Мф. мощности' , 'Мощность ' , $u -> is [ 'pa' . $i ] . ': ' ));
2022-12-30 19:03:37 +00:00
if ( intSpan ( $u -> inform ( 'pa' . $i )) > 0 ) {
$rz3 .= '+' ;
}
$rz3 .= $u -> inform ( 'pa' . $i ) . '%<br>' ;
}
$i ++ ;
}
$i = 1 ;
while ( $i <= 7 ) {
if ( intSpan ( $u -> inform ( 'pm' . $i )) != 0 ) {
2023-01-10 16:29:32 +00:00
$rz3 .= ucfirst ( str_replace ( 'Мф. мощности ' , 'Мощность ' , $u -> is [ 'pm' . $i ] . ': ' ));
2022-12-30 19:03:37 +00:00
if ( intSpan ( $u -> inform ( 'pm' . $i )) > 0 ) {
$rz3 .= '+' ;
}
$rz3 .= $u -> inform ( 'pm' . $i ) . '%<br>' ;
}
$i ++ ;
}
$rz3 .= '</div>' ;
}
2023-01-10 16:29:32 +00:00
$zi = [ //Предметы влияющие на зоны
2022-12-30 19:03:37 +00:00
'n' => [
2023-01-10 16:29:32 +00:00
'' , 'голова' , 'грудь' , 'живот' , 'пояс' , 'ноги' ,
2022-12-30 19:03:37 +00:00
],
2023-01-10 16:29:32 +00:00
1 => [ 1 , 8 , 9 , 52 ], //голова
2 => [ 4 , 5 , 6 ], //грудь
3 => [ 2 , 4 , 5 , 6 , 13 ], //живот
4 => [ 7 , 16 , 10 , 11 , 12 ], //пояс
5 => [ 17 ], //ноги
2022-12-30 19:03:37 +00:00
];
2023-01-10 16:29:32 +00:00
$rz4 = '<script>getLine(' . $prtpos [ 4 ] . ',"Кнопки ","0","0",' . $uShow [ 4 ] . ',5);</script>' ;
2022-12-30 19:03:37 +00:00
if ( $uShow [ 4 ] == 1 ) {
$rz4 .= '<div style="display:none" id="lnk4"><center style="padding:5px;">' ;
2023-01-10 16:29:32 +00:00
$rz4 .= '<input class="btn" style="padding:3px 15px 3px 15px;" type="button" name="snatvso" value="Снять всё" onclick="top.frames[\'main\'].location=\'main.php?inv=1&remitem&otdel=' . $_GET [ 'otdel' ] . ' \ ' ; "
2022-06-06 21:30:34 +00:00
style = " font-weight:bold; " />
& nbsp ; ' ;
2022-12-30 19:03:37 +00:00
$hgo = $u -> testHome ();
if ( ! isset ( $hgo [ 'id' ])) {
2023-01-10 16:29:32 +00:00
$rz4 .= '<input class="btn" style="padding:3px 15px 3px 15px;" type="button" value="Возврат" onclick="top.frames[\'main\'].location=\'main.php?homeworld&rnd=' . $code . '\';" style="font-weight:bold;width: 90px" />' ;
2022-12-30 19:03:37 +00:00
}
unset ( $hgo );
$rz4 .= '</center>' ;
$rz4 .= '</div>' ;
}
2023-01-10 16:29:32 +00:00
$rz5 = '<script>getLine(' . $prtpos [ 5 ] . ',"Комплекты <a href=\"#\" onClick=\"save_compl();\">запомнить</a> ","0","0",' . $uShow [ 5 ] . ',6);</script>' ;
2022-12-30 19:03:37 +00:00
if ( $uShow [ 5 ] == 1 ) {
$rz5 .= '<div style="display:none" id="lnk5">' ;
$sp = mysql_query ( 'SELECT * FROM `save_com` WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `delete` = "0" LIMIT 10' );
while ( $pl = mysql_fetch_array ( $sp )) {
2023-06-11 11:45:36 +00:00
$rz5 .= '<a href="?inv=1&delc1=' . $pl [ 'id' ] . '&otdel=' . (( int ) $_GET [ 'otdel' ]) . '&rnd=' . $code . '"><img src="' . \Core\Config :: img () . '/i/close2.gif" title="Удалить комплект" width="9" height="9"></a> <small><a href="?inv=1&usec1=' . $pl [ 'id' ] . '&otdel=' . (( int ) $_GET [ 'otdel' ]) . '&rnd=' . $code . '">Надеть "' . $pl [ 'name' ] . '"</a></small><br>' ;
2022-12-30 19:03:37 +00:00
}
$rz5 .= '</div>' ;
}
2023-01-10 16:29:32 +00:00
$rz6 = '<script>getLine(' . $prtpos [ 6 ] . ',"Приемы <a href=\"/main.php?skills=1&rz=4&rnd=' . $code . '\">настроить</a> ","0","0",' . $uShow [ 6 ] . ',7);</script>' ;
2022-12-30 19:03:37 +00:00
if ( $uShow [ 6 ] == 1 ) {
2023-01-10 16:29:32 +00:00
$rz6 .= '<div style="display:none" id="lnk6">' ; //возможно 5
2022-12-30 19:03:37 +00:00
$sp = mysql_query ( 'SELECT * FROM `complects_priem` WHERE `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 10' );
$rz6 .= '<small>' ;
while ( $pl = mysql_fetch_array ( $sp )) {
2023-01-10 16:29:32 +00:00
$rz6 .= '<a onclick="if(confirm(\'Удалить набор ?\')){location=\'main.php?inv=1&otdel=' . round (
2022-12-30 19:03:37 +00:00
( int ) $_GET [ 'otdel' ]
2023-06-11 11:45:36 +00:00
) . '&delcop=' . $pl [ 'id' ] . '\'}" href="javascript:void(0)"><img src="' . \Core\Config :: img () . '/i/close2.gif" width="9" height="9"></a> <a href="main.php?inv=1&otdel=' . round (
2022-12-30 19:03:37 +00:00
( int ) $_GET [ 'otdel' ]
2023-01-10 16:29:32 +00:00
) . '&usecopr=' . $pl [ 'id' ] . '">Использовать "' . $pl [ 'name' ] . '"</a><br>' ;
2022-12-30 19:03:37 +00:00
}
$rz6 .= '</small>' ;
2023-01-10 16:29:32 +00:00
$rz6 .= '</div>' ; //возможно 5
2022-12-30 19:03:37 +00:00
}
2022-06-06 21:30:34 +00:00
$i = 0 ;
2022-12-30 19:03:37 +00:00
while ( $i < count ( $prt )) {
if ( isset ( $ { 'rz' . $prt [ $i ]})) {
echo $ { 'rz' . $prt [ $i ]};
}
$i ++ ;
2022-06-06 21:30:34 +00:00
}
2022-12-30 19:03:37 +00:00
//
2022-06-06 21:30:34 +00:00
?>
2022-12-30 19:03:37 +00:00
< script >
< ? php
$i = 0 ;
while ( $i < count ( $uShow )) {
if ( isset ( $uShow [ $i ]) && $uShow [ $i ] == 1 ) {
echo '$("#lnk' . $i . '").slideToggle();' ;
}
$i ++ ;
}
?>
2022-06-06 21:30:34 +00:00
</ script >
</ td >
</ tr >
2022-12-30 19:03:37 +00:00
</ table >