game/ruins.php
2022-06-07 00:30:34 +03:00

66 lines
2.8 KiB
PHP

<?
define('GAME',true);
include('_incl_data/__config.php');
include('_incl_data/class/__db_connect.php');
include('_incl_data/class/__user.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>
<meta http-equiv="Content-Type" content="text/html; 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>
<meta http-equiv=Expires Content=0>
<link href="https://img.new-combats.com/css/main.css" rel="stylesheet" type="text/css">
<title>Ëîã Ðóèí Ñòàðîãî Çàìêà</title>
</head>
<body style="padding-top:0px; margin-top:7px; height:100%; background-color:#dedede;">
<script type="text/javascript" src="js/jquery.js"></script>
<center style="float:right"><a class="btnnew" href="https://new-combats.com/ruins/<?=$ru['id']?>">Îáíîâèòü</a></center>
<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>
<?
$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 == '' ) {
$html = '<center>Ëîã áûë ïîòåðÿí, ëèáî òóðíèð íå íàéäåí</center>';
}
echo $html; $html = '';
?>
<br><br>
<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>
<br /><br />
<div align="right"><div style="display:none"><!--LiveInternet counter--><script type="text/javascript"><!--
document.write("<a href='//www.liveinternet.ru/click' "+
"target=_blank><img style='display:inline-block; vertical-align:bottom;' src='//counter.yadro.ru/hit?t25.10;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet: ïîêàçàíî ÷èñëî ïîñåòèòåëåé çà"+
" ñåãîäíÿ' "+
"border='0' width='88' height='15'><\/a>")
//--></script><!--/LiveInternet-->
<!-- Rating@Mail.ru counter -->
<
<!-- //Rating@Mail.ru counter -->
<!-- Rating@Mail.ru logo -->
<!-- //Rating@Mail.ru logo --></div></div></body>
</html>