2022-12-30 19:03:37 +00:00
< ? php
2023-12-01 21:27:45 +00:00
2024-05-15 13:42:28 +00:00
use Core\Config ;
2023-12-01 21:27:45 +00:00
use Helper\Conversion ;
2022-12-30 19:03:37 +00:00
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
}
2024-01-05 22:14:35 +00:00
$rz0 = '' ;
$rz1 = '' ;
$rz2 = '' ;
$rz3 = '' ;
$rz4 = '' ;
$rz5 = '' ;
$expbase = number_format ( $u -> stats [ 'levels' ][ 'exp' ], 0 , " , " , " " );
$expbase = '(<a href="/exp" target="_blank">' . $expbase . '</a>)' ;
$repovo = $u -> rep [ 'rep3' ] - $u -> rep [ 'rep3_buy' ];
2022-06-06 21:30:34 +00:00
?>
2024-01-05 22:14:35 +00:00
< style >
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 ;
}
2024-01-05 22:14:35 +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;*/
background : url ( //img.new-combats.tech/i/back.gif) 0 2px;
}
. mroinv img {
display : inline - block ;
border : 0 ;
padding - top : 3 px ;
padding - left : 1 px ;
}
. dot {
display : block ;
padding - bottom : 2 px ;
text - decoration : none ; /* Убираем подчеркивание */
border - bottom : 1 px dotted #080808; /* Добавляем свою линию */
cursor : pointer ;
}
. dot : hover {
border - bottom : 1 px dotted #080808; /* Добавляем свою линию */
background - color : #BEBEBE;
}
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 ) {
2024-01-05 22:14:35 +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>' ;
if ( o === 0 || 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>' ;
2024-01-05 22:14:35 +00:00
if ( id === 0 || 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>' ;
2024-01-05 22:14:35 +00:00
if ( id === 6 || 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 ) {
2024-01-05 22:14:35 +00:00
const block = document . getElementById ( 'block_' + id );
2022-12-30 19:03:37 +00:00
block . style . display = 'block' ;
}
function hiddenDiv ( id ) {
2024-01-05 22:14:35 +00:00
const block = document . getElementById ( 'block_' + id );
2022-12-30 19:03:37 +00:00
block . style . display = 'none' ;
}
function save_com_can () {
2024-01-05 22:14:35 +00:00
const ddtpsBankDiv = document . getElementById ( 'chpassbank' );
if ( ddtpsBankDiv ) {
2022-12-30 19:03:37 +00:00
ddtpsBankDiv . style . display = 'none' ;
ddtpsBankDiv . innerHTML = '' ;
}
}
function save_compl () {
2024-01-05 22:14:35 +00:00
const 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>' ;
2024-01-05 22:14:35 +00:00
const ddtpsBankDiv = document . getElementById ( 'chpassbank' );
if ( ddtpsBankDiv ) {
2022-12-30 19:03:37 +00:00
ddtpsBankDiv . style . display = '' ;
ddtpsBankDiv . innerHTML = ddtpswBank ;
}
}
function za_block ( id ) {
2024-01-05 22:14:35 +00:00
if ( $ ( '#za_block_' + id ) . css ( 'display' ) === 'none' ) {
2022-12-30 19:03:37 +00:00
$ ( '#za_block_' + id ) . css ( 'display' , '' );
} else {
$ ( '#za_block_' + id ) . css ( 'display' , 'none' );
}
}
2022-06-06 21:30:34 +00:00
</ script >
2022-12-30 19:03:37 +00:00
2022-06-06 21:30:34 +00:00
< div id = " chpassbank " style = " display:none; position:absolute; top:50px; left:250px; " ></ div >
2024-01-05 22:14:35 +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 0 5px; " >
Опыт :& nbsp ;
< span style = " float:right " >
< a href = " /exp " target = " _blank " >
< ? = number_format ( $u -> info [ 'exp' ], 0 , " , " , " " ) ?>
</ a >
</ span >< br > < ? = $trks5 ?>
< ? php
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 > статия ' ;
2024-01-05 22:14:35 +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 > ' ;
2024-01-05 22:14:35 +00:00
}
echo '
2023-01-10 16:29:32 +00:00
Бои :& nbsp ; < span style = " float0:right " >< span title = " Побед: ' . number_format(
2024-01-05 22:14:35 +00:00
$u -> info [ 'win' ], 0 , " , " , " "
) . '"><b>' . number_format (
$u -> info [ 'win' ], 0 , " , " , " "
) . ' <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(
2024-01-05 22:14:35 +00:00
$u -> info [ 'lose' ], 0 , " , " , " "
) . '"><b>' . number_format (
$u -> info [ 'lose' ], 0 , " , " , " "
) . ' <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(
2024-01-05 22:14:35 +00:00
$u -> info [ 'nich' ], 0 , " , " , " "
) . '"><b>' . number_format (
$u -> info [ 'nich' ], 0 , " , " , " "
) . ' <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
' ;
2024-01-05 22:14:35 +00:00
if ( $u -> stats [ 'pbe' ] > 0 ) {
echo '<a href="/news/268/" target="_blank">Бонус покупателя: ' . $u -> stats [ 'pbe' ] . ' уровень</a>' ;
$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' ])) {
echo ' <font color="red"><br>(Совершите покупку Е К Р чтобы сохранить и увеличить бонус покупателя)</font>' ;
}
echo '<br>' ;
2022-12-30 19:03:37 +00:00
}
2024-01-05 22:14:35 +00:00
if ( $u -> info [ 'ability' ] > 0 || ( $u -> info [ 'skills' ] > 0 && $u -> info [ 'level' ] > 0 )) {
echo ' <a href="main.php?skills=1&side=1">+ Способности</a><br>' ;
2022-12-30 19:03:37 +00:00
}
2024-01-05 22:14:35 +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' );
2022-12-30 19:03:37 +00:00
mysql_query (
2024-01-05 22:14:35 +00:00
'UPDATE `stats` SET `exp`= 150000000, `expstopu` = 3 WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1'
2022-12-30 19:03:37 +00:00
);
2024-01-05 22:14:35 +00:00
$er8 = 'В с е прошло успешно!!!' ;
die ( '<script>top.frames[\'main\'].location = "main.php";</script>' );
} else {
$er8 = 'Недостаточно средств!!!' ;
2022-12-30 19:03:37 +00:00
}
}
2024-01-05 22:14:35 +00:00
//Получение уровня задания
if ( $u -> info [ 'level' ] >= 0 && $u -> info [ 'inTurnir' ] == 0 && $c [ 'bonuslevel' ] && ! isset ( $u -> info [ 'noreal' ]) && $c [ 'bonussocial' ]) {
/*
[ 1 ] Нужно докачаться на клоне до 1 уровня .
[ 2 ] - [ 3 ] - [ 4 ] Нужно подтвердить e - mail чтобы получить с о 2 по 4 уровень на выбор .
[ 5 ] - [ 6 ] Нужно подтвердить страницу ВКонтакте чтобы получить 5 или 6 уровень на выбор .
[ 7 ] Нужно привести 1 друга .
[ 8 ] Нужно привести 3 друзей и провести 3 хаота .
[ 9 ] Нужно привести 5 друзей и провести 50 хаотов .
[ 10 ] Нужно привести 7 друзей и провести 100 хаотов .
*/
$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 ) {
$er8 = 'Качайтесь на клоне до 1 уровня.' ;
} 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' ])) {
$er8 = 'Вы не подтвердили E-mail.' ;
} 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' );
}
$er8 = 'Вы успешно получили ' . $ml . ' уровень!' ;
$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' ])) {
$er8 = 'Вы не подтвердили страницу в социальной сети.' ;
} 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 ) {
mysql_query (
'INSERT INTO `mini_actions` (`uid`,`time`,`val`,`var`) VALUES ("' . $u -> info [ 'id' ] . '","' . time () . '","mbtnlvl6","0")'
);
}
$er8 = 'Вы успешно получили ' . $ml . ' уровень!' ;
$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 "
) '
2024-01-05 22:14:35 +00:00
);
$er8 = 'Вы успешно получили ' . $ml . ' уровень!' ;
$u -> info [ 'level' ] ++ ;
$ml ++ ;
} else {
$er8 = 'Вы не провели несколько боев (Осталось ' . ( 50 - $btls [ 0 ]) . ' побед).' ;
}
} 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 ) {
$er8 = 'Вы не пригласили ' . ( 0 + $refs [ 0 ]) . '/3 друзей или не провели ' . ( 0 + $btls [ 0 ]) . '/3 хаота.' ;
} 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 "
) '
2024-01-05 22:14:35 +00:00
);
$er8 = 'Вы успешно получили ' . $ml . ' уровень!' ;
$u -> info [ 'level' ] ++ ;
$ml ++ ;
}
} elseif ( $ml <= 9 ) {
$er8 = 'Вы не пригласили 5 друзей или не провели 50 хаотов.' ;
$er8 = 'Доступ закрыт!' ;
} elseif ( $ml <= 10 ) {
$er8 = 'Вы не пригласили 7 друзей или не провели 100 хаотов.' ;
$er8 = 'Доступ закрыт!' ;
} else {
$er8 = 'Что-то тут не так...' ;
$er8 = 'Доступ закрыт!' ;
}
//
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 ) {
$zd = '<font color=red>Нужно докачаться на клоне до 1 уровня.</font>' ;
$gb = 1 ;
} elseif ( $ml <= 4 ) {
$zd = 'Нужно подтвердить E-mail, чтобы получить 2-4 уровень.' ;
$gb = 1 ;
} elseif ( $ml <= 6 ) {
$zd = 'Нужно подтвердить страницу в социальной сети, чтобы получить 5-6 уровень.' ;
$gb = 1 ;
} elseif ( $ml <= 7 ) {
$zd = 'Нужно <!--привести одного друга по реферальной ссылке и -->выиграть 50 боев, чтобы получить 7 уровень.' ;
$gb = 1 ;
} elseif ( $ml <= 8 ) {
$zd = 'Нужно привести 3 друзей по реферальной ссылке и провести 3 хаотичных поединка, чтобы получить 8 уровень.' ;
$gb = 1 ;
} elseif ( $ml <= 9 ) {
$zd = 'Нужно привести 5 друзей по реферальной ссылке и провести 50 хаотичных поединков, чтобы получить 9 уровень.' ;
$gb = 1 ;
} elseif ( $ml <= 10 ) {
$zd = 'Нужно привести 7 друзей по реферальной ссылке и провести 100 хаотичных поединков, чтобы получить 10 уровень.' ;
$gb = 1 ;
} else {
$zd = '' ;
$gb = 0 ;
}
//
if ( $gd == 1 ) {
//
if ( $zd != '' ) {
echo '<hr><b><center>Необходимо выполнить задание:</center></b><div align="center" style="border:1px solid #aeaeae;background-color:#FFF;margin-top:3px;padding:4px;">' . $zd . '</div>' ;
} else {
echo '<hr>' ;
}
if ( $er8 != '' ) {
echo '<div style="padding:3px;" align="center"><font color=red>' . $er8 . '</font></div>' ;
}
//
if ( $gb == 1 && $ml > 1 ) {
//Получаем
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
2024-01-05 22:14:35 +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 ;
$zdml = 3600 ; //час
if ( isset ( $mcf [ 'id' ]) && $mcf [ 'time' ] > time () - $zdml ) {
echo '<hr><center><span style="color: red; ">Нельзя подтверждать эл.почту так часто. Осталось ' . Conversion :: secondsToTimeout (
$mcf [ 'time' ] + $zdml - time ()
) . '</span></center>' ;
$gd = 1 ;
} elseif ( ! preg_match (
'#^[a-z0-9.!\#$%&\'*+-/=?^_`{|}~]+@([0-9.]+|([^\s]+\.+[a-z]{2,6}))$#si' , $_GET [ 'confmail' ]
)) {
echo '<hr><center><span style="color: red; ">Вы указали явно ошибочный E-mail.</span></center>' ;
$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 (
2022-12-30 19:03:37 +00:00
" ' . $u->info ['id'] . ' " , " ' . time() . ' " , " mailconfirm " , " ' . mysql_real_escape_string(
2024-01-05 22:14:35 +00:00
$_GET [ 'confmail' ]
) . ' " , " 0 "
2022-12-30 19:03:37 +00:00
) '
2024-01-05 22:14:35 +00:00
);
}
function sendmail ( $message , $keymd5 , $mail )
{
global $u ;
//
$md5mail = md5 ( $keymd5 . '+' . $mail );
//
$msgtxt = 'Для подтверждения вашего E-mail у персонажа <b>' . $u -> info [ 'login' ] . '</b> перейдите по ссылке:' ;
$msgtxt .= ' <a href="/mail/key=' . $md5mail . '&mail=' . $mail . '">Нажмите тут</a> (/mail/key=' . $md5mail . '&mail=' . $mail . ')' ;
$msgtxt .= '<br>Переходя по ссылке, вы подтверждаете свое желание получать игровые новости.' ;
$msgtxt .= '<br>Если вы не имеете отношения к нашей игре и не хотите получать письма, тогда перейдите по этой ссылке: <a href="/mail/key=' . $md5mail . '&mail=' . $mail . '&cancel">Нажмите тут</a> (/mail/key=' . $md5mail . '&mail=' . $mail . '&cancel)<br><br>- - - - - - -<br><br>С уважением,<br>Администрация Легендарного Бойцовского Клуба' ;
//
$headers = " MIME-Version: 1.0 \r \n " ;
$headers .= " Content-type: text/html; charset=utf-8 \r \n " ;
$headers .= " From: Старый Бойцовский Клуб \r \n " ;
$to = $mail ;
//
$subject = 'Бойцовский Клуб: ' . $u -> info [ 'login' ] . ' - Подтверждение вашей эл.почты' ;
//
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' ]);
//
echo '<hr><center><font color="red">Н а ваш E-mail отправлено письмо.</font></center>' ;
//
}
}
$mcff = 'Подтвердить E-mail за 1 екр.' ;
if ( isset ( $mcf [ 'id' ])) {
$mcff = '<b>' . $mcf [ 'var' ] . '</b><br><font color="grey"><small>(Н а этот адрес отправлено письмо)</small></font>' ;
}
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>' ;
}
}
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' ]);
}
2022-12-30 19:03:37 +00:00
}
2024-01-05 22:14:35 +00:00
$i = 0 ;
while ( $i < count ( $prt )) {
$prtpos [ $prt [ $i ]] = $i ;
$i ++ ;
}
2022-12-30 19:03:37 +00:00
2024-01-05 22:14:35 +00:00
function intSpan ( $val )
{
$val = explode ( '>' , $val );
$val = explode ( '<' , $val [ 1 ]);
$val = $val [ 0 ];
return $val ;
}
2022-12-30 19:03:37 +00:00
2024-05-15 13:42:28 +00:00
$rz0 = '<script>getLine(' . $prtpos [ 0 ] . ',"Характеристики ","0","0","' . $uShow [ 0 ] . '",1)</script>' ;
2024-01-05 22:14:35 +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
' ;
2024-01-05 22:14:35 +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
' ;
2024-01-05 22:14:35 +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
' ;
2024-01-05 22:14:35 +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
' ;
2024-01-05 22:14:35 +00:00
}
}
$rz0 .= '</font></div>' ;
2024-05-15 13:42:28 +00:00
$rz1 = '<script>getLine(' . $prtpos [ 1 ] . ',"Модификаторы ","0","0",' . $uShow [ 1 ] . ',2)</script>' ;
2024-01-05 22:14:35 +00:00
if ( $uShow [ 1 ] == 1 ) {
//if( $u->info['admin'] > 0 ) {
$rz1 .= '<div style="display:none" id="lnk1">' ;
$rz1 .= 'Урон: ' . $u -> inform ( 'yrontest' ) . '' ;
$rz1 .= '<br><font color=maroon>Крит. урон: ' . $u -> inform ( 'yrontest-krit' ) . '</font>' ;
$rz1 .= '
2022-06-06 21:30:34 +00:00
< br >
2023-01-10 16:29:32 +00:00
< span > Мф . крит . удара : ' . $u->inform(' m1 ') . ' ' ;
2024-01-05 22:14:35 +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 ') . ' ' ;
2024-01-05 22:14:35 +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 ') . ' ' ;
2024-01-05 22:14:35 +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 ') . ' ' ;
2024-01-05 22:14:35 +00:00
$rz1 .= ' </ span >< br />
2023-01-10 16:29:32 +00:00
< span > Мф . увертывания : ' . $u->inform(' m4 ') . ' ' ;
2024-01-05 22:14:35 +00:00
$rz1 .= ' </ span >< br >
2023-01-10 16:29:32 +00:00
< nobr >< span > Мф . против увертывания : ' . $u->inform(' m5 ') . ' ' ;
2024-01-05 22:14:35 +00:00
$rz1 .= ' </ span ></ nobr >< br >
2023-01-10 16:29:32 +00:00
< span > Мф . пробоя брони : ' . $u->inform(' m9 ') . ' ' ;
2024-01-05 22:14:35 +00:00
$rz1 .= ' </ span >< br >
2023-01-10 16:29:32 +00:00
< span > Мф . контрудара : ' . $u->inform(' m6 ') . ' ' ;
2024-01-05 22:14:35 +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 ') . ' ' ;
2024-01-05 22:14:35 +00:00
}
if ( intSpan ( $u -> inform ( 'm8' )) != 0 ) {
$rz1 .= ' </ span >< br />
2023-01-10 16:29:32 +00:00
< span > Мф . блока щитом : ' . $u->inform(' m8 ') . ' ' ;
2024-01-05 22:14:35 +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 '])) . ' % ) ' ;
2024-01-05 22:14:35 +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 '])) . ' % ) ' ;
2024-01-05 22:14:35 +00:00
}
if ( intSpan ( $u -> inform ( 'zmproc' )) != 0 ) {
$rz1 .= ' </ span >< br />
2023-01-10 16:29:32 +00:00
< span > Блокировка Магического Урона : ' . $u->inform(' zmproc ') . ' % ' ;
2024-01-05 22:14:35 +00:00
}
if ( intSpan ( $u -> inform ( 'zaproc' )) != 0 ) {
$rz1 .= ' </ span >< br />
2023-01-10 16:29:32 +00:00
< span > Блокировка Физического Урона : ' . $u->inform(' zaproc ') . ' % ' ;
2024-01-05 22:14:35 +00:00
}
$rz1 .= '</span>' ;
$rz1 .= '</nobr></div>' ;
}
2024-05-15 13:42:28 +00:00
$rz2 = '<script>getLine(' . $prtpos [ 2 ] . ',"Броня ","0","0",' . $uShow [ 2 ] . ',3)</script>' ;
2024-01-05 22:14:35 +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 > ' ;
2024-01-05 22:14:35 +00:00
}
2024-05-15 13:42:28 +00:00
$rz3 = '<script>getLine(' . $prtpos [ 3 ] . ',"Мощность ","0","0",' . $uShow [ 3 ] . ',4)</script>' ;
2024-01-05 22:14:35 +00:00
if ( $uShow [ 3 ] == 1 ) {
$rz3 .= '<div style="display:none" id="lnk3">' ;
$i = 1 ;
$rz3 .= ucfirst ( str_replace ( 'Мф. мощности' , 'Мощность ' , $u -> is [ 'm10' ] . ': ' ));
if ( intSpan ( $u -> inform ( 'm10' )) > 0 ) {
$rz3 .= '+' ;
}
$rz3 .= $u -> inform ( 'm10' ) . '%<br>' ;
while ( $i <= 4 ) {
if ( intSpan ( $u -> inform ( 'pa' . $i )) != 0 ) {
$rz3 .= ucfirst ( str_replace ( 'Мф. мощности' , 'Мощность ' , $u -> is [ 'pa' . $i ] . ': ' ));
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 ) {
$rz3 .= ucfirst ( str_replace ( 'Мф. мощности ' , 'Мощность ' , $u -> is [ 'pm' . $i ] . ': ' ));
if ( intSpan ( $u -> inform ( 'pm' . $i )) > 0 ) {
$rz3 .= '+' ;
}
$rz3 .= $u -> inform ( 'pm' . $i ) . '%<br>' ;
}
$i ++ ;
}
$rz3 .= '</div>' ;
}
2022-12-30 19:03:37 +00:00
2024-01-05 22:14:35 +00:00
$zi = [ //Предметы влияющие на зоны
'n' => [
'' , 'голова' , 'грудь' , 'живот' , 'пояс' , 'ноги' ,
],
1 => [ 1 , 8 , 9 , 52 ], //голова
2 => [ 4 , 5 , 6 ], //грудь
3 => [ 2 , 4 , 5 , 6 , 13 ], //живот
4 => [ 7 , 16 , 10 , 11 , 12 ], //пояс
5 => [ 17 ], //ноги
];
2024-05-15 13:42:28 +00:00
$rz4 = '<script>getLine(' . $prtpos [ 4 ] . ',"Кнопки ","0","0",' . $uShow [ 4 ] . ',5)</script>' ;
2024-01-05 22:14:35 +00:00
if ( $uShow [ 4 ] == 1 ) {
$rz4 .= '<div style="display:none" id="lnk4"><center style="padding:5px;">' ;
$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 ; ' ;
2024-05-15 13:42:28 +00:00
if ( $u -> testHome ()) {
2024-01-05 22:14:35 +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" />' ;
}
2024-05-15 13:42:28 +00:00
2024-01-05 22:14:35 +00:00
$rz4 .= '</center>' ;
$rz4 .= '</div>' ;
}
2022-12-30 19:03:37 +00:00
2024-05-15 13:42:28 +00:00
$rz5 = '<script>getLine(' . $prtpos [ 5 ] . ',"Комплекты <a href=\"#\" onClick=\"save_compl();\">запомнить</a> ","0","0",' . $uShow [ 5 ] . ',6)</script>' ;
2024-01-05 22:14:35 +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 )) {
2024-05-15 13:42:28 +00:00
$rz5 .= '<a href="?inv=1&delc1=' . $pl [ 'id' ] . '&otdel=' . (( int ) $_GET [ 'otdel' ]) . '&rnd=' . $code . '"><img src="' . 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>' ;
2024-01-05 22:14:35 +00:00
}
$rz5 .= '</div>' ;
}
2022-12-30 19:03:37 +00:00
2024-05-15 13:42:28 +00:00
$rz6 = '<script>getLine(' . $prtpos [ 6 ] . ',"Приемы <a href=\"/main.php?skills=1&rz=4&rnd=' . $code . '\">настроить</a> ","0","0",' . $uShow [ 6 ] . ',7)</script>' ;
2024-01-05 22:14:35 +00:00
if ( $uShow [ 6 ] == 1 ) {
$rz6 .= '<div style="display:none" id="lnk6">' ; //возможно 5
$sp = mysql_query ( 'SELECT * FROM `complects_priem` WHERE `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 10' );
$rz6 .= '<small>' ;
while ( $pl = mysql_fetch_array ( $sp )) {
$rz6 .= '<a onclick="if(confirm(\'Удалить набор ?\')){location=\'main.php?inv=1&otdel=' . round (
( int ) $_GET [ 'otdel' ]
2024-05-15 13:42:28 +00:00
) . '&delcop=' . $pl [ 'id' ] . '\'}" href="javascript:void(0)"><img src="' . Config :: img () . '/i/close2.gif" width="9" height="9"></a> <a href="main.php?inv=1&otdel=' . round (
2024-01-05 22:14:35 +00:00
( int ) $_GET [ 'otdel' ]
) . '&usecopr=' . $pl [ 'id' ] . '">Использовать "' . $pl [ 'name' ] . '"</a><br>' ;
}
$rz6 .= '</small>' ;
$rz6 .= '</div>' ; //возможно 5
}
2022-12-30 19:03:37 +00:00
2024-01-05 22:14:35 +00:00
$i = 0 ;
while ( $i < count ( $prt )) {
if ( isset ( $ { 'rz' . $prt [ $i ]})) {
echo $ { 'rz' . $prt [ $i ]};
}
$i ++ ;
}
2022-12-30 19:03:37 +00:00
2024-01-05 22:14:35 +00:00
//
?>
< script >
< ? php
$i = 0 ;
while ( $i < count ( $uShow )) {
if ( isset ( $uShow [ $i ]) && $uShow [ $i ] == 1 ) {
echo '$("#lnk' . $i . '").slideToggle();' ;
}
$i ++ ;
}
?>
</ script >
</ td >
</ tr >
2022-12-30 19:03:37 +00:00
</ table >