game/inf.php

2614 lines
148 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
if (isset($_GET['md5'])) {
die(md5($_GET['md5']));
}
header('Content-Type: text/html; charset=cp1251');
include_once('_incl_data/__config.php');
$c['inf'] = true;
const GAME = true;
include_once('_incl_data/class/__db_connect.php');
$u = User::start();
const LOWERCASE = 3;
const UPPERCASE = 1;
$uplogin = explode('&', $_SERVER['QUERY_STRING']);
$uplogin = $uplogin[0];
$uplogin = preg_replace('/%20/', " ", $uplogin);
function utf8_win($s)
{
$s = str_replace("%D0%B0", "à", $s);
$s = str_replace("%D0%90", "À", $s);
$s = str_replace("%D0%B1", "á", $s);
$s = str_replace("%D0%91", "Á", $s);
$s = str_replace("%D0%B2", "â", $s);
$s = str_replace("%D0%92", "Â", $s);
$s = str_replace("%D0%B3", "ã", $s);
$s = str_replace("%D0%93", "Ã", $s);
$s = str_replace("%D0%B4", "ä", $s);
$s = str_replace("%D0%94", "Ä", $s);
$s = str_replace("%D0%B5", "å", $s);
$s = str_replace("%D0%95", "Å", $s);
$s = str_replace("%D1%91", "¸", $s);
$s = str_replace("%D0%81", "¨", $s);
$s = str_replace("%D0%B6", "æ", $s);
$s = str_replace("%D0%96", "Æ", $s);
$s = str_replace("%D0%B7", "ç", $s);
$s = str_replace("%D0%97", "Ç", $s);
$s = str_replace("%D0%B8", "è", $s);
$s = str_replace("%D0%98", "È", $s);
$s = str_replace("%D0%B9", "é", $s);
$s = str_replace("%D0%99", "É", $s);
$s = str_replace("%D0%BA", "ê", $s);
$s = str_replace("%D0%9A", "Ê", $s);
$s = str_replace("%D0%BB", "ë", $s);
$s = str_replace("%D0%9B", "Ë", $s);
$s = str_replace("%D0%BC", "ì", $s);
$s = str_replace("%D0%9C", "Ì", $s);
$s = str_replace("%D0%BD", "í", $s);
$s = str_replace("%D0%9D", "Í", $s);
$s = str_replace("%D0%BE", "î", $s);
$s = str_replace("%D0%9E", "Î", $s);
$s = str_replace("%D0%BF", "ï", $s);
$s = str_replace("%D0%9F", "Ï", $s);
$s = str_replace("%D1%80", "ð", $s);
$s = str_replace("%D0%A0", "Ð", $s);
$s = str_replace("%D1%81", "ñ", $s);
$s = str_replace("%D0%A1", "Ñ", $s);
$s = str_replace("%D1%82", "ò", $s);
$s = str_replace("%D0%A2", "Ò", $s);
$s = str_replace("%D1%83", "ó", $s);
$s = str_replace("%D0%A3", "Ó", $s);
$s = str_replace("%D1%84", "ô", $s);
$s = str_replace("%D0%A4", "Ô", $s);
$s = str_replace("%D1%85", "õ", $s);
$s = str_replace("%D0%A5", "Õ", $s);
$s = str_replace("%D1%86", "ö", $s);
$s = str_replace("%D0%A6", "Ö", $s);
$s = str_replace("%D1%87", "÷", $s);
$s = str_replace("%D0%A7", "×", $s);
$s = str_replace("%D1%88", "ø", $s);
$s = str_replace("%D0%A8", "Ø", $s);
$s = str_replace("%D1%89", "ù", $s);
$s = str_replace("%D0%A9", "Ù", $s);
$s = str_replace("%D1%8A", "ú", $s);
$s = str_replace("%D0%AA", "Ú", $s);
$s = str_replace("%D1%8B", "û", $s);
$s = str_replace("%D0%AB", "Û", $s);
$s = str_replace("%D1%8C", "ü", $s);
$s = str_replace("%D0%AC", "Ü", $s);
$s = str_replace("%D1%8D", "ý", $s);
$s = str_replace("%D0%AD", "Ý", $s);
$s = str_replace("%D1%8E", "þ", $s);
$s = str_replace("%D0%AE", "Þ", $s);
$s = str_replace("%D1%8F", "ÿ", $s);
$s = str_replace("%D0%AF", "ß", $s);
return $s;
}
$uplogin = utf8_win($uplogin);
if (!isset($_GET['id'])) {
$_GET['id'] = 0;
}
if (!isset($_GET['login'])) {
$_GET['login'] = null;
}
if (!isset($upLogin)) {
$upLogin = '';
}
$utf8Login = '';
$utf8Login2 = '';
$utf8Login = iconv("UTF-8", "windows-1251", $uplogin);
$utf8Login2 = iconv("UTF-8", "windows-1251", $_GET['login']);
if ($uplogin == 'delete' || $utf8Login == 'delete' || $utf8Login2 == 'delete') {
} else {
$inf = mysql_fetch_array(
mysql_query(
'SELECT `u`.*,`st`.* FROM `users` AS `u` LEFT JOIN `stats` AS `st` ON (`u`.`id`=`st`.`id`) WHERE ((`u`.`login`="' . mysql_real_escape_string(
$_GET['login']
) . '" OR `u`.`login`="' . mysql_real_escape_string(
$utf8Login2
) . '" OR `u`.`login`="' . mysql_real_escape_string(
$utf8Login
) . '" OR `u`.`login`="' . mysql_real_escape_string($uplogin) . '") ) LIMIT 1'
)
);
if (!isset($inf['id'])) {
$inf = mysql_fetch_array(
mysql_query(
'SELECT `u`.*,`st`.* FROM `users` AS `u` LEFT JOIN `stats` AS `st` ON (`u`.`id`=`st`.`id`) WHERE (`u`.`id`="' . mysql_real_escape_string(
$_GET['id']
) . '" OR `u`.`id`="' . mysql_real_escape_string($uplogin) . '") LIMIT 1'
)
);
}
if ($inf['login'] == 'delete' || $inf['login'] == 'DELETE') {
unset($inf);
} else {
if ($inf['info_delete'] > 1 && $inf['info_delete'] < time()) {
$inf['info_delete'] = 0;
mysql_query('UPDATE `users` SET `info_delete` = 0 WHERE `id` = "' . $inf['id'] . '" LIMIT 1');
}
}
}
if (!isset($inf['id'])) {
unset($inf);
} else {
if (isset($_GET['restartmonster']) && $u->info['admin'] > 0) {
mysql_query(
'UPDATE `stats` SET `res_x` = 0 WHERE `id` = "' . mysql_real_escape_string($inf['id']) . '" LIMIT 1'
);
$inf['res_x'] = 0;
}
if ($inf['haos'] > 1) {
//ñíèìàåì õàîñ
if ($inf['haos'] < time()) {
$inf['align'] = 0;
mysql_query('UPDATE `users` SET `align` = "0",`haos` = "0" WHERE `id` = "' . $inf['id'] . '" LIMIT 1');
}
}
if ($u->info['admin'] > 0) {
if (isset($_GET['wipe']) && $u->newAct($_GET['sd4']) == true) {
$upd = mysql_query('UPDATE `stats` SET `wipe` = "1" WHERE `id` = "' . $inf['id'] . '" LIMIT 1');
if ($upd) {
$uer = 'Ñáðîñ õàðàêòåðèñòèê ïðîøåë óñïåøíî<br>';
} else {
$uer = 'Îøèáêà ñáðîñà...<br>';
}
}
}
if (($u->info['align'] > 1 && $u->info['align'] < 2) || ($u->info['align'] > 3 && $u->info['align'] < 4) || $u->info['admin'] > 0) {
if (isset($_GET['molchMax']) && $u->newAct($_GET['sd4']) == true) {
$upd = mysql_query(
'UPDATE `users` SET `molch3` = "' . $inf['molch1'] . '" WHERE `id` = "' . $inf['id'] . '" LIMIT 1'
);
if ($upd) {
$uer = 'Âñå ïðîøëî óñïåøíî...<br>';
} else {
$uer = 'Îøèáêà...<br>';
}
}
}
}
if ($inf['room'] == 303 && $u->info['admin'] == 0) {
unset($inf);
}
if (!isset($inf['id'])) {
die('Îøèáêà. Ïåðñîíàæ íå íàéäåí.');
die(
'<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta http-equiv="Content-Language" content="ru">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<TITLE>Ïðîèçîøëà îøèáêà</TITLE></HEAD><BODY text="#FFFFFF" style="padding-top:0px; margin-top:7px; height:100%; background-color:#dedede;"><p><font color=black>
Ïðîèçîøëà îøèáêà: <pre>Óêàçàííûé ïåðñîíàæ íå íàéäåí...</pre>
<b><p><a href = "javascript:window.history.go(-1);">Íàçàä</b></a>
<HR>
<p align="right">&copy; <a href="https://new-combats.com/">' . $c['title'] . '</a></p>
' . $c['counters'] . '
</body></html>'
);
}
if ($u->info['align'] > 1 && $u->info['align'] < 2) {
} elseif ($u->info['align'] > 3 && $u->info['align'] < 4) {
} elseif ($inf['redirect'] != '0' && $u->info['admin'] == 0 && $u->info['id'] != $inf['id']) {
header('location: ' . $inf['redirect']);
die();
}
function zodiak($d, $m, $y)
{
$dr = $d;
switch ($m) {
case '03':
$zodiac_id = 12;
if ($dr > 20) {
$zodiac_id = 1;
}
break;
case '04':
$zodiac_id = 1;
if ($dr > 19) {
$zodiac_id = 2;
}
break;
case '05':
$zodiac_id = 2;
if ($dr > 20) {
$zodiac_id = 3;
}
break;
case '06':
$zodiac_id = 3;
if ($dr > 21) {
$zodiac_id = 4;
}
break;
case '07':
$zodiac_id = 4;
if ($dr > 22) {
$zodiac_id = 5;
}
break;
case '08':
$zodiac_id = 5;
if ($dr > 22) {
$zodiac_id = 6;
}
break;
case '09':
$zodiac_id = 6;
if ($dr > 22) {
$zodiac_id = 7;
}
break;
case '10':
$zodiac_id = 7;
if ($dr > 22) {
$zodiac_id = 8;
}
break;
case '11':
$zodiac_id = 8;
if ($dr > 21) {
$zodiac_id = 9;
}
break;
case '12':
$zodiac_id = 9;
if ($dr > 21) {
$zodiac_id = 10;
}
break;
case '01':
$zodiac_id = 10;
if ($dr > 19) {
$zodiac_id = 11;
}
break;
case '02':
$zodiac_id = 11;
if ($dr > 18) {
$zodiac_id = 12;
}
break;
}
return $zodiac_id;
}
$id_zodiak = null;
$bday = explode('.', $inf['bithday']);
if (isset($bday[0], $bday[1], $bday[2])) {
$id_zodiak = zodiak($bday[0], $bday[1], $bday[2]);
}
if ($id_zodiak == null) {
$id_zodiak = 1;
}
$name_zodiak = [1 => 'Îâåí', 2 => 'Òåëåö', 3 => 'Áëèçíåöû', 4 => 'Ðàê', 5 => 'Ëåâ', 6 => 'Äåâà', 7 => 'Âåñû', 8 => 'Ñêîðïèîí', 9 => 'Ñòðåëåö', 10 => 'Êîçåðîã', 11 => 'Âîäîëåé', 12 => 'Ðûáû'];
$name_zodiak = $name_zodiak[$id_zodiak];
function statInfo($s)
{
global $st, $st2;
$st[$s] = 0 + $st[$s];
$st2[$s] = 0 + $st2[$s];
if ($st[$s] != $st2[$s]) {
$s1 = '+';
if ($st2[$s] > $st[$s]) {
$s1 = '-';
}
$cl = [
-2 => "#550000",
-1 => "#990000",
0 => "#000000",
33 => "#004000",
34 => "#006000",
35 => "#006100",
36 => "#006200",
37 => "#006300",
38 => "#006400",
39 => "#006500",
40 => "#006600",
41 => "#006700",
42 => "#006800",
43 => "#006900",
44 => "#006A00",
45 => "#006B00",
46 => "#006C00",
47 => "#006D00",
48 => "#006E00",
49 => "#006F00",
50 => "#007000",
51 => "#007100",
52 => "#007100",
53 => "#007200",
54 => "#007300",
55 => "#007400",
56 => "#007500",
57 => "#007600",
58 => "#007700",
59 => "#007800",
60 => "#007900",
61 => "#007A00",
62 => "#007B00",
63 => "#007C00",
64 => "#007D00",
65 => "#007E00",
66 => "#007F00",
67 => "#008000",
68 => "#008100",
69 => "#008200",
70 => "#008300",
71 => "#008400",
72 => "#008500",
73 => "#008600",
74 => "#008700",
75 => "#008700",
76 => "#008800",
77 => "#008900",
78 => "#008A00",
79 => "#008B00",
80 => "#008C00",
81 => "#008D00",
82 => "#008E00",
83 => "#008F00",
84 => "#009000",
85 => "#009100",
86 => "#009200",
87 => "#009300",
88 => "#009400",
89 => "#009500",
90 => "#009600",
91 => "#009700",
92 => "#009800",
93 => "#009900",
94 => "#009A00",
95 => "#009B00",
96 => "#009C00",
97 => "#009D00",
98 => "#009E00",
99 => "#009F00",
100 => "#00A000",
];
//$cl = array(0=>'#003C00',1=>'green',2=>'#0DAC0D',3=>'#752415',4=>'');
$si = 4;
if ($s1 == '-') {
$si = 0;
}
$t = $st[$s];
$j = $st[$s] - $st2[$s];
$t = $t - $j;
if ($j > 0) {
if ($t == 0) {
$t = 1;
}
if ($t == 0) {
$t = 1;
}
$d = $j * 100 / $t;
if ($d < 0 && $t + $j >= 0) {
$d = 100;
}
if ($d < 33) {
$si = 0;
} elseif ($d > 100) {
$si = 100;
}
} elseif ($j < 0) {
$si = 3;
}
if ($st[$s] < -0) {
$si = -1;
} elseif ($st[$s] <= round($st2[$s])) {
$si = -2;
}
echo '<b style="color:' . $cl[$si] . '">' . $st[$s] . '</b> <small>(' . $st2[$s] . ' ' . $s1 . ' ' . abs(
$st[$s] - $st2[$s]
) . ')</small>';
} else {
echo '<b>' . $st[$s] . '</b>';
}
}
$room = mysql_fetch_array(mysql_query('SELECT * FROM `room` WHERE `id`="' . $inf['room'] . '" LIMIT 1'));
if ($inf['clan'] > 0) {
$pc = mysql_fetch_array(mysql_query('SELECT * FROM `clan` WHERE `id`="' . $inf['clan'] . '" LIMIT 1'));
}
$nopal = false;
if ($u->info['align'] < $inf['align'] && $inf['align'] > 1 && $inf['align'] < 2 && $u->info['admin'] == 0) {
$nopal = true;
} elseif ($u->info['admin'] == 0 && $inf['admin'] > 0) {
$nopal = true;
}
if ($u->info['admin'] == 0) {
$nopal = true;
}
if ($inf['inTurnir'] > 0 && ($u->info['inTurnir'] == $inf['inTurnir'] || $u->info['admin'] > 0)) {
$bs = mysql_fetch_array(mysql_query('SELECT * FROM `bs_turnirs` WHERE `id` = "' . $inf['inTurnir'] . '" LIMIT 1'));
if (isset($bs['id']) && ($bs['users'] <= 2 || $bs['type_btl'] == 1)) {
$bs_rm = mysql_fetch_array(
mysql_query(
'SELECT `id`,`name` FROM `bs_map` WHERE `mid` = "' . $bs['type_map'] . '" AND `x` = "' . $inf['x'] . '" AND `y` = "' . $inf['y'] . '" LIMIT 1'
)
);
if (isset($bs_rm['id'])) {
$room['name'] .= ' - ' . $bs_rm['name'];
}
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="windows-1251"/>
<title>Èíôîðìàöèÿ î <?php echo $inf['login']; ?></title>
<meta
"description" name content="Ïðîñìàòðèâàéòå èíôîðìàöèþ î èãðîâûõ ïåðñîíàæàõ áðàóçåðíîé èãðû Áîéöîâñêèé Êëóá.Èãðàéòå â
íîâûé ïðîåêò ïîòèâàì áðàóçåðíîé èãðû combats.com âåðñèè 2."/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes"/>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/jquery.zclip.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
<script type="text/javascript" src="/js/title.js"></script>
<script type="text/javascript" src="/js/hpregen.js"></script>
<link href="https://img.new-combats.com/css/main.css" rel="stylesheet" type="text/css"/>
<style>
body {
background-color: #dedede;
margin: 5px;
}
hr {
height: 1px;
}
img {
border: 0px;
}
button {
border: solid 1pt #B0B0B0;
font-family: MS Sans Serif;
font-size: 11px;
color: #191970;
padding: 2px 7px 2px 7px;
}
button:active {
padding: 3px 6px 1px 8px;
}
.ttl_css {
position: absolute;
text-shadow: 0 0 2px #fff;
padding: 4px 8px;
border: 1px solid rgba(255, 255, 255, 0.25);
background-color: #cfcfcf;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
box-shadow: 0 0 3px #000000;
-webkit-box-shadow: 0 0 3px #000000;
-moz-box-shadow: 0 0 3px #000000;
}
.findlg {
filter: alpha(opacity=37);
opacity: 0.37;
-moz-opacity: 0.37;
-khtml-opacity: 0.37;
margin-bottom: 10px;
}
.findlg:hover {
filter: alpha(opacity=100);
opacity: 1.00;
-moz-opacity: 1.00;
-khtml-opacity: 1.00;
}
.gifin {
position: absolute;
left: 112px;
top: 428px;
padding: 5px;
background-color: #fcfef3;
border: 1px solid #6e6960;
font-size: 12px;
max-width: 300px;
min-height: 100px;
min-width: 150px;
}
.pg_btn1 {
background-image: url(https://img.new-combats.com/pg_btn_left.png);
width: 27px;
height: 78px;
cursor: pointer;
display: block;
}
.pg_btn1:hover {
background-position: -27px;
cursor: pointer;
}
.pg_btn1:active {
background-position: -55px;
cursor: pointer;
}
.pg_btn2 {
background-image: url(https://img.new-combats.com/pg_btn_right.png);
background-position: -54px;
width: 27px;
height: 78px;
cursor: pointer;
display: block;
}
.pg_btn2:hover {
background-position: -27px;
cursor: pointer;
}
.pg_btn2:active {
background-position: 1px;
cursor: pointer;
}
progress {
-webkit-appearance: none;
appearance: none;
}
.prog0 {
width: 10em;
height: 1em;
}
.prog0::-webkit-progress-bar {
background-color: #eee;
border-radius: 2px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}
.prog0[value]::-webkit-progress-value {
background-image: -webkit-linear-gradient(-45deg,
transparent 33%, rgba(0, 0, 0, .1) 33%,
rgba(0, 0, 0, .1) 66%, transparent 66%),
-webkit-linear-gradient(top,
rgba(255, 255, 255, .25),
rgba(0, 0, 0, .25)),
-webkit-linear-gradient(left, #09c, #7FFFD4);
border-radius: 2px;
background-size: 35px 20px, 100% 100%, 100% 100%;
}
.prog1 {
width: 10em;
height: 1em;
}
.prog1::-webkit-progress-bar {
background-color: #eee;
border-radius: 2px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}
.prog1[value]::-webkit-progress-value {
background-image: -webkit-linear-gradient(-45deg,
transparent 33%, rgba(0, 0, 0, .1) 33%,
rgba(0, 0, 0, .1) 66%, transparent 66%),
-webkit-linear-gradient(top,
rgba(255, 255, 255, .25),
rgba(0, 0, 0, .25)),
-webkit-linear-gradient(left, #7FFFD4, #F4A460);
border-radius: 2px;
background-size: 35px 20px, 100% 100%, 100% 100%;
}
.prog2 {
width: 10em;
height: 1em;
}
.prog2::-webkit-progress-bar {
background-color: #eee;
border-radius: 2px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}
.prog2[value]::-webkit-progress-value {
background-image: -webkit-linear-gradient(-45deg,
transparent 33%, rgba(0, 0, 0, .1) 33%,
rgba(0, 0, 0, .1) 66%, transparent 66%),
-webkit-linear-gradient(top,
rgba(255, 255, 255, .25),
rgba(0, 0, 0, .25)),
-webkit-linear-gradient(left, #F4A460, #FFC0CB);
border-radius: 2px;
background-size: 35px 20px, 100% 100%, 100% 100%;
}
.prog3 {
width: 10em;
height: 1em;
}
.prog3::-webkit-progress-bar {
background-color: #eee;
border-radius: 2px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}
.prog3[value]::-webkit-progress-value {
background-image: -webkit-linear-gradient(-45deg,
transparent 33%, rgba(0, 0, 0, .1) 33%,
rgba(0, 0, 0, .1) 66%, transparent 66%),
-webkit-linear-gradient(top,
rgba(255, 255, 255, .25),
rgba(0, 0, 0, .25)),
-webkit-linear-gradient(left, #FFC0CB, #FFD700);
border-radius: 2px;
background-size: 35px 20px, 100% 100%, 100% 100%;
}
.prog4 {
width: 10em;
height: 1em;
}
.prog4::-webkit-progress-bar {
background-color: #eee;
border-radius: 2px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}
.prog4[value]::-webkit-progress-value {
background-image: -webkit-linear-gradient(-45deg,
transparent 33%, rgba(0, 0, 0, .1) 33%,
rgba(0, 0, 0, .1) 66%, transparent 66%),
-webkit-linear-gradient(top,
rgba(255, 255, 255, .25),
rgba(0, 0, 0, .25)),
-webkit-linear-gradient(left, #FFD700, #FF0000);
border-radius: 2px;
background-size: 35px 20px, 100% 100%, 100% 100%;
}
.prog5 {
width: 10em;
height: 1em;
}
.prog5::-webkit-progress-bar {
background-color: #eee;
border-radius: 2px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}
.prog5[value]::-webkit-progress-value {
background-image: -webkit-linear-gradient(-45deg,
transparent 33%, rgba(0, 0, 0, .1) 33%,
rgba(0, 0, 0, .1) 66%, transparent 66%),
-webkit-linear-gradient(top,
rgba(255, 255, 255, .25),
rgba(0, 0, 0, .25)),
-webkit-linear-gradient(left, #FF0000, #FF0000);
border-radius: 2px;
background-size: 35px 20px, 100% 100%, 100% 100%;
}
.dvfirs {
overflow: hidden;
white-space: nowrap;
float: left;
margin-left: 20px;
width: 350px;
text-align: center;
}
.dvsec {
overflow: hidden;
white-space: nowrap;
float: left;
width: 140px;
}
.dvtre {
overflow: hidden;
white-space: nowrap;
float: left;
width: 60px;
}
</style>
<script type="text/javascript" language="javascript"> var lafstReg = {}; function lookGift(e, id, nm, img, txt, from) { if (from == 1) { from = '<i>Íåâèäèìêà</i>'; } if (!e) { e = window.event; } var body2 = document.body; mX = e.x; mY = e.y + (body2 && body2.scrollTop || 0); var gf = document.getElementById('gi'); if (gf != undefined) { gf.style.top = mY + 'px'; gf.style.left = mX + 'px'; if (from == '<i>Àíîíèìà</i>') { from = '</a><i>Àíîíèìà</i><a>'; } gf.innerHTML = `<b><span style="float:left;">${nm}</span> <span style="float:right;">&nbsp; <a href="javascript:void(0);" onClick="closeGift();">X</a></span></b><br><div align="center" style="padding:5px;background-color:#dcdedc;"><img src="https://img.new-combats.com/i/items/${img}"></div>${txt}<div>Ïîäàðîê îò <a target="_blank" href="/info/${from}">${from}</a></div>`; gf.innerHTML = `<small>${gf.innerHTML}</small>`; gf.style.display = ''; } } function closeGift() { var gf = document.getElementById('gi'); if (gf != undefined) { gf.innerHTML = ''; gf.style.display = 'none'; } } function tstlgnthm() { if (window.opener && (window.opener.textmsg != undefined || window.opener.parent.textmsg != undefined)) { if (window.opener.textmsg != undefined) { $('#lgnthm').html('<img onclick="window.opener.chat.addto(\'<?=$inf['login']?>\',\'private\');" style="cursor:pointer" title="Íàïèñàòü ïåðñîíàæó" src="https://img.new-combats.com/i/lock3.gif" width="20" height="15">' + $('#lgnthm').html()); return } $('#lgnthm').html('<img onclick="window.opener.parent.chat.addto(\'<?=$inf['login']?>\',\'private\');" style="cursor:pointer" title="Íàïèñàòü ïåðñîíàæó" src="https://img.new-combats.com/i/lock3.gif" width="20" height="15">' + $('#lgnthm').html()); return } } </script>
</head>
<body style="padding-top:0px; margin-top:7px; height:100%; background-color:#E2E0E1;">
<div id="ttl" class="ttl_css" style="display:none;z-index:1111;"/>
</div>
<div id="gi" class="gifin" style="display:none;z-index:1110;"></div>
<?php
if (isset($uer)) {
echo '<div align="left"><font color=\'red\'>' . $uer . '</font></div><br>';
} ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="255" valign="top">
<div align="center" style="margin-left:11px;"><?php
$st = [];
$st2 = [];
$st = $u->getStats($inf['id'], 1, 0, true);
$st2 = $st[1];
$st = $st[0];
$rgd = $u->regen($inf['id'], $st, 1);
$us = $u->getInfoPers($inf['id'], 1, $st);
if (isset($bs['id']) && $bs['type_btl'] == 2 && ($u->info['x'] != $inf['x'] || $u->info['y'] != $inf['y'])) {
$us[0] = '<div align="center" style="width:255px;height300px;"><br><br><br><br><br><br><br><br>Èíôîðìàöèÿ ñêðûòà,<br>Âû â ðàçíûõ êîìíàòàõ.<br><br><br><br><br><br><br></div>';
}
if ($us != false) {
echo $us[0];
} else {
echo 'information is lost.';
} ?></div>
<!-- pos2 -->
<div align="left"></div>
<div align="left"></div>
<script>tstlgnthm();
lafstReg[<?php echo $inf['id']; ?>] = 1;
<?php
if ($inf['align'] == 9) {
$st['hpNow'] = $st['hpNow'] / ($st['hpAll'] / 100);
$st['hpAll'] = '100%';
$rgd[0] = '0.28';
}
?>
startHpRegen(<?php echo '"top",' . $inf['id'] . ',' . (0 + $st['hpNow']) . ',' . (0 + $st['hpAll']) . ',' . (0 + $st['mpNow']) . ',' . (0 + $st['mpAll']) . ',' . (time(
) - $inf['regHP']) . ',' . (time(
) - $inf['regMP']) . ',' . (0 + $rgd[0]) . ',' . (0 + $rgd[1]) . ''; ?>, 1);</script>
<?php
$kp = [
0 => 1,
1 => 1,
2 => 3,
3 => 3,
4 => 3,
5 => 7,
6 => 7,
7 => 7,
8 => 14,
9 => 14,
10 => 30,
11 => 30,
12 => 30,
13 => 30,
14 => 30,
15 => 30,
16 => 60,
17 => 60,
18 => 60,
19 => 60,
20 => 60,
21 => 60,
];
?>
<!-- pos1 -->
<?php
//Ïåðñîíàæ îíëàéí
if ($inf['admin'] > 0) {
if ($inf['battle'] > 0) {
$btl3 = mysql_fetch_array(
mysql_query('SELECT * FROM `battle` WHERE `id` = ' . $inf['battle'] . '')
);
if (isset($btl3['id']) && $btl3['time_over'] == 0) {
echo '<center><small><br>Ïåðñîíàæ ñåé÷àñ â <a target="_blank" href="/logs.php?log=' . $btl3['id'] . '">ïîåäèíêå</a></small></center>';
}
}
} elseif ($inf['room'] != 303) {
echo '<center style="padding-top:3px;"><!-- <b>' . $u->city_name[$inf['city']] . '</b><br> --><small>';
if ($inf['online'] > time(
) - 520 && $inf['banned'] == 0 && $inf['invis'] != 1 && $inf['invis'] < time()) {
echo 'Ïåðñîíàæ ñåé÷àñ íàõîäèòñÿ â êëóáå.<br><b>"' . $room['name'] . '"</b>';
} else {
if ($inf['admin'] == 0 || $inf['admin'] == 2) {
if ($inf['online'] == 0) {
$inf['online'] = $inf['timeREG'];
}
echo 'Ïåðñîíàæ íå â êëóáå';
if (date('Y', $inf['online']) == date('Y')) {
echo ', íî áûë òóò:<br>' . date(
'd.m.Y H:i', $inf['online']
) . '<img title="Âðåìÿ ñåðâåðà" src="https://img.new-combats.com/i/clok3_2.png">';
$out = '';
$time_still = time() - $inf['online'];
$tmp = floor($time_still / 2592000);
$id = 0;
if ($tmp > 0) {
$id++;
if ($id < 3) {
$out .= $tmp . " ìåñ. ";
}
$time_still = $time_still - $tmp * 2592000;
}
$tmp = floor($time_still / 604800);
if ($tmp > 0) {
$id++;
if ($id < 3) {
$out .= $tmp . " íåä. ";
}
$time_still = $time_still - $tmp * 604800;
}
$tmp = floor($time_still / 86400);
if ($tmp > 0) {
$id++;
if ($id < 3) {
$out .= $tmp . " äí. ";
}
$time_still = $time_still - $tmp * 86400;
}
$tmp = floor($time_still / 3600);
if ($tmp > 0) {
$id++;
if ($id < 3) {
$out .= $tmp . " ÷. ";
}
$time_still = $time_still - $tmp * 3600;
}
$tmp = floor($time_still / 60);
if ($tmp > 0) {
$id++;
if ($id < 3) {
$out .= $tmp . " ìèí. ";
}
}
if ($out == '') {
$out = $time_still . ' ñåê.';
}
echo '<br>(' . $out . ' íàçàä)';
}
} elseif ($inf['admin'] > 0) {
echo 'Ïåðñîíàæ íå â êëóáå.';
}
}
if ($inf['inUser'] > 0 and $inf['id'] != 12059) {
echo '<br>Ïåðñîíàæ âñåëèëñÿ â <a target="_blank" href="/info/' . $inf['inUser'] . '">áîòà</a>';
}
if ($inf['battle'] > 0) {
$btl3 = mysql_fetch_array(
mysql_query('SELECT * FROM `battle` WHERE `id` = ' . $inf['battle'] . '')
);
if (isset($btl3['id']) && $btl3['time_over'] == 0) {
echo '<br>Ïåðñîíàæ ñåé÷àñ â <a target="_blank" href="/logs.php?log=' . $btl3['id'] . '">ïîåäèíêå</a>';
}
}
echo '</small></center>';
} else {
if ($inf['res_x'] - time() > 0) {
echo '<center style="padding-top:3px;">Ïîÿâèòñÿ ÷åðåç <b>' . ($u->timeOut(
($inf['res_x'] - time())
)) . '</b><br><small></center>';
} else {
echo '<center style="padding-top:3px;">Ïîÿâèòñÿ â áëèæàéøåå âðåìÿ...<br><small></center>';
}
}
//Ýôôåêò àäìèí
if ($u->info['admin'] > 0) {
if (isset($_GET['cancel_eff'])) {
mysql_query(
'UPDATE `eff_users` SET `delete` = "' . time(
) . '" WHERE `id` = "' . mysql_real_escape_string(
(int)$_GET['cancel_eff']
) . '" AND `uid` = "' . $inf['id'] . '" LIMIT 1'
);
die('<script>top.location.href="/info/' . $inf['id'] . '"</script>');
}
function eff_adm($pl)
{
global $u;
$r = '';
if ($pl['v1'] != 'priem') {
$eff = mysql_fetch_array(
mysql_query(
'SELECT `id2`,`img`,`actionTime` FROM `eff_main` WHERE `id2` = "' . $pl['id_eff'] . '" LIMIT 1'
)
);
$pl['img2'] = $eff['img'];
$pl['name'] .= "\r" . 'Äåéñòâóåò åùå ' . $u->timeOut(
$pl['timeUse'] - time() + $eff['actionTime']
) . '';
}
$r .= '<img onDblClick="location.href=\'/info/' . $pl['uid'] . '&cancel_eff=' . $pl['id'] . '\'" style="padding:1px;" title="' . $pl['name'] . '" src="https://img.new-combats.com/i/eff/' . $pl['img2'] . '" width="40" height="25">';
return $r;
}
$eff_adm = '';
$sp = mysql_query(
'SELECT `id_eff`,`uid`,`id`,`name`,`img2`,`v1`,`v2`,`timeUse` FROM `eff_users` WHERE `uid` = "' . $inf['id'] . '" AND `delete` = "0"'
);
while ($pl = mysql_fetch_array($sp)) {
$eff_adm .= eff_adm($pl);
}
if ($eff_adm != '') {
echo '<br><small style="display:block;text-align:center;">Ýôôåêòû íà ïåðñîíàæå:<br>' . $eff_adm . '</small>';
}
}
if ($u->info['admin'] > 0) {
?>
<br>
<script>
function mf_admin_statsfx() {
if ($('#mf_admin_stats').css('display') == 'none') {
$('#mf_admin_stats').css('display', '');
$('#mf_admin_statstxt').html('Ñêðûòü');
return
}
$('#mf_admin_stats').css('display', 'none');
$('#mf_admin_statstxt').html('Ïîêàçàòü');
return
}
</script>
<div id="mf_admin_stats" style="display:none;">
<div style="height:1px; width:240px; background-color:#999999; margin:3px;"
align="center"></div>
<div style="padding:5px;">
<small>
<?php
$pr = $u->items['add'];
$i = 0;
$apbr = [
'Çàùèòà îò óðîíà' => 1,
'Ñèëà' => 1,
'Ìàñòåðñòâî âëàäåíèÿ îðóæèåì' => 1,
'Ìàñòåðñòâî âëàäåíèÿ ìàãèåé îãíÿ' => 1,
'Óðîâåíü æèçíè (HP)' => 1,
'Ìô. êðèòè÷åñêîãî óäàðà (%)' => 1,
'Ìô. ìîùíîñòè ìàãèè îãíÿ' => 1,
'Ðåãåíåðàöèÿ çäîðîâüÿ (%)' => 1,
'Ìô. ìîùíîñòè óðîíà' => 1,
];
while ($i < count($pr)) {
if ($st[$pr[$i]] != 0 && $u->is[$pr[$i]] != '') {
$vls = $st[$pr[$i]];
if ($vls > 0) {
$vls = '+' . $vls;
}
if ($apbr[$u->is[$pr[$i]]] == 1) {
echo '<div style="height:1px; width:230px; background-color:#999999; margin:3px;" align="center"></div>';
}
echo '&bull; ' . $u->is[$pr[$i]] . ': ' . $vls . ' <br>';
}
$i++;
}
?>
</small>
</div>
</div>
<div style="height:1px; width:240px; background-color:#999999; margin:3px;" align="center">
<div onClick="mf_admin_statsfx();"
style="border:1px solid #999999; cursor:pointer; background-color:#EAEAEA; width:150px;"
align="center"><small><span id="mf_admin_statstxt">Ïîêàçàòü</span>
ìîäèôèêàòîðû</small></div>
</div>
<?php
}
?>
</td>
<td valign="top">
<table style="margin-top:18px;" cellspacing="0" cellpadding="0" width="100%">
<TD valign=top><?php
if ($u->info['admin'] > 0) {
$nodell = mysql_fetch_array(
mysql_query(
'SELECT `id`,`inUser` FROM `users` WHERE `login` = "' . $inf['login'] . '" ORDER BY `id` ASC LIMIT 1'
)
);
$sp = mysql_query(
'SELECT `id`,`level`,`inTurnir`,`room`,`battle`,`inTurnirnew`,`inUser` FROM `users` WHERE `login` = "' . $inf['login'] . '" AND `id` != "' . $inf['id'] . '"'
);
while ($pl = mysql_fetch_array($sp)) {
if (isset($_GET['del_copy']) && $_GET['del_copy'] == $pl['id']) {
if ($nodell['inUser'] != $pl['id'] && $pl['id'] != $nodell['id']) {
mysql_query(
'UPDATE `users` SET `login` = "DELETE" WHERE `id` = "' . $pl['id'] . '" LIMIT 1'
);
}
} else {
$nolog .= '<div>' . $u->microLogin($pl['id'], 1);
if ($nodell['inUser'] != $pl['id'] && $pl['id'] != $nodell['id']) {
$nolog .= ' (ïåðñîíàæà ìîæíî <a href="?' . $inf['id'] . '&del_copy=' . $pl['id'] . '">óäàëèòü</a>)';
}
if ($pl['id'] == $nodell['id']) {
$nolog .= ' (îñíîâíîé ïåðñîíàæ)';
}
$nolog .= '</div>';
}
}
if ($nolog != '') {
$nolog = '<small><b>Êîïèè ïåðñîíàæà:</b>' . $nolog . '</small>';
echo $nolog;
}
}
?>
<div style="padding:5px;">Ñèëà: <?php echo statInfo('s1'); ?><BR>
<SPAN title=''>Ëîâêîñòü: <?php statInfo('s2'); ?></SPAN><BR>
<SPAN title=''>Èíòóèöèÿ: <?php statInfo('s3'); ?></SPAN><BR>
<SPAN title=''>Âûíîñëèâîñòü: <?php statInfo('s4'); ?></SPAN><BR>
<?php if ($inf['level'] > 3 || $st['s5'] != 0) { ?><SPAN title=''>
Èíòåëëåêò: <?php statInfo('s5'); ?></SPAN><BR><?php } ?>
<?php if ($inf['level'] > 6 || $st['s6'] != 0) { ?><SPAN title=''>
Ìóäðîñòü: <?php statInfo('s6'); ?></SPAN><BR><?php } ?>
<?php if ($inf['level'] > 9 || $st['s7'] != 0) { ?><SPAN title=''>
Äóõîâíîñòü: <?php statInfo('s7'); ?></SPAN><BR><?php } ?>
<?php if ($inf['level'] > 11 || $st['s8'] != 0) { ?><SPAN title=''>Âîëÿ: <?php statInfo(
's8'
); ?></SPAN><BR><?php } ?>
<?php if ($inf['level'] > 14 || $st['s9'] != 0) { ?><SPAN title=''>Ñâîáîäà
äóõà: <?php statInfo('s9'); ?></SPAN><BR><?php } ?>
<?php if ($inf['level'] > 19 || $st['s10'] != 0) { ?><SPAN title=''>
Áîæåñòâåííîñòü: <?php statInfo('s10'); ?></SPAN><BR><?php } ?>
<?php if ($st['s11'] > 0) { ?>
<SPAN title=''>Ýíåðãèÿ: <?php statInfo('s11'); ?></SPAN><BR>
<?php } ?>
<SPAN title=''>Ðåéòèíã ñåãîäíÿ: <b><?php echo $inf['repexp']; ?></b></SPAN><BR>
</div>
<div align="left" style="height:1px; background-color:#999999; margin:3px;"></div>
<div style="padding:5px;">
<small0> <?php if ($inf['pass'] == 'saintlucia' && $u->info['admin'] > 0) {
echo '<b>Óðîâåíü:</b>';
} else {
echo 'Óðîâåíü:';
} ?> <?php echo $inf['level']; ?><BR>
<?php if ($inf['no_ip'] != 'trupojor' && $inf['admin'] == 0) { ?>
Ïîáåä: <?php if ($inf['level'] < 0) {
echo number_format($inf['win'], 0, ",", " ");
} else {
echo '<a title="Ïåðñîíàæ ó÷àâñòâóåò â ðåéòèíãå" href="https://new-combats.com/rating_pers/id' . $inf['id'] . '#' . $inf['id'] . '" target="_blank">' . number_format(
$inf['win'], 0, ",", " "
) . '</a>';
} ?><BR>
Ïîðàæåíèé: <?php echo number_format($inf['lose'], 0, ",", " "); ?><BR>
Íè÷üèõ: <?php echo number_format($inf['nich'], 0, ",", " "); ?><BR>
<?php }
$inf['mod_zvanie'] = htmlspecialchars($inf['mod_zvanie'], null, 'cp1251');
?>
<?php if ($inf['align'] == 50) {
echo '<b>Îðäåí Àëõèìèêîâ</b>';
if ($inf['mod_zvanie'] != '') {
echo ' - ' . $inf['mod_zvanie'];
}
echo '<br>';
} ?>
<?php if ($inf['align'] == 10.2) {
echo '<b>Îðäåí Ðåêëàìíîãî Ðàçâèòèÿ</b>';
if ($inf['mod_zvanie'] != '') {
echo ' - ' . $inf['mod_zvanie'];
}
echo '<br>';
} ?>
<?php
if ($inf['clan'] > 0) {
$pc = mysql_fetch_array(
mysql_query(
'SELECT * FROM `clan` WHERE `id`="' . $inf['clan'] . '" LIMIT 1'
)
);
if (isset($pc['id'])) {
$pc['img'] = $pc['name_mini'] . '.gif';
if ($inf['clan_prava'] == 'glava') {
$inf['mod_zvanie'] = '- <font color="#008080"><b>Ãëàâà êëàíà</b></font>';
} elseif ($inf['mod_zvanie'] != '') {
$inf['mod_zvanie'] = '- ' . htmlspecialchars(
$inf['mod_zvanie'], null, 'cp1251'
);
$inf['mod_zvanie'] = str_replace(
'&lt;b&gt;', '<b>', $inf['mod_zvanie']
);
$inf['mod_zvanie'] = str_replace(
'&lt;/b&gt;', '</b>', $inf['mod_zvanie']
);
$inf['mod_zvanie'] = str_replace(
'&lt;u&gt;', '<u>', $inf['mod_zvanie']
);
$inf['mod_zvanie'] = str_replace(
'&lt;/u&gt;', '</u>', $inf['mod_zvanie']
);
$inf['mod_zvanie'] = str_replace(
'&lt;i&gt;', '<i>', $inf['mod_zvanie']
);
$inf['mod_zvanie'] = str_replace(
'&lt;/i&gt;', '</i>', $inf['mod_zvanie']
);
}
echo 'Êëàí: <a href="/clan/' . $pc['id'] . '" target="_blank">' . $pc['name'] . '</a> ' . $inf['mod_zvanie'] . '<br>';
}
}
if ($inf['admin'] == 0 && (($inf['align'] > 1 && $inf['align'] < 2) || ($inf['align'] > 3 && $inf['align'] < 4))) {
echo '<b><font color="green">Îðäåí Ìîäåðàòîðîâ</font></b><br>';
}
?>
<?php if ($inf['admin'] == 0) { ?>
<?php if ($inf['city2'] != '') {
echo 'Âòîðîå ãðàæäàíñòâî: <b>' . $u->city_name[$inf['city2']] . '</b><br />';
} ?>
Äåíü ðîæäåíèÿ ïåðñîíàæà: <?php if ($inf['timereg'] == 0 || $inf['timereg'] < 1430772917) {
echo 'Äî íà÷àëà âðåìåí...';
} else {
echo date('d.m.Y H:i', $inf['timereg']);
} ?> <br>
<?php if ($inf['palpro'] > time()) { ?>
Ïåðñîíàæ ÷èñò ïåðåä çàêîíîì: äî <?= date('d.m.Y H:i', $inf['palpro']) ?>
<br>
<?php }
} else {
echo '<b><font color="green">Àäìèíèñòðàòîð</font></b><br>';
}
if ($inf['redirect'] != '0' && ($u->info['admin'] > 0 || $u->info['id'] == $inf['id'])) {
echo 'Ðåäèðåêò: <small><a target="_blank" href="' . str_replace(
'"', '&quot;', $inf['redirect']
) . '">' . htmlspecialchars($inf['redirect']) . '</a></small><br>';
}
if ($u->info['admin'] > 0) {
echo '<hr><small>Öåíà êîìïëåêòà: ' . (0 + $st['prckr']) . ' êð.</small><br>';
echo '<small>Öåíà êîìïëåêòà: ' . (0 + $st['preckr']) . ' eêð.</small><br>';
echo '<small>Óðîâåíü ïîêóïàòåëÿ: ' . (0 + $st['pbe']) . '</small><br>';
}
?>
<?php
$twk = '';
$sp = mysql_query(
'SELECT * FROM `users_twink` WHERE `uid` = "' . $inf['id'] . '"'
);
while ($pl = mysql_fetch_array($sp)) {
if ($pl['twink'] != 0) {
if ($twk != '') {
$twk .= ', ';
}
if ($inf['twink'] == $pl['twink']) {
$twk .= '<b style="color:#ff9900;">' . $pl['login'] . ' [' . $pl['level'] . ']</b>';
} else {
$twk .= '' . $pl['login'] . ' [' . $pl['level'] . ']';
}
}
}
if ($twk != '') {
echo 'Äðóãèå îáðàçû: ' . $twk . '<br>';
}
?>
<?php
//Èñòîðèÿ èìåí
$names = '';
$sp = mysql_query(
'SELECT * FROM `lastnames` WHERE `uid` = "' . $inf['id'] . '" ORDER BY `time` DESC'
);
$i = 0;
while ($pl = mysql_fetch_array($sp)) {
if ($i > 0) {
$names .= '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ';
}
$names .= '\'' . $pl['login'] . '\' äî ' . date(
'd.m.Y H:i', $pl['time']
) . '<br>';
$i++;
}
if ($names != '') {
echo 'Èñòîðèÿ èìåí: ' . $names . '';
}
$algnt = mysql_fetch_array(
mysql_query(
'SELECT * FROM `users_align` WHERE `uid` = "' . $inf['id'] . '" AND (`delete` = 0 OR `delete` > "' . time(
) . '") LIMIT 1'
)
);
if (isset($algnt['id'])) {
if ($algnt['align'] == 1) {
echo '<div>Âûáðàííàÿ ñòîðîíà: Ñâåò';
if ($algnt['delete'] > 0) {
echo ' (äî ' . date('d.m.Y H:i', $algnt['delete']) . ')';
}
echo '</div>';
} elseif ($algnt['align'] == 3) {
echo '<div>Âûáðàííàÿ ñòîðîíà: Òüìà';
if ($algnt['delete'] > 0) {
echo ' (äî ' . date('d.m.Y H:i', $algnt['delete']) . ')';
}
echo '</div>';
} elseif ($algnt['align'] == 7) {
echo '<div>Âûáðàííàÿ ñòîðîíà: Íåéòðàë';
if ($algnt['delete'] > 0) {
echo ' (äî ' . date('d.m.Y H:i', $algnt['delete']) . ')';
}
echo '</div>';
}
}
if ($st['silver'] > 0) {
echo '<div>';
echo 'Áëàãîñëîâëåíèå Àíãåëîâ: <a href="https://new-combats.com/benediction/" target="_blank"><img title="Áëàãîñëîâëåíèå Àíãåëîâ ' . $st['silver'] . ' óðîâíÿ" src="https://img.new-combats.com/blago/' . $st['silver'] . '.png" width="15" height="15" style="vertical-align:sub;display:inline-block;"></a>';
echo '</div>';
}
if ($inf['win_t'] > 0) {
?>
<div align="left"
style="height:1px; width:300px; background-color:#999999; margin:3px;"></div>
Ïîáåä â òóðíèðàõ: <?= number_format(round($inf['win_t']), 0, ",", " ") ?>
<BR>
Ïîðàæåíèé â òóðíèðàõ: <?= number_format(
round($inf['lose_t']), 0, ",", " "
) ?><BR>
<?php } ?>
</div>
<?php
if ($u->info['align'] == 50) {
$bnk = '';
$bmn1 = 0;
$bmn2 = 0;
$sp = mysql_query('SELECT * FROM `bank` WHERE `uid` = "' . $inf['id'] . '"');
while ($pl = mysql_fetch_array($sp)) {
if ($pl['useNow'] > 0) {
$bnk .= '<br><div style="display:inline-block;padding:5px;border-bottom:1px solid #AEAEAE;">';
} else {
$bnk .= '<br><div style="display:inline-block;padding:5px;border-bottom:1px solid #AEAEAE">';
}
$bnk .= '&nbsp; &bull; <span style="display:inline-block;width:75px;"><small>¹</small> ' . $pl['id'] . '</span>';
$bnk .= '</div>';
}
if ($bnk != '') {
echo '<br><b>Áàíêîâñêèå ñ÷åòà:</b> &nbsp;' . $bnk . '<br>';
}
echo '</div>';
}
?>
<div align="left"
style="height:1px; background-color:#999999; margin:3px; margin-bottom:7px;"></div>
<!-- çíà÷êè --></td>
</tr>
</table>
<?php
if ($inf['align2'] == 50) {
$abnk = mysql_fetch_array(
mysql_query('SELECT * FROM `bank_alh` WHERE `uid` = "' . $inf['id'] . '" LIMIT 1')
);
?>
<img src="https://img.new-combats.com/alchemy1.gif"
onMouseOver="top.hi(this,'<center><b>Îôèöèàëüíûé äèëåð.</b><Br>Èìååò ïðàâî ïðîäàâàòü èãðîâóþ âàëþòó ÅÊÐ</b></center>',event,0,0,1,0,'');"
onMouseOut="top.hic();" onMouseDown="top.hic();">
<?php
}
$ico = [];
if ($inf['marry'] != 0) {
$marry = mysql_fetch_array(
mysql_query(
'SELECT `id`,`login` FROM `users` WHERE `id` = "' . $inf['marry'] . '" LIMIT 1'
)
);
if (isset($marry['id'])) {
$mrtxt = '';
if ($inf['sex'] == 0) {
$mrtxt = 'Æåíàò íà';
} else {
$mrtxt = 'Çàìóæåì çà';
}
$ico[1] .= '<a href="/info/' . $marry['id'] . '"><img src="https://img.new-combats.com/i/i_marry.gif" onMouseOver="top.hi(this,\'' . $mrtxt . ' <b>' . $marry['login'] . '</b>\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
}
$sp = mysql_query(
'SELECT * FROM `users_ico` WHERE `uid` = "' . $inf['id'] . '" AND (`endTime` = 0 OR `endTime` > ' . time(
) . ') LIMIT 100'
);
while ($pl = mysql_fetch_array($sp)) {
$stlico = '';
if ($pl['type'] == 2) {
$stlico .= 'width:37px;height:37xp;padding:2px;';
}
if ($stlico != '') {
$stlico = 'style="' . $stlico . '"';
}
$icon = ' <img ' . $stlico . ' src="https://img.new-combats.com/' . $pl['img'] . '" onMouseOver="top.hi(this,\'' . $pl['text'] . '\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();">';
if ($pl['href'] != '#' && $pl['href'] != '') {
$ico[$pl['type']] .= '<a target="_blank" href="' . $pl['href'] . '">' . $icon . '</a>';
} else {
$ico[$pl['type']] .= $icon;
}
}
unset($icon);
if ($inf['vip'] == 1) {
$ico[1] .= '<img src="https://new-combats.com/res/img/medals/vip2.gif" onMouseOver="top.hi(this,\'<b>Çà ïîìîùü â ðàçâèòèè ïðîåêòà</b>\',event,3,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"> ';
}
//ñèëüâåð
if ($st['silver'] > 0) {
$ico[1] .= ' <a href="https://new-combats.com/library/Vip/" target="_blank"><img src="https://img.new-combats.com/i/vip2.gif" onMouseOver="top.hi(this,\'Çà ïîìîùü â ðàçâèòèè ïðîåêòà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a> ';
}
$irep = mysql_fetch_array(
mysql_query('SELECT * FROM `rep` WHERE `id` = "' . $inf['id'] . '" LIMIT 1')
);
if (isset($irep['id'])) {
//Âîäîñòîê
if ($irep['repdreamscity'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/i/ico/ric_kanal3.gif" onMouseOver="top.hi(this,\'<b>Âîäîñòîê</b><br>Ðûöàðü òðåòüåãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repdreamscity'] > 4999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/i/ico/ric_kanal2.gif" onMouseOver="top.hi(this,\'<b>Âîäîñòîê</b><br>Ðûöàðü âòîðîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repdreamscity'] > 999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/i/ico/ric_kanal1.gif" onMouseOver="top.hi(this,\'<b>Âîäîñòîê</b><br>Ðûöàðü ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//Õðàì çíàíèé
if ($irep['rep1'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/znrune_3.gif" onMouseOver="top.hi(this,\'<b>Õðàì Çíàíèé</b><br>Ïîñâÿùåííûé òðåòüåãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['rep1'] > 999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/znrune_2.gif" onMouseOver="top.hi(this,\'<b>Õðàì Çíàíèé</b><br>Ïîñâÿùåííûé âòîðîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['rep1'] > 99) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/znrune_1.gif" onMouseOver="top.hi(this,\'<b>Õðàì Çíàíèé</b><br>Ïîñâÿùåííûé ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//Àëòàðü êðîâè
if ($irep['rep2'] > 99) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/znbl_1.gif" onMouseOver="top.hi(this,\'<b>Àëòàðü Êðîâè</b><br>Ïîñâÿùåííûé ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//Èçëîì õàîñà
if ($irep['repizlom'] > 24999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/iz_zn_ver10_4.gif" onMouseOver="top.hi(this,\'<b>Èçëîì Õàîñà</b><br>Ãåíåðàë\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repizlom'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/iz_zn_ver10_3.gif" onMouseOver="top.hi(this,\'<b>Èçëîì Õàîñà</b><br>Âåòåðàí\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repizlom'] > 999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/iz_zn_ver10_2.gif" onMouseOver="top.hi(this,\'<b>Èçëîì Õàîñà</b><br>Îïûòíûé áîåö\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repizlom'] > 99) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/iz_zn_ver10_1.gif" onMouseOver="top.hi(this,\'<b>Èçëîì Õàîñà</b><br>Àòòåñòîâàííûé áîåö\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//capitalcity
if ($irep['repcapitalcity'] > 24999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn1_2.gif" onMouseOver="top.hi(this,\'<b>Capital city</b><br>Ðûöàðü âòîðîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repcapitalcity'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn1_1.gif" onMouseOver="top.hi(this,\'<b>Capital city</b><br>Ðûöàðü ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//angelscity
if ($irep['repangelscity'] > 24999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn2_2.gif" onMouseOver="top.hi(this,\'<b>Angels city</b><br>Ðûöàðü âòîðîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repangelscity'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn2_1.gif" onMouseOver="top.hi(this,\'<b>Angels city</b><br>Ðûöàðü ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//demonscity
if ($irep['repdemonscity'] > 24999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn3_2.gif" onMouseOver="top.hi(this,\'<b>Demons city</b><br>Ðûöàðü âòîðîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repdemonscity'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn3_1.gif" onMouseOver="top.hi(this,\'<b>Demons city</b><br>Ðûöàðü ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//devilscity
if ($irep['repdevilscity'] > 24999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn4_2.gif" onMouseOver="top.hi(this,\'<b>Devils city</b><br>Ðûöàðü âòîðîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repdevilscity'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn4_1.gif" onMouseOver="top.hi(this,\'<b>Devils city</b><br>Ðûöàðü ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//suncity
if ($irep['repsuncity'] > 24999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn5_2.gif" onMouseOver="top.hi(this,\'<b>Suncity</b><br>Ðûöàðü âòîðîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repsuncity'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn5_1.gif" onMouseOver="top.hi(this,\'<b>Suncity</b><br>Ðûöàðü ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//Ãîðà ëåãèîíà (ñóêà êàê îíà ìåíÿ çàåáàëà) by R
if ($irep['repabandonedplain'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/1_gora.gif" onMouseOver="top.hi(this,\'<b>Ãîðà Ëåãèîíà</b><br>Ðûöàðü âòîðîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repabandonedplain'] > 999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/2_gora.gif" onMouseOver="top.hi(this,\'<b>Ãîðà Ëåãèîíà</b><br>Ðûöàðü ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//emeraldscity
if ($irep['repemeraldscity'] > 24999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn6_2.gif" onMouseOver="top.hi(this,\'<b>Emeralds city</b><br>Ðûöàðü âòîðîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repemeraldscity'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn6_1.gif" onMouseOver="top.hi(this,\'<b>Emeralds city</b><br>Ðûöàðü ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//sandcity
if ($irep['repsandcity'] > 24999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn7_2.gif" onMouseOver="top.hi(this,\'<b>Sand city</b><br>Ðûöàðü âòîðîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repsandcity'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn7_1.gif" onMouseOver="top.hi(this,\'<b>Sand city</b><br>Ðûöàðü ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
//mooncity
if ($irep['repmooncity'] > 24999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn9_2.gif" onMouseOver="top.hi(this,\'<b>Moon city</b><br>Ðûöàðü âòîðîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($irep['repmooncity'] > 9999) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/zn9_1.gif" onMouseOver="top.hi(this,\'<b>Moon city</b><br>Ðûöàðü ïåðâîãî êðóãà\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
if ($inf['referals'] >= 3000) // çíà÷îê çà ðåôîâ
{
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/sporttrainers5.gif" onMouseOver="top.hi(this,\'<b>Ëó÷øèé Ïîìîùíèê Àäìèíèñòðàöèè</b>\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($inf['referals'] > 1500) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/sporttrainers4.gif" onMouseOver="top.hi(this,\'<b>Îïûòíûé Ïîìîùíèê Àäìèíèñòðàöèè</b>\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
} elseif ($inf['referals'] > 600) {
$ico[1] .= '<a href="#"><img src="https://img.new-combats.com/sporttrainers3.gif" onMouseOver="top.hi(this,\'<b>Íà÷èíàþùèé Ïîìîùíèê Àäìèíèñòðàöèè</b>\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
}
}
if ($inf['banned'] == 0) {
$ai = new \Insallah\Achievements($u);
$ico[3] .= '<div style="float:left; width:800px;">';
foreach ($ai->getTypes() as $type) {
$tmp_1 = $ai->getInfo($inf['id']);
if (!empty($tmp_1[$type])) {
$ico[3] .= '<div class="dvfirs"><div class="dvsec">' . $tmp_1['name' . $type] . ' </div><div class="dvtre">Ðàíã <b>' . $tmp_1['klas' . $type] . '</b> : </div><progress value="' . $tmp_1['klasP' . $type] . '" max="100" class="prog' . $tmp_1['klas' . $type] . '"> ' . $tmp_1['name' . $type] . ' </progress></div>';
}
}
$ico[3] .= '</div>';
}
function timeOut($ttm, $travm = false)
{
if ($travm == false) {
$out = '';
$time_still = $ttm;
$tmp = floor($time_still / 2592000);
$id = 0;
if ($tmp > 0) {
$id++;
if ($id < 3) {
$out .= $tmp . " ìåñ. ";
}
$time_still = $time_still - $tmp * 2592000;
}
$tmp = floor($time_still / 604800);
if ($tmp > 0) {
$id++;
if ($id < 3) {
$out .= $tmp . " íåä. ";
}
$time_still = $time_still - $tmp * 604800;
}
$tmp = floor($time_still / 86400);
if ($tmp > 0) {
$id++;
if ($id < 3) {
$out .= $tmp . " äí. ";
}
$time_still = $time_still - $tmp * 86400;
}
$tmp = floor($time_still / 3600);
if ($tmp > 0) {
$id++;
if ($id < 3) {
$out .= $tmp . " ÷. ";
}
$time_still = $time_still - $tmp * 3600;
}
$tmp = floor($time_still / 60);
if ($tmp > 0) {
$id++;
if ($id < 3) {
$out .= $tmp . " ìèí. ";
}
}
if ($out == '') {
if ($time_still < 0) {
$time_still = 0;
}
$out = $time_still . ' ñåê.';
}
}
return $out;
}
if ($ico[1] != '') {
echo $ico[1];
}
echo '<small>';
if ($inf['jail'] > time()) {
echo '<br><img src="https://img.new-combats.com/i/jail.gif"> Ïåðñîíàæ íàõîäèòñÿ â çàòî÷åíèè åùå ' . timeOut(
$inf['jail'] - time()
) . ' ';
}
if (isset($st['puti'])) {
echo '<br><img src="https://img.new-combats.com/i/items/chains.gif"> Ïåðñîíàæ íå ìîæåò ïåðåäâèãàòüñÿ åùå ' . timeOut(
$st['puti'] - time()
) . ' ';
}
if ($inf['molch1'] > time()) {
echo '<br><img src="https://img.new-combats.com/i/sleeps' . $inf['sex'] . '.gif"> Íà ïåðñîíàæà íàëîæåíî çàêëÿòèå ìîë÷àíèÿ. Áóäåò ìîë÷àòü åùå ' . timeOut(
$inf['molch1'] - time()
) . ' ';
}
if ($inf['molch2'] > time()) {
echo '<br><img src="https://img.new-combats.com/i/fsleeps' . $inf['sex'] . '.gif"> Íà ïåðñîíàæà íàëîæåíî çàêëÿòèå ìîë÷àíèÿ íà ôîðóìå. Áóäåò ìîë÷àòü åùå ' . timeOut(
$inf['molch2'] - time()
) . ' ';
}
if ($inf['clan_delay'] > time()) {
echo '<br>Ó ïåðñîíàæà çàïðåò íà âñòóïëåíèå â êëàíû åù¸: ' . timeOut(
$inf['clan_delay'] - time()
) . ' ';
}
if ($inf['info_delete'] > time() || $inf['info_delete'] == 1) {
echo '<br><img src="https://img.new-combats.com/stopinfo.png"> Íà ïåðñîíàæà íàëîæåíî çàêëÿòèå îáåçëè÷èâàíèÿ.';
if ($inf['info_delete'] > 1) {
echo ' Áóäåò îáåçëè÷åí åùå ' . timeOut($inf['info_delete'] - time()) . '';
}
}
//Åñëè ó ïåðñîíàæà åñòü òðàâìû, ôèç. è ìàã. òðàâìû
$sp = mysql_query(
'SELECT * FROM `eff_users` WHERE `uid` = "' . $inf['id'] . '" AND (`id_eff` = "4" OR `id_eff` = "6") AND `delete` = "0" ORDER BY `id_eff` ASC LIMIT 6'
);
while ($pl = mysql_fetch_array($sp)) {
echo '<br><img src="https://img.new-combats.com/i/travma2.gif"> Ó ïåðñîíàæà - &quot;<b>' . $pl['name'] . '</b>&quot; åùå ' . $u->timeOut(
$pl['timeUse'] - time() + $pl['timeAce']
);
}
//Ïåðñîíàæ îñëàáëåí èç-çà ñìåðòè â áîþ, åùå 4 ìèí. 24 ñåê.
if ($inf['level'] >= 4) {
$nn = 0;
while ($nn < count($st['effects'])) {
if ($st['effects'][$nn]['id_eff'] == 5) {
$osl = mysql_fetch_array(
mysql_query(
'SELECT `id2`,`actionTime` FROM `eff_main` WHERE `id2` = "5" LIMIT 1'
)
);
echo '<br><img src="https://img.new-combats.com/i/travma2.gif"> Ïåðñîíàæ îñëàáëåí èç-çà ñìåðòè â áîþ, åùå ' . timeOut(
$st['effects'][$nn]['timeUse'] + $st['effects'][$nn]['timeAce'] + $osl['actionTime'] - time(
)
) . ' ';
$nn = count($st['effects']) + 1;
}
$nn++;
}
}
echo '</small>';
if ($ico[3] != '') {
echo '<div style="padding-top:20px;"><div style="padding-bottom:10px;"><u>Äîñòèæåíèÿ ïåðñîíàæà:</u></div>' . $ico[3] . '</div>';
}
unset($ico);
if (
(
$inf['align'] >= 2 &&
$inf['align'] < 3 &&
(
$inf['haos'] > time() ||
$inf['haos'] == 1
)
) ||
$inf['banned'] > 0 ||
$inf['jail'] > time()) {
$to = '';
if ($inf['align'] >= 2 && $inf['align'] < 3 && ($inf['haos'] > time(
) || $inf['haos'] == 1)) {
$to = 'õàîñ';
}
if ($inf['banned'] > 0) {
if ($to = '') {
$to = 'áëîê';
} else {
$to = $to . '/áëîê';
}
}
$fm = mysql_fetch_array(
mysql_query(
'SELECT `id`,`hb`,`text` FROM `users_delo` WHERE `uid` = "' . $inf['id'] . '" AND `hb`!=0 ORDER BY `id` DESC LIMIT 1'
)
);
echo '<br><div style="padding-left:5px;">';
if (isset($fm['id'])) {
$from = 'ïàëàäèíîâ';
if ($fm['hb'] == 2) {
$from = 'Àíãåëîâ';
} elseif ($fm['hb'] == 3) {
$from = 'òàðìàíîâ';
}
echo 'Ñîîáùåíèå îò ìîäåðàòîðîâ:<br>';
echo '<font color="red" style="background-color:#fae0e0;"><b>' . $fm['text'] . '</b></font><br>';
}
if ($inf['align'] >= 2 && $inf['align'] < 3 && ($inf['haos'] > time(
) || $inf['haos'] == 1)) {
if ($inf['haos'] == 1) {
echo 'Õàîñ <i>áåññðî÷íî</i>.';
} else {
echo 'Õàîñ åùå <i>' . timeOut($inf['haos'] - time()) . '</i>';
}
}
echo '</div>';
}
//ïîäàðêè
if (($inf['info_delete'] < time(
) && $inf['info_delete'] != 1) || ($u->info['align'] > 1 && $u->info['align'] < 2 || $u->info['align'] > 3 && $u->info['align'] < 4 || $u->info['admin'] > 0 || $u->info['nadmin'] > 0)) {
$gs = ['', '', ''];
$glim = 1000;
$i = 0;
$ij1 = 1;
$sp = mysql_query(
'SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE (`im`.`type` = "38" OR `im`.`type` = "64" OR `iu`.`data` LIKE "%|giftsee=1%") AND `iu`.`uid` = "' . $inf['id'] . '" AND `iu`.`gift` != "" AND `iu`.`delete` = "0" AND `iu`.`inOdet` = "0" ORDER BY `iu`.`id` DESC LIMIT ' . $glim
);
while ($pl = mysql_fetch_array($sp)) {
if (stristr($pl['data'], 'gift_id')) {
$po = $u->lookStats($pl['data']);
$pl_gift = $po['gift_id'];
if ($pl_gift > 0) {
$pl_gift = mysql_fetch_array(
mysql_query(
'SELECT `name`,`img`,`id` FROM `users_gifts` WHERE `id` = "' . mysql_real_escape_string(
$pl_gift
) . '" LIMIT 1'
)
);
if (isset($pl_gift['id'])) {
//Èìåííîé ïîäàðîê
$pl['name'] = $pl_gift['name'];
$pl['img'] = $pl_gift['img'];
}
}
}
//ïîäàðêè
if ($pl['gift'] == 1) {
$pl['gift2'] = 'Íåâèäèìêà';
} else {
$pl['gift2'] = $pl['gift'];
}
$gs[0] .= '<img src="https://img.new-combats.com/i/items/' . $pl['img'] . '" style="margin:1px 1px 0 0;display:block;float:left;cursor:pointer;" onClick="lookGift(event,0,\'' . $pl['name'] . '\',\'' . $pl['img'] . '\',\'' . $pl['gtxt1'] . '\',\'' . $pl['gift'] . '\');" title="' . $pl['gtxt1'] . '
Ïîäàðîê îò ' . $pl['gift2'] . '" />';
$ij1++;
}
$ij2 = 1;
$sp = mysql_query(
'SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE (`im`.`type` = "63" OR `im`.`type` = "37" OR `iu`.`data` LIKE "%|giftsee=2%") AND `iu`.`uid` = "' . $inf['id'] . '" AND `iu`.`gift` != "" AND `iu`.`delete` = "0" AND `iu`.`inOdet` = "0" ORDER BY `iu`.`id` DESC LIMIT ' . $glim
);
while ($pl = mysql_fetch_array($sp)) {
//if($pl['type'] == 63 || $pl['type'] == 37) {
//îòêðûòêè
if ($pl['gift'] == 1) {
$pl['gift2'] = 'Íåâèäèìêà';
} else {
$pl['gift2'] = $pl['gift'];
}
$gs[1] .= '<img src="https://img.new-combats.com/i/items/' . $pl['img'] . '" style="margin:1px 1px 0 0;display:block;float:left;cursor:pointer;" onClick="lookGift(event,0,\'' . $pl['name'] . '\',\'' . $pl['img'] . '\',\'' . $pl['gtxt1'] . '\',\'' . $pl['gift'] . '\');" title="' . $pl['gtxt1'] . '
Ïîäàðîê îò ' . $pl['gift2'] . '" />';
//}
$ij2++;
}
$ij3 = 1;
$sp = mysql_query(
'SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `im`.`type` = 28 AND `iu`.`uid` = "' . $inf['id'] . '" AND `iu`.`gift` != "" AND `iu`.`delete` = "0" AND `iu`.`inOdet` = "0" ORDER BY `iu`.`id` DESC LIMIT ' . $glim
);
while ($pl = mysql_fetch_array($sp)) {
if ($pl['type'] == 28) {
//Áóêåòû
if ($pl['gift'] == 1) {
$pl['gift2'] = 'Íåâèäèìêà';
} else {
$pl['gift2'] = $pl['gift'];
}
$gs[2] .= '<img src="https://img.new-combats.com/i/items/' . $pl['img'] . '" style="margin:1px 1px 0 0;display:block;float:left;cursor:pointer;" onClick="lookGift(event,0,\'' . $pl['name'] . '\',\'' . $pl['img'] . '\',\'' . $pl['gtxt1'] . '\',\'' . $pl['gift'] . '\');" title="' . $pl['gtxt1'] . '
Ïîäàðîê îò ' . $pl['gift2'] . '" />';
}
$ij3++;
}
if ($gs[0] != '' || $gs[1] != '' || $gs[2] != '') {
if ($gs[2] != '') {
$gs[2] = '<tr><td style="padding-top:20px;"><div style="padding-bottom:2px;"><u>Áóêåòû:</u></div><br>' . $gs[2] . '</td></tr>';
}
echo '<br><br><table style="max-width:1260px; width:800px;">' . $gs[2] . '<tr><td><div style="padding-top:20px; padding-bottom:2px;"><u>Ïîäàðêè:</u></div><br>' . $gs[0] . '</td></tr><tr><td style="padding-top:7px;">' . $gs[1] . '</td></tr></table>';
$ij4 = mysql_fetch_array(
mysql_query(
'SELECT COUNT(`iu`.`id`) FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE (`im`.`type` = 28 OR `im`.`type` = 63 OR `im`.`type` = 38 OR `im`.`type` = 64 OR `im`.`type` = 37 OR `iu`.`data` LIKE "%|giftsee=1%" OR `iu`.`data` LIKE "%|giftsee=2%") AND `iu`.`uid` = "' . $inf['id'] . '" AND `iu`.`gift` != "" AND `iu`.`delete` = "0" AND `iu`.`inOdet` = "0" LIMIT 1'
)
);
$ij4 = $ij4[0];
if ($ij1 + $ij2 + $ij3 < $ij4) {
if (!isset($_GET['maxgift'])) {
echo '<small><a href="/info/' . $inf['id'] . '&maxgift=1">Íàæìèòå ñþäà, ÷òîáû óâèäåòü âñå ïîäàðêè...</a></small>';
} else {
echo '<small><a href="/info/' . $inf['id'] . '">Íàæìèòå ñþäà, ÷òîáû ñêðûòü ïîäàðêè</a></small>';
}
}
}
}
if ($inf['no_ip'] == 'trupojor' && $u->info['admin'] > 0) {
if (isset($_GET['emonster'])) {
$monster = mysql_fetch_array(
mysql_query(
'SELECT * FROM `aaa_monsters` WHERE `uid` = "' . mysql_real_escape_string(
$inf['id']
) . '" LIMIT 1'
)
);
if (isset($_POST['bot_sroom'])) {
$monster['start_room'] = (int)$_POST['bot_sroom'];
$monster['start_day'] = (int)$_POST['bot_sday'];
$monster['start_dd'] = (int)$_POST['bot_sdd'];
$monster['start_mm'] = (int)$_POST['bot_smm'];
$monster['start_hh'] = (int)$_POST['bot_shh'];
$monster['start_min'] = (int)$_POST['bot_smin'];
$monster['back_day'] = (int)$_POST['bot_bday'];
$monster['back_dd'] = (int)$_POST['bot_bdd'];
$monster['back_mm'] = (int)$_POST['bot_bmm'];
$monster['back_hh'] = (int)$_POST['bot_bhh'];
$monster['back_min'] = (int)$_POST['bot_bmin'];
$monster['start_text'] = $_POST['bot_stext'];
$monster['back_text'] = $_POST['bot_btext'];
$monster['win_text'] = $_POST['bot_wintext'];
$monster['lose_text'] = $_POST['bot_losetext'];
$monster['nich_text'] = $_POST['bot_nichtext'];
$monster['win_back'] = $_POST['bot_winback'];
$monster['time_restart'] = $_POST['bot_trs'];
$monster['win_itm'] = $_POST['bot_winitm'];
$monster['win_money1'] = $_POST['bot_winmoney1'];
$monster['win_money2'] = $_POST['bot_winmoney2'];
$monster['win_exp'] = $_POST['bot_winexp'];
$monster['win_eff'] = $_POST['bot_wineff'];
$monster['win_ico'] = $_POST['bot_winico'];
$monster['lose_itm'] = $_POST['bot_loseitm'];
$monster['lose_money1'] = $_POST['bot_losemoney1'];
$monster['lose_money2'] = $_POST['bot_losemoney2'];
$monster['lose_exp'] = $_POST['bot_loseexp'];
$monster['lose_eff'] = $_POST['bot_loseeff'];
$monster['lose_ico'] = $_POST['bot_loseico'];
if (!isset($monster['id'])) {
mysql_query(
'INSERT INTO `aaa_monsters` (
`uid`,`start_room`,`start_day`,`back_day`,`start_dd`,`start_mm`,`start_hh`,`start_min`,`back_min`,`back_dd`,`back_mm`,`back_hh`,
`start_text`,`back_text`,`win_text`,`lose_text`,`win_money1`,`win_money2`,`lose_money`,`lose_money2`,`win_exp`,`lose_exp`,`win_itm`,
`lose_itm`,`win_eff`,`lose_eff`,`win_ico`,`lose_ico`,`win_back`,`time_restart`,`nich_text`
) VALUES (
"' . mysql_real_escape_string($inf['id']) . '",
"' . mysql_real_escape_string($monster['start_room']) . '",
"' . mysql_real_escape_string($monster['start_day']) . '",
"' . mysql_real_escape_string($monster['back_day']) . '",
"' . mysql_real_escape_string($monster['start_dd']) . '",
"' . mysql_real_escape_string($monster['start_mm']) . '",
"' . mysql_real_escape_string($monster['start_hh']) . '",
"' . mysql_real_escape_string($monster['start_min']) . '",
"' . mysql_real_escape_string($monster['back_min']) . '",
"' . mysql_real_escape_string($monster['back_dd']) . '",
"' . mysql_real_escape_string($monster['back_mm']) . '",
"' . mysql_real_escape_string($monster['back_hh']) . '",
"' . mysql_real_escape_string($monster['start_text']) . '",
"' . mysql_real_escape_string($monster['back_text']) . '",
"' . mysql_real_escape_string($monster['win_text']) . '",
"' . mysql_real_escape_string($monster['lose_text']) . '",
"' . mysql_real_escape_string($monster['win_money1']) . '",
"' . mysql_real_escape_string($monster['win_money2']) . '",
"' . mysql_real_escape_string($monster['lose_money']) . '",
"' . mysql_real_escape_string($monster['lose_money2']) . '",
"' . mysql_real_escape_string($monster['win_exp']) . '",
"' . mysql_real_escape_string($monster['lose_exp']) . '",
"' . mysql_real_escape_string($monster['win_itm']) . '",
"' . mysql_real_escape_string($monster['lose_itm']) . '",
"' . mysql_real_escape_string($monster['win_eff']) . '",
"' . mysql_real_escape_string($monster['lose_eff']) . '",
"' . mysql_real_escape_string($monster['win_ico']) . '",
"' . mysql_real_escape_string($monster['lose_ico']) . '",
"' . mysql_real_escape_string($monster['win_back']) . '",
"' . mysql_real_escape_string($monster['time_restart']) . '",
"' . mysql_real_escape_string($monster['nich_text']) . '"
) '
);
} else {
mysql_query(
'UPDATE `aaa_monsters` SET
`uid` = "' . mysql_real_escape_string($inf['id']) . '",
`start_room` = "' . mysql_real_escape_string($monster['start_room']) . '",
`start_day` = "' . mysql_real_escape_string($monster['start_day']) . '",
`back_day` = "' . mysql_real_escape_string($monster['back_day']) . '",
`start_dd` = "' . mysql_real_escape_string($monster['start_dd']) . '",
`start_mm` = "' . mysql_real_escape_string($monster['start_mm']) . '",
`start_hh` = "' . mysql_real_escape_string($monster['start_hh']) . '",
`start_min` = "' . mysql_real_escape_string($monster['start_min']) . '",
`back_min` = "' . mysql_real_escape_string($monster['back_min']) . '",
`back_dd` = "' . mysql_real_escape_string($monster['back_dd']) . '",
`back_mm` = "' . mysql_real_escape_string($monster['back_mm']) . '",
`back_hh` = "' . mysql_real_escape_string($monster['back_hh']) . '",
`start_text` = "' . mysql_real_escape_string($monster['start_text']) . '",
`back_text` = "' . mysql_real_escape_string($monster['back_text']) . '",
`win_text` = "' . mysql_real_escape_string($monster['win_text']) . '",
`lose_text` = "' . mysql_real_escape_string($monster['lose_text']) . '",
`win_money1` = "' . mysql_real_escape_string($monster['win_money1']) . '",
`win_money2` = "' . mysql_real_escape_string($monster['win_money2']) . '",
`lose_money` = "' . mysql_real_escape_string($monster['lose_money']) . '",
`lose_money2` = "' . mysql_real_escape_string($monster['lose_money2']) . '",
`win_exp` = "' . mysql_real_escape_string($monster['win_exp']) . '",
`lose_exp` = "' . mysql_real_escape_string($monster['lose_exp']) . '",
`win_itm` = "' . mysql_real_escape_string($monster['win_itm']) . '",
`lose_itm` = "' . mysql_real_escape_string($monster['lose_itm']) . '",
`win_eff` = "' . mysql_real_escape_string($monster['win_eff']) . '",
`lose_eff` = "' . mysql_real_escape_string($monster['lose_eff']) . '",
`win_ico` = "' . mysql_real_escape_string($monster['win_ico']) . '",
`lose_ico` = "' . mysql_real_escape_string($monster['lose_ico']) . '",
`win_back` = "' . mysql_real_escape_string($monster['win_back']) . '",
`time_restart` = "' . mysql_real_escape_string($monster['time_restart']) . '",
`nich_text` = "' . mysql_real_escape_string($monster['nich_text']) . '"
WHERE `id` = "' . mysql_real_escape_string($monster['id']) . '" LIMIT 1'
);
}
echo '<font color=red><b>Íîâûå äàííûå áûëè óñïåøíî ñîõðàíåíû!</b></font>';
}
?>
<b style="color:red">Ïàðàìåòðû ìîíñòðà:</b><br>
<form method="post" action="/info/<?= $inf['id'] ?>&emonster">
<table style="padding-left:10px;" width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td>Ìåñòî ïîÿâëåíèÿ (id êîìíàòû):
<input type="text" name="bot_sroom" id="bot_sroom"
value="<?= $monster['start_room'] ?>">
&nbsp; <input value="Îáíóëèòü îæèäàíèå" type="button"
onclick="location.href='/info/<?= $inf['id'] ?>&emonster&restartmonster'"/>
</td>
</tr>
<tr>
<td>Âðåìÿ îæèäàíèÿ ïîñëå ïîðàæåíèÿ áîòà: <input name="bot_trs" id="bot_trs"
value="<?= $monster['time_restart'] ?>"
type="text"> ìèí.
</td>
</tr>
<tr>
<td>Èñ÷åçíåò ïîñëå ñâîåé ïîáåäû:
<select name="bot_winback" id="bot_winback">
<option value="0">Íåò</option>
<option <?php if ($monster['win_back'] == 1) {
echo 'selected';
} ?> value="1">Äà
</option>
</select></td>
</tr>
<tr>
<td>
<div align="left"
style="height:1px; width:300px; background-color:#999999; margin:3px;"></div>
</td>
</tr>
<tr>
<td>Ïîÿâëÿåòñÿ,
ÄÍ
<select name="bot_sday" id="bot_sday">
<option value="-1">&bull; Äåíü íåäåëè</option>
<option <?php if ($monster['start_day'] == 1) {
echo 'selected';
} ?> value="1">Ïîíåäåëüíèê
</option>
<option <?php if ($monster['start_day'] == 2) {
echo 'selected';
} ?> value="2">Âòîðíèê
</option>
<option <?php if ($monster['start_day'] == 3) {
echo 'selected';
} ?> value="3">Ñðåäà
</option>
<option <?php if ($monster['start_day'] == 4) {
echo 'selected';
} ?> value="4">×åòâåðã
</option>
<option <?php if ($monster['start_day'] == 5) {
echo 'selected';
} ?> value="5">Ïÿòíèöà
</option>
<option <?php if ($monster['start_day'] == 6) {
echo 'selected';
} ?> value="6">Ñóááîòà
</option>
<option <?php if ($monster['start_day'] == 7) {
echo 'selected';
} ?> value="7">Âîñêðåñåíüå
</option>
</select>
Ä
<select name="bot_sdd" id="bot_sdd">
<option value="-1">&bull; Äåíü</option>
<?php $i = 0;
while ($i < 31) {
$i++; ?>
<option <?php if ($monster['start_dd'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>">
<?= $i ?>
</option>
<?php } ?>
</select>
Ì
<select name="bot_smm" id="bot_smm">
<option value="-1">&bull; Ìåñÿö</option>
<?php $i = 0;
while ($i < 12) {
$i++; ?>
<option <?php if ($monster['start_mm'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>"><?= $i ?></option>
<?php } ?>
</select>
×
<select name="bot_shh" id="bot_shh">
<option value="-1">&bull; ×àñ</option>
<?php $i = -1;
while ($i < 23) {
$i++; ?>
<option <?php if ($monster['start_hh'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>"><?= $i ?></option>
<?php } ?>
</select>
Ìèí
<select name="bot_smin" id="bot_smin">
<option value="-1">&bull; Ìèí</option>
<?php $i = -1;
while ($i < 58) {
$i++; ?>
<option <?php if ($monster['start_min'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>"><?= $i ?></option>
<?php } ?>
</select>
</td>
</tr>
<tr>
<td>Èñ÷åçàåò, &nbsp; &nbsp;ÄÍ
<select name="bot_bday" id="bot_bday">
<option value="-1">&bull; Äåíü íåäåëè</option>
<option <?php if ($monster['back_day'] == 1) {
echo 'selected';
} ?> value="1">Ïîíåäåëüíèê
</option>
<option <?php if ($monster['back_day'] == 2) {
echo 'selected';
} ?> value="2">Âòîðíèê
</option>
<option <?php if ($monster['back_day'] == 3) {
echo 'selected';
} ?> value="3">Ñðåäà
</option>
<option <?php if ($monster['back_day'] == 4) {
echo 'selected';
} ?> value="4">×åòâåðã
</option>
<option <?php if ($monster['back_day'] == 5) {
echo 'selected';
} ?> value="5">Ïÿòíèöà
</option>
<option <?php if ($monster['back_day'] == 6) {
echo 'selected';
} ?> value="6">Ñóááîòà
</option>
<option <?php if ($monster['back_day'] == 7) {
echo 'selected';
} ?> value="7">Âîñêðåñåíüå
</option>
</select>
Ä
<select name="bot_bdd" id="bot_bdd">
<option value="-1">&bull; Äåíü</option>
<?php $i = 0;
while ($i < 31) {
$i++; ?>
<option <?php if ($monster['back_dd'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>">
<?= $i ?>
</option>
<?php } ?>
</select>
Ì
<select name="bot_bmm" id="bot_bmm">
<option value="-1">&bull; Ìåñÿö</option>
<?php $i = 0;
while ($i < 12) {
$i++; ?>
<option <?php if ($monster['back_mm'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>"><?= $i ?></option>
<?php } ?>
</select>
×
<select name="bot_bhh" id="bot_bhh">
<option value="-1">&bull; ×àñ</option>
<?php $i = -1;
while ($i < 23) {
$i++; ?>
<option <?php if ($monster['back_hh'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>"><?= $i ?></option>
<?php } ?>
</select>
Ìèí
<select name="bot_bmin" id="bot_bmin">
<option value="-1">&bull; Ìèí</option>
<?php $i = -1;
while ($i < 58) {
$i++; ?>
<option <?php if ($monster['back_min'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>"><?= $i ?></option>
<?php } ?>
</select></td>
</tr>
<tr>
<td>
<div align="left"
style="height:1px; width:300px; background-color:#999999; margin:3px;"></div>
</td>
</tr>
<tr>
<td>Òåêñò ïîÿâëåíèÿ (Ëîãèí áîòà <b>{b}</b>, Ëîãèíû èãðîêîâ <b>{u}</b>):</td>
</tr>
<tr>
<td><input value="<?= $monster['start_text'] ?>" name="bot_stext"
type="text" id="bot_stext" size="100" maxlength="250"></td>
</tr>
<tr>
<td>Òåêñò èñ÷åçíîâåíèÿ:</td>
</tr>
<tr>
<td><input value="<?= $monster['back_text'] ?>" name="bot_btext" type="text"
id="bot_btext" size="100" maxlength="250"></td>
</tr>
<tr>
<td>Òåêñò ïîáåäû èãðîêà:</td>
</tr>
<tr>
<td><input value="<?= $monster['win_text'] ?>" name="bot_wintext"
type="text" id="bot_wintext" size="100" maxlength="250"></td>
</tr>
<tr>
<td>Òåêñò ïîðàæåíèÿ èãðîêà:</td>
</tr>
<tr>
<td><input value="<?= $monster['lose_text'] ?>" name="bot_losetext"
type="text" id="bot_losetext" size="100" maxlength="250"></td>
</tr>
<tr>
<td>Òåêñò íè÷üåé:</td>
</tr>
<tr>
<td><input value="<?= $monster['nich_text'] ?>" name="bot_nichtext"
type="text" id="bot_nichtext" size="100" maxlength="250"></td>
</tr>
<tr>
<td>
<div align="left"
style="height:1px; width:300px; background-color:#999999; margin:3px;"></div>
<b>Íàãðàäà (ïîáåäà èãðîêà):</b></td>
</tr>
<tr>
<td>Êð.:</td>
</tr>
<tr>
<td><input value="<?= $monster['win_money1'] ?>" name="bot_winmoney1"
type="text" id="bot_winmoney1" size="100" maxlength="17"></td>
</tr>
<tr>
<td>Åêð.:</td>
</tr>
<tr>
<td><input value="<?= $monster['win_money2'] ?>" name="bot_winmoney2"
type="text" id="bot_winmoney2" size="100" maxlength="10"></td>
</tr>
<tr>
<td>Îïûò (Çà 100% ÍÐ ìîíñòðà):</td>
</tr>
<tr>
<td><input value="<?= $monster['win_exp'] ?>" name="bot_winexp" type="text"
id="bot_winexp" size="100" maxlength="17"></td>
</tr>
<tr>
<td>Ïðåäìåòû (id@kolvo@data, ...):</td>
</tr>
<tr>
<td><input value="<?= $monster['win_itm'] ?>" name="bot_winitm" type="text"
id="bot_winitm" size="100" maxlength="500"></td>
</tr>
<tr>
<td>Ýôôåêò:</td>
</tr>
<tr>
<td><input value="<?= $monster['win_eff'] ?>" name="bot_wineff" type="text"
id="bot_wineff" size="100" maxlength="500"></td>
</tr>
<tr>
<td>Ïîäâèãè:</td>
</tr>
<tr>
<td><input value="<?= $monster['win_ico'] ?>" name="bot_winico" type="text"
id="bot_winico" size="100" maxlength="500"></td>
</tr>
<tr>
<td>
<div align="left"
style="height:1px; width:300px; background-color:#999999; margin:3px;"></div>
<b>Íàãðàäà (ïîðàæåíèå èãðîêà):</b></td>
</tr>
<tr>
<td>Êð.:</td>
</tr>
<tr>
<td><input value="<?= $monster['lose_money1'] ?>" name="bot_losemoney1"
type="text" id="bot_losemoney1" size="100" maxlength="10"></td>
</tr>
<tr>
<td>Åêð.:</td>
</tr>
<tr>
<td><input value="<?= $monster['lose_money2'] ?>" name="bot_losemoney2"
type="text" id="bot_losemoney2" size="100" maxlength="10"></td>
</tr>
<tr>
<td>Îïûò:</td>
</tr>
<tr>
<td><input value="<?= $monster['lose_exp'] ?>" name="bot_loseexp"
type="text" id="bot_loseexp" size="100" maxlength="17"></td>
</tr>
<tr>
<td>Ïðåäìåòû:</td>
</tr>
<tr>
<td><input value="<?= $monster['lose_itm'] ?>" name="bot_loseitm"
type="text" id="bot_loseitm" size="100" maxlength="500"></td>
</tr>
<tr>
<td>Ýôôåêò:</td>
</tr>
<tr>
<td><input value="<?= $monster['lose_eff'] ?>" name="bot_loseeff"
type="text" id="bot_loseeff" size="100" maxlength="500"></td>
</tr>
<tr>
<td>Ïîäâèãè:</td>
</tr>
<tr>
<td><input value="<?= $monster['lose_ico'] ?>" name="bot_loseico"
type="text" id="bot_loseico" size="100" maxlength="500"></td>
</tr>
</table>
<div style="padding-left:120px;">
<input type="submit" value="Ñîõðàíèòü"/>
</div>
<br><br>
</form>
<div style="height:1px; width:300px; background-color:#999999; margin:3px;"
align="center">
<div onClick="location.href='/info/<?= $inf['id'] ?>'"
style="border:1px solid #999999; cursor:pointer; background-color:#EAEAEA; width:150px;"
align="center"><small>Ñêðûòü</small></div>
</div>
<?php
} else {
?>
<div style="height:1px; width:300px; background-color:#999999; margin:3px;"
align="center">
<div onClick="location.href='/info/<?= $inf['id'] ?>&emonster'"
style="border:1px solid #999999; cursor:pointer; background-color:#EAEAEA; width:150px;"
align="center"><small>Íàñòðîéêà ìîíñòðà</small></div>
</div>
<?php
}
}
//òåìíûå äåëèøêè :D
if ($inf['id'] == 1 || $inf['id'] == 15) {
} elseif ($inf['no_ip'] != 'trupojor' && (($u->info['align'] >= 1.1 && $u->info['align'] <= 1.99 && $inf['admin'] < 1) || ($u->info['align'] >= 3.05 && $u->info['align'] <= 3.99 && $inf['admin'] < 1) || $u->info['admin'] > 0 || $u->info['nadmin'] > 0)) {
$mults = '';
$bIP = [];
$spl = mysql_query(
'SELECT * FROM `mults` WHERE (`uid` = "' . $inf['id'] . '" OR `uid2` = "' . $inf['id'] . '") AND `uid`!="0" AND `uid2`!="0"'
);
while ($pls = mysql_fetch_array($spl)) {
$usr = $pls['uid'];
if ($usr == $inf['id']) {
$usr = $pls['uid2'];
}
if ($pls['id'] == 2495806) {
} elseif (!isset($bIP[$usr]) && $usr != $inf['id']) {
$si = mysql_fetch_array(
mysql_query(
'SELECT `id`,`admin`,`online` FROM `users` WHERE `id` = "' . mysql_real_escape_string(
$usr
) . '" AND `login` != "delete" LIMIT 1'
)
);
if (isset($si['id'])) {
if ($si['admin'] == 0) {
if ($si['online'] > time() - 520) {
$mults .= '<font color=green>' . $u->microLogin(
$si['id'], 1
) . '</font>, ';
} else {
$mults .= $u->microLogin($si['id'], 1) . ', ';
}
}
}
}
}
if ($nopal) {
//echo '<h3>Âû íå ìîæåòå ïðîñìàòðèâàòü èíôîðìàöèþ ñòàðøåãî ïî çâàíèþ...</h3>';
} elseif ($u->info['admin'] == 0 && (($u->info['admin'] == 0 && (floor(
$u->info['align']
) == 1 && $inf['align'] >= 3.01 && $inf['align'] <= 3.99) || (floor(
$u->info['align']
) == 3 && $inf['align'] >= 1.1 && $inf['align'] <= 1.99)) || ($u->info['admin'] == 0 && $inf['admin'] > 0))) {
echo '<h3>Ïåðñîíàæ íîñèò âðàæåñêóþ ñêëîííîñòü...</h3>';
} else {
echo '<br /><br /><div style="color:#828282;">Çà èãðîêîì çàìå÷åíû ñëåäóþùèå òåìíûå äåëèøêè:<br /><small><span class=dsc>';
if (!isset($_GET['mod_inf'])) {
echo '<a href="/info/' . $inf['id'] . '&mod_inf">Ïîêàçàòü ëè÷íîå äåëî</a>';
} else {
//Ëè÷íîå äåëî ïåðñîíàæà
$log = mysql_query(
'SELECT * FROM `users_delo` WHERE `uid`="' . $inf['id'] . '" AND `type`="0" ORDER by `id` DESC LIMIT 21'
);
$i = 0;
while ($log_w = mysql_fetch_array($log)) {
echo '' . date(
"d.m.Y H:i:s", $log_w['time']
) . '&nbsp;' . $log_w['text'] . ' <br />';
$i++;
}
echo '<a href="/info/' . $inf['id'] . '">Ñêðûòü ëè÷íîå äåëî</a>';
}
echo '</small><br>';
//Èíôîðìàöèÿ äëÿ ïàëàäèíîâ\òàðìàíîâ\àíãåëîâ
if (($u->info['align'] >= 1.4 && $u->info['align'] <= 1.99 && $u->info['align'] != 1.6 && $u->info['align'] != 1.75 && $inf['admin'] < 1) || ($u->info['align'] >= 3.05 && $u->info['align'] <= 3.99 && $u->info['align'] != 3.06 && $inf['admin'] < 1) || $u->info['admin'] > 0) {
if ((int)$u->info['align'] == 1) {
$rang = 'Ïàëàäèíîâ';
} elseif ((int)$u->info['align'] == 3) {
$rang = 'Òàðìàíîâ';
} else {
$rang = 'Àíãåëîâ';
}
if ($u->info['admin'] == 1) {
echo 'Êîìíàòà: ' . $inf['room'] . '<br />';
}
if ((int)$inf['host_reg'] >= 1) {
$inf['ref'] = $u->microLogin((int)$inf['host_reg'], 1);
} else {
$inf['ref'] = '--';
}
if (!isset($inf['ipReg'])) {
$inf['ipReg'] = '--';
}
echo '
<br />
<b style="color:red"><u>Òîëüêî äëÿ ' . $rang . '</u></b><br />
<i>Äåíü ðîæäåíèÿ: ' . $inf['bithday'] . '<br />';
if ($inf['vip'] == 1) {
echo '<font color=red><b>VIP ïåðñîíàæ</font></b><br>';
}
if ($u->info['admin'] > 0) {
echo '<font color=green><b>';
$mls = mysql_fetch_array(
mysql_query(
'SELECT * FROM `users_rbk` WHERE `email` = "' . mysql_real_escape_string(
$inf['mail']
) . '" LIMIT 1'
)
);
if (isset($mls['name'])) {
echo '<u>E-mail: ' . $inf['mail'] . '</u> (ÐÀÑÑÛËÊÀ)';
} else {
echo 'E-mail: ' . $inf['mail'];
}
echo ' &nbsp; & &nbsp; ' . $inf['send'] . '<br />';
echo '</b></font>';
} else {
echo '<br>';
}
if ($inf['no_ip'] != 0) {
$inf['ipReg'] = $inf['no_ip'];
$inf['ip'] = $inf['no_ip'];
}
echo 'Ïåðñîíàæà ïðèãëàñèëè: ' . $inf['ref'] . '<br />
Ïîñëåäíèé ðàç çàõîäèë â êëóá: ' . date('d.m.Y H:i', $inf['online']) . '<br />
' . $pr['login'] . 'IP ïðè ðåãèñòðàöèè: ' . $inf['ipReg'] . '<br />';
if ($inf['no_ip'] == '' || $u->info['admin'] > 0) {
echo 'IP ïîñëåäíèå: <b>' . $inf['ip'] . '</b>';
$auth = mysql_query(
'SELECT * FROM `logs_auth` WHERE `uid`="' . $inf['id'] . '" AND `type`="1" ORDER by `id` DESC LIMIT 10'
);
$country = '';
while ($auth_w = mysql_fetch_array($auth)) {
echo '<br />' . $auth_w['ip'] . ' <small><b>(' . date(
'd.m.Y H:i', $auth_w['time']
) . ')</b></small>';
}
} else {
echo 'IP ïîñëåäíèå: <b>' . $inf['no_ip'] . '</b>';
}
if ($inf['no_ip'] == '' || $u->info['admin'] > 0) {
if ($mults != '' && $inf['admin'] == 0) {
$mults = trim($mults, ', ');
echo 'Äðóãèå íèêè ýòîãî áîéöà: ' . $mults . '<br />';
}
}
$referalos = '';
$rfs = 0;
$sp = mysql_query(
'SELECT `id`,`login`,`ip`,`ipreg`,`timereg`,`online` FROM `users` WHERE `host_reg` = "' . $inf['id'] . '" ORDER BY `timereg` DESC'
);
while ($pl = mysql_fetch_array($sp)) {
$referalos .= '<br>Äàòà ðåã.: ' . date(
'd.m.Y H:i', $pl['timereg']
) . ' / Áûë òóò: ' . date(
'd.m.Y H:i', $pl['online']
) . ' &nbsp; ' . $u->microLogin(
$pl['id'], 1
) . ' <small>( ' . $pl['ip'] . ' , ' . $pl['ipreg'] . ' )</small>';
$rfs++;
}
if ($referalos == '') {
$referalos = '<i>Îòñóòñòâóþò</i>';
}
echo '<hr><b>Ðåôåðàëû áîéöà:</b>' . $referalos . '<hr>';
if ($u->info['admin'] > 0) {
echo 'Äîï. âîçìîæíîñòè: <small><a href="/info/' . $inf['id'] . '&wipe&sd4=' . $u->info['nextAct'] . '">ñáðîñèòü õàðàêòåðèñòèêè</a></small><br>';
$on1 = mysql_fetch_array(
mysql_query(
'SELECT `time_all`,`time_today` FROM `online` WHERE `uid` = "' . $inf['id'] . '" LIMIT 1'
)
);
echo 'Âðåìÿ â îíëàéíå (âñåãî): ' . timeOut(
$on1['time_all']
) . '<br>Âðåìÿ â îíëàéíå (ñåãîäíÿ): ' . timeOut(
$on1['time_today']
) . '<br>';
}
if ($inf['molch3'] < time() && $inf['molch1'] > time()) {
echo '<small><a href="/info/' . $inf['id'] . '&molchMax&sd4=' . $u->info['nextAct'] . '">Çàïðåòèòü ïåðñîíàæó îòïðàâëÿòü ñîîáùåíèÿ ñ ìîë÷àíêîé</a></small><br>';
}
echo '
Îïûò: ' . $inf['exp'] . ' <br />
×èñëî íåèñïîëüçîâàííûõ UP-îâ: ' . $inf['ability'] . ' <br />
<b>Êðåäèòîâ:</b> ' . $inf['money'] . '<br><b>ÅâðîÊðåäèòîâ:</b> ' . $inf['money2'] . '<br><b>Çóáîâ:</b> <small>' . $u->zuby(
$inf['money4']
) . '</small>';
$bnk = '';
$bmn1 = 0;
$bmn2 = 0;
$sp = mysql_query('SELECT * FROM `bank` WHERE `uid` = "' . $inf['id'] . '"');
while ($pl = mysql_fetch_array($sp)) {
if ($pl['useNow'] > 0) {
$bnk .= '<div style="padding:5px;border-bottom:1px solid #AEAEAE;background-color:#efefef;">';
} else {
$bnk .= '<div style="padding:5px;border-bottom:1px solid #AEAEAE">';
}
$bnk .= '&nbsp; &bull; <span style="display:inline-block;width:75px;"><small>¹</small> ' . $pl['id'] . '</span>';
$bnk .= '<span style="display:inline-block;width:100px;"><small>' . $pl['money1'] . ' êð.</small></span>';
$bnk .= '<span style="display:inline-block;width:100px;"><small>' . $pl['money2'] . ' åêð.</small></span>';
if ($u->info['admin'] > 0) {
$bnk .= '<span style="display:inline-block;"><small>Ïàðîëü: ' . htmlspecialchars(
$pl['pass'], null, 'cp1251'
) . '</small></span>';
}
if ($pl['moneyBuy'] > 0) {
$ds = '<b><i><u>Ïåðñîíàæ ïîêóïàë åâðîêðåäèòû</u></i></b>&nbsp;&nbsp;Ñóììà : ' . $pl['moneyBuy'] . '<br />';
}
$bmn1 += $pl['money1'];
$bmn2 += $pl['money2'];
$bnk .= '</div>';
}
$pk = mysql_fetch_array(
mysql_query(
'SELECT SUM(`ekr`) FROM `pay_operation` WHERE `uid` = "' . $inf['id'] . '" AND `good` > 0 LIMIT 1'
)
);
echo '<br><b><i><u>Ïåðñîíàæ ïîêóïàë åâðîêðåäèòû</u></i></b>&nbsp;&nbsp;Ñóììà : ' . $pk[0] . ' ÅÊÐ<br />';
if ($bnk != '') {
echo '<br><b>Áàíêîâñêèå ñ÷åòà:</b>' . $bnk . ' &nbsp; <small><b>Äåíüãè (Âñåãî â áàíêå):</b> &nbsp; ' . $bmn1 . ' êð. &nbsp; &nbsp; ' . $bmn2 . ' åêð.</small><br/>' . $ds;
}
if ($u->info['admin'] > 0 && $inf['admin'] > 0) {
echo '<br><small>admin: ' . $inf['admin'] . '</small>';
}
echo '</div>';
}
}
}
?>
<td width="111" align=right valign=top>
<div style="float:right">
<table cellspacing=0 cellpadding=0>
<tr>
<td width="111" style='text-align: center; padding-bottom: 18; '><!-- Çîäèàê -->
<img width="100" height="99" title="<?php echo $name_zodiak; ?>"
style="margin-bottom: 25; padding:5px;"
src='https://img.new-combats.com/i/zodiac/<?php echo $id_zodiak; ?>.gif'
border=0><BR>
<BR>
<?php if ($inf['id'] >= 0) { ?>
<?php } elseif ($inf['align'] > 1 && $inf['align'] < 2) { ?>
<A href='https://paladins.<?php echo $c['host']; ?>/' target='_blank'><img
width="100" height="97" style="padding:5px;"
src='https://img.new-combats.com/i/flag_light.gif' border=0></A>
<BR>
<A href='https://paladins.<?php echo $c['host']; ?>/' target='_blank'><small>Îðäåí
Ñâåòà</small></A>
<?php } elseif ($inf['align'] >= 3.01 && $inf['align'] <= 3.99) { ?>
<A target='_blank' href='https://tarmans.<?php echo $c['host']; ?>/'><img
width="100" height="97" style="padding:5px;"
src='https://img.new-combats.com/i/flag_dark.gif' border=0></A>
<BR>
<A href='https://tarmans.<?php echo $c['host']; ?>/' target='_blank'><small>Àðìàäà</small></A>
<?php } elseif ($inf['align'] >= 2 && $inf['align'] < 3) { ?>
<A target='_blank' href='https://chaos.<?php echo $c['host']; ?>/'><img
width="100" height="97" style="padding:5px;"
src='https://img.new-combats.com/i/flag_haos.gif' border=0></A>
<BR>
<A href='https://chaos.<?php echo $c['host']; ?>/' target='_blank'><small>Öèòàäåëü
Õàîñà</small></A>
<?php } else { ?>
<A target='_blank' href='https://new-combats.com/news/'> <img width="100"
height="97"
style="padding:5px;"
src='https://img.new-combats.com/i/flag_gray.gif'></a>
<BR>
<A href='https://new-combats.com/news/'
target='_blank'><small>Íîâîñòè</small></A><br>
<?php } ?>
</td>
</tr>
</table>
</div>
</td>
</table>
</td>
</tr>
</table>
<?php
$moder = 0;
if ($u->info['align'] > 1 && $u->info['align'] < 2) {
$moder = 1;
}
if ($u->info['align'] > 3 && $u->info['align'] < 4) {
$moder = 2;
}
if ($inf['level'] < 8 && $inf['admin'] == 0 && $u->info['admin'] == 0 && $moder == 0) {
?>
<hr>
<H3 align="center" style="color:#8f0000">Îáåçëè÷åí äî äîñòèæåíèÿ 8 óðîâíÿ</H3>
<?php
$inf['info_delete'] = time() + 86400;
} elseif ($inf['info_delete'] != 0) {
?>
<H3 align="center" style="color:#8f0000">Ïåðñîíàæ îáåçëè÷åí <?php if ($inf['info_delete'] > 1) {
echo 'äî ' . date('d.m.Y H:i', $inf['info_delete']) . '.';
} else {
echo '.';
} ?></H3>
<?php
if ($u->info['align'] > 1 && $u->info['align'] < 2 || $u->info['align'] > 3 && $u->info['align'] < 4 || $u->info['admin'] > 0) {
echo '<br><small style="color:grey;">';
}
}
if ($inf['info_delete'] == 0 || (($u->info['align'] > 1 && $u->info['align'] < 2) || ($u->info['align'] > 3 && $u->info['align'] < 4) || $u->info['admin'] > 0))
{
?>
<div style="line-height:11pt;">
<hr style="border-color:#999999;">
<?php if ($inf['info_delete'] == 0) { ?><H3 align="center" style="color:#8f0000">Àíêåòíûå äàííûå</H3><?php } ?>
<?php
if ($inf['name'] != '') {
?>
<b style="color:#444">Èìÿ:</b> <?php echo $inf['name']; ?><BR><?php } ?>
<b style="color:#444">Ïîë:</b>
<?php $sex[0] = 'Ìóæñêîé';
$sex[1] = 'Æåíñêèé';
echo $sex[$inf['sex']]; ?><BR>
<?php if ($inf['hobby'] != '') { ?>
<b style="color:#444">Óâëå÷åíèÿ / õîááè:</b><BR>
<?php
echo str_replace("\n", '<br>', $inf['hobby']);
}
if ($inf['info_delete'] != 0) {
echo '</small>';
}
}
echo '<br><br><div align="right">' . $c['counters_noFrm'] . '</div>';
?>
</div>
</body>
</html>