game/ruins.php

49 lines
1.9 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');
$url = explode('?',$_SERVER["REQUEST_URI"]);
$url = explode('/',$url[0]);
$ru = mysql_fetch_array(mysql_query('SELECT * FROM `ruine_now` WHERE `id` = "'.mysql_real_escape_string($url[2]).'" LIMIT 1'));
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
2022-06-06 21:30:34 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<meta http-equiv=Cache-Control Content=no-cache>
<meta http-equiv=PRAGMA content=NO-CACHE>
<meta http-equiv=Expires Content=0>
<link href="//img.new-combats.tech/css/main.css" rel="stylesheet" type="text/css">
2023-01-10 16:29:32 +00:00
<title>Лог Руин Старого Замка</title>
2022-06-06 21:30:34 +00:00
</head>
<body style="padding-top:0; margin-top:7px; height:100%; background-color:#dedede;">
2022-06-06 21:30:34 +00:00
<script type="text/javascript" src="js/jquery.js"></script>
<center style="float:right"><a class="btnnew" href="/ruins/<?=$ru['id']?>">Обновить</a></center>
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
<h3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#<?=$ru['id']?> Руинный турнир в Старом Замке</h3>
<?php
2022-06-06 21:30:34 +00:00
$html = ''; $i = 0;
$sp = mysql_query('SELECT * FROM `ruine_logs` WHERE `tid` = "'.$ru['id'].'" ORDER BY `time` DESC');
while( $pl = mysql_fetch_array($sp) ) {
$i++;
$html .= '<span class="date">'.date('d.m.Y H:i',$pl['time']).'</span> '.$pl['text'];
$html .= '<br>';
}
if( $html == '' ) {
2023-01-10 16:29:32 +00:00
$html = '<center>Лог был потерян, либо турнир не найден</center>';
2022-06-06 21:30:34 +00:00
}
echo $html; $html = '';
?>
<br><br>
2023-01-10 16:29:32 +00:00
<div align="right"><font style="color:#999;" size="1" face="verdana" color="black"><hr style="border-color:#CCC;">Старый Бойцовский Клуб &copy; <?=date('Y')?>, «www.new-combats.com»™ &nbsp; &nbsp; </font></div>
2022-06-06 21:30:34 +00:00
<br /><br />
</body>
2022-06-06 21:30:34 +00:00
</html>