game/towerlog.php

130 lines
3.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
const GAME = true;
include_once '_incl_data/__config.php';
include_once '_incl_data/class/__db_connect.php';
$r = '';
$p = '';
$b = '<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr valign="top">
<td valign="bottom" nowrap="" title=""><input onClick="location=location;" style="padding:5px;" type="submit" name="analiz2" value="Обновить"></td>
</tr>
</tbody>
</table>';
if (!isset($_GET['towerid'])) {
$_GET['towerid'] = 1;
}
$_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;
$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'] . '';
}
}
?>
<!DOCTYPE html>
<html>
<head>
<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>
</head>
<body bgcolor="#E2E0E0">
<H3> Башня Смерти. Отчет о турнире.</H3>
<?php if (!$notowerlog) { ?>
Призовой фонд: <b><?= $log['m'] ?> кр.</b>
<?php }
echo $r; ?>
</body>
</html>