2022-08-11 13:38:38 +03:00
< ? php
2023-02-13 16:49:07 +02:00
use Core\Config ;
2023-04-16 01:54:07 +03:00
use Core\ConversionHelper ;
2023-02-13 16:49:07 +02:00
use Core\Database ;
use Core\Db ;
use Insallah\Achievements ;
if ( ! defined ( 'GAME_VERSION' )) {
require_once '_incl_data/autoload.php' ;
}
2022-08-25 14:23:36 +03:00
if ( isset ( $_GET [ 'md5' ])) {
die ( md5 ( $_GET [ 'md5' ]));
2022-06-07 00:30:34 +03:00
}
2023-02-13 16:49:07 +02:00
Config :: init ();
Database :: init ();
2022-06-07 00:30:34 +03:00
$c [ 'inf' ] = true ;
2023-02-13 16:49:07 +02:00
//const GAME = true;
2022-06-07 00:30:34 +03:00
include_once ( '_incl_data/class/__db_connect.php' );
2022-08-25 14:23:36 +03:00
$u = User :: start ();
2022-06-07 00:30:34 +03:00
2022-08-11 13:38:38 +03:00
const LOWERCASE = 3 ;
const UPPERCASE = 1 ;
2022-06-07 00:30:34 +03:00
2022-08-25 14:23:36 +03:00
$uplogin = explode ( '&' , $_SERVER [ 'QUERY_STRING' ]);
2022-06-07 00:30:34 +03:00
$uplogin = $uplogin [ 0 ];
2022-08-25 14:23:36 +03:00
$uplogin = preg_replace ( '/%20/' , " " , $uplogin );
function utf8_win ( $s )
{
2023-01-10 18:29:32 +02:00
$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 );
2022-08-25 14:23:36 +03:00
return $s ;
2022-06-07 00:30:34 +03:00
}
$uplogin = utf8_win ( $uplogin );
2022-08-25 14:23:36 +03:00
if ( ! isset ( $_GET [ 'id' ])) {
$_GET [ 'id' ] = 0 ;
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
if ( ! isset ( $_GET [ 'login' ])) {
$_GET [ 'login' ] = null ;
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
if ( ! isset ( $upLogin )) {
$upLogin = '' ;
}
2022-06-07 00:30:34 +03:00
$utf8Login = '' ;
$utf8Login2 = '' ;
2023-01-10 19:26:14 +02:00
$utf8Login = $uplogin ;
2022-08-25 14:23:36 +03:00
2023-01-10 19:26:14 +02:00
$utf8Login2 = $_GET [ 'login' ];
2022-08-25 14:23:36 +03:00
2023-02-13 16:49:07 +02:00
if ( $uplogin != 'delete' && $utf8Login != 'delete' && $utf8Login2 != 'delete' ) {
2022-08-25 14:23:36 +03:00
$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' );
}
}
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
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 ) {
2023-01-10 18:29:32 +02:00
//снимаем хаос
2022-08-25 14:23:36 +03:00
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 ) {
2023-01-10 18:29:32 +02:00
$uer = 'Сброс характеристик прошел успешно<br>' ;
2022-08-25 14:23:36 +03:00
} else {
2023-01-10 18:29:32 +02:00
$uer = 'Ошибка сброса...<br>' ;
2022-08-25 14:23:36 +03:00
}
}
}
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 ) {
2023-01-10 18:29:32 +02:00
$uer = 'Все прошло успешно...<br>' ;
2022-08-25 14:23:36 +03:00
} else {
2023-01-10 18:29:32 +02:00
$uer = 'Ошибка...<br>' ;
2022-08-25 14:23:36 +03:00
}
}
}
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
if ( $inf [ 'room' ] == 303 && $u -> info [ 'admin' ] == 0 ) {
unset ( $inf );
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
if ( ! isset ( $inf [ 'id' ])) {
2023-01-10 18:29:32 +02:00
die ( 'Ошибка. Персонаж не найден.' );
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
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 ();
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
function zodiak ( $d , $m , $y )
2022-06-07 00:30:34 +03:00
{
2022-08-25 14:23:36 +03:00
$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 ;
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
2022-06-07 00:30:34 +03:00
$id_zodiak = null ;
2022-08-25 14:23:36 +03:00
$bday = explode ( '.' , $inf [ 'bithday' ]);
if ( isset ( $bday [ 0 ], $bday [ 1 ], $bday [ 2 ])) {
$id_zodiak = zodiak ( $bday [ 0 ], $bday [ 1 ], $bday [ 2 ]);
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
if ( $id_zodiak == null ) {
$id_zodiak = 1 ;
2022-06-07 00:30:34 +03:00
}
2023-01-10 18:29:32 +02:00
$name_zodiak = [ 1 => 'Овен' , 2 => 'Телец' , 3 => 'Близнецы' , 4 => 'Рак' , 5 => 'Лев' , 6 => 'Дева' , 7 => 'Весы' , 8 => 'Скорпион' , 9 => 'Стрелец' , 10 => 'Козерог' , 11 => 'Водолей' , 12 => 'Рыбы' ];
2022-06-07 00:30:34 +03:00
$name_zodiak = $name_zodiak [ $id_zodiak ];
function statInfo ( $s )
{
2022-08-25 14:23:36 +03:00
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>' ;
}
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
$room = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `room` WHERE `id`="' . $inf [ 'room' ] . '" LIMIT 1' ));
2022-06-07 00:30:34 +03:00
2022-08-25 14:23:36 +03:00
if ( $inf [ 'clan' ] > 0 ) {
$pc = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `clan` WHERE `id`="' . $inf [ 'clan' ] . '" LIMIT 1' ));
2022-06-07 00:30:34 +03:00
}
$nopal = false ;
2022-08-25 14:23:36 +03:00
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 ;
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
if ( $u -> info [ 'admin' ] == 0 ) {
$nopal = true ;
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
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' ];
}
}
2022-06-07 00:30:34 +03:00
}
?>
<!DOCTYPE html>
<html>
<head>
2023-01-10 19:26:14 +02:00
2023-03-31 19:54:33 +03:00
<title>Информация о <?= $inf['login']; ?></title>
2022-08-25 14:23:36 +03:00
<meta
2023-01-10 18:29:32 +02:00
"description" name content="Просматривайте информацию о игровых персонажах браузерной игры Бойцовский Клуб.Играйте в
новый проект потивам браузерной игры combats.com версии 2."/>
2022-08-25 14:23:36 +03:00
<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>
2023-03-31 21:30:14 +03:00
<link href="//img.new-combats.tech/css/main.css" rel="stylesheet" type="text/css"/>
2022-08-25 14:23:36 +03:00
<style>
body {
background-color: #dedede;
margin: 5px;
}
2022-06-07 00:30:34 +03:00
2022-08-25 14:23:36 +03:00
hr {
height: 1px;
}
2022-06-07 00:30:34 +03:00
2022-08-25 14:23:36 +03:00
img {
border: 0px;
}
2022-06-07 00:30:34 +03:00
2022-08-25 14:23:36 +03:00
button {
border: solid 1pt #B0B0B0;
font-family: MS Sans Serif;
font-size: 11px;
color: #191970;
padding: 2px 7px 2px 7px;
}
2022-06-07 00:30:34 +03:00
2022-08-25 14:23:36 +03:00
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 {
2023-03-31 21:30:14 +03:00
background-image: url(//img.new-combats.tech/pg_btn_left.png);
2022-08-25 14:23:36 +03:00
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 {
2023-03-31 21:30:14 +03:00
background-image: url(//img.new-combats.tech/pg_btn_right.png);
2022-08-25 14:23:36 +03:00
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>
2023-03-31 21:30:14 +03:00
<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;"> <a href="javascript:void(0);" onClick="closeGift();">X</a></span></b><br><div align="center" style="padding:5px;background-color:#dcdedc;"><img src="//img.new-combats.tech/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="//img.new-combats.tech/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="//img.new-combats.tech/i/lock3.gif" width="20" height="15">' + $('#lgnthm').html()); } } </script>
2022-06-07 00:30:34 +03:00
</head>
<body style="padding-top:0px; margin-top:7px; height:100%; background-color:#E2E0E1;">
2022-08-25 14:23:36 +03:00
<div id="ttl" class="ttl_css" style="display:none;z-index:1111;"/>
</div>
2022-06-07 00:30:34 +03:00
<div id="gi" class="gifin" style="display:none;z-index:1110;"></div>
2022-08-25 14:23:36 +03:00
<?php
if (isset($uer)) {
echo '<div align="left"><font color=\'red\'>' . $uer . '</font></div><br>';
} ?>
2022-06-07 00:30:34 +03:00
<table width="100%" border="0" cellspacing="0" cellpadding="0">
2022-08-25 14:23:36 +03:00
<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];
2022-06-07 00:30:34 +03:00
2022-08-25 14:23:36 +03:00
$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'])) {
2023-01-10 18:29:32 +02:00
$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>';
2022-08-25 14:23:36 +03:00
}
if ($us != false) {
echo $us[0];
} else {
echo 'information is lost.';
} ?></div>
<!-- pos2 -->
2023-02-13 16:49:07 +02:00
<div></div>
<div></div>
2022-08-25 14:23:36 +03:00
<script>tstlgnthm();
2023-03-31 19:54:33 +03:00
lafstReg[<?= $inf['id']; ?>] = 1;
2022-08-25 14:23:36 +03:00
<?php
if ($inf['align'] == 9) {
$st['hpNow'] = $st['hpNow'] / ($st['hpAll'] / 100);
$st['hpAll'] = '100%';
$rgd[0] = '0.28';
}
?>
2023-03-31 19:54:33 +03:00
startHpRegen(<?= '"top",' . $inf['id'] . ',' . (0 + $st['hpNow']) . ',' . (0 + $st['hpAll']) . ',' . (0 + $st['mpNow']) . ',' . (0 + $st['mpAll']) . ',' . (time(
2022-08-25 14:23:36 +03:00
) - $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
2023-01-10 18:29:32 +02:00
//Персонаж онлайн
2022-08-25 14:23:36 +03:00
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) {
2023-01-10 18:29:32 +02:00
echo '<center><small><br>Персонаж сейчас в <a target="_blank" href="/logs.php?log=' . $btl3['id'] . '">поединке</a></small></center>';
2022-08-25 14:23:36 +03:00
}
}
} 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()) {
2023-01-10 18:29:32 +02:00
echo 'Персонаж сейчас находится в клубе.<br><b>"' . $room['name'] . '"</b>';
2022-08-25 14:23:36 +03:00
} else {
if ($inf['admin'] == 0 || $inf['admin'] == 2) {
if ($inf['online'] == 0) {
$inf['online'] = $inf['timeREG'];
}
2023-01-10 18:29:32 +02:00
echo 'Персонаж не в клубе';
2022-08-25 14:23:36 +03:00
if (date('Y', $inf['online']) == date('Y')) {
2023-01-10 18:29:32 +02:00
echo ', но был тут:<br>' . date(
2022-08-25 14:23:36 +03:00
'd.m.Y H:i', $inf['online']
2023-03-31 21:30:14 +03:00
) . '<img title="Время сервера" src="//img.new-combats.tech/i/clok3_2.png">';
2022-08-25 14:23:36 +03:00
$out = '';
$time_still = time() - $inf['online'];
$tmp = floor($time_still / 2592000);
$id = 0;
if ($tmp > 0) {
$id++;
if ($id < 3) {
2023-01-10 18:29:32 +02:00
$out .= $tmp . " мес. ";
2022-08-25 14:23:36 +03:00
}
$time_still = $time_still - $tmp * 2592000;
}
$tmp = floor($time_still / 604800);
if ($tmp > 0) {
$id++;
if ($id < 3) {
2023-01-10 18:29:32 +02:00
$out .= $tmp . " нед. ";
2022-08-25 14:23:36 +03:00
}
$time_still = $time_still - $tmp * 604800;
}
$tmp = floor($time_still / 86400);
if ($tmp > 0) {
$id++;
if ($id < 3) {
2023-01-10 18:29:32 +02:00
$out .= $tmp . " дн. ";
2022-08-25 14:23:36 +03:00
}
$time_still = $time_still - $tmp * 86400;
}
$tmp = floor($time_still / 3600);
if ($tmp > 0) {
$id++;
if ($id < 3) {
2023-01-10 18:29:32 +02:00
$out .= $tmp . " ч. ";
2022-08-25 14:23:36 +03:00
}
$time_still = $time_still - $tmp * 3600;
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
$tmp = floor($time_still / 60);
if ($tmp > 0) {
$id++;
if ($id < 3) {
2023-01-10 18:29:32 +02:00
$out .= $tmp . " мин. ";
2022-08-25 14:23:36 +03:00
}
}
if ($out == '') {
2023-01-10 18:29:32 +02:00
$out = $time_still . ' сек.';
2022-08-25 14:23:36 +03:00
}
2023-01-10 18:29:32 +02:00
echo '<br>(' . $out . ' назад)';
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
} elseif ($inf['admin'] > 0) {
2023-01-10 18:29:32 +02:00
echo 'Персонаж не в клубе.';
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
}
if ($inf['inUser'] > 0 and $inf['id'] != 12059) {
2023-01-10 18:29:32 +02:00
echo '<br>Персонаж вселился в <a target="_blank" href="/info/' . $inf['inUser'] . '">бота</a>';
2022-08-25 14:23:36 +03:00
}
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) {
2023-01-10 18:29:32 +02:00
echo '<br>Персонаж сейчас в <a target="_blank" href="/logs.php?log=' . $btl3['id'] . '">поединке</a>';
2022-08-25 14:23:36 +03:00
}
}
echo '</small></center>';
} else {
if ($inf['res_x'] - time() > 0) {
2023-01-10 18:29:32 +02:00
echo '<center style="padding-top:3px;">Появится через <b>' . ($u->timeOut(
2022-08-25 14:23:36 +03:00
($inf['res_x'] - time())
)) . '</b><br><small></center>';
} else {
2023-01-10 18:29:32 +02:00
echo '<center style="padding-top:3px;">Появится в ближайшее время...<br><small></center>';
2022-08-25 14:23:36 +03:00
}
}
2023-01-10 18:29:32 +02:00
//Эффект админ
2022-08-25 14:23:36 +03:00
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'];
2023-01-10 18:29:32 +02:00
$pl['name'] .= "\r" . 'Действует еще ' . $u->timeOut(
2022-08-25 14:23:36 +03:00
$pl['timeUse'] - time() + $eff['actionTime']
) . '';
}
2023-03-31 21:30:14 +03:00
$r .= '<img onDblClick="location.href=\'/info/' . $pl['uid'] . '&cancel_eff=' . $pl['id'] . '\'" style="padding:1px;" title="' . $pl['name'] . '" src="//img.new-combats.tech/i/eff/' . $pl['img2'] . '" width="40" height="25">';
2022-08-25 14:23:36 +03:00
return $r;
}
$eff_adm = '';
$sp = mysql_query(
2023-02-13 16:49:07 +02:00
'SELECT `id_eff`,`uid`,`id`,`name`,`img2`,`v1`,`v2`,`timeUse` FROM `eff_users` WHERE `uid` = "' . $inf['id'] . '" AND `delete` = 0'
2022-08-25 14:23:36 +03:00
);
while ($pl = mysql_fetch_array($sp)) {
$eff_adm .= eff_adm($pl);
}
if ($eff_adm != '') {
2023-01-10 18:29:32 +02:00
echo '<br><small style="display:block;text-align:center;">Эффекты на персонаже:<br>' . $eff_adm . '</small>';
2022-08-25 14:23:36 +03:00
}
}
if ($u->info['admin'] > 0) {
?>
<br>
<script>
function mf_admin_statsfx() {
if ($('#mf_admin_stats').css('display') == 'none') {
$('#mf_admin_stats').css('display', '');
2023-01-10 18:29:32 +02:00
$('#mf_admin_statstxt').html('Скрыть');
2022-08-25 14:23:36 +03:00
return
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
$('#mf_admin_stats').css('display', 'none');
2023-01-10 18:29:32 +02:00
$('#mf_admin_statstxt').html('Показать');
2023-02-13 16:49:07 +02:00
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
</script>
<div id="mf_admin_stats" style="display:none;">
2023-02-13 16:49:07 +02:00
<div style="height:1px; width:240px; background-color:#999999; margin:3px; text-align: center;"></div>
2022-08-25 14:23:36 +03:00
<div style="padding:5px;">
<small>
<?php
$pr = $u->items['add'];
$i = 0;
$apbr = [
2023-01-10 18:29:32 +02:00
'Защита от урона' => 1,
'Сила' => 1,
'Мастерство владения оружием' => 1,
'Мастерство владения магией огня' => 1,
'Уровень жизни (HP)' => 1,
'Мф. критического удара (%)' => 1,
'Мф. мощности магии огня' => 1,
'Регенерация здоровья (%)' => 1,
'Мф. мощности урона' => 1,
2022-08-25 14:23:36 +03:00
];
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) {
2023-02-13 16:49:07 +02:00
echo '<div style="height:1px; width:230px; background-color:#999999; margin:3px; text-align: center;"></div>';
2022-08-25 14:23:36 +03:00
}
echo '• ' . $u->is[$pr[$i]] . ': ' . $vls . ' <br>';
}
$i++;
}
?>
</small>
</div>
</div>
2023-02-13 16:49:07 +02:00
<div style="height:1px; width:240px; background-color:#999999; margin:3px; text-align: center;">
2022-08-25 14:23:36 +03:00
<div onClick="mf_admin_statsfx();"
2023-02-13 16:49:07 +02:00
style="border:1px solid #999999; cursor:pointer; background-color:#EAEAEA; width:150px; text-align: center; font-size: small;">
<span id="mf_admin_statstxt">Показать</span> модификаторы
</div>
2022-08-25 14:23:36 +03:00
</div>
<?php
}
?>
</td>
2023-02-13 16:49:07 +02:00
<td style="vertical-align: top">
<table style="margin-top:18px; width: 100%;" cellspacing="0" cellpadding="0">
<TD valign=top>
<?php
2022-08-25 14:23:36 +03:00
if ($u->info['admin'] > 0) {
2023-02-13 16:49:07 +02:00
$nodell = Db::getRow('select id, inUser from users where login = ? order by id limit 1', [$inf['login']]);
$sp = Db::getRows('select id from users where login = ? and id != ?', [$inf['login'], $inf['id']]);
$nolog = '';
foreach ($sp as $pl) {
2022-08-25 14:23:36 +03:00
if (isset($_GET['del_copy']) && $_GET['del_copy'] == $pl['id']) {
if ($nodell['inUser'] != $pl['id'] && $pl['id'] != $nodell['id']) {
2023-02-13 16:49:07 +02:00
Db::sql('update users set login = ? where id = ?', ['DELETE', $pl['id']]);
2022-08-25 14:23:36 +03:00
}
} else {
$nolog .= '<div>' . $u->microLogin($pl['id'], 1);
if ($nodell['inUser'] != $pl['id'] && $pl['id'] != $nodell['id']) {
2023-01-10 18:29:32 +02:00
$nolog .= ' (персонажа можно <a href="?' . $inf['id'] . '&del_copy=' . $pl['id'] . '">удалить</a>)';
2022-08-25 14:23:36 +03:00
}
if ($pl['id'] == $nodell['id']) {
2023-01-10 18:29:32 +02:00
$nolog .= ' (основной персонаж)';
2022-08-25 14:23:36 +03:00
}
$nolog .= '</div>';
}
}
2023-02-13 16:49:07 +02:00
if (!empty($nolog)) {
echo '<small><b>Копии персонажа:</b>' . $nolog . '</small>';
2022-08-25 14:23:36 +03:00
}
2022-06-07 00:30:34 +03:00
}
?>
2023-02-13 16:49:07 +02:00
<div style="padding:5px;">
2023-03-31 19:54:33 +03:00
Сила: <?= statInfo('s1'); ?><BR>
2023-02-13 16:49:07 +02:00
Ловкость: <?php statInfo('s2'); ?><BR>
Интуиция: <?php statInfo('s3'); ?><BR>
Выносливость: <?php statInfo('s4'); ?><BR>
Интеллект: <?php statInfo('s5'); ?><BR>
Мудрость: <?php statInfo('s6'); ?><BR>
<?php if ($inf['level'] > 9 || $st['s7'] != 0) { ?>
Духовность: <?php statInfo('s7'); ?><BR>
<?php } ?>
<?php if ($inf['level'] > 11 || $st['s8'] != 0) { ?>
Воля: <?php statInfo('s8'); ?><BR>
<?php } ?>
<?php if ($inf['level'] > 14 || $st['s9'] != 0) { ?>
Свобода духа: <?php statInfo('s9'); ?><BR>
<?php } ?>
<?php if ($inf['level'] > 19 || $st['s10'] != 0) { ?>
Божественность: <?php statInfo('s10'); ?><BR>
<?php } ?>
2022-08-25 14:23:36 +03:00
<?php if ($st['s11'] > 0) { ?>
2023-02-13 16:49:07 +02:00
Энергия: <?php statInfo('s11'); ?><BR>
2022-08-25 14:23:36 +03:00
<?php } ?>
2023-03-31 19:54:33 +03:00
<SPAN title=''>Рейтинг сегодня: <b><?= $inf['repexp']; ?></b></SPAN><BR>
2022-08-25 14:23:36 +03:00
</div>
2023-02-13 16:49:07 +02:00
<div style="height:1px; background-color:#999999; margin:3px;"></div>
2022-08-25 14:23:36 +03:00
<div style="padding:5px;">
2023-02-13 16:49:07 +02:00
Уровень: <?= $inf['level']; ?><BR>
<?php if ($inf['no_ip'] != 'trupojor' && $inf['admin'] == 0) { ?>
Побед: <?php if ($inf['level'] < 0) {
echo number_format($inf['win'], 0, ",", " ");
2022-08-25 14:23:36 +03:00
} else {
2023-02-13 16:49:07 +02:00
echo '<a title="Персонаж учавствует в рейтинге" href="/rating_pers/id' . $inf['id'] . '#' . $inf['id'] . '" target="_blank">' . number_format(
$inf['win'], 0, ",", " "
) . '</a>';
2022-08-25 14:23:36 +03:00
} ?><BR>
2023-03-31 19:54:33 +03:00
Поражений: <?= number_format($inf['lose'], 0, ",", " "); ?><BR>
Ничьих: <?= number_format($inf['nich'], 0, ",", " "); ?><BR>
2023-02-13 16:49:07 +02:00
<?php }
$inf['mod_zvanie'] = htmlspecialchars($inf['mod_zvanie'], null);
if ($inf['clan'] > 0) {
$pc = Db::getRow('select * from clan where id = ?', [$inf['clan']]);
if (isset($pc['id'])) {
$pc['img'] = $pc['name_mini'] . '.gif';
if ($inf['clan_prava'] == 'glava') {
$inf['mod_zvanie'] = '- <b style="color: teal;">Глава клана</b>';
} elseif ($inf['mod_zvanie'] != '') {
$inf['mod_zvanie'] = '- ' . htmlspecialchars($inf['mod_zvanie'], null);
$inf['mod_zvanie'] = str_replace('<b>', '<b>', $inf['mod_zvanie']);
$inf['mod_zvanie'] = str_replace('</b>', '</b>', $inf['mod_zvanie']);
$inf['mod_zvanie'] = str_replace('<u>', '<u>', $inf['mod_zvanie']);
$inf['mod_zvanie'] = str_replace('</u>', '</u>', $inf['mod_zvanie']);
$inf['mod_zvanie'] = str_replace('<i>', '<i>', $inf['mod_zvanie']);
$inf['mod_zvanie'] = str_replace('</i>', '</i>', $inf['mod_zvanie']);
2022-08-25 14:23:36 +03:00
}
2023-02-13 16:49:07 +02:00
echo 'Клан: <a href="/clan/' . $pc['id'] . '" target="_blank">' . $pc['name'] . '</a> ' . $inf['mod_zvanie'] . '<br>';
}
}
if (!empty($inf['admin'])) {
echo '<b style="color: green">Администратор</b><br>';
} else {
if ($inf['pass'] == 'saintlucia' && $u->info['admin'] > 0) {
echo '<b style="color: dimgray;">Неигровой персонаж</b><br>';
}
if ($inf['align'] > 1 && $inf['align'] < 2 || $inf['align'] > 3 && $inf['align'] < 4) {
echo '<b style="color: green">Модератор</b><br>';
}
if ($inf['align'] == 50) {
echo '<b style="color: orange;">Алхимик</b>';
if (!empty($inf['mod_zvanie'])) {
2022-08-25 14:23:36 +03:00
echo ' - ' . $inf['mod_zvanie'];
}
echo '<br>';
}
2023-02-13 16:49:07 +02:00
echo 'День рождения персонажа: ';
if (empty($inf['timereg'])) {
echo 'До начала времен...';
2022-08-25 14:23:36 +03:00
} else {
2023-02-13 16:49:07 +02:00
echo date('d.m.Y H:i', $inf['timereg']);
2022-08-25 14:23:36 +03:00
}
2023-02-13 16:49:07 +02:00
echo '<br>';
if ($inf['palpro'] > time()) {
echo 'Персонаж чист перед законом: до ' . date('d.m.Y H:i', $inf['palpro']);
}
}
if ($inf['redirect'] != '0' && ($u->info['admin'] > 0 || $u->info['id'] == $inf['id'])) {
echo 'Редирект: <small><a target="_blank" href="' . str_replace(
2022-08-25 14:23:36 +03:00
'"', '"', $inf['redirect']
) . '">' . htmlspecialchars($inf['redirect']) . '</a></small><br>';
2023-02-13 16:49:07 +02:00
}
if ($u->info['admin'] > 0) {
echo '<hr><small>';
echo 'Цена комплекта: ' . (int)$st['prckr'] . ' кр.<br>';
echo 'Цена комплекта: ' . (int)$st['preckr'] . ' eкр.<br>';
echo 'Уровень покупателя: ' . (int)$st['pbe'] . '<br>';
echo '</small>';
}
$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'] . ']';
2022-08-25 14:23:36 +03:00
}
}
2023-02-13 16:49:07 +02:00
}
if ($twk != '') {
echo 'Другие образы: ' . $twk . '<br>';
}
//История имен
$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 .= ' ';
2022-08-25 14:23:36 +03:00
}
2023-02-13 16:49:07 +02:00
$names .= '\'' . $pl['login'] . '\' до ' . date(
2022-08-25 14:23:36 +03:00
'd.m.Y H:i', $pl['time']
) . '<br>';
$i++;
2023-02-13 16:49:07 +02:00
}
if ($names != '') {
echo 'История имен: ' . $names;
}
$algnt = mysql_fetch_array(
2022-08-25 14:23:36 +03:00
mysql_query(
2023-02-13 16:49:07 +02:00
'SELECT * FROM `users_align` WHERE `uid` = "' . $inf['id'] . '" AND (`delete` = 0 OR `delete` > "' . time() . '") LIMIT 1'
2022-08-25 14:23:36 +03:00
)
2023-02-13 16:49:07 +02:00
);
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']) . ')';
2022-08-25 14:23:36 +03:00
}
echo '</div>';
}
2023-02-13 16:49:07 +02:00
}
if ($st['silver'] > 0) {
echo '<div>';
2023-03-31 21:30:14 +03:00
echo 'Благословление Ангелов: <a href="/benediction" target="_blank"><img title="Благословление Ангелов ' . $st['silver'] . ' уровня" src="//img.new-combats.tech/blago/' . $st['silver'] . '.png" width="15" height="15" style="vertical-align:sub;display:inline-block;"></a>';
2023-02-13 16:49:07 +02:00
echo '</div>';
}
if ($inf['win_t'] > 0) {
?>
<div style="height:1px; width:300px; background-color:#999999; margin:3px;"></div>
2023-01-10 18:29:32 +02:00
Побед в турнирах: <?= number_format(round($inf['win_t']), 0, ",", " ") ?>
2022-08-25 14:23:36 +03:00
<BR>
2023-01-10 18:29:32 +02:00
Поражений в турнирах: <?= number_format(
2022-08-25 14:23:36 +03:00
round($inf['lose_t']), 0, ",", " "
) ?><BR>
2023-02-13 16:49:07 +02:00
<?php } ?>
2022-08-25 14:23:36 +03:00
</div>
2023-02-13 16:49:07 +02:00
<div style="height:1px; background-color:#999999; margin: 3px 3px 7px;"></div>
2023-01-10 18:29:32 +02:00
<!-- значки --></td>
2022-08-25 14:23:36 +03:00
</tr>
</table>
<?php
2023-07-11 18:16:35 +03:00
if ($inf['align'] == 50 || $inf['align2'] == 50) {
2022-08-25 14:23:36 +03:00
?>
2023-03-31 21:30:14 +03:00
<img src="//img.new-combats.tech/alchemy1.gif"
2023-01-10 18:29:32 +02:00
onMouseOver="top.hi(this,'<center><b>Официальный дилер.</b><Br>Имеет право продавать игровую валюту ЕКР</b></center>',event,0,0,1,0,'');"
2023-07-11 18:16:35 +03:00
onMouseOut="top.hic();" onMouseDown="top.hic();"
alt="">
2022-08-25 14:23:36 +03:00
<?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) {
2023-01-10 18:29:32 +02:00
$mrtxt = 'Женат на';
2022-08-25 14:23:36 +03:00
} else {
2023-01-10 18:29:32 +02:00
$mrtxt = 'Замужем за';
2022-08-25 14:23:36 +03:00
}
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="/info/' . $marry['id'] . '"><img src="//img.new-combats.tech/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>';
2022-08-25 14:23:36 +03:00
}
}
$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 . '"';
}
2023-03-31 21:30:14 +03:00
$icon = ' <img ' . $stlico . ' src="//img.new-combats.tech/' . $pl['img'] . '" onMouseOver="top.hi(this,\'' . $pl['text'] . '\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();">';
2022-08-25 14:23:36 +03:00
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) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<img src="/res/img/medals/vip2.gif" onMouseOver="top.hi(this,\'<b>За помощь в развитии проекта</b>\',event,3,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"> ';
2022-08-25 14:23:36 +03:00
}
2023-01-10 18:29:32 +02:00
//сильвер
2022-08-25 14:23:36 +03:00
if ($st['silver'] > 0) {
2023-03-31 21:30:14 +03:00
$ico[1] .= ' <a href="/library/Vip/" target="_blank"><img src="//img.new-combats.tech/i/vip2.gif" onMouseOver="top.hi(this,\'За помощь в развитии проекта\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a> ';
2022-08-25 14:23:36 +03:00
}
$irep = mysql_fetch_array(
mysql_query('SELECT * FROM `rep` WHERE `id` = "' . $inf['id'] . '" LIMIT 1')
);
if (isset($irep['id'])) {
2023-01-10 18:29:32 +02:00
//Водосток
2022-08-25 14:23:36 +03:00
if ($irep['repdreamscity'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/i/ico/ric_kanal3.gif" onMouseOver="top.hi(this,\'<b>Водосток</b><br>Рыцарь третьего круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repdreamscity'] > 4999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/i/ico/ric_kanal2.gif" onMouseOver="top.hi(this,\'<b>Водосток</b><br>Рыцарь второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repdreamscity'] > 999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/i/ico/ric_kanal1.gif" onMouseOver="top.hi(this,\'<b>Водосток</b><br>Рыцарь первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
2023-01-10 18:29:32 +02:00
//Храм знаний
2022-08-25 14:23:36 +03:00
if ($irep['rep1'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/znrune_3.gif" onMouseOver="top.hi(this,\'<b>Храм Знаний</b><br>Посвященный третьего круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['rep1'] > 999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/znrune_2.gif" onMouseOver="top.hi(this,\'<b>Храм Знаний</b><br>Посвященный второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['rep1'] > 99) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/znrune_1.gif" onMouseOver="top.hi(this,\'<b>Храм Знаний</b><br>Посвященный первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
2023-01-10 18:29:32 +02:00
//Алтарь крови
2022-08-25 14:23:36 +03:00
if ($irep['rep2'] > 99) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/znbl_1.gif" onMouseOver="top.hi(this,\'<b>Алтарь Крови</b><br>Посвященный первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
2023-01-10 18:29:32 +02:00
//Излом хаоса
2022-08-25 14:23:36 +03:00
if ($irep['repizlom'] > 24999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/iz_zn_ver10_4.gif" onMouseOver="top.hi(this,\'<b>Излом Хаоса</b><br>Генерал\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repizlom'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/iz_zn_ver10_3.gif" onMouseOver="top.hi(this,\'<b>Излом Хаоса</b><br>Ветеран\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repizlom'] > 999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/iz_zn_ver10_2.gif" onMouseOver="top.hi(this,\'<b>Излом Хаоса</b><br>Опытный боец\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repizlom'] > 99) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/iz_zn_ver10_1.gif" onMouseOver="top.hi(this,\'<b>Излом Хаоса</b><br>Аттестованный боец\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
//capitalcity
if ($irep['repcapitalcity'] > 24999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn1_2.gif" onMouseOver="top.hi(this,\'<b>Capital city</b><br>Рыцарь второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repcapitalcity'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn1_1.gif" onMouseOver="top.hi(this,\'<b>Capital city</b><br>Рыцарь первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
//angelscity
if ($irep['repangelscity'] > 24999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn2_2.gif" onMouseOver="top.hi(this,\'<b>Angels city</b><br>Рыцарь второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repangelscity'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn2_1.gif" onMouseOver="top.hi(this,\'<b>Angels city</b><br>Рыцарь первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
//demonscity
if ($irep['repdemonscity'] > 24999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn3_2.gif" onMouseOver="top.hi(this,\'<b>Demons city</b><br>Рыцарь второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repdemonscity'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn3_1.gif" onMouseOver="top.hi(this,\'<b>Demons city</b><br>Рыцарь первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
//devilscity
if ($irep['repdevilscity'] > 24999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn4_2.gif" onMouseOver="top.hi(this,\'<b>Devils city</b><br>Рыцарь второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repdevilscity'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn4_1.gif" onMouseOver="top.hi(this,\'<b>Devils city</b><br>Рыцарь первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
//suncity
if ($irep['repsuncity'] > 24999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn5_2.gif" onMouseOver="top.hi(this,\'<b>Suncity</b><br>Рыцарь второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repsuncity'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn5_1.gif" onMouseOver="top.hi(this,\'<b>Suncity</b><br>Рыцарь первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
2023-01-10 18:29:32 +02:00
//Гора легиона (сука как она меня заебала) by R
2022-08-25 14:23:36 +03:00
if ($irep['repabandonedplain'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/1_gora.gif" onMouseOver="top.hi(this,\'<b>Гора Легиона</b><br>Рыцарь второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repabandonedplain'] > 999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/2_gora.gif" onMouseOver="top.hi(this,\'<b>Гора Легиона</b><br>Рыцарь первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
//emeraldscity
if ($irep['repemeraldscity'] > 24999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn6_2.gif" onMouseOver="top.hi(this,\'<b>Emeralds city</b><br>Рыцарь второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repemeraldscity'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn6_1.gif" onMouseOver="top.hi(this,\'<b>Emeralds city</b><br>Рыцарь первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
//sandcity
if ($irep['repsandcity'] > 24999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn7_2.gif" onMouseOver="top.hi(this,\'<b>Sand city</b><br>Рыцарь второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repsandcity'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn7_1.gif" onMouseOver="top.hi(this,\'<b>Sand city</b><br>Рыцарь первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
//mooncity
if ($irep['repmooncity'] > 24999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn9_2.gif" onMouseOver="top.hi(this,\'<b>Moon city</b><br>Рыцарь второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($irep['repmooncity'] > 9999) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn9_1.gif" onMouseOver="top.hi(this,\'<b>Moon city</b><br>Рыцарь первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
2023-01-10 18:29:32 +02:00
if ($inf['referals'] >= 3000) // значок за рефов
2022-08-25 14:23:36 +03:00
{
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/sporttrainers5.gif" onMouseOver="top.hi(this,\'<b>Лучший Помощник Администрации</b>\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($inf['referals'] > 1500) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/sporttrainers4.gif" onMouseOver="top.hi(this,\'<b>Опытный Помощник Администрации</b>\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
} elseif ($inf['referals'] > 600) {
2023-03-31 21:30:14 +03:00
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/sporttrainers3.gif" onMouseOver="top.hi(this,\'<b>Начинающий Помощник Администрации</b>\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
2022-08-25 14:23:36 +03:00
}
}
if ($inf['banned'] == 0) {
2023-02-13 16:49:07 +02:00
$ai = new Achievements($u);
2022-08-25 14:23:36 +03:00
$ico[3] .= '<div style="float:left; width:800px;">';
foreach ($ai->getTypes() as $type) {
$tmp_1 = $ai->getInfo($inf['id']);
if (!empty($tmp_1[$type])) {
2023-01-10 18:29:32 +02:00
$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>';
2022-08-25 14:23:36 +03:00
}
}
$ico[3] .= '</div>';
}
function timeOut($ttm, $travm = false)
{
2023-02-13 16:49:07 +02:00
if (!$travm) {
2022-08-25 14:23:36 +03:00
$out = '';
$time_still = $ttm;
$tmp = floor($time_still / 2592000);
$id = 0;
if ($tmp > 0) {
$id++;
if ($id < 3) {
2023-01-10 18:29:32 +02:00
$out .= $tmp . " мес. ";
2022-08-25 14:23:36 +03:00
}
$time_still = $time_still - $tmp * 2592000;
}
$tmp = floor($time_still / 604800);
if ($tmp > 0) {
$id++;
if ($id < 3) {
2023-01-10 18:29:32 +02:00
$out .= $tmp . " нед. ";
2022-08-25 14:23:36 +03:00
}
$time_still = $time_still - $tmp * 604800;
}
$tmp = floor($time_still / 86400);
if ($tmp > 0) {
$id++;
if ($id < 3) {
2023-01-10 18:29:32 +02:00
$out .= $tmp . " дн. ";
2022-08-25 14:23:36 +03:00
}
$time_still = $time_still - $tmp * 86400;
}
$tmp = floor($time_still / 3600);
if ($tmp > 0) {
$id++;
if ($id < 3) {
2023-01-10 18:29:32 +02:00
$out .= $tmp . " ч. ";
2022-08-25 14:23:36 +03:00
}
$time_still = $time_still - $tmp * 3600;
}
$tmp = floor($time_still / 60);
if ($tmp > 0) {
$id++;
if ($id < 3) {
2023-01-10 18:29:32 +02:00
$out .= $tmp . " мин. ";
2022-08-25 14:23:36 +03:00
}
}
if ($out == '') {
if ($time_still < 0) {
$time_still = 0;
}
2023-01-10 18:29:32 +02:00
$out = $time_still . ' сек.';
2022-08-25 14:23:36 +03:00
}
}
return $out;
}
if ($ico[1] != '') {
echo $ico[1];
}
echo '<small>';
if ($inf['jail'] > time()) {
2023-03-31 21:30:14 +03:00
echo '<br><img src="//img.new-combats.tech/i/jail.gif"> Персонаж находится в заточении еще ' . timeOut(
2022-08-25 14:23:36 +03:00
$inf['jail'] - time()
) . ' ';
}
if (isset($st['puti'])) {
2023-03-31 21:30:14 +03:00
echo '<br><img src="//img.new-combats.tech/i/items/chains.gif"> Персонаж не может передвигаться еще ' . timeOut(
2022-08-25 14:23:36 +03:00
$st['puti'] - time()
) . ' ';
}
if ($inf['molch1'] > time()) {
2023-03-31 21:30:14 +03:00
echo '<br><img src="//img.new-combats.tech/i/sleeps' . $inf['sex'] . '.gif"> На персонажа наложено заклятие молчания. Будет молчать еще ' . timeOut(
2022-08-25 14:23:36 +03:00
$inf['molch1'] - time()
) . ' ';
}
if ($inf['molch2'] > time()) {
2023-03-31 21:30:14 +03:00
echo '<br><img src="//img.new-combats.tech/i/fsleeps' . $inf['sex'] . '.gif"> На персонажа наложено заклятие молчания на форуме. Будет молчать еще ' . timeOut(
2022-08-25 14:23:36 +03:00
$inf['molch2'] - time()
) . ' ';
}
if ($inf['clan_delay'] > time()) {
2023-01-10 18:29:32 +02:00
echo '<br>У персонажа запрет на вступление в кланы ещё: ' . timeOut(
2022-08-25 14:23:36 +03:00
$inf['clan_delay'] - time()
) . ' ';
}
if ($inf['info_delete'] > time() || $inf['info_delete'] == 1) {
2023-03-31 21:30:14 +03:00
echo '<br><img src="//img.new-combats.tech/stopinfo.png"> На персонажа наложено заклятие обезличивания.';
2022-08-25 14:23:36 +03:00
if ($inf['info_delete'] > 1) {
2023-01-10 18:29:32 +02:00
echo ' Будет обезличен еще ' . timeOut($inf['info_delete'] - time()) . '';
2022-08-25 14:23:36 +03:00
}
}
2023-01-10 18:29:32 +02:00
//Если у персонажа есть травмы, физ. и маг. травмы
2022-08-25 14:23:36 +03:00
$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)) {
2023-03-31 21:30:14 +03:00
echo '<br><img src="//img.new-combats.tech/i/travma2.gif"> У персонажа - "<b>' . $pl['name'] . '</b>" еще ' . $u->timeOut(
2022-08-25 14:23:36 +03:00
$pl['timeUse'] - time() + $pl['timeAce']
);
}
2023-01-10 18:29:32 +02:00
//Персонаж ослаблен из-за смерти в бою, еще 4 мин. 24 сек.
2023-02-13 16:49:07 +02:00
$nn = 0;
while ($nn < count($st['effects'])) {
if ($st['effects'][$nn]['id_eff'] == 5) {
$osl = mysql_fetch_array(
2022-08-25 14:23:36 +03:00
mysql_query(
'SELECT `id2`,`actionTime` FROM `eff_main` WHERE `id2` = "5" LIMIT 1'
)
2023-02-13 16:49:07 +02:00
);
2023-03-31 21:30:14 +03:00
echo '<br><img src="//img.new-combats.tech/i/travma2.gif"> Персонаж ослаблен из-за смерти в бою, еще ' . timeOut(
2022-08-25 14:23:36 +03:00
$st['effects'][$nn]['timeUse'] + $st['effects'][$nn]['timeAce'] + $osl['actionTime'] - time(
)
) . ' ';
2023-02-13 16:49:07 +02:00
$nn = count($st['effects']) + 1;
2022-08-25 14:23:36 +03:00
}
2023-02-13 16:49:07 +02:00
$nn++;
2022-08-25 14:23:36 +03:00
}
echo '</small>';
2023-02-13 16:49:07 +02:00
if (!empty($ico[3])) {
2023-01-10 18:29:32 +02:00
echo '<div style="padding-top:20px;"><div style="padding-bottom:10px;"><u>Достижения персонажа:</u></div>' . $ico[3] . '</div>';
2022-08-25 14:23:36 +03:00
}
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)) {
2023-01-10 18:29:32 +02:00
$to = 'хаос';
2022-08-25 14:23:36 +03:00
}
if ($inf['banned'] > 0) {
if ($to = '') {
2023-01-10 18:29:32 +02:00
$to = 'блок';
2022-08-25 14:23:36 +03:00
} else {
2023-01-10 18:29:32 +02:00
$to = $to . '/блок';
2022-08-25 14:23:36 +03:00
}
}
$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'])) {
2023-01-10 18:29:32 +02:00
$from = 'паладинов';
2022-08-25 14:23:36 +03:00
if ($fm['hb'] == 2) {
2023-01-10 18:29:32 +02:00
$from = 'Ангелов';
2022-08-25 14:23:36 +03:00
} elseif ($fm['hb'] == 3) {
2023-01-10 18:29:32 +02:00
$from = 'тарманов';
2022-08-25 14:23:36 +03:00
}
2023-01-10 18:29:32 +02:00
echo 'Сообщение от модераторов:<br>';
2022-08-25 14:23:36 +03:00
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) {
2023-01-10 18:29:32 +02:00
echo 'Хаос <i>бессрочно</i>.';
2022-08-25 14:23:36 +03:00
} else {
2023-01-10 18:29:32 +02:00
echo 'Хаос еще <i>' . timeOut($inf['haos'] - time()) . '</i>';
2022-08-25 14:23:36 +03:00
}
}
echo '</div>';
}
2023-01-10 18:29:32 +02:00
//подарки
2022-08-25 14:23:36 +03:00
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')) {
2023-04-16 01:54:07 +03:00
$po = ConversionHelper::dataStringToArray($pl['data']);
2022-08-25 14:23:36 +03:00
$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'])) {
2023-01-10 18:29:32 +02:00
//Именной подарок
2022-08-25 14:23:36 +03:00
$pl['name'] = $pl_gift['name'];
$pl['img'] = $pl_gift['img'];
}
}
}
2023-01-10 18:29:32 +02:00
//подарки
2022-08-25 14:23:36 +03:00
if ($pl['gift'] == 1) {
2023-01-10 18:29:32 +02:00
$pl['gift2'] = 'Невидимка';
2022-08-25 14:23:36 +03:00
} else {
$pl['gift2'] = $pl['gift'];
}
2023-03-31 21:30:14 +03:00
$gs[0] .= '<img src="//img.new-combats.tech/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'] . '
2023-01-10 18:29:32 +02:00
Подарок от ' . $pl['gift2'] . '" />';
2022-08-25 14:23:36 +03:00
$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['gift'] == 1) {
2023-01-10 18:29:32 +02:00
$pl['gift2'] = 'Невидимка';
2022-08-25 14:23:36 +03:00
} else {
$pl['gift2'] = $pl['gift'];
}
2023-03-31 21:30:14 +03:00
$gs[1] .= '<img src="//img.new-combats.tech/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'] . '
2023-01-10 18:29:32 +02:00
Подарок от ' . $pl['gift2'] . '" />';
2022-08-25 14:23:36 +03:00
$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) {
2023-01-10 18:29:32 +02:00
//Букеты
2022-08-25 14:23:36 +03:00
if ($pl['gift'] == 1) {
2023-01-10 18:29:32 +02:00
$pl['gift2'] = 'Невидимка';
2022-08-25 14:23:36 +03:00
} else {
$pl['gift2'] = $pl['gift'];
}
2023-03-31 21:30:14 +03:00
$gs[2] .= '<img src="//img.new-combats.tech/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'] . '
2023-01-10 18:29:32 +02:00
Подарок от ' . $pl['gift2'] . '" />';
2022-08-25 14:23:36 +03:00
}
$ij3++;
}
if ($gs[0] != '' || $gs[1] != '' || $gs[2] != '') {
if ($gs[2] != '') {
2023-01-10 18:29:32 +02:00
$gs[2] = '<tr><td style="padding-top:20px;"><div style="padding-bottom:2px;"><u>Букеты:</u></div><br>' . $gs[2] . '</td></tr>';
2022-08-25 14:23:36 +03:00
}
2023-01-10 18:29:32 +02:00
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>';
2022-08-25 14:23:36 +03:00
$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'])) {
2023-01-10 18:29:32 +02:00
echo '<small><a href="/info/' . $inf['id'] . '&maxgift=1">Нажмите сюда, чтобы увидеть все подарки...</a></small>';
2022-08-25 14:23:36 +03:00
} else {
2023-01-10 18:29:32 +02:00
echo '<small><a href="/info/' . $inf['id'] . '">Нажмите сюда, чтобы скрыть подарки</a></small>';
2022-08-25 14:23:36 +03:00
}
}
}
}
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` (
2022-06-07 00:30:34 +03:00
`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 (
2022-08-25 14:23:36 +03:00
"' . 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'
);
}
2023-02-13 16:49:07 +02:00
echo '<b style="color: red">Новые данные были успешно сохранены!</b>';
2022-08-25 14:23:36 +03:00
}
?>
2023-01-10 18:29:32 +02:00
<b style="color:red">Параметры монстра:</b><br>
2022-08-25 14:23:36 +03:00
<form method="post" action="/info/<?= $inf['id'] ?>&emonster">
<table style="padding-left:10px;" width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
2023-01-10 18:29:32 +02:00
<td>Место появления (id комнаты):
2022-08-25 14:23:36 +03:00
<input type="text" name="bot_sroom" id="bot_sroom"
value="<?= $monster['start_room'] ?>">
2023-01-10 18:29:32 +02:00
<input value="Обнулить ожидание" type="button"
2022-08-25 14:23:36 +03:00
onclick="location.href='/info/<?= $inf['id'] ?>&emonster&restartmonster'"/>
</td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Время ожидания после поражения бота: <input name="bot_trs" id="bot_trs"
2022-08-25 14:23:36 +03:00
value="<?= $monster['time_restart'] ?>"
2023-01-10 18:29:32 +02:00
type="text"> мин.
2022-08-25 14:23:36 +03:00
</td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Исчезнет после своей победы:
2022-08-25 14:23:36 +03:00
<select name="bot_winback" id="bot_winback">
2023-01-10 18:29:32 +02:00
<option value="0">Нет</option>
2022-08-25 14:23:36 +03:00
<option <?php if ($monster['win_back'] == 1) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="1">Да
2022-08-25 14:23:36 +03:00
</option>
</select></td>
</tr>
<tr>
<td>
<div align="left"
style="height:1px; width:300px; background-color:#999999; margin:3px;"></div>
</td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Появляется,
ДН
2022-08-25 14:23:36 +03:00
<select name="bot_sday" id="bot_sday">
2023-01-10 18:29:32 +02:00
<option value="-1">• День недели</option>
2022-08-25 14:23:36 +03:00
<option <?php if ($monster['start_day'] == 1) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="1">Понедельник
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['start_day'] == 2) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="2">Вторник
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['start_day'] == 3) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="3">Среда
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['start_day'] == 4) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="4">Четверг
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['start_day'] == 5) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="5">Пятница
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['start_day'] == 6) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="6">Суббота
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['start_day'] == 7) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="7">Воскресенье
2022-08-25 14:23:36 +03:00
</option>
</select>
2023-01-10 18:29:32 +02:00
Д
2022-08-25 14:23:36 +03:00
<select name="bot_sdd" id="bot_sdd">
2023-01-10 18:29:32 +02:00
<option value="-1">• День</option>
2022-08-25 14:23:36 +03:00
<?php $i = 0;
while ($i < 31) {
$i++; ?>
<option <?php if ($monster['start_dd'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>">
<?= $i ?>
</option>
<?php } ?>
</select>
2023-01-10 18:29:32 +02:00
М
2022-08-25 14:23:36 +03:00
<select name="bot_smm" id="bot_smm">
2023-01-10 18:29:32 +02:00
<option value="-1">• Месяц</option>
2022-08-25 14:23:36 +03:00
<?php $i = 0;
while ($i < 12) {
$i++; ?>
<option <?php if ($monster['start_mm'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>"><?= $i ?></option>
<?php } ?>
</select>
2023-01-10 18:29:32 +02:00
Ч
2022-08-25 14:23:36 +03:00
<select name="bot_shh" id="bot_shh">
2023-01-10 18:29:32 +02:00
<option value="-1">• Час</option>
2022-08-25 14:23:36 +03:00
<?php $i = -1;
while ($i < 23) {
$i++; ?>
<option <?php if ($monster['start_hh'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>"><?= $i ?></option>
<?php } ?>
</select>
2023-01-10 18:29:32 +02:00
Мин
2022-08-25 14:23:36 +03:00
<select name="bot_smin" id="bot_smin">
2023-01-10 18:29:32 +02:00
<option value="-1">• Мин</option>
2022-08-25 14:23:36 +03:00
<?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>
2023-01-10 18:29:32 +02:00
<td>Исчезает, ДН
2022-08-25 14:23:36 +03:00
<select name="bot_bday" id="bot_bday">
2023-01-10 18:29:32 +02:00
<option value="-1">• День недели</option>
2022-08-25 14:23:36 +03:00
<option <?php if ($monster['back_day'] == 1) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="1">Понедельник
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['back_day'] == 2) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="2">Вторник
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['back_day'] == 3) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="3">Среда
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['back_day'] == 4) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="4">Четверг
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['back_day'] == 5) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="5">Пятница
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['back_day'] == 6) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="6">Суббота
2022-08-25 14:23:36 +03:00
</option>
<option <?php if ($monster['back_day'] == 7) {
echo 'selected';
2023-01-10 18:29:32 +02:00
} ?> value="7">Воскресенье
2022-08-25 14:23:36 +03:00
</option>
</select>
2023-01-10 18:29:32 +02:00
Д
2022-08-25 14:23:36 +03:00
<select name="bot_bdd" id="bot_bdd">
2023-01-10 18:29:32 +02:00
<option value="-1">• День</option>
2022-08-25 14:23:36 +03:00
<?php $i = 0;
while ($i < 31) {
$i++; ?>
<option <?php if ($monster['back_dd'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>">
<?= $i ?>
</option>
<?php } ?>
</select>
2023-01-10 18:29:32 +02:00
М
2022-08-25 14:23:36 +03:00
<select name="bot_bmm" id="bot_bmm">
2023-01-10 18:29:32 +02:00
<option value="-1">• Месяц</option>
2022-08-25 14:23:36 +03:00
<?php $i = 0;
while ($i < 12) {
$i++; ?>
<option <?php if ($monster['back_mm'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>"><?= $i ?></option>
<?php } ?>
</select>
2023-01-10 18:29:32 +02:00
Ч
2022-08-25 14:23:36 +03:00
<select name="bot_bhh" id="bot_bhh">
2023-01-10 18:29:32 +02:00
<option value="-1">• Час</option>
2022-08-25 14:23:36 +03:00
<?php $i = -1;
while ($i < 23) {
$i++; ?>
<option <?php if ($monster['back_hh'] == $i) {
echo 'selected';
} ?> value="<?= $i ?>"><?= $i ?></option>
<?php } ?>
</select>
2023-01-10 18:29:32 +02:00
Мин
2022-08-25 14:23:36 +03:00
<select name="bot_bmin" id="bot_bmin">
2023-01-10 18:29:32 +02:00
<option value="-1">• Мин</option>
2022-08-25 14:23:36 +03:00
<?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>
2023-01-10 18:29:32 +02:00
<td>Текст появления (Логин бота <b>{b}</b>, Логины игроков <b>{u}</b>):</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['start_text'] ?>" name="bot_stext"
type="text" id="bot_stext" size="100" maxlength="250"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Текст исчезновения:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['back_text'] ?>" name="bot_btext" type="text"
id="bot_btext" size="100" maxlength="250"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Текст победы игрока:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['win_text'] ?>" name="bot_wintext"
type="text" id="bot_wintext" size="100" maxlength="250"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Текст поражения игрока:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['lose_text'] ?>" name="bot_losetext"
type="text" id="bot_losetext" size="100" maxlength="250"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Текст ничьей:</td>
2022-08-25 14:23:36 +03:00
</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>
2023-01-10 18:29:32 +02:00
<b>Награда (победа игрока):</b></td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Кр.:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['win_money1'] ?>" name="bot_winmoney1"
type="text" id="bot_winmoney1" size="100" maxlength="17"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Екр.:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['win_money2'] ?>" name="bot_winmoney2"
type="text" id="bot_winmoney2" size="100" maxlength="10"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Опыт (За 100% НР монстра):</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['win_exp'] ?>" name="bot_winexp" type="text"
id="bot_winexp" size="100" maxlength="17"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Предметы (id@kolvo@data, ...):</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['win_itm'] ?>" name="bot_winitm" type="text"
id="bot_winitm" size="100" maxlength="500"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Эффект:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['win_eff'] ?>" name="bot_wineff" type="text"
id="bot_wineff" size="100" maxlength="500"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Подвиги:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['win_ico'] ?>" name="bot_winico" type="text"
id="bot_winico" size="100" maxlength="500"></td>
</tr>
<tr>
<td>
2023-02-13 16:49:07 +02:00
<div style="height:1px; width:300px; background-color:#999999; margin:3px;"></div>
2023-01-10 18:29:32 +02:00
<b>Награда (поражение игрока):</b></td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Кр.:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['lose_money1'] ?>" name="bot_losemoney1"
type="text" id="bot_losemoney1" size="100" maxlength="10"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Екр.:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['lose_money2'] ?>" name="bot_losemoney2"
type="text" id="bot_losemoney2" size="100" maxlength="10"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Опыт:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['lose_exp'] ?>" name="bot_loseexp"
type="text" id="bot_loseexp" size="100" maxlength="17"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Предметы:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['lose_itm'] ?>" name="bot_loseitm"
type="text" id="bot_loseitm" size="100" maxlength="500"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Эффект:</td>
2022-08-25 14:23:36 +03:00
</tr>
<tr>
<td><input value="<?= $monster['lose_eff'] ?>" name="bot_loseeff"
type="text" id="bot_loseeff" size="100" maxlength="500"></td>
</tr>
<tr>
2023-01-10 18:29:32 +02:00
<td>Подвиги:</td>
2022-08-25 14:23:36 +03:00
</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;">
2023-01-10 18:29:32 +02:00
<input type="submit" value="Сохранить"/>
2022-08-25 14:23:36 +03:00
</div>
<br><br>
</form>
2023-02-13 16:49:07 +02:00
<div style="height:1px; width:300px; background-color:#999999; margin:3px; text-align: center;">
2022-08-25 14:23:36 +03:00
<div onClick="location.href='/info/<?= $inf['id'] ?>'"
2023-02-13 16:49:07 +02:00
style="border:1px solid #999999; cursor:pointer; background-color:#EAEAEA; width:150px; text-align: center; font-size: small">
Скрыть
</div>
2022-08-25 14:23:36 +03:00
</div>
<?php
} else {
?>
2023-02-13 16:49:07 +02:00
<div style="height:1px; width:300px; background-color:#999999; margin:3px; text-align: center;">
2022-08-25 14:23:36 +03:00
<div onClick="location.href='/info/<?= $inf['id'] ?>&emonster'"
2023-02-13 16:49:07 +02:00
style="border:1px solid #999999; cursor:pointer; background-color:#EAEAEA; width:150px; text-align: center; font-size: small;">
Настройка монстра
</div>
2022-08-25 14:23:36 +03:00
</div>
<?php
}
}
2023-01-10 18:29:32 +02:00
//темные делишки :D
2023-02-13 16:49:07 +02:00
if (
$inf['id'] != 1 &&
$inf['id'] != 15 &&
$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
)
) {
2022-08-25 14:23:36 +03:00
$mults = '';
$bIP = [];
$spl = mysql_query(
2023-02-13 16:49:07 +02:00
'SELECT * FROM `mults` WHERE (`uid` = "' . $inf['id'] . '" OR `uid2` = "' . $inf['id'] . '") AND `uid`!="0" AND `uid2`!="0" and id != "2495806"'
2022-08-25 14:23:36 +03:00
);
while ($pls = mysql_fetch_array($spl)) {
$usr = $pls['uid'];
if ($usr == $inf['id']) {
$usr = $pls['uid2'];
}
2023-02-13 16:49:07 +02:00
if ($usr != $inf['id']) {
$si = Db::getRow('select id, admin, online from users where id = ? and login != ?', [$usr, 'delete']);
2022-08-25 14:23:36 +03:00
if (isset($si['id'])) {
if ($si['admin'] == 0) {
if ($si['online'] > time() - 520) {
2023-02-13 16:49:07 +02:00
$mults .= '<span style="color: green;">' . $u->microLogin($si['id'], 1) . '</span>, ';
2022-08-25 14:23:36 +03:00
} else {
$mults .= $u->microLogin($si['id'], 1) . ', ';
}
}
}
}
}
2023-02-13 16:49:07 +02:00
if (!$nopal && ($u->info['admin'] != 0 || $inf['admin'] == 0)) {
echo '<div style="color:#828282; margin-top: 20px;">За игроком замечены следующие темные делишки:<br><small><span class=dsc>';
2022-08-25 14:23:36 +03:00
if (!isset($_GET['mod_inf'])) {
2023-01-10 18:29:32 +02:00
echo '<a href="/info/' . $inf['id'] . '&mod_inf">Показать личное дело</a>';
2022-08-25 14:23:36 +03:00
} else {
2023-01-10 18:29:32 +02:00
//Личное дело персонажа
2023-02-13 16:49:07 +02:00
$logs = Db::getRows('select * from users_delo where uid = ? and type = 0 order by id desc', [$inf['id']]); //limit 21 ?
foreach ($logs as $logstr) {
echo date('d.m.Y H:i:s', $logstr['time']) . ' ' . $logstr['text'] . '<br>';
2022-08-25 14:23:36 +03:00
}
2023-01-10 18:29:32 +02:00
echo '<a href="/info/' . $inf['id'] . '">Скрыть личное дело</a>';
2022-08-25 14:23:36 +03:00
}
echo '</small><br>';
2023-01-10 18:29:32 +02:00
//Информация для паладинов\тарманов\ангелов
2023-02-13 16:49:07 +02:00
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
) {
2022-08-25 14:23:36 +03:00
if ((int)$inf['host_reg'] >= 1) {
$inf['ref'] = $u->microLogin((int)$inf['host_reg'], 1);
} else {
$inf['ref'] = '--';
}
if (!isset($inf['ipReg'])) {
$inf['ipReg'] = '--';
}
2023-02-13 16:49:07 +02:00
echo '<br><span style="color:red; text-decoration: underline; font-weight: bold;">Секретно!</span><br>';
echo '<i>День рождения: ' . $inf['bithday'] . '<br>';
2022-08-25 14:23:36 +03:00
if ($inf['vip'] == 1) {
2023-02-13 16:49:07 +02:00
echo '<b style="color: red">VIP персонаж</b><br>';
2022-08-25 14:23:36 +03:00
}
if ($u->info['admin'] > 0) {
2023-02-13 16:49:07 +02:00
echo 'Комната: ' . $inf['room'] . '<br>';
echo '<b style="color: green;">';
$mls = Db::getValue('select count(*) from users_rbk where email = ? limit 1', [$inf['mail']]);
if (isset($mls)) {
2023-01-10 18:29:32 +02:00
echo '<u>E-mail: ' . $inf['mail'] . '</u> (РАССЫЛКА)';
2022-08-25 14:23:36 +03:00
} else {
2023-01-06 16:57:25 +02:00
echo 'E-mail: ' . $inf['mail'];
2022-08-25 14:23:36 +03:00
}
2023-02-13 16:49:07 +02:00
echo ' & ' . $inf['send'] . '<br>';
echo '</b>';
2022-08-25 14:23:36 +03:00
} else {
echo '<br>';
}
if ($inf['no_ip'] != 0) {
$inf['ipReg'] = $inf['no_ip'];
$inf['ip'] = $inf['no_ip'];
}
2023-02-13 16:49:07 +02:00
echo 'Персонажа пригласили: ' . $inf['ref'] .
'<br>Последний раз заходил в клуб: ' . date('d.m.Y H:i', $inf['online']) . '<br>' .
$pr['login'] . 'IP при регистрации: ' . $inf['ipReg'] . '<br>';
2022-08-25 14:23:36 +03:00
if ($inf['no_ip'] == '' || $u->info['admin'] > 0) {
2023-01-10 18:29:32 +02:00
echo 'IP последние: <b>' . $inf['ip'] . '</b>';
2022-08-25 14:23:36 +03:00
$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)) {
2023-02-13 16:49:07 +02:00
echo '<br>' . $auth_w['ip'] . ' <small><b>(' . date(
2022-08-25 14:23:36 +03:00
'd.m.Y H:i', $auth_w['time']
) . ')</b></small>';
}
} else {
2023-01-10 18:29:32 +02:00
echo 'IP последние: <b>' . $inf['no_ip'] . '</b>';
2022-08-25 14:23:36 +03:00
}
2023-02-13 16:49:07 +02:00
if ((empty($inf['no_ip']) || $u->info['admin'] > 0) && !empty($mults) && $inf['admin'] == 0) {
$mults = trim($mults, ', ');
echo 'Другие ники этого бойца: ' . $mults . '<br>';
2022-08-25 14:23:36 +03:00
}
$referalos = '';
$rfs = 0;
$sp = mysql_query(
2023-01-06 16:57:25 +02:00
'SELECT `id`,`login`,`ip`,`ipreg`,`timereg`,`online` FROM `users` WHERE `host_reg` = "' . $inf['id'] . '" ORDER BY `timereg` DESC'
2022-08-25 14:23:36 +03:00
);
while ($pl = mysql_fetch_array($sp)) {
2023-01-10 18:29:32 +02:00
$referalos .= '<br>Дата рег.: ' . date(
2022-08-25 14:23:36 +03:00
'd.m.Y H:i', $pl['timereg']
2023-01-10 18:29:32 +02:00
) . ' / Был тут: ' . date(
2022-08-25 14:23:36 +03:00
'd.m.Y H:i', $pl['online']
) . ' ' . $u->microLogin(
$pl['id'], 1
) . ' <small>( ' . $pl['ip'] . ' , ' . $pl['ipreg'] . ' )</small>';
$rfs++;
}
if ($referalos == '') {
2023-01-10 18:29:32 +02:00
$referalos = '<i>Отсутствуют</i>';
2022-08-25 14:23:36 +03:00
}
2023-01-10 18:29:32 +02:00
echo '<hr><b>Рефералы бойца:</b>' . $referalos . '<hr>';
2022-08-25 14:23:36 +03:00
if ($u->info['admin'] > 0) {
2023-01-10 18:29:32 +02:00
echo 'Доп. возможности: <small><a href="/info/' . $inf['id'] . '&wipe&sd4=' . $u->info['nextAct'] . '">сбросить характеристики</a></small><br>';
2022-08-25 14:23:36 +03:00
$on1 = mysql_fetch_array(
mysql_query(
'SELECT `time_all`,`time_today` FROM `online` WHERE `uid` = "' . $inf['id'] . '" LIMIT 1'
)
);
2023-01-10 18:29:32 +02:00
echo 'Время в онлайне (всего): ' . timeOut(
2022-08-25 14:23:36 +03:00
$on1['time_all']
2023-01-10 18:29:32 +02:00
) . '<br>Время в онлайне (сегодня): ' . timeOut(
2022-08-25 14:23:36 +03:00
$on1['time_today']
) . '<br>';
}
if ($inf['molch3'] < time() && $inf['molch1'] > time()) {
2023-01-10 18:29:32 +02:00
echo '<small><a href="/info/' . $inf['id'] . '&molchMax&sd4=' . $u->info['nextAct'] . '">Запретить персонажу отправлять сообщения с молчанкой</a></small><br>';
2022-08-25 14:23:36 +03:00
}
2023-02-13 16:49:07 +02:00
echo 'Опыт: ' . $inf['exp'] .
'<br>Число неиспользованных UP-ов: ' . $inf['ability'] .
'<br><b>Кредитов:</b> ' . $inf['money'] .
'<br><b>ЕвроКредитов:</b> ' . $inf['money2'];
2022-08-25 14:23:36 +03:00
$bmn1 = 0;
$bmn2 = 0;
2023-07-11 18:16:35 +03:00
2022-08-25 14:23:36 +03:00
$pk = mysql_fetch_array(
mysql_query(
'SELECT SUM(`ekr`) FROM `pay_operation` WHERE `uid` = "' . $inf['id'] . '" AND `good` > 0 LIMIT 1'
)
);
2023-02-13 16:49:07 +02:00
echo '<br><b><i><u>Персонаж покупал еврокредиты</u></i></b> Сумма : ' . $pk[0] . ' ЕКР<br>';
2023-07-11 18:16:35 +03:00
2022-08-25 14:23:36 +03:00
if ($u->info['admin'] > 0 && $inf['admin'] > 0) {
echo '<br><small>admin: ' . $inf['admin'] . '</small>';
}
2023-01-06 16:57:25 +02:00
2022-08-25 14:23:36 +03:00
echo '</div>';
}
}
}
?>
<td width="111" align=right valign=top>
<div style="float:right">
<table cellspacing=0 cellpadding=0>
<tr>
2023-02-13 16:49:07 +02:00
<td style='text-align: center; padding-bottom: 18px; width: 111px;'><!-- Зодиак -->
2023-03-31 19:54:33 +03:00
<img width="100" height="99" title="<?= $name_zodiak; ?>"
2023-02-13 16:49:07 +02:00
style="margin-bottom: 25px; padding:5px;"
2023-03-31 21:30:14 +03:00
src='//img.new-combats.tech/i/zodiac/<?= $id_zodiak; ?>.gif'>
2023-02-13 16:49:07 +02:00
<BR><BR>
2022-08-25 14:23:36 +03:00
<?php if ($inf['id'] >= 0) { ?>
<?php } elseif ($inf['align'] > 1 && $inf['align'] < 2) { ?>
2023-03-31 19:54:33 +03:00
<A href='https://paladins.<?= $c['host']; ?>/' target='_blank'>
2023-02-13 16:49:07 +02:00
<img width="100" height="97" style="padding:5px;"
2023-03-31 21:30:14 +03:00
src='//img.new-combats.tech/i/flag_light.gif'></A>
2022-08-25 14:23:36 +03:00
<BR>
2023-03-31 19:54:33 +03:00
<A href='https://paladins.<?= $c['host']; ?>/' target='_blank'>
2023-02-13 16:49:07 +02:00
<small>Орден Света</small></A>
2022-08-25 14:23:36 +03:00
<?php } elseif ($inf['align'] >= 3.01 && $inf['align'] <= 3.99) { ?>
2023-03-31 19:54:33 +03:00
<A target='_blank' href='https://tarmans.<?= $c['host']; ?>/'>
2023-02-13 16:49:07 +02:00
<img width="100" height="97" style="padding:5px;"
2023-03-31 21:30:14 +03:00
src='//img.new-combats.tech/i/flag_dark.gif'></A>
2022-08-25 14:23:36 +03:00
<BR>
2023-03-31 19:54:33 +03:00
<A href='https://tarmans.<?= $c['host']; ?>/' target='_blank'><small>Армада</small></A>
2022-08-25 14:23:36 +03:00
<?php } elseif ($inf['align'] >= 2 && $inf['align'] < 3) { ?>
2023-03-31 19:54:33 +03:00
<A target='_blank' href='https://chaos.<?= $c['host']; ?>/'>
2023-02-13 16:49:07 +02:00
<img width="100" height="97" style="padding:5px;"
2023-03-31 21:30:14 +03:00
src='//img.new-combats.tech/i/flag_haos.gif'></A>
2022-08-25 14:23:36 +03:00
<BR>
2023-03-31 19:54:33 +03:00
<A href='https://chaos.<?= $c['host']; ?>/' target='_blank'>
2023-02-13 16:49:07 +02:00
<small>Цитадель Хаоса</small></A>
2022-08-25 14:23:36 +03:00
<?php } else { ?>
2023-02-13 16:49:07 +02:00
<a target='_blank' href='/news'>
2023-03-31 21:30:14 +03:00
<img width="100" height="97" style="padding:5px;" src='//img.new-combats.tech/i/flag_gray.gif'>
2023-02-13 16:49:07 +02:00
</a>
2022-08-25 14:23:36 +03:00
<BR>
2023-02-13 16:49:07 +02:00
<A href='/news'
2023-01-10 18:29:32 +02:00
target='_blank'><small>Новости</small></A><br>
2022-08-25 14:23:36 +03:00
<?php } ?>
</td>
</tr>
</table>
</div>
</td>
</table>
</td>
</tr>
2022-06-07 00:30:34 +03:00
</table>
2022-08-25 14:23:36 +03:00
<?php
2022-06-07 00:30:34 +03:00
$moder = 0;
2022-08-25 14:23:36 +03:00
if ($u->info['align'] > 1 && $u->info['align'] < 2) {
$moder = 1;
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
if ($u->info['align'] > 3 && $u->info['align'] < 4) {
$moder = 2;
2022-06-07 00:30:34 +03:00
}
2023-02-13 16:49:07 +02:00
if ($inf['info_delete'] != 0) {
2022-08-25 14:23:36 +03:00
?>
2023-02-13 16:49:07 +02:00
<H3 style="color:#8f0000">Персонаж обезличен <?php if ($inf['info_delete'] > 1) {
2023-01-10 18:29:32 +02:00
echo 'до ' . date('d.m.Y H:i', $inf['info_delete']) . '.';
2022-08-25 14:23:36 +03:00
} 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;">';
}
2022-06-07 00:30:34 +03:00
}
2022-08-25 14:23:36 +03:00
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))
2022-06-07 00:30:34 +03:00
{
?>
2022-08-25 14:23:36 +03:00
<div style="line-height:11pt;">
<hr style="border-color:#999999;">
2023-02-13 16:49:07 +02:00
<?php if ($inf['info_delete'] == 0) { ?><H3 style="color:#8f0000">Анкетные данные</H3><?php } ?>
2022-08-25 14:23:36 +03:00
<?php
if ($inf['name'] != '') {
?>
2023-03-31 19:54:33 +03:00
<b style="color:#444">Имя:</b> <?= $inf['name']; ?><BR><?php } ?>
2023-01-10 18:29:32 +02:00
<b style="color:#444">Пол:</b>
<?php $sex[0] = 'Мужской';
$sex[1] = 'Женский';
2022-08-25 14:23:36 +03:00
echo $sex[$inf['sex']]; ?><BR>
2023-01-06 16:57:25 +02:00
2022-08-25 14:23:36 +03:00
<?php if ($inf['hobby'] != '') { ?>
2023-01-10 18:29:32 +02:00
<b style="color:#444">Увлечения / хобби:</b><BR>
2022-08-25 14:23:36 +03:00
<?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>';
?>
2022-06-07 00:30:34 +03:00
</div>
</body>
</html>