game/hmonitor.php

199 lines
7.7 KiB
PHP
Raw Normal View History

<?php
const GAME = true;
2022-06-06 21:30:34 +00:00
include('_incl_data/__config.php');
include('_incl_data/class/__db_connect.php');
$u = User::start();
2022-06-06 21:30:34 +00:00
?>
<!DOCTYPE HTML>
2022-06-06 21:30:34 +00:00
<html>
<head>
<meta charset="windows-1251">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<meta http-equiv=Cache-Control Content=no-cache>
<meta http-equiv=PRAGMA content=NO-CACHE>
<link href="https://img.new-combats.com/css/main.css" rel="stylesheet" type="text/css">
<title><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></title>
2022-06-06 21:30:34 +00:00
</head>
<body style="padding-top:0px; margin-top:7px; height:100%; background-color:#dedede;">
<script type="text/javascript" src="js/jquery.js"></script>
<center><strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: </strong><?= $u->microLogin($u->info['id'], 1) ?></center>
2022-06-06 21:30:34 +00:00
<hr>
<INPUT style="float:right" class="btn btn-success" TYPE=button value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" style='width: 100px'
onClick="location.href='monitoring'"></div>
<h3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3>
<?php
$html = '';
$i = 0;
2022-06-06 21:30:34 +00:00
$sp = mysql_query('SELECT * FROM `zayvki` WHERE `razdel` = 5 AND `cancel` = 0 AND `btl_id` = 0 ORDER BY `id` ASC');
while ($pl = mysql_fetch_array($sp)) {
$i++;
//
$users = '';
//
$spu = mysql_query('SELECT `id` FROM `stats` WHERE `zv` = "' . $pl['id'] . '"');
while ($plu = mysql_fetch_array($spu)) {
$users .= $u->microLogin($plu['id'], 1) . ',';
}
//
if ($users == '') {
$users = '<i><font color=grey><small><3E><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!</small></font></i>';
} else {
$users = rtrim($users, ',');
}
//
$html .= $i . '. <span class="date">' . date('H:i', $pl['time']) . '</span> ';
$html .= ' <img title="' . $u->city_name[$pl['city']] . '" src="https://img.new-combats.com/i/city_ico/' . $pl['city'] . '.gif">';
$html .= ' (' . $users . ') (' . $pl['min_lvl_1'] . '-' . $pl['max_lvl_1'] . ') <20><><EFBFBD> <20><><EFBFBD>: <img src="https://img.new-combats.com/i/fighttype' . $pl['type'] . '.gif"> ';
if ($pl['noinc'] > 0) {
$html .= '<img src="https://img.new-combats.com/closefight.gif" title="<22> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">';
}
if ($pl['fastfight'] > 0) {
$html .= '<img src="https://img.new-combats.com/fastfight.gif" title="<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">';
}
if ($pl['arand'] > 0) {
$html .= '<img src="https://img.new-combats.com/arand.gif" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)">';
}
$html .= '<font color="grey"><3E><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <b>' . $u->timeOut(
$pl['time'] + $pl['time_start'] - time()
) . '</b>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ' . $u->timeOut($pl['timeout']) . '</font>';
if ($pl['priz'] > 0) {
$html .= '<a href="https://new-combats.com/n/567/" target="_blank"><span style="color:#e65700;" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 5-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> 5% <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "><b>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</b></span></a></font></i>';
}
$html .= '<br>';
2022-06-06 21:30:34 +00:00
}
if ($html == '') {
$html = '<center>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</center>';
2022-06-06 21:30:34 +00:00
}
echo $html;
$html = '';
2022-06-06 21:30:34 +00:00
?>
<h3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD></h3>
<?php
2022-06-06 21:30:34 +00:00
$i = 0;
$sp = mysql_query('SELECT * FROM `battle` WHERE `team_win` = -1');
while ($pl = mysql_fetch_array($sp)) {
//
$users = '';
$usersa = [];
$userst = [];
//
$spu = mysql_query(
'SELECT `a`.`id`,`b`.`team` FROM `users` AS `a` LEFT JOIN `stats` AS `b` ON `a`.`id` = `b`.`id` WHERE `a`.`battle` = "' . $pl['id'] . '"'
);
while ($plu = mysql_fetch_array($spu)) {
if (!isset($usersa[$plu['team']])) {
$userst[] = $plu['team'];
}
$usersa[$plu['team']] .= $u->microLogin($plu['id'], 1) . ',';
}
//
if (count($usersa) > 0) {
$j = 0;
while ($j < count($userst)) {
if ($users != '') {
$users .= ' &nbsp;<b><font color=red><small><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></small></font></b>&nbsp; ';
}
$users .= $usersa[$userst[$j]];
$users = rtrim($users, ',');
$j++;
}
//
$i++;
//
$html .= $i . '. <span class="date">' . date('d.m.Y H:i', $pl['time_start']) . '</span> ';
$html .= ' <img title="' . $u->city_name[$pl['city']] . '" src="https://img.new-combats.com/i/city_ico/' . $pl['city'] . '.gif">';
$html .= ' (' . $users . ') <20><><EFBFBD> <20><><EFBFBD>: <img src="https://img.new-combats.com/i/fighttype' . $pl['type'] . '.gif"> ';
if ($pl['noinc'] > 0) {
$html .= '<img src="https://img.new-combats.com/closefight.gif" title="<22> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">';
}
if ($pl['fastfight'] > 0) {
$html .= '<img src="https://img.new-combats.com/fastfight.gif" title="<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">';
}
if ($pl['arand'] > 0) {
$html .= '<img src="https://img.new-combats.com/arand.gif" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)">';
}
$html .= '<font color="grey">, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ' . $u->timeOut($pl['timeout']) . '</font>';
if ($pl['priz'] > 0) {
$html .= '<a href="https://new-combats.com/n/567/" target="_blank"><span style="color:#e65700;" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 5-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20> <20><><EFBFBD> <20><>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5% <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "><b>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</b></span></a></font></i>';
}
$html .= ' <a href="/logs.php?log=' . $pl['id'] . '" target="_blank">&raquo;&raquo;</a> ';
$html .= '<br>';
}
//
2022-06-06 21:30:34 +00:00
}
if ($html == '') {
$html = '<center>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</center>';
2022-06-06 21:30:34 +00:00
}
echo $html;
$html = '';
2022-06-06 21:30:34 +00:00
?>
<h3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3>
<?php
2022-06-06 21:30:34 +00:00
$sp = mysql_query('SELECT * FROM `bs_turnirs`');
$i = 0;
while ($pl = mysql_fetch_array($sp)) {
$i++;
//
$html .= $i . '. <img title="' . $u->city_name[$pl['city']] . '" src="https://img.new-combats.com/i/city_ico/' . $pl['city'] . '.gif">';
//
$html .= ' [' . $pl['level'] . ']';
if ($pl['status'] == 0) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$html .= ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> "<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" : <span class="date">' . date(
'd.m.Y H:i', $pl['time_start']
) . '</span> (<small> <font color=grey><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <b>' . $u->timeOut(
$pl['time_start'] - time()
) . '</b></font></small>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>' . round(
($pl['money'] / 100 * 85), 2
) . '</b> <20><>. <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>' . $pl['users'] . '</b>';
} else {
//<2F><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$users = '';
$spu = mysql_query('SELECT `id` FROM `users` WHERE `inTurnir` = "' . $pl['id'] . '"');
while ($plu = mysql_fetch_array($spu)) {
$users .= $u->microLogin($plu['id'], 1) . ',';
}
$users = rtrim($users, ',');
$html .= ' <span title="[' . $pl['status'] . ']"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>.</span>';
$html .= ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ' . $users . ', <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <a href="/towerlog.php?towerid=' . $pl['id'] . '&id=' . $pl['count'] . '" target="_blank">&raquo;&raquo;</a>';
}
//
$html .= '<br>';
//
2022-06-06 21:30:34 +00:00
}
if ($html == '') {
$html = '<center>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</center>';
2022-06-06 21:30:34 +00:00
}
echo $html;
$html = '';
2022-06-06 21:30:34 +00:00
?>
<h3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3>
<?php
if ($html == '') {
$html = '<center>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</center>';
2022-06-06 21:30:34 +00:00
}
echo $html;
$html = '';
2022-06-06 21:30:34 +00:00
?>
<h3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3>
<?php
if ($html == '') {
$html = '<center>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</center>';
2022-06-06 21:30:34 +00:00
}
echo $html;
$html = '';
2022-06-06 21:30:34 +00:00
?>
<div align="right"><font style="color:#999;" size="1" face="verdana" color="black">
<hr style="border-color:#CCC;">
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> v2.1 &copy; <?= date('Y') ?>, <20>www.new-combats.com<6F><6D> &nbsp; &nbsp; </font></div>
<br/><br/>
2022-06-06 21:30:34 +00:00
</body>
2022-06-06 21:30:34 +00:00
</html>