game/towerlog.php

130 lines
3.3 KiB
PHP
Raw Permalink Normal View History

<?php
const GAME = true;
include_once '_incl_data/__config.php';
include_once '_incl_data/class/__db_connect.php';
2022-06-06 21:30:34 +00:00
$r = '';
$p = '';
$b = '<table width="100%" cellpadding="0" cellspacing="0" border="0">
2022-06-06 21:30:34 +00:00
<tbody>
<tr valign="top">
2023-01-10 16:29:32 +00:00
<td valign="bottom" nowrap="" title=""><input onClick="location=location;" style="padding:5px;" type="submit" name="analiz2" value="Обновить"></td>
2022-06-06 21:30:34 +00:00
</tr>
</tbody>
</table>';
if (!isset($_GET['towerid'])) {
$_GET['towerid'] = 1;
2022-06-06 21:30:34 +00:00
}
$_GET['towerid'] = round((int)$_GET['towerid']);
$notowerlog = false;
$log = mysql_fetch_array(
mysql_query(
'SELECT `id`,`count_bs`,`m` FROM `bs_logs` WHERE `count_bs` = "' . mysql_real_escape_string(
(int)$_GET['id']
) . '" AND `id_bs` = "' . mysql_real_escape_string($_GET['towerid']) . '" ORDER BY `id` LIMIT 1'
)
);
if (!isset($log['id'])) {
$notowerlog = true;
2023-01-10 16:29:32 +00:00
$r = '<br><br><center>Скорее всего Архивариус снова потерял пергамент с хрониками турниров ...</center>';
} else {
$sp = mysql_query('SELECT * FROM `bs_logs` WHERE `count_bs` = "' . $log['count_bs'] . '" ORDER BY `id` ');
while ($pl = mysql_fetch_array($sp)) {
$datesb = '';
if ($pl['type'] == 2) {
$datesb = '2';
}
$r .= '<br><span class="date' . $datesb . '">' . date('d.m.y H:i', $pl['time']) . '</span> ' . $pl['text'] . '';
}
2022-06-06 21:30:34 +00:00
}
?>
<!DOCTYPE html>
<html>
<head>
2023-01-10 16:29:32 +00:00
<title>Архив: Турнир в Башне Смерти</title>
<script src="//img.new-combats.tech/js/Lite/gameEngine.js" type="text/javascript"></script>
<link href="//img.new-combats.tech/css/main.css" rel="stylesheet" type="text/css">
<style type="text/css">
h3 {
text-align: center;
}
.CSSteam {
font-weight: bold;
cursor: pointer;
}
.CSSteam0 {
font-weight: bold;
cursor: pointer;
}
.CSSteam1 {
font-weight: bold;
color: #6666CC;
cursor: pointer;
}
.CSSteam2 {
font-weight: bold;
color: #B06A00;
cursor: pointer;
}
.CSSteam3 {
font-weight: bold;
color: #269088;
cursor: pointer;
}
.CSSteam4 {
font-weight: bold;
color: #A0AF20;
cursor: pointer;
}
.CSSteam5 {
font-weight: bold;
color: #0F79D3;
cursor: pointer;
}
.CSSteam6 {
font-weight: bold;
color: #D85E23;
cursor: pointer;
}
.CSSteam7 {
font-weight: bold;
color: #5C832F;
cursor: pointer;
}
.CSSteam8 {
font-weight: bold;
color: #842B61;
cursor: pointer;
}
.CSSteam9 {
font-weight: bold;
color: navy;
cursor: pointer;
}
.CSSvs {
font-weight: bold;
}
</style>
2022-06-06 21:30:34 +00:00
</head>
<body bgcolor="#E2E0E0">
<H3> Башня Смерти. Отчет о турнире.</H3>
2023-03-31 16:54:33 +00:00
<?php if (!$notowerlog) { ?>
2023-01-10 16:29:32 +00:00
Призовой фонд: <b><?= $log['m'] ?> кр.</b>
2023-03-31 16:54:33 +00:00
<?php }
2022-06-06 21:30:34 +00:00
echo $r; ?>
</body>
</html>