2022-08-25 11:23:36 +00:00
|
|
|
|
<?php
|
|
|
|
|
const GAME = true;
|
2022-06-06 21:30:34 +00:00
|
|
|
|
include('_incl_data/__config.php');
|
|
|
|
|
include('_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
|
|
|
|
|
|
|
|
|
$r1 = '';
|
|
|
|
|
$r2 = '';
|
|
|
|
|
$lvl = 8;
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$lvl_name = 'Любители';
|
2022-08-25 11:23:36 +00:00
|
|
|
|
if ($_GET['level'] == 9) {
|
|
|
|
|
$lvl = 9;
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$lvl_name = 'Бывалые';
|
2022-08-25 11:23:36 +00:00
|
|
|
|
} elseif ($_GET['level'] == 10) {
|
|
|
|
|
$lvl = 10;
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$lvl_name = 'Профессионалы';
|
2022-08-25 11:23:36 +00:00
|
|
|
|
} elseif ($_GET['level'] == 11) {
|
|
|
|
|
$lvl = 11;
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$lvl_name = 'Жители';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$i = 1;
|
|
|
|
|
$j = 1;
|
|
|
|
|
|
2022-08-25 11:23:36 +00:00
|
|
|
|
$sp = mysql_query(
|
|
|
|
|
'SELECT `id`,`uid`,`level`,`time` FROM `izlom_rating` WHERE `level` = "' . $lvl . '" GROUP BY `uid` ORDER BY SUM(`obr`) DESC'
|
|
|
|
|
);
|
|
|
|
|
while ($pl = mysql_fetch_array($sp)) {
|
|
|
|
|
//
|
|
|
|
|
$ret = mysql_fetch_array(
|
|
|
|
|
mysql_query(
|
|
|
|
|
'SELECT SUM(`obr`) FROM `izlom_rating` WHERE `uid` = "' . $pl['uid'] . '" AND `level` = "' . $pl['level'] . '" LIMIT 1'
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
$ret = round($ret[0] * (154.97));
|
|
|
|
|
//
|
|
|
|
|
$pl2 = mysql_fetch_array(
|
|
|
|
|
mysql_query(
|
|
|
|
|
'SELECT * FROM `izlom_rating` WHERE `uid` = "' . $pl['uid'] . '" AND `level` = "' . $pl['level'] . '" ORDER BY `time` DESC LIMIT 1'
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
//
|
|
|
|
|
$r1 .= '<tr height="20">
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<td>' . $i . '</td>
|
2022-08-25 11:23:36 +00:00
|
|
|
|
<td>' . $u->microLogin($pl['uid'], 1) . '</td>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<td>' . $pl2['voln'] . '</td>
|
2022-08-25 11:23:36 +00:00
|
|
|
|
<td>' . $ret . '</td>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<td>»»</td>
|
|
|
|
|
</tr>';
|
2022-08-25 11:23:36 +00:00
|
|
|
|
//
|
|
|
|
|
if (date('d.m.Y') == date('d.m.Y', $pl2['time'])) {
|
|
|
|
|
$r2 .= '<tr height="20">
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<td>' . $j . '</td>
|
2022-08-25 11:23:36 +00:00
|
|
|
|
<td>' . $u->microLogin($pl['uid'], 1) . '</td>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<td>' . $pl2['voln'] . '</td>
|
2022-08-25 11:23:36 +00:00
|
|
|
|
<td>' . $ret . '</td>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<td>»»</td>
|
|
|
|
|
</tr>';
|
2022-08-25 11:23:36 +00:00
|
|
|
|
$j++;
|
|
|
|
|
}
|
|
|
|
|
$i++;
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2023-01-10 17:26:14 +00:00
|
|
|
|
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<title>Архив: Поединки</title>
|
2023-03-31 18:30:14 +00:00
|
|
|
|
<link href="//img.new-combats.tech/css/main.css" rel="stylesheet" type="text/css">
|
2022-06-06 21:30:34 +00:00
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body bgcolor="#E2E0E0">
|
|
|
|
|
<h4>
|
2022-08-25 11:23:36 +00:00
|
|
|
|
<center>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
Излом Хаоса
|
2022-08-25 11:23:36 +00:00
|
|
|
|
<table width="100%">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top">
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<h5><?= $lvl_name ?> - лучшие за месяц</h5>
|
2022-08-25 11:23:36 +00:00
|
|
|
|
</legend>
|
|
|
|
|
<?php if ($r1 != '') { ?>
|
|
|
|
|
<table align="center">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><h6>Место</h6></td>
|
|
|
|
|
<td><h6>Боец</h6></td>
|
|
|
|
|
<td><h6>Последняя волна</h6></td>
|
|
|
|
|
<td><h6>Рейтинг</h6></td>
|
|
|
|
|
<td><h6>Лог боя</h6></td>
|
2022-08-25 11:23:36 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<?= $r1 ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<?php } else {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo 'История пуста, скорее всего не нашлось смельчаков...';
|
2022-08-25 11:23:36 +00:00
|
|
|
|
} ?>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</td>
|
|
|
|
|
<td valign="top">
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<h5>Бывалые - лучшие за день</h5>
|
2022-08-25 11:23:36 +00:00
|
|
|
|
</legend>
|
|
|
|
|
<?php if ($r2 != '') { ?>
|
|
|
|
|
<table align="center">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><h6>Место</h6></td>
|
|
|
|
|
<td><h6>Боец</h6></td>
|
|
|
|
|
<td><h6>Последняя волна</h6></td>
|
|
|
|
|
<td><h6>Рейтинг</h6></td>
|
|
|
|
|
<td><h6>Лог боя</h6></td>
|
2022-08-25 11:23:36 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<?= $r2 ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<?php } else {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo 'История пуста, скорее всего не нашлось смельчаков...';
|
2022-08-25 11:23:36 +00:00
|
|
|
|
} ?>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</center>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
</h4>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|