195 lines
7.8 KiB
PHP
195 lines
7.8 KiB
PHP
|
<?
|
|||
|
define('GAME',true);
|
|||
|
include('_incl_data/__config.php');
|
|||
|
include('_incl_data/class/__db_connect.php');
|
|||
|
include('_incl_data/class/__user.php');
|
|||
|
?>
|
|||
|
|
|||
|
<!DOCTYPE HTML5>
|
|||
|
<html>
|
|||
|
<head>
|
|||
|
<meta 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>
|
|||
|
<link href="https://img.new-combats.com/css/main.css" rel="stylesheet" type="text/css">
|
|||
|
<title><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></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><strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: </strong><?=$u->microLogin($u->info['id'],1)?></center>
|
|||
|
<hr>
|
|||
|
<INPUT style="float:right" class="btn btn-success" TYPE=button value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" style='width: 100px' onClick="location.href='monitoring'"></div>
|
|||
|
<h3> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3>
|
|||
|
<?
|
|||
|
$html = ''; $i = 0;
|
|||
|
$sp = mysql_query('SELECT * FROM `zayvki` WHERE `razdel` = 5 AND `cancel` = 0 AND `btl_id` = 0 ORDER BY `id` ASC');
|
|||
|
while( $pl = mysql_fetch_array($sp) ) {
|
|||
|
$i++;
|
|||
|
//
|
|||
|
$users = '';
|
|||
|
//
|
|||
|
$spu = mysql_query('SELECT `id` FROM `stats` WHERE `zv` = "'.$pl['id'].'"');
|
|||
|
while( $plu = mysql_fetch_array($spu) ) {
|
|||
|
$users .= $u->microLogin($plu['id'],1).',';
|
|||
|
}
|
|||
|
//
|
|||
|
if( $users == '' ) {
|
|||
|
$users = '<i><font color=grey><small><3E><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!</small></font></i>';
|
|||
|
}else{
|
|||
|
$users = rtrim($users,',');
|
|||
|
}
|
|||
|
//
|
|||
|
$html .= $i . '. <span class="date">'.date('H:i',$pl['time']).'</span> ';
|
|||
|
$html .= ' <img title="'.$u->city_name[$pl['city']].'" src="https://img.new-combats.com/i/city_ico/'.$pl['city'].'.gif">';
|
|||
|
$html .= ' ('.$users.') ('.$pl['min_lvl_1'].'-'.$pl['max_lvl_1'].') <20><><EFBFBD> <20><><EFBFBD>: <img src="https://img.new-combats.com/i/fighttype'.$pl['type'].'.gif"> ';
|
|||
|
if( $pl['noinc'] > 0 ) {
|
|||
|
$html .= '<img src="https://img.new-combats.com/closefight.gif" title="<22> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">';
|
|||
|
}
|
|||
|
if( $pl['fastfight'] > 0 ) {
|
|||
|
$html .= '<img src="https://img.new-combats.com/fastfight.gif" title="<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">';
|
|||
|
}
|
|||
|
if( $pl['arand'] > 0 ) {
|
|||
|
$html .= '<img src="https://img.new-combats.com/arand.gif" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)">';
|
|||
|
}
|
|||
|
$html .= '<font color="grey"><3E><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <b>'.$u->timeOut($pl['time']+$pl['time_start']-time()).'</b>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$u->timeOut($pl['timeout']).'</font>';
|
|||
|
if( $pl['priz'] > 0 ) {
|
|||
|
$html .= '<a href="https://new-combats.com/n/567/" target="_blank"><span style="color:#e65700;" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 5-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> 5% <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "><b>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</b></span></a></font></i>';
|
|||
|
}
|
|||
|
$html .= '<br>';
|
|||
|
}
|
|||
|
if( $html == '' ) {
|
|||
|
$html = '<center>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</center>';
|
|||
|
}
|
|||
|
echo $html; $html = '';
|
|||
|
?>
|
|||
|
<h3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD></h3>
|
|||
|
<?
|
|||
|
$i = 0;
|
|||
|
$sp = mysql_query('SELECT * FROM `battle` WHERE `team_win` = -1');
|
|||
|
while( $pl = mysql_fetch_array($sp) ) {
|
|||
|
//
|
|||
|
$users = '';
|
|||
|
$usersa = array();
|
|||
|
$userst = array();
|
|||
|
//
|
|||
|
$spu = mysql_query('SELECT `a`.`id`,`b`.`team` FROM `users` AS `a` LEFT JOIN `stats` AS `b` ON `a`.`id` = `b`.`id` WHERE `a`.`battle` = "'.$pl['id'].'"');
|
|||
|
while( $plu = mysql_fetch_array($spu) ) {
|
|||
|
if(!isset($usersa[$plu['team']])) {
|
|||
|
$userst[] = $plu['team'];
|
|||
|
}
|
|||
|
$usersa[$plu['team']] .= $u->microLogin($plu['id'],1).',';
|
|||
|
}
|
|||
|
//
|
|||
|
if( count($usersa) > 0 ) {
|
|||
|
$j = 0;
|
|||
|
while( $j < count($userst) ) {
|
|||
|
if( $users != '' ) {
|
|||
|
$users .= ' <b><font color=red><small><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></small></font></b> ';
|
|||
|
}
|
|||
|
$users .= $usersa[$userst[$j]];
|
|||
|
$users = rtrim($users,',');
|
|||
|
$j++;
|
|||
|
}
|
|||
|
//
|
|||
|
$i++;
|
|||
|
//
|
|||
|
|
|||
|
$html .= $i . '. <span class="date">'.date('d.m.Y H:i',$pl['time_start']).'</span> ';
|
|||
|
$html .= ' <img title="'.$u->city_name[$pl['city']].'" src="https://img.new-combats.com/i/city_ico/'.$pl['city'].'.gif">';
|
|||
|
$html .= ' ('.$users.') <20><><EFBFBD> <20><><EFBFBD>: <img src="https://img.new-combats.com/i/fighttype'.$pl['type'].'.gif"> ';
|
|||
|
if( $pl['noinc'] > 0 ) {
|
|||
|
$html .= '<img src="https://img.new-combats.com/closefight.gif" title="<22> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">';
|
|||
|
}
|
|||
|
if( $pl['fastfight'] > 0 ) {
|
|||
|
$html .= '<img src="https://img.new-combats.com/fastfight.gif" title="<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">';
|
|||
|
}
|
|||
|
if( $pl['arand'] > 0 ) {
|
|||
|
$html .= '<img src="https://img.new-combats.com/arand.gif" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)">';
|
|||
|
}
|
|||
|
$html .= '<font color="grey">, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$u->timeOut($pl['timeout']).'</font>';
|
|||
|
if( $pl['priz'] > 0 ) {
|
|||
|
$html .= '<a href="https://new-combats.com/n/567/" target="_blank"><span style="color:#e65700;" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 5-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20> <20><><EFBFBD> <20><>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5% <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "><b>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</b></span></a></font></i>';
|
|||
|
}
|
|||
|
$html .= ' <a href="/logs.php?log='.$pl['id'].'" target="_blank">»»</a> ';
|
|||
|
$html .= '<br>';
|
|||
|
}
|
|||
|
//
|
|||
|
}
|
|||
|
if( $html == '' ) {
|
|||
|
$html = '<center>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</center>';
|
|||
|
}
|
|||
|
echo $html; $html = '';
|
|||
|
?>
|
|||
|
<h3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3>
|
|||
|
<?
|
|||
|
$sp = mysql_query('SELECT * FROM `bs_turnirs`');
|
|||
|
$i = 0;
|
|||
|
while( $pl = mysql_fetch_array($sp) ) {
|
|||
|
$i++;
|
|||
|
//
|
|||
|
$html .= $i.'. <img title="'.$u->city_name[$pl['city']].'" src="https://img.new-combats.com/i/city_ico/'.$pl['city'].'.gif">';
|
|||
|
//
|
|||
|
$html .= ' ['.$pl['level'].']';
|
|||
|
if( $pl['status'] == 0 ) {
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$html .= ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> "<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" : <span class="date">'.date('d.m.Y H:i',$pl['time_start']).'</span> (<small> <font color=grey><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <b>'.$u->timeOut($pl['time_start']-time()).'</b></font></small>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>'.round(($pl['money']/100*85),2).'</b> <20><>. <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b>'.$pl['users'].'</b>';
|
|||
|
}else{
|
|||
|
//<2F><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$users = '';
|
|||
|
$spu = mysql_query('SELECT `id` FROM `users` WHERE `inTurnir` = "'.$pl['id'].'"');
|
|||
|
while( $plu = mysql_fetch_array($spu) ) {
|
|||
|
$users .= $u->microLogin($plu['id'],1). ',';
|
|||
|
}
|
|||
|
$users = rtrim($users,',');
|
|||
|
$html .= ' <span title="['.$pl['status'].']"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>.</span>';
|
|||
|
$html .= ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: '.$users.', <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <a href="/towerlog.php?towerid='.$pl['id'].'&id='.$pl['count'].'" target="_blank">»»</a>';
|
|||
|
}
|
|||
|
//
|
|||
|
$html .= '<br>';
|
|||
|
//
|
|||
|
}
|
|||
|
if( $html == '' ) {
|
|||
|
$html = '<center>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</center>';
|
|||
|
}
|
|||
|
echo $html; $html = '';
|
|||
|
?>
|
|||
|
|
|||
|
<h3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3>
|
|||
|
<?
|
|||
|
if( $html == '' ) {
|
|||
|
$html = '<center>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</center>';
|
|||
|
}
|
|||
|
echo $html; $html = '';
|
|||
|
?>
|
|||
|
|
|||
|
<h3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3>
|
|||
|
<?
|
|||
|
if( $html == '' ) {
|
|||
|
$html = '<center>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</center>';
|
|||
|
}
|
|||
|
echo $html; $html = '';
|
|||
|
?>
|
|||
|
|
|||
|
<div align="right"><font style="color:#999;" size="1" face="verdana" color="black"><hr style="border-color:#CCC;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> v2.1 © <?=date('Y')?>, <20>www.new-combats.com<6F><6D> </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: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>"+
|
|||
|
" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "+
|
|||
|
"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>
|