2022-08-11 10:38:38 +00:00
< ? php
2023-02-13 14:49:07 +00:00
use Core\Config ;
use Core\Database ;
use Core\Db ;
2023-08-14 15:15:05 +00:00
use Helper\Conversion ;
2023-02-13 14:49:07 +00:00
if ( ! defined ( 'GAME_VERSION' )) {
require_once '_incl_data/autoload.php' ;
}
2022-08-25 11:23:36 +00:00
if ( isset ( $_GET [ 'md5' ])) {
die ( md5 ( $_GET [ 'md5' ]));
2022-06-06 21:30:34 +00:00
}
2023-02-13 14:49:07 +00:00
Config :: init ();
Database :: init ();
2022-06-06 21:30:34 +00:00
$c [ 'inf' ] = true ;
2023-02-13 14:49:07 +00:00
//const GAME = true;
2022-06-06 21:30:34 +00:00
include_once ( '_incl_data/class/__db_connect.php' );
2022-08-25 11:23:36 +00:00
$u = User :: start ();
2022-06-06 21:30:34 +00:00
2022-08-11 10:38:38 +00:00
const LOWERCASE = 3 ;
const UPPERCASE = 1 ;
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
$uplogin = explode ( '&' , $_SERVER [ 'QUERY_STRING' ]);
2022-06-06 21:30:34 +00:00
$uplogin = $uplogin [ 0 ];
2022-08-25 11:23:36 +00:00
$uplogin = preg_replace ( '/%20/' , " " , $uplogin );
function utf8_win ( $s )
{
2023-01-10 16:29:32 +00: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 11:23:36 +00:00
return $s ;
2022-06-06 21:30:34 +00:00
}
$uplogin = utf8_win ( $uplogin );
2022-08-25 11:23:36 +00:00
if ( ! isset ( $_GET [ 'id' ])) {
$_GET [ 'id' ] = 0 ;
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
if ( ! isset ( $_GET [ 'login' ])) {
$_GET [ 'login' ] = null ;
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
if ( ! isset ( $upLogin )) {
$upLogin = '' ;
}
2022-06-06 21:30:34 +00:00
$utf8Login = '' ;
$utf8Login2 = '' ;
2023-01-10 17:26:14 +00:00
$utf8Login = $uplogin ;
2022-08-25 11:23:36 +00:00
2023-01-10 17:26:14 +00:00
$utf8Login2 = $_GET [ 'login' ];
2022-08-25 11:23:36 +00:00
2023-02-13 14:49:07 +00:00
if ( $uplogin != 'delete' && $utf8Login != 'delete' && $utf8Login2 != 'delete' ) {
2022-08-25 11:23:36 +00: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-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00: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 16:29:32 +00:00
//снимаем х а о с
2022-08-25 11:23:36 +00: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 16:29:32 +00:00
$uer = 'С б р о с характеристик прошел успешно<br>' ;
2022-08-25 11:23:36 +00:00
} else {
2023-01-10 16:29:32 +00:00
$uer = 'Ошибка с б р о с а ...<br>' ;
2022-08-25 11:23:36 +00: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 16:29:32 +00:00
$uer = 'В с е прошло успешно...<br>' ;
2022-08-25 11:23:36 +00:00
} else {
2023-01-10 16:29:32 +00:00
$uer = 'Ошибка...<br>' ;
2022-08-25 11:23:36 +00:00
}
}
}
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
if ( $inf [ 'room' ] == 303 && $u -> info [ 'admin' ] == 0 ) {
unset ( $inf );
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
if ( ! isset ( $inf [ 'id' ])) {
2023-01-10 16:29:32 +00:00
die ( 'Ошибка. Персонаж не найден.' );
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00: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-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
function zodiak ( $d , $m , $y )
2022-06-06 21:30:34 +00:00
{
2022-08-25 11:23:36 +00: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-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
2022-06-06 21:30:34 +00:00
$id_zodiak = null ;
2022-08-25 11:23:36 +00:00
$bday = explode ( '.' , $inf [ 'bithday' ]);
if ( isset ( $bday [ 0 ], $bday [ 1 ], $bday [ 2 ])) {
$id_zodiak = zodiak ( $bday [ 0 ], $bday [ 1 ], $bday [ 2 ]);
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
if ( $id_zodiak == null ) {
$id_zodiak = 1 ;
2022-06-06 21:30:34 +00:00
}
2023-01-10 16:29:32 +00:00
$name_zodiak = [ 1 => 'Овен' , 2 => 'Телец' , 3 => 'Близнецы' , 4 => 'Рак' , 5 => 'Лев' , 6 => 'Дева' , 7 => 'Весы' , 8 => 'Скорпион' , 9 => 'Стрелец' , 10 => 'Козерог' , 11 => 'Водолей' , 12 => 'Рыбы' ];
2022-06-06 21:30:34 +00:00
$name_zodiak = $name_zodiak [ $id_zodiak ];
function statInfo ( $s )
{
2022-08-25 11:23:36 +00: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-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
$room = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `room` WHERE `id`="' . $inf [ 'room' ] . '" LIMIT 1' ));
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
if ( $inf [ 'clan' ] > 0 ) {
$pc = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `clan` WHERE `id`="' . $inf [ 'clan' ] . '" LIMIT 1' ));
2022-06-06 21:30:34 +00:00
}
$nopal = false ;
2022-08-25 11:23:36 +00: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-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
if ( $u -> info [ 'admin' ] == 0 ) {
$nopal = true ;
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00: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-06 21:30:34 +00:00
}
?>
<! DOCTYPE html >
< html >
< head >
2023-07-19 15:23:44 +00:00
2023-03-31 16:54:33 +00:00
< title > Информация о < ? = $inf [ 'login' ]; ?> </title>
2022-08-25 11:23:36 +00:00
< meta
2023-01-10 16:29:32 +00:00
" description " name content = " Просматривайте информацию о игровых персонажах браузерной игры Бойцовский Клуб.Играйте в
новый проект потивам браузерной игры combats . com версии 2. " />
2022-08-25 11:23:36 +00: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 18:30:14 +00:00
< link href = " //img.new-combats.tech/css/main.css " rel = " stylesheet " type = " text/css " />
2022-08-25 11:23:36 +00:00
< style >
body {
background - color : #dedede;
margin : 5 px ;
}
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
hr {
height : 1 px ;
}
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
img {
border : 0 px ;
}
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
button {
border : solid 1 pt #B0B0B0;
font - family : MS Sans Serif ;
font - size : 11 px ;
color : #191970;
padding : 2 px 7 px 2 px 7 px ;
}
2022-06-06 21:30:34 +00:00
2022-08-25 11:23:36 +00:00
button : active {
padding : 3 px 6 px 1 px 8 px ;
}
. ttl_css {
position : absolute ;
text - shadow : 0 0 2 px #fff;
padding : 4 px 8 px ;
border : 1 px solid rgba ( 255 , 255 , 255 , 0.25 );
background - color : #cfcfcf;
border - radius : 3 px ;
- webkit - border - radius : 3 px ;
- moz - border - radius : 3 px ;
box - shadow : 0 0 3 px #000000;
- webkit - box - shadow : 0 0 3 px #000000;
- moz - box - shadow : 0 0 3 px #000000;
}
. findlg {
filter : alpha ( opacity = 37 );
opacity : 0.37 ;
- moz - opacity : 0.37 ;
- khtml - opacity : 0.37 ;
margin - bottom : 10 px ;
}
. findlg : hover {
filter : alpha ( opacity = 100 );
opacity : 1.00 ;
- moz - opacity : 1.00 ;
- khtml - opacity : 1.00 ;
}
. gifin {
position : absolute ;
left : 112 px ;
top : 428 px ;
padding : 5 px ;
background - color : #fcfef3;
border : 1 px solid #6e6960;
font - size : 12 px ;
max - width : 300 px ;
min - height : 100 px ;
min - width : 150 px ;
}
. pg_btn1 {
2023-03-31 18:30:14 +00:00
background - image : url ( //img.new-combats.tech/pg_btn_left.png);
2022-08-25 11:23:36 +00:00
width : 27 px ;
height : 78 px ;
cursor : pointer ;
display : block ;
}
. pg_btn1 : hover {
background - position : - 27 px ;
cursor : pointer ;
}
. pg_btn1 : active {
background - position : - 55 px ;
cursor : pointer ;
}
. pg_btn2 {
2023-03-31 18:30:14 +00:00
background - image : url ( //img.new-combats.tech/pg_btn_right.png);
2022-08-25 11:23:36 +00:00
background - position : - 54 px ;
width : 27 px ;
height : 78 px ;
cursor : pointer ;
display : block ;
}
. pg_btn2 : hover {
background - position : - 27 px ;
cursor : pointer ;
}
. pg_btn2 : active {
background - position : 1 px ;
cursor : pointer ;
}
progress {
- webkit - appearance : none ;
appearance : none ;
}
. prog0 {
width : 10 em ;
height : 1 em ;
}
. prog0 ::- webkit - progress - bar {
background - color : #eee;
border - radius : 2 px ;
box - shadow : 0 2 px 5 px rgba ( 0 , 0 , 0 , 0.25 ) inset ;
}
. prog0 [ value ] ::- webkit - progress - value {
background - image : - webkit - linear - gradient ( - 45 deg ,
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 : 2 px ;
background - size : 35 px 20 px , 100 % 100 % , 100 % 100 % ;
}
. prog1 {
width : 10 em ;
height : 1 em ;
}
. prog1 ::- webkit - progress - bar {
background - color : #eee;
border - radius : 2 px ;
box - shadow : 0 2 px 5 px rgba ( 0 , 0 , 0 , 0.25 ) inset ;
}
. prog1 [ value ] ::- webkit - progress - value {
background - image : - webkit - linear - gradient ( - 45 deg ,
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 : 2 px ;
background - size : 35 px 20 px , 100 % 100 % , 100 % 100 % ;
}
. prog2 {
width : 10 em ;
height : 1 em ;
}
. prog2 ::- webkit - progress - bar {
background - color : #eee;
border - radius : 2 px ;
box - shadow : 0 2 px 5 px rgba ( 0 , 0 , 0 , 0.25 ) inset ;
}
. prog2 [ value ] ::- webkit - progress - value {
background - image : - webkit - linear - gradient ( - 45 deg ,
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 : 2 px ;
background - size : 35 px 20 px , 100 % 100 % , 100 % 100 % ;
}
. prog3 {
width : 10 em ;
height : 1 em ;
}
. prog3 ::- webkit - progress - bar {
background - color : #eee;
border - radius : 2 px ;
box - shadow : 0 2 px 5 px rgba ( 0 , 0 , 0 , 0.25 ) inset ;
}
. prog3 [ value ] ::- webkit - progress - value {
background - image : - webkit - linear - gradient ( - 45 deg ,
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 : 2 px ;
background - size : 35 px 20 px , 100 % 100 % , 100 % 100 % ;
}
. prog4 {
width : 10 em ;
height : 1 em ;
}
. prog4 ::- webkit - progress - bar {
background - color : #eee;
border - radius : 2 px ;
box - shadow : 0 2 px 5 px rgba ( 0 , 0 , 0 , 0.25 ) inset ;
}
. prog4 [ value ] ::- webkit - progress - value {
background - image : - webkit - linear - gradient ( - 45 deg ,
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 : 2 px ;
background - size : 35 px 20 px , 100 % 100 % , 100 % 100 % ;
}
. prog5 {
width : 10 em ;
height : 1 em ;
}
. prog5 ::- webkit - progress - bar {
background - color : #eee;
border - radius : 2 px ;
box - shadow : 0 2 px 5 px rgba ( 0 , 0 , 0 , 0.25 ) inset ;
}
. prog5 [ value ] ::- webkit - progress - value {
background - image : - webkit - linear - gradient ( - 45 deg ,
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 : 2 px ;
background - size : 35 px 20 px , 100 % 100 % , 100 % 100 % ;
}
. dvfirs {
overflow : hidden ;
white - space : nowrap ;
float : left ;
margin - left : 20 px ;
width : 350 px ;
text - align : center ;
}
. dvsec {
overflow : hidden ;
white - space : nowrap ;
float : left ;
width : 140 px ;
}
. dvtre {
overflow : hidden ;
white - space : nowrap ;
float : left ;
width : 60 px ;
}
</ style >
2023-07-19 15:23:44 +00: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-06 21:30:34 +00:00
</ head >
< body style = " padding-top:0px; margin-top:7px; height:100%; background-color:#E2E0E1; " >
2022-08-25 11:23:36 +00:00
< div id = " ttl " class = " ttl_css " style = " display:none;z-index:1111; " />
</ div >
2022-06-06 21:30:34 +00:00
< div id = " gi " class = " gifin " style = " display:none;z-index:1110; " ></ div >
2022-08-25 11:23:36 +00:00
< ? php
if ( isset ( $uer )) {
echo '<div align="left"><font color=\'red\'>' . $uer . '</font></div><br>' ;
} ?>
2022-06-06 21:30:34 +00:00
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
2022-08-25 11:23:36 +00: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-06 21:30:34 +00:00
2022-08-25 11:23:36 +00: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 16:29:32 +00: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 11:23:36 +00:00
}
if ( $us != false ) {
echo $us [ 0 ];
} else {
echo 'information is lost.' ;
} ?> </div>
<!-- pos2 -->
2023-02-13 14:49:07 +00:00
< div ></ div >
< div ></ div >
2022-08-25 11:23:36 +00:00
< script > tstlgnthm ();
2023-03-31 16:54:33 +00:00
lafstReg [ < ? = $inf [ 'id' ]; ?> ] = 1;
2022-08-25 11:23:36 +00:00
< ? php
if ( $inf [ 'align' ] == 9 ) {
$st [ 'hpNow' ] = $st [ 'hpNow' ] / ( $st [ 'hpAll' ] / 100 );
$st [ 'hpAll' ] = '100%' ;
$rgd [ 0 ] = '0.28' ;
}
?>
2023-07-19 15:23:44 +00:00
startHpRegen ( < ? = '"top",' . $inf [ 'id' ] . ',' . ( 0 + $st [ 'hpNow' ]) . ',' . ( 0 + $st [ 'hpAll' ]) . ',' . ( 0 + $st [ 'mpNow' ]) . ',' . ( 0 + $st [ 'mpAll' ]) . ',' . ( time () - $inf [ 'regHP' ]) . ',' . ( time () - $inf [ 'regMP' ]) . ',' . ( 0 + $rgd [ 0 ]) . ',' . ( 0 + $rgd [ 1 ]) . '' ; ?> , 1);</script>
2022-08-25 11:23:36 +00:00
< ? 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 16:29:32 +00:00
//Персонаж онлайн
2022-08-25 11:23:36 +00: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 16:29:32 +00:00
echo '<center><small><br>Персонаж сейчас в <a target="_blank" href="/logs.php?log=' . $btl3 [ 'id' ] . '">поединке</a></small></center>' ;
2022-08-25 11:23:36 +00:00
}
}
} elseif ( $inf [ 'room' ] != 303 ) {
echo '<center style="padding-top:3px;"><!-- <b>' . $u -> city_name [ $inf [ 'city' ]] . '</b><br> --><small>' ;
2023-07-19 15:23:44 +00:00
if ( $inf [ 'online' ] > time () - 520 && $inf [ 'banned' ] == 0 && $inf [ 'invis' ] != 1 && $inf [ 'invis' ] < time ()) {
2023-01-10 16:29:32 +00:00
echo 'Персонаж сейчас находится в клубе.<br><b>"' . $room [ 'name' ] . '"</b>' ;
2022-08-25 11:23:36 +00:00
} else {
if ( $inf [ 'admin' ] == 0 || $inf [ 'admin' ] == 2 ) {
if ( $inf [ 'online' ] == 0 ) {
$inf [ 'online' ] = $inf [ 'timeREG' ];
}
2023-01-10 16:29:32 +00:00
echo 'Персонаж не в клубе' ;
2022-08-25 11:23:36 +00:00
if ( date ( 'Y' , $inf [ 'online' ]) == date ( 'Y' )) {
2023-01-10 16:29:32 +00:00
echo ', но был тут:<br>' . date (
2022-08-25 11:23:36 +00:00
'd.m.Y H:i' , $inf [ 'online' ]
2023-03-31 18:30:14 +00:00
) . '<img title="Время сервера" src="//img.new-combats.tech/i/clok3_2.png">' ;
2022-08-25 11:23:36 +00:00
$out = '' ;
$time_still = time () - $inf [ 'online' ];
$tmp = floor ( $time_still / 2592000 );
$id = 0 ;
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
2023-01-10 16:29:32 +00:00
$out .= $tmp . " мес. " ;
2022-08-25 11:23:36 +00:00
}
$time_still = $time_still - $tmp * 2592000 ;
}
$tmp = floor ( $time_still / 604800 );
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
2023-01-10 16:29:32 +00:00
$out .= $tmp . " нед. " ;
2022-08-25 11:23:36 +00:00
}
$time_still = $time_still - $tmp * 604800 ;
}
$tmp = floor ( $time_still / 86400 );
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
2023-01-10 16:29:32 +00:00
$out .= $tmp . " дн. " ;
2022-08-25 11:23:36 +00:00
}
$time_still = $time_still - $tmp * 86400 ;
}
$tmp = floor ( $time_still / 3600 );
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
2023-01-10 16:29:32 +00:00
$out .= $tmp . " ч. " ;
2022-08-25 11:23:36 +00:00
}
$time_still = $time_still - $tmp * 3600 ;
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
$tmp = floor ( $time_still / 60 );
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
2023-01-10 16:29:32 +00:00
$out .= $tmp . " мин. " ;
2022-08-25 11:23:36 +00:00
}
}
if ( $out == '' ) {
2023-01-10 16:29:32 +00:00
$out = $time_still . ' сек.' ;
2022-08-25 11:23:36 +00:00
}
2023-01-10 16:29:32 +00:00
echo '<br>(' . $out . ' назад)' ;
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
} elseif ( $inf [ 'admin' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo 'Персонаж не в клубе.' ;
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
}
if ( $inf [ 'inUser' ] > 0 and $inf [ 'id' ] != 12059 ) {
2023-01-10 16:29:32 +00:00
echo '<br>Персонаж вселился в <a target="_blank" href="/info/' . $inf [ 'inUser' ] . '">бота</a>' ;
2022-08-25 11:23:36 +00: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 16:29:32 +00:00
echo '<br>Персонаж сейчас в <a target="_blank" href="/logs.php?log=' . $btl3 [ 'id' ] . '">поединке</a>' ;
2022-08-25 11:23:36 +00:00
}
}
echo '</small></center>' ;
} else {
if ( $inf [ 'res_x' ] - time () > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<center style="padding-top:3px;">Появится через <b>' . ( $u -> timeOut (
2022-08-25 11:23:36 +00:00
( $inf [ 'res_x' ] - time ())
)) . '</b><br><small></center>' ;
} else {
2023-01-10 16:29:32 +00:00
echo '<center style="padding-top:3px;">Появится в ближайшее время...<br><small></center>' ;
2022-08-25 11:23:36 +00:00
}
}
2023-01-10 16:29:32 +00:00
//Эффект админ
2022-08-25 11:23:36 +00:00
if ( $u -> info [ 'admin' ] > 0 ) {
if ( isset ( $_GET [ 'cancel_eff' ])) {
mysql_query (
2023-07-19 15:23:44 +00:00
'UPDATE `eff_users` SET `delete` = "' . time () . '" WHERE `id` = "' . mysql_real_escape_string (
2022-08-25 11:23:36 +00:00
( 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 16:29:32 +00:00
$pl [ 'name' ] .= " \r " . 'Действует еще ' . $u -> timeOut (
2022-08-25 11:23:36 +00:00
$pl [ 'timeUse' ] - time () + $eff [ 'actionTime' ]
) . '' ;
}
2023-03-31 18:30:14 +00: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 11:23:36 +00:00
return $r ;
}
$eff_adm = '' ;
$sp = mysql_query (
2023-02-13 14:49:07 +00:00
'SELECT `id_eff`,`uid`,`id`,`name`,`img2`,`v1`,`v2`,`timeUse` FROM `eff_users` WHERE `uid` = "' . $inf [ 'id' ] . '" AND `delete` = 0'
2022-08-25 11:23:36 +00:00
);
while ( $pl = mysql_fetch_array ( $sp )) {
$eff_adm .= eff_adm ( $pl );
}
if ( $eff_adm != '' ) {
2023-01-10 16:29:32 +00:00
echo '<br><small style="display:block;text-align:center;">Эффекты на персонаже:<br>' . $eff_adm . '</small>' ;
2022-08-25 11:23:36 +00: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 16:29:32 +00:00
$ ( '#mf_admin_statstxt' ) . html ( 'Скрыть' );
2022-08-25 11:23:36 +00:00
return
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
$ ( '#mf_admin_stats' ) . css ( 'display' , 'none' );
2023-01-10 16:29:32 +00:00
$ ( '#mf_admin_statstxt' ) . html ( 'Показать' );
2023-02-13 14:49:07 +00:00
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
</ script >
< div id = " mf_admin_stats " style = " display:none; " >
2023-02-13 14:49:07 +00:00
< div style = " height:1px; width:240px; background-color:#999999; margin:3px; text-align: center; " ></ div >
2022-08-25 11:23:36 +00:00
< div style = " padding:5px; " >
< small >
< ? php
$pr = $u -> items [ 'add' ];
$i = 0 ;
$apbr = [
2023-01-10 16:29:32 +00:00
'Защита от урона' => 1 ,
'Сила' => 1 ,
'Мастерство владения оружием' => 1 ,
'Мастерство владения магией огня' => 1 ,
'Уровень жизни (HP)' => 1 ,
'Мф. критического удара (%)' => 1 ,
'Мф. мощности магии огня' => 1 ,
'Регенерация здоровья (%)' => 1 ,
'Мф. мощности урона' => 1 ,
2022-08-25 11:23:36 +00: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 14:49:07 +00:00
echo '<div style="height:1px; width:230px; background-color:#999999; margin:3px; text-align: center;"></div>' ;
2022-08-25 11:23:36 +00:00
}
echo '• ' . $u -> is [ $pr [ $i ]] . ': ' . $vls . ' <br>' ;
}
$i ++ ;
}
?>
</ small >
</ div >
</ div >
2023-02-13 14:49:07 +00:00
< div style = " height:1px; width:240px; background-color:#999999; margin:3px; text-align: center; " >
2022-08-25 11:23:36 +00:00
< div onClick = " mf_admin_statsfx(); "
2023-02-13 14:49:07 +00: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 11:23:36 +00:00
</ div >
< ? php
}
?>
</ td >
2023-02-13 14:49:07 +00:00
< td style = " vertical-align: top " >
< table style = " margin-top:18px; width: 100%; " cellspacing = " 0 " cellpadding = " 0 " >
< TD valign = top >
< ? php
2022-08-25 11:23:36 +00:00
if ( $u -> info [ 'admin' ] > 0 ) {
2023-02-13 14:49:07 +00: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 11:23:36 +00:00
if ( isset ( $_GET [ 'del_copy' ]) && $_GET [ 'del_copy' ] == $pl [ 'id' ]) {
if ( $nodell [ 'inUser' ] != $pl [ 'id' ] && $pl [ 'id' ] != $nodell [ 'id' ]) {
2023-02-13 14:49:07 +00:00
Db :: sql ( 'update users set login = ? where id = ?' , [ 'DELETE' , $pl [ 'id' ]]);
2022-08-25 11:23:36 +00:00
}
} else {
$nolog .= '<div>' . $u -> microLogin ( $pl [ 'id' ], 1 );
if ( $nodell [ 'inUser' ] != $pl [ 'id' ] && $pl [ 'id' ] != $nodell [ 'id' ]) {
2023-01-10 16:29:32 +00:00
$nolog .= ' (персонажа можно <a href="?' . $inf [ 'id' ] . '&del_copy=' . $pl [ 'id' ] . '">удалить</a>)' ;
2022-08-25 11:23:36 +00:00
}
if ( $pl [ 'id' ] == $nodell [ 'id' ]) {
2023-01-10 16:29:32 +00:00
$nolog .= ' (основной персонаж)' ;
2022-08-25 11:23:36 +00:00
}
$nolog .= '</div>' ;
}
}
2023-02-13 14:49:07 +00:00
if ( ! empty ( $nolog )) {
echo '<small><b>Копии персонажа:</b>' . $nolog . '</small>' ;
2022-08-25 11:23:36 +00:00
}
2022-06-06 21:30:34 +00:00
}
?>
2023-02-13 14:49:07 +00:00
< div style = " padding:5px; " >
2023-03-31 16:54:33 +00:00
Сила : < ? = statInfo ( 's1' ); ?> <BR>
2023-02-13 14:49:07 +00: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 11:23:36 +00:00
< ? php if ( $st [ 's11' ] > 0 ) { ?>
2023-02-13 14:49:07 +00:00
Энергия : < ? php statInfo ( 's11' ); ?> <BR>
2022-08-25 11:23:36 +00:00
< ? php } ?>
2023-03-31 16:54:33 +00:00
< SPAN title = '' > Рейтинг сегодня : < b >< ? = $inf [ 'repexp' ]; ?> </b></SPAN><BR>
2022-08-25 11:23:36 +00:00
</ div >
2023-02-13 14:49:07 +00:00
< div style = " height:1px; background-color:#999999; margin:3px; " ></ div >
2022-08-25 11:23:36 +00:00
< div style = " padding:5px; " >
2023-02-13 14:49:07 +00: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 11:23:36 +00:00
} else {
2023-02-13 14:49:07 +00:00
echo '<a title="Персонаж учавствует в рейтинге" href="/rating_pers/id' . $inf [ 'id' ] . '#' . $inf [ 'id' ] . '" target="_blank">' . number_format (
$inf [ 'win' ], 0 , " , " , " "
) . '</a>' ;
2023-07-19 15:23:44 +00:00
} ?> <BR>
Поражений : < ? = number_format ( $inf [ 'lose' ], 0 , " , " , " " ); ?> <BR>
Ничьих : < ? = number_format ( $inf [ 'nich' ], 0 , " , " , " " ); ?> <BR>
2023-02-13 14:49:07 +00: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 11:23:36 +00:00
}
2023-02-13 14:49:07 +00: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 11:23:36 +00:00
echo ' - ' . $inf [ 'mod_zvanie' ];
}
echo '<br>' ;
}
2023-02-13 14:49:07 +00:00
echo 'День рождения персонажа: ' ;
if ( empty ( $inf [ 'timereg' ])) {
echo 'До начала времен...' ;
2022-08-25 11:23:36 +00:00
} else {
2023-02-13 14:49:07 +00:00
echo date ( 'd.m.Y H:i' , $inf [ 'timereg' ]);
2022-08-25 11:23:36 +00:00
}
2023-02-13 14:49:07 +00: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 (
2023-07-19 15:23:44 +00:00
'"' , '"' , $inf [ 'redirect' ]
) . '">' . htmlspecialchars ( $inf [ 'redirect' ]) . '</a></small><br>' ;
2023-02-13 14:49:07 +00:00
}
$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 11:23:36 +00:00
}
}
2023-02-13 14:49:07 +00: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 11:23:36 +00:00
}
2023-02-13 14:49:07 +00:00
$names .= '\'' . $pl [ 'login' ] . '\' до ' . date (
2023-07-19 15:23:44 +00:00
'd.m.Y H:i' , $pl [ 'time' ]
) . '<br>' ;
$i ++ ;
2023-02-13 14:49:07 +00:00
}
if ( $names != '' ) {
echo 'История имен: ' . $names ;
}
$algnt = mysql_fetch_array (
2023-07-19 15:23:44 +00:00
mysql_query (
'SELECT * FROM `users_align` WHERE `uid` = "' . $inf [ 'id' ] . '" AND (`delete` = 0 OR `delete` > "' . time () . '") LIMIT 1'
)
2023-02-13 14:49:07 +00: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 11:23:36 +00:00
}
echo '</div>' ;
}
2023-02-13 14:49:07 +00:00
}
if ( $st [ 'silver' ] > 0 ) {
echo '<div>' ;
2023-03-31 18:30:14 +00: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 14:49:07 +00:00
echo '</div>' ;
}
if ( $inf [ 'win_t' ] > 0 ) {
?>
< div style = " height:1px; width:300px; background-color:#999999; margin:3px; " ></ div >
2023-07-19 15:23:44 +00:00
Побед в турнирах : < ? = number_format ( round ( $inf [ 'win_t' ]), 0 , " , " , " " ) ?>
< BR >
Поражений в турнирах : < ? = number_format (
round ( $inf [ 'lose_t' ]), 0 , " , " , " "
) ?> <BR>
2023-02-13 14:49:07 +00:00
< ? php } ?>
2022-08-25 11:23:36 +00:00
</ div >
2023-02-13 14:49:07 +00:00
< div style = " height:1px; background-color:#999999; margin: 3px 3px 7px; " ></ div >
2023-01-10 16:29:32 +00:00
<!-- значки --></ td >
2023-07-19 15:23:44 +00:00
</ tr >
</ table >
< ? php
if ( $inf [ 'align' ] == 50 || $inf [ 'align2' ] == 50 ) {
?>
< img src = " //img.new-combats.tech/alchemy1.gif "
onMouseOver = " top.hi(this,'<center><b>Официальный дилер.</b><Br>Имеет право продавать игровую валюту Е К Р </b></center>',event,0,0,1,0,''); "
onMouseOut = " top.hic(); " onMouseDown = " top.hic(); "
alt = " " >
< ? php
}
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
$ico = [];
if ( $inf [ 'marry' ] != 0 ) {
$marry = mysql_fetch_array (
mysql_query (
'SELECT `id`,`login` FROM `users` WHERE `id` = "' . $inf [ 'marry' ] . '" LIMIT 1'
)
);
if ( isset ( $marry [ 'id' ])) {
$mrtxt = '' ;
if ( $inf [ 'sex' ] == 0 ) {
$mrtxt = 'Женат на' ;
} else {
$mrtxt = 'Замужем за' ;
}
$ico [ 1 ] .= '<a href="/info/' . $marry [ 'id' ] . '"><img src="//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 11:23:36 +00:00
2023-07-19 15:23:44 +00: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 . '"' ;
}
$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();">' ;
if ( $pl [ 'href' ] != '#' && $pl [ 'href' ] != '' ) {
$ico [ $pl [ 'type' ]] .= '<a target="_blank" href="' . $pl [ 'href' ] . '">' . $icon . '</a>' ;
} else {
$ico [ $pl [ 'type' ]] .= $icon ;
}
}
unset ( $icon );
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
if ( $inf [ 'vip' ] == 1 ) {
$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 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
//сильвер
if ( $st [ 'silver' ] > 0 ) {
$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 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
$irep = mysql_fetch_array (
mysql_query ( 'SELECT * FROM `rep` WHERE `id` = "' . $inf [ 'id' ] . '" LIMIT 1' )
);
if ( isset ( $irep [ 'id' ])) {
//Водосток
if ( $irep [ 'repdreamscity' ] > 9999 ) {
$ico [ 1 ] .= '<a href="#"><img src="//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>' ;
} elseif ( $irep [ 'repdreamscity' ] > 4999 ) {
$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>' ;
} elseif ( $irep [ 'repdreamscity' ] > 999 ) {
$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>' ;
}
//Храм знаний
if ( $irep [ 'rep1' ] > 9999 ) {
$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>' ;
} elseif ( $irep [ 'rep1' ] > 999 ) {
$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>' ;
} elseif ( $irep [ 'rep1' ] > 99 ) {
$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>' ;
}
//Излом х а о с а
if ( $irep [ 'repizlom' ] > 24999 ) {
$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>' ;
} elseif ( $irep [ 'repizlom' ] > 9999 ) {
$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>' ;
} elseif ( $irep [ 'repizlom' ] > 999 ) {
$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>' ;
} elseif ( $irep [ 'repizlom' ] > 99 ) {
$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>' ;
}
//capitalcity
if ( $irep [ 'repcapitalcity' ] > 24999 ) {
$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>' ;
} elseif ( $irep [ 'repcapitalcity' ] > 9999 ) {
$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>' ;
}
//angelscity
if ( $irep [ 'repangelscity' ] > 24999 ) {
$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>' ;
} elseif ( $irep [ 'repangelscity' ] > 9999 ) {
$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>' ;
}
//demonscity
if ( $irep [ 'repdemonscity' ] > 24999 ) {
$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>' ;
} elseif ( $irep [ 'repdemonscity' ] > 9999 ) {
$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>' ;
}
//devilscity
if ( $irep [ 'repdevilscity' ] > 24999 ) {
$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>' ;
} elseif ( $irep [ 'repdevilscity' ] > 9999 ) {
$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>' ;
}
//suncity
if ( $irep [ 'repsuncity' ] > 24999 ) {
$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>' ;
} elseif ( $irep [ 'repsuncity' ] > 9999 ) {
$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>' ;
}
//Гора легиона (сука как она меня заебала) by R
if ( $irep [ 'repabandonedplain' ] > 9999 ) {
$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>' ;
} elseif ( $irep [ 'repabandonedplain' ] > 999 ) {
$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>' ;
}
//emeraldscity
if ( $irep [ 'repemeraldscity' ] > 24999 ) {
$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>' ;
} elseif ( $irep [ 'repemeraldscity' ] > 9999 ) {
$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>' ;
}
//sandcity
if ( $irep [ 'repsandcity' ] > 24999 ) {
$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>' ;
} elseif ( $irep [ 'repsandcity' ] > 9999 ) {
$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>' ;
}
//mooncity
if ( $irep [ 'repmooncity' ] > 24999 ) {
$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>' ;
} elseif ( $irep [ 'repmooncity' ] > 9999 ) {
$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>' ;
}
if ( $inf [ 'referals' ] >= 3000 ) // значок за рефов
{
$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>' ;
} elseif ( $inf [ 'referals' ] > 1500 ) {
$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>' ;
} elseif ( $inf [ 'referals' ] > 600 ) {
$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 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
if ( $inf [ 'banned' ] == 0 ) {
$ai = new Achievements ( $u );
$ico [ 3 ] .= '<div style="float:left; width:800px;">' ;
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
foreach ( $ai -> getTypes () as $type ) {
$tmp_1 = $ai -> getInfo ( $inf [ 'id' ]);
if ( ! empty ( $tmp_1 [ $type ])) {
$ico [ 3 ] .= '<div class="dvfirs"><div class="dvsec">' . $tmp_1 [ 'name' . $type ] . ' </div><div class="dvtre">Ранг <b>' . $tmp_1 [ 'klas' . $type ] . '</b> : </div><progress value="' . $tmp_1 [ 'klasP' . $type ] . '" max="100" class="prog' . $tmp_1 [ 'klas' . $type ] . '"> ' . $tmp_1 [ 'name' . $type ] . ' </progress></div>' ;
}
}
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
$ico [ 3 ] .= '</div>' ;
}
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
function timeOut ( $ttm , $travm = false )
{
if ( ! $travm ) {
$out = '' ;
$time_still = $ttm ;
$tmp = floor ( $time_still / 2592000 );
$id = 0 ;
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
$out .= $tmp . " мес. " ;
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
$time_still = $time_still - $tmp * 2592000 ;
}
$tmp = floor ( $time_still / 604800 );
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
$out .= $tmp . " нед. " ;
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
$time_still = $time_still - $tmp * 604800 ;
}
$tmp = floor ( $time_still / 86400 );
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
$out .= $tmp . " дн. " ;
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
$time_still = $time_still - $tmp * 86400 ;
}
$tmp = floor ( $time_still / 3600 );
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
$out .= $tmp . " ч. " ;
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
$time_still = $time_still - $tmp * 3600 ;
}
$tmp = floor ( $time_still / 60 );
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
$out .= $tmp . " мин. " ;
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
}
if ( $out == '' ) {
if ( $time_still < 0 ) {
$time_still = 0 ;
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
$out = $time_still . ' сек.' ;
}
}
return $out ;
}
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
if ( $ico [ 1 ] != '' ) {
echo $ico [ 1 ];
}
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
echo '<small>' ;
if ( $inf [ 'jail' ] > time ()) {
echo '<br><img src="//img.new-combats.tech/i/jail.gif"> Персонаж находится в заточении еще ' . timeOut (
$inf [ 'jail' ] - time ()
) . ' ' ;
}
if ( isset ( $st [ 'puti' ])) {
echo '<br><img src="//img.new-combats.tech/i/items/chains.gif"> Персонаж не может передвигаться еще ' . timeOut (
$st [ 'puti' ] - time ()
) . ' ' ;
}
if ( $inf [ 'molch1' ] > time ()) {
echo '<br><img src="//img.new-combats.tech/i/sleeps' . $inf [ 'sex' ] . '.gif"> Н а персонажа наложено заклятие молчания. Будет молчать еще ' . timeOut (
$inf [ 'molch1' ] - time ()
) . ' ' ;
}
if ( $inf [ 'molch2' ] > time ()) {
echo '<br><img src="//img.new-combats.tech/i/fsleeps' . $inf [ 'sex' ] . '.gif"> Н а персонажа наложено заклятие молчания на форуме. Будет молчать еще ' . timeOut (
$inf [ 'molch2' ] - time ()
) . ' ' ;
}
if ( $inf [ 'clan_delay' ] > time ()) {
echo '<br>У персонажа запрет на вступление в кланы ещё: ' . timeOut (
$inf [ 'clan_delay' ] - time ()
) . ' ' ;
}
if ( $inf [ 'info_delete' ] > time () || $inf [ 'info_delete' ] == 1 ) {
echo '<br><img src="//img.new-combats.tech/stopinfo.png"> Н а персонажа наложено заклятие обезличивания.' ;
if ( $inf [ 'info_delete' ] > 1 ) {
echo ' Будет обезличен еще ' . timeOut ( $inf [ 'info_delete' ] - time ()) . '' ;
}
}
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00: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 )) {
echo '<br><img src="//img.new-combats.tech/i/travma2.gif"> У персонажа - "<b>' . $pl [ 'name' ] . '</b>" еще ' . $u -> timeOut (
$pl [ 'timeUse' ] - time () + $pl [ 'timeAce' ]
);
}
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
//Персонаж ослаблен из-за смерти в бою, еще 4 мин. 24 сек.
$nn = 0 ;
while ( $nn < count ( $st [ 'effects' ])) {
if ( $st [ 'effects' ][ $nn ][ 'id_eff' ] == 5 ) {
$osl = mysql_fetch_array (
mysql_query (
'SELECT `id2`,`actionTime` FROM `eff_main` WHERE `id2` = "5" LIMIT 1'
)
);
echo '<br><img src="//img.new-combats.tech/i/travma2.gif"> Персонаж ослаблен из-за смерти в бою, еще ' . timeOut (
$st [ 'effects' ][ $nn ][ 'timeUse' ] + $st [ 'effects' ][ $nn ][ 'timeAce' ] + $osl [ 'actionTime' ] - time ()
) . ' ' ;
$nn = count ( $st [ 'effects' ]) + 1 ;
}
$nn ++ ;
}
echo '</small>' ;
if ( ! empty ( $ico [ 3 ])) {
echo '<div style="padding-top:20px;"><div style="padding-bottom:10px;"><u>Достижения персонажа:</u></div>' . $ico [ 3 ] . '</div>' ;
}
unset ( $ico );
if (
(
$inf [ 'align' ] >= 2 &&
$inf [ 'align' ] < 3 &&
(
$inf [ 'haos' ] > time () ||
$inf [ 'haos' ] == 1
)
) ||
$inf [ 'banned' ] > 0 ||
$inf [ 'jail' ] > time ()) {
$to = '' ;
if ( $inf [ 'align' ] >= 2 && $inf [ 'align' ] < 3 && ( $inf [ 'haos' ] > time () || $inf [ 'haos' ] == 1 )) {
$to = 'х а о с ' ;
}
if ( $inf [ 'banned' ] > 0 ) {
if ( $to = '' ) {
$to = 'блок' ;
} else {
$to = $to . '/блок' ;
}
}
$fm = mysql_fetch_array (
mysql_query (
'SELECT `id`,`hb`,`text` FROM `users_delo` WHERE `uid` = "' . $inf [ 'id' ] . '" AND `hb`!=0 ORDER BY `id` DESC LIMIT 1'
)
);
echo '<br><div style="padding-left:5px;">' ;
if ( isset ( $fm [ 'id' ])) {
$from = 'паладинов' ;
if ( $fm [ 'hb' ] == 2 ) {
$from = 'Ангелов' ;
} elseif ( $fm [ 'hb' ] == 3 ) {
$from = 'тарманов' ;
}
echo 'Сообщение от модераторов:<br>' ;
echo '<font color="red" style="background-color:#fae0e0;"><b>' . $fm [ 'text' ] . '</b></font><br>' ;
}
if ( $inf [ 'align' ] >= 2 && $inf [ 'align' ] < 3 && ( $inf [ 'haos' ] > time () || $inf [ 'haos' ] == 1 )) {
if ( $inf [ 'haos' ] == 1 ) {
echo 'Х а о с <i>бессрочно</i>.' ;
} else {
echo 'Х а о с еще <i>' . timeOut ( $inf [ 'haos' ] - time ()) . '</i>' ;
}
}
echo '</div>' ;
}
//подарки
if (( $inf [ 'info_delete' ] < time () && $inf [ 'info_delete' ] != 1 ) || ( $u -> info [ 'align' ] > 1 && $u -> info [ 'align' ] < 2 || $u -> info [ 'align' ] > 3 && $u -> info [ 'align' ] < 4 || $u -> info [ 'admin' ] > 0 || $u -> info [ 'nadmin' ] > 0 )) {
$gs = [ '' , '' , '' ];
$glim = 1000 ;
$i = 0 ;
$ij1 = 1 ;
2023-07-28 21:18:04 +00:00
/* from WHERE
* (
`im` . `type` = " 38 " OR
`im` . `type` = " 64 " OR
`iu` . `data` LIKE " %|giftsee=1% "
) AND `iu` . `inOdet` = " 0 "
* */
2023-07-19 15:23:44 +00:00
$sp = mysql_query (
2023-07-28 21:18:04 +00:00
' SELECT `im` .* , `iu` .*
FROM `items_users` AS `iu`
LEFT JOIN `items_main` AS `im` ON ( `im` . `id` = `iu` . `item_id` )
WHERE
`iu` . `uid` = " ' . $inf['id'] . ' " AND
`iu` . `gift` != " " AND
`iu` . `delete` = " 0 "
ORDER BY `iu` . `id` DESC LIMIT ' . $glim
2023-07-19 15:23:44 +00:00
);
while ( $pl = mysql_fetch_array ( $sp )) {
if ( stristr ( $pl [ 'data' ], 'gift_id' )) {
2023-08-14 15:15:05 +00:00
$po = Conversion :: dataStringToArray ( $pl [ 'data' ]);
2023-07-19 15:23:44 +00:00
$pl_gift = $po [ 'gift_id' ];
if ( $pl_gift > 0 ) {
$pl_gift = mysql_fetch_array (
2022-08-25 11:23:36 +00:00
mysql_query (
2023-07-19 15:23:44 +00:00
'SELECT `name`,`img`,`id` FROM `users_gifts` WHERE `id` = "' . mysql_real_escape_string (
$pl_gift
) . '" LIMIT 1'
2022-08-25 11:23:36 +00:00
)
);
2023-07-19 15:23:44 +00:00
if ( isset ( $pl_gift [ 'id' ])) {
//Именной подарок
$pl [ 'name' ] = $pl_gift [ 'name' ];
$pl [ 'img' ] = $pl_gift [ 'img' ];
2022-08-25 11:23:36 +00:00
}
}
2023-07-19 15:23:44 +00:00
}
//подарки
if ( $pl [ 'gift' ] == 1 ) {
$pl [ 'gift2' ] = 'Невидимка' ;
} else {
$pl [ 'gift2' ] = $pl [ 'gift' ];
}
$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 16:29:32 +00:00
Подарок от ' . $pl[' gift2 '] . ' " />';
2023-07-19 15:23:44 +00: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 ) {
$pl [ 'gift2' ] = 'Невидимка' ;
} else {
$pl [ 'gift2' ] = $pl [ 'gift' ];
}
$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 16:29:32 +00:00
Подарок от ' . $pl[' gift2 '] . ' " />';
2023-07-19 15:23:44 +00:00
$ij2 ++ ;
}
$ij3 = 1 ;
2023-07-28 21:18:04 +00:00
if ( $gs [ 0 ] != '' || $gs [ 1 ] != '' ) {
echo '<br><br><table style="max-width:1260px; width:800px;"><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>' ;
2023-07-19 15:23:44 +00: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' ])) {
echo '<small><a href="/info/' . $inf [ 'id' ] . '&maxgift=1">Нажмите сюда, чтобы увидеть все подарки...</a></small>' ;
} else {
echo '<small><a href="/info/' . $inf [ 'id' ] . '">Нажмите сюда, чтобы скрыть подарки</a></small>' ;
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
}
}
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00: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-06 21:30:34 +00: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 11:23:36 +00: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'] ) . ' "
) '
2023-07-19 15:23:44 +00:00
);
} else {
mysql_query (
' UPDATE `aaa_monsters` SET
2022-08-25 11:23:36 +00:00
`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-07-19 15:23:44 +00:00
);
}
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
echo '<b style="color: red">Новые данные были успешно сохранены!</b>' ;
}
?>
< b style = " color:red " > Параметры монстра :</ b >< br >
< form method = " post " action = " /info/<?= $inf['id'] ?>&emonster " >
< table style = " padding-left:10px; " width = " 100% " border = " 0 " cellspacing = " 0 "
cellpadding = " 0 " >
< tr >
< td > Место появления ( id комнаты ) :
< input type = " text " name = " bot_sroom " id = " bot_sroom "
value = " <?= $monster['start_room'] ?> " >
& nbsp ; < input value = " Обнулить ожидание " type = " button "
onclick = " location.href='/info/<?= $inf['id'] ?>&emonster&restartmonster' " />
</ td >
</ tr >
< tr >
< td > Время ожидания после поражения бота : < input name = " bot_trs " id = " bot_trs "
value = " <?= $monster['time_restart'] ?> "
type = " text " > мин .
</ td >
</ tr >
< tr >
< td > Исчезнет после своей победы :
< select name = " bot_winback " id = " bot_winback " >
< option value = " 0 " > Нет </ option >
< option < ? php if ( $monster [ 'win_back' ] == 1 ) {
echo 'selected' ;
} ?> value="1">Да
</ option >
</ select ></ td >
</ tr >
< tr >
< td >
< div align = " left "
style = " height:1px; width:300px; background-color:#999999; margin:3px; " ></ div >
</ td >
</ tr >
< tr >
< td > Появляется ,
ДН
< select name = " bot_sday " id = " bot_sday " >
< option value = " -1 " >& bull ; День недели </ option >
< option < ? php if ( $monster [ 'start_day' ] == 1 ) {
echo 'selected' ;
} ?> value="1">Понедельник
</ option >
< option < ? php if ( $monster [ 'start_day' ] == 2 ) {
echo 'selected' ;
} ?> value="2">Вторник
</ option >
< option < ? php if ( $monster [ 'start_day' ] == 3 ) {
echo 'selected' ;
} ?> value="3">Среда
</ option >
< option < ? php if ( $monster [ 'start_day' ] == 4 ) {
echo 'selected' ;
} ?> value="4">Четверг
</ option >
< option < ? php if ( $monster [ 'start_day' ] == 5 ) {
echo 'selected' ;
} ?> value="5">Пятница
</ option >
< option < ? php if ( $monster [ 'start_day' ] == 6 ) {
echo 'selected' ;
} ?> value="6">Суббота
</ option >
< option < ? php if ( $monster [ 'start_day' ] == 7 ) {
echo 'selected' ;
} ?> value="7">Воскресенье
</ option >
</ select >
Д
< select name = " bot_sdd " id = " bot_sdd " >
< option value = " -1 " >& bull ; День </ option >
< ? php $i = 0 ;
while ( $i < 31 ) {
$i ++ ; ?>
< option < ? php if ( $monster [ 'start_dd' ] == $i ) {
echo 'selected' ;
} ?> value="<?= $i ?>">
< ? = $i ?>
</ option >
< ? php } ?>
</ select >
М
< select name = " bot_smm " id = " bot_smm " >
< option value = " -1 " >& bull ; Месяц </ option >
< ? php $i = 0 ;
while ( $i < 12 ) {
$i ++ ; ?>
< option < ? php if ( $monster [ 'start_mm' ] == $i ) {
echo 'selected' ;
} ?> value="<?= $i ?>"><?= $i ?></option>
< ? php } ?>
</ select >
Ч
< select name = " bot_shh " id = " bot_shh " >
< option value = " -1 " >& bull ; Час </ option >
< ? php $i = - 1 ;
while ( $i < 23 ) {
$i ++ ; ?>
< option < ? php if ( $monster [ 'start_hh' ] == $i ) {
echo 'selected' ;
} ?> value="<?= $i ?>"><?= $i ?></option>
< ? php } ?>
</ select >
Мин
< select name = " bot_smin " id = " bot_smin " >
< option value = " -1 " >& bull ; Мин </ option >
< ? php $i = - 1 ;
while ( $i < 58 ) {
$i ++ ; ?>
< option < ? php if ( $monster [ 'start_min' ] == $i ) {
echo 'selected' ;
} ?> value="<?= $i ?>"><?= $i ?></option>
< ? php } ?>
</ select >
</ td >
</ tr >
< tr >
< td > Исчезает , & nbsp ; & nbsp ; ДН
< select name = " bot_bday " id = " bot_bday " >
< option value = " -1 " >& bull ; День недели </ option >
< option < ? php if ( $monster [ 'back_day' ] == 1 ) {
echo 'selected' ;
} ?> value="1">Понедельник
</ option >
< option < ? php if ( $monster [ 'back_day' ] == 2 ) {
echo 'selected' ;
} ?> value="2">Вторник
</ option >
< option < ? php if ( $monster [ 'back_day' ] == 3 ) {
echo 'selected' ;
} ?> value="3">Среда
</ option >
< option < ? php if ( $monster [ 'back_day' ] == 4 ) {
echo 'selected' ;
} ?> value="4">Четверг
</ option >
< option < ? php if ( $monster [ 'back_day' ] == 5 ) {
echo 'selected' ;
} ?> value="5">Пятница
</ option >
< option < ? php if ( $monster [ 'back_day' ] == 6 ) {
echo 'selected' ;
} ?> value="6">Суббота
</ option >
< option < ? php if ( $monster [ 'back_day' ] == 7 ) {
echo 'selected' ;
} ?> value="7">Воскресенье
</ option >
</ select >
Д
< select name = " bot_bdd " id = " bot_bdd " >
< option value = " -1 " >& bull ; День </ option >
< ? php $i = 0 ;
while ( $i < 31 ) {
$i ++ ; ?>
< option < ? php if ( $monster [ 'back_dd' ] == $i ) {
echo 'selected' ;
} ?> value="<?= $i ?>">
< ? = $i ?>
</ option >
< ? php } ?>
</ select >
М
< select name = " bot_bmm " id = " bot_bmm " >
< option value = " -1 " >& bull ; Месяц </ option >
< ? php $i = 0 ;
while ( $i < 12 ) {
$i ++ ; ?>
< option < ? php if ( $monster [ 'back_mm' ] == $i ) {
echo 'selected' ;
} ?> value="<?= $i ?>"><?= $i ?></option>
< ? php } ?>
</ select >
Ч
< select name = " bot_bhh " id = " bot_bhh " >
< option value = " -1 " >& bull ; Час </ option >
< ? php $i = - 1 ;
while ( $i < 23 ) {
$i ++ ; ?>
< option < ? php if ( $monster [ 'back_hh' ] == $i ) {
echo 'selected' ;
} ?> value="<?= $i ?>"><?= $i ?></option>
< ? php } ?>
</ select >
Мин
< select name = " bot_bmin " id = " bot_bmin " >
< option value = " -1 " >& bull ; Мин </ option >
< ? php $i = - 1 ;
while ( $i < 58 ) {
$i ++ ; ?>
< option < ? php if ( $monster [ 'back_min' ] == $i ) {
echo 'selected' ;
} ?> value="<?= $i ?>"><?= $i ?></option>
< ? php } ?>
</ select ></ td >
</ tr >
< tr >
< td >
< div align = " left "
style = " height:1px; width:300px; background-color:#999999; margin:3px; " ></ div >
</ td >
</ tr >
< tr >
< td > Текст появления ( Логин бота < b > { b } </ b > , Логины игроков < b > { u } </ b > ) :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['start_text'] ?> " name = " bot_stext "
type = " text " id = " bot_stext " size = " 100 " maxlength = " 250 " ></ td >
</ tr >
< tr >
< td > Текст исчезновения :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['back_text'] ?> " name = " bot_btext " type = " text "
id = " bot_btext " size = " 100 " maxlength = " 250 " ></ td >
</ tr >
< tr >
< td > Текст победы игрока :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['win_text'] ?> " name = " bot_wintext "
type = " text " id = " bot_wintext " size = " 100 " maxlength = " 250 " ></ td >
</ tr >
< tr >
< td > Текст поражения игрока :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['lose_text'] ?> " name = " bot_losetext "
type = " text " id = " bot_losetext " size = " 100 " maxlength = " 250 " ></ td >
</ tr >
< tr >
< td > Текст ничьей :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['nich_text'] ?> " name = " bot_nichtext "
type = " text " id = " bot_nichtext " size = " 100 " maxlength = " 250 " ></ td >
</ tr >
< tr >
< td >
< div align = " left "
style = " height:1px; width:300px; background-color:#999999; margin:3px; " ></ div >
< b > Награда ( победа игрока ) :</ b ></ td >
</ tr >
< tr >
< td > К р .:</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['win_money1'] ?> " name = " bot_winmoney1 "
type = " text " id = " bot_winmoney1 " size = " 100 " maxlength = " 17 " ></ td >
</ tr >
< tr >
< td > Екр .:</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['win_money2'] ?> " name = " bot_winmoney2 "
type = " text " id = " bot_winmoney2 " size = " 100 " maxlength = " 10 " ></ td >
</ tr >
< tr >
< td > Опыт ( З а 100 % Н Р монстра ) :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['win_exp'] ?> " name = " bot_winexp " type = " text "
id = " bot_winexp " size = " 100 " maxlength = " 17 " ></ td >
</ tr >
< tr >
< td > Предметы ( id @ kolvo @ data , ... ) :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['win_itm'] ?> " name = " bot_winitm " type = " text "
id = " bot_winitm " size = " 100 " maxlength = " 500 " ></ td >
</ tr >
< tr >
< td > Эффект :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['win_eff'] ?> " name = " bot_wineff " type = " text "
id = " bot_wineff " size = " 100 " maxlength = " 500 " ></ td >
</ tr >
< tr >
< td > Подвиги :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['win_ico'] ?> " name = " bot_winico " type = " text "
id = " bot_winico " size = " 100 " maxlength = " 500 " ></ td >
</ tr >
< tr >
< td >
< div style = " height:1px; width:300px; background-color:#999999; margin:3px; " ></ div >
< b > Награда ( поражение игрока ) :</ b ></ td >
</ tr >
< tr >
< td > К р .:</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['lose_money1'] ?> " name = " bot_losemoney1 "
type = " text " id = " bot_losemoney1 " size = " 100 " maxlength = " 10 " ></ td >
</ tr >
< tr >
< td > Екр .:</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['lose_money2'] ?> " name = " bot_losemoney2 "
type = " text " id = " bot_losemoney2 " size = " 100 " maxlength = " 10 " ></ td >
</ tr >
< tr >
< td > Опыт :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['lose_exp'] ?> " name = " bot_loseexp "
type = " text " id = " bot_loseexp " size = " 100 " maxlength = " 17 " ></ td >
</ tr >
< tr >
< td > Предметы :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['lose_itm'] ?> " name = " bot_loseitm "
type = " text " id = " bot_loseitm " size = " 100 " maxlength = " 500 " ></ td >
</ tr >
< tr >
< td > Эффект :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['lose_eff'] ?> " name = " bot_loseeff "
type = " text " id = " bot_loseeff " size = " 100 " maxlength = " 500 " ></ td >
</ tr >
< tr >
< td > Подвиги :</ td >
</ tr >
< tr >
< td >< input value = " <?= $monster['lose_ico'] ?> " name = " bot_loseico "
type = " text " id = " bot_loseico " size = " 100 " maxlength = " 500 " ></ td >
</ tr >
</ table >
< div style = " padding-left:120px; " >
< input type = " submit " value = " Сохранить " />
</ div >
< br >< br >
</ form >
< div style = " height:1px; width:300px; background-color:#999999; margin:3px; text-align: center; " >
< div onClick = " location.href='/info/<?= $inf['id'] ?>' "
style = " border:1px solid #999999; cursor:pointer; background-color:#EAEAEA; width:150px; text-align: center; font-size: small " >
Скрыть
</ div >
</ div >
< ? php
} else {
?>
< div style = " height:1px; width:300px; background-color:#999999; margin:3px; text-align: center; " >
< div onClick = " location.href='/info/<?= $inf['id'] ?>&emonster' "
style = " border:1px solid #999999; cursor:pointer; background-color:#EAEAEA; width:150px; text-align: center; font-size: small; " >
Настройка монстра
</ div >
</ div >
< ? php
}
}
//темные делишки :D
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
)
) {
$mults = '' ;
$bIP = [];
$spl = mysql_query (
'SELECT * FROM `mults` WHERE (`uid` = "' . $inf [ 'id' ] . '" OR `uid2` = "' . $inf [ 'id' ] . '") AND `uid`!="0" AND `uid2`!="0" and id != "2495806"'
);
while ( $pls = mysql_fetch_array ( $spl )) {
$usr = $pls [ 'uid' ];
if ( $usr == $inf [ 'id' ]) {
$usr = $pls [ 'uid2' ];
}
if ( $usr != $inf [ 'id' ]) {
$si = Db :: getRow ( 'select id, admin, online from users where id = ? and login != ?' , [ $usr , 'delete' ]);
if ( isset ( $si [ 'id' ])) {
if ( $si [ 'admin' ] == 0 ) {
if ( $si [ 'online' ] > time () - 520 ) {
$mults .= '<span style="color: green;">' . $u -> microLogin ( $si [ 'id' ], 1 ) . '</span>, ' ;
} else {
$mults .= $u -> microLogin ( $si [ 'id' ], 1 ) . ', ' ;
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
}
}
}
}
if ( ! $nopal && ( $u -> info [ 'admin' ] != 0 || $inf [ 'admin' ] == 0 )) {
echo '<div style="color:#828282; margin-top: 20px;">З а игроком замечены следующие темные делишки:<br><small><span class=dsc>' ;
if ( ! isset ( $_GET [ 'mod_inf' ])) {
echo '<a href="/info/' . $inf [ 'id' ] . '&mod_inf">Показать личное дело</a>' ;
} else {
//Личное дело персонажа
$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>' ;
}
echo '<a href="/info/' . $inf [ 'id' ] . '">Скрыть личное дело</a>' ;
}
echo '</small><br>' ;
//Информация для паладинов\тарманов\ангелов
if (
( $u -> info [ 'align' ] >= 1.4 && $u -> info [ 'align' ] <= 1.99 && $u -> info [ 'align' ] != 1.6 && $u -> info [ 'align' ] != 1.75 && $inf [ 'admin' ] < 1 ) ||
( $u -> info [ 'align' ] >= 3.05 && $u -> info [ 'align' ] <= 3.99 && $u -> info [ 'align' ] != 3.06 && $inf [ 'admin' ] < 1 ) ||
$u -> info [ 'admin' ] > 0
) {
if (( int ) $inf [ 'host_reg' ] >= 1 ) {
$inf [ 'ref' ] = $u -> microLogin (( int ) $inf [ 'host_reg' ], 1 );
} else {
$inf [ 'ref' ] = '--' ;
}
if ( ! isset ( $inf [ 'ipReg' ])) {
$inf [ 'ipReg' ] = '--' ;
}
echo '<br><span style="color:red; text-decoration: underline; font-weight: bold;">Секретно!</span><br>' ;
echo '<i>День рождения: ' . $inf [ 'bithday' ] . '<br>' ;
if ( $inf [ 'vip' ] == 1 ) {
echo '<b style="color: red">VIP персонаж</b><br>' ;
}
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
if ( $u -> info [ 'admin' ] > 0 ) {
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 )) {
echo '<u>E-mail: ' . $inf [ 'mail' ] . '</u> (РАССЫЛКА)' ;
2022-08-25 11:23:36 +00:00
} else {
2023-07-19 15:23:44 +00:00
echo 'E-mail: ' . $inf [ 'mail' ];
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
echo ' & ' . $inf [ 'send' ] . '<br>' ;
echo '</b>' ;
} else {
echo '<br>' ;
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
if ( $inf [ 'no_ip' ] != 0 ) {
$inf [ 'ipReg' ] = $inf [ 'no_ip' ];
$inf [ 'ip' ] = $inf [ 'no_ip' ];
}
echo 'Персонажа пригласили: ' . $inf [ 'ref' ] .
'<br>Последний раз заходил в клуб: ' . date ( 'd.m.Y H:i' , $inf [ 'online' ]) . '<br>' .
$pr [ 'login' ] . 'IP при регистрации: ' . $inf [ 'ipReg' ] . '<br>' ;
if ( $inf [ 'no_ip' ] == '' || $u -> info [ 'admin' ] > 0 ) {
echo 'IP последние: <b>' . $inf [ 'ip' ] . '</b>' ;
$auth = mysql_query (
'SELECT * FROM `logs_auth` WHERE `uid`="' . $inf [ 'id' ] . '" AND `type`="1" ORDER by `id` DESC LIMIT 10'
2022-08-25 11:23:36 +00:00
);
2023-07-19 15:23:44 +00:00
$country = '' ;
while ( $auth_w = mysql_fetch_array ( $auth )) {
echo '<br>' . $auth_w [ 'ip' ] . ' <small><b>(' . date (
'd.m.Y H:i' , $auth_w [ 'time' ]
) . ')</b></small>' ;
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
} else {
echo 'IP последние: <b>' . $inf [ 'no_ip' ] . '</b>' ;
}
2022-08-25 11:23:36 +00:00
2023-07-19 15:23:44 +00:00
if (( empty ( $inf [ 'no_ip' ]) || $u -> info [ 'admin' ] > 0 ) && ! empty ( $mults ) && $inf [ 'admin' ] == 0 ) {
$mults = trim ( $mults , ', ' );
echo 'Другие ники этого бойца: ' . $mults . '<br>' ;
}
2023-02-13 14:49:07 +00:00
2023-07-19 15:23:44 +00:00
$referalos = '' ;
$rfs = 0 ;
2023-02-13 14:49:07 +00:00
2023-07-19 15:23:44 +00:00
$sp = mysql_query (
'SELECT `id`,`login`,`ip`,`ipreg`,`timereg`,`online` FROM `users` WHERE `host_reg` = "' . $inf [ 'id' ] . '" ORDER BY `timereg` DESC'
);
while ( $pl = mysql_fetch_array ( $sp )) {
$referalos .= '<br>Дата р е г .: ' . date (
'd.m.Y H:i' , $pl [ 'timereg' ]
) . ' / Был тут: ' . date (
'd.m.Y H:i' , $pl [ 'online' ]
) . ' ' . $u -> microLogin (
$pl [ 'id' ], 1
) . ' <small>( ' . $pl [ 'ip' ] . ' , ' . $pl [ 'ipreg' ] . ' )</small>' ;
$rfs ++ ;
}
2023-07-11 15:16:35 +00:00
2023-07-19 15:23:44 +00:00
if ( $referalos == '' ) {
$referalos = '<i>Отсутствуют</i>' ;
}
echo '<hr><b>Рефералы бойца:</b>' . $referalos . '<hr>' ;
if ( $u -> info [ 'admin' ] > 0 ) {
echo 'Доп. возможности: <small><a href="/info/' . $inf [ 'id' ] . '&wipe&sd4=' . $u -> info [ 'nextAct' ] . '">сбросить характеристики</a></small><br>' ;
$on1 = mysql_fetch_array (
mysql_query (
'SELECT `time_all`,`time_today` FROM `online` WHERE `uid` = "' . $inf [ 'id' ] . '" LIMIT 1'
)
);
echo 'Время в онлайне (всего): ' . timeOut (
$on1 [ 'time_all' ]
) . '<br>Время в онлайне (сегодня): ' . timeOut (
$on1 [ 'time_today' ]
) . '<br>' ;
}
if ( $inf [ 'molch3' ] < time () && $inf [ 'molch1' ] > time ()) {
echo '<small><a href="/info/' . $inf [ 'id' ] . '&molchMax&sd4=' . $u -> info [ 'nextAct' ] . '">Запретить персонажу отправлять сообщения с молчанкой</a></small><br>' ;
}
2023-07-11 15:16:35 +00:00
2023-07-19 15:23:44 +00:00
echo 'Опыт: ' . $inf [ 'exp' ] .
'<br>Число неиспользованных UP-ов: ' . $inf [ 'ability' ] .
'<br><b>Кредитов:</b> ' . $inf [ 'money' ] .
'<br><b>ЕвроКредитов:</b> ' . $inf [ 'money2' ];
$bmn1 = 0 ;
$bmn2 = 0 ;
$pk = mysql_fetch_array (
mysql_query (
'SELECT SUM(`ekr`) FROM `pay_operation` WHERE `uid` = "' . $inf [ 'id' ] . '" AND `good` > 0 LIMIT 1'
)
);
echo '<br><b><i><u>Персонаж покупал еврокредиты</u></i></b> Сумма : ' . $pk [ 0 ] . ' Е К Р <br>' ;
2023-01-06 14:57:25 +00:00
2023-07-19 15:23:44 +00:00
if ( $u -> info [ 'admin' ] > 0 && $inf [ 'admin' ] > 0 ) {
echo '<br><small>admin: ' . $inf [ 'admin' ] . '</small>' ;
2022-08-25 11:23:36 +00:00
}
2023-07-19 15:23:44 +00:00
echo '</div>' ;
}
}
}
?>
< td width = " 111 " align = right valign = top >
< div style = " float:right " >
< table cellspacing = 0 cellpadding = 0 >
< tr >
< td style = 'text-align: center; padding-bottom: 18px; width: 111px;' ><!-- Зодиак -->
< img width = " 100 " height = " 99 " title = " <?= $name_zodiak ; ?> "
style = " margin-bottom: 25px; padding:5px; "
src = '//img.new-combats.tech/i/zodiac/<?= $id_zodiak; ?>.gif' >
< BR >< BR >
< ? php if ( $inf [ 'id' ] >= 0 ) { ?>
< ? php } elseif ( $inf [ 'align' ] > 1 && $inf [ 'align' ] < 2 ) { ?>
< A href = 'https://paladins.<?= $c[' host ']; ?>/' target = '_blank' >
< img width = " 100 " height = " 97 " style = " padding:5px; "
src = '//img.new-combats.tech/i/flag_light.gif' ></ A >
< BR >
< A href = 'https://paladins.<?= $c[' host ']; ?>/' target = '_blank' >
< small > Орден Света </ small ></ A >
< ? php } elseif ( $inf [ 'align' ] >= 3.01 && $inf [ 'align' ] <= 3.99 ) { ?>
< A target = '_blank' href = 'https://tarmans.<?= $c[' host ']; ?>/' >
< img width = " 100 " height = " 97 " style = " padding:5px; "
src = '//img.new-combats.tech/i/flag_dark.gif' ></ A >
< BR >
< A href = 'https://tarmans.<?= $c[' host ']; ?>/' target = '_blank' >< small > Армада </ small ></ A >
< ? php } elseif ( $inf [ 'align' ] >= 2 && $inf [ 'align' ] < 3 ) { ?>
< A target = '_blank' href = 'https://chaos.<?= $c[' host ']; ?>/' >
< img width = " 100 " height = " 97 " style = " padding:5px; "
src = '//img.new-combats.tech/i/flag_haos.gif' ></ A >
< BR >
< A href = 'https://chaos.<?= $c[' host ']; ?>/' target = '_blank' >
< small > Цитадель Х а о с а </ small ></ A >
< ? php } else { ?>
< a target = '_blank' href = '/news' >
< img width = " 100 " height = " 97 " style = " padding:5px; " src = '//img.new-combats.tech/i/flag_gray.gif' >
</ a >
< BR >
< A href = '/news'
target = '_blank' >< small > Новости </ small ></ A >< br >
< ? php } ?>
</ td >
</ tr >
</ table >
</ div >
2022-08-25 11:23:36 +00:00
</ td >
2023-07-19 15:23:44 +00:00
</ table >
</ td >
</ tr >
2022-06-06 21:30:34 +00:00
</ table >
2022-08-25 11:23:36 +00:00
< ? php
2022-06-06 21:30:34 +00:00
$moder = 0 ;
2022-08-25 11:23:36 +00:00
if ( $u -> info [ 'align' ] > 1 && $u -> info [ 'align' ] < 2 ) {
$moder = 1 ;
2022-06-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00:00
if ( $u -> info [ 'align' ] > 3 && $u -> info [ 'align' ] < 4 ) {
$moder = 2 ;
2022-06-06 21:30:34 +00:00
}
2023-02-13 14:49:07 +00:00
if ( $inf [ 'info_delete' ] != 0 ) {
2022-08-25 11:23:36 +00:00
?>
2023-02-13 14:49:07 +00:00
< H3 style = " color:#8f0000 " > Персонаж обезличен < ? php if ( $inf [ 'info_delete' ] > 1 ) {
2023-01-10 16:29:32 +00:00
echo 'до ' . date ( 'd.m.Y H:i' , $inf [ 'info_delete' ]) . '.' ;
2022-08-25 11:23:36 +00: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-06 21:30:34 +00:00
}
2022-08-25 11:23:36 +00: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-06 21:30:34 +00:00
{
?>
2022-08-25 11:23:36 +00:00
< div style = " line-height:11pt; " >
< hr style = " border-color:#999999; " >
2023-02-13 14:49:07 +00:00
< ? php if ( $inf [ 'info_delete' ] == 0 ) { ?> <H3 style="color:#8f0000">Анкетные данные</H3><?php } ?>
2022-08-25 11:23:36 +00:00
< ? php
if ( $inf [ 'name' ] != '' ) {
?>
2023-03-31 16:54:33 +00:00
< b style = " color:#444 " > Имя :</ b > < ? = $inf [ 'name' ]; ?> <BR><?php } ?>
2023-01-10 16:29:32 +00:00
< b style = " color:#444 " > Пол :</ b >
< ? php $sex [ 0 ] = 'Мужской' ;
$sex [ 1 ] = 'Женский' ;
2022-08-25 11:23:36 +00:00
echo $sex [ $inf [ 'sex' ]]; ?> <BR>
2023-01-06 14:57:25 +00:00
2022-08-25 11:23:36 +00:00
< ? php if ( $inf [ 'hobby' ] != '' ) { ?>
2023-01-10 16:29:32 +00:00
< b style = " color:#444 " > Увлечения / хобби :</ b >< BR >
2022-08-25 11:23:36 +00: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-06 21:30:34 +00:00
</ div >
</ body >
</ html >