2022-06-06 21:30:34 +00:00
|
|
|
|
<?php
|
2022-07-01 12:45:43 +00:00
|
|
|
|
|
2022-06-06 21:30:34 +00:00
|
|
|
|
use Insallah\Db, Insallah\TournamentModel;
|
|
|
|
|
|
|
|
|
|
$db = new Db();
|
|
|
|
|
$members = [];
|
2022-07-01 12:45:43 +00:00
|
|
|
|
$user = $db::getRow('select id, room, level, login from users where login = ?', [$_COOKIE['login']]);
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$tournamentStartTime = $db::getValue('select start_time from tournaments where tid = ?', [$user['level']]);
|
|
|
|
|
foreach (TournamentModel::getFreeFighters($user['level']) as $member) {
|
2022-07-01 12:45:43 +00:00
|
|
|
|
$members[] = TournamentModel::uidToLogin($member);
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
2022-07-01 12:45:43 +00:00
|
|
|
|
|
2022-06-06 21:30:34 +00:00
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <?= $user['level'] ?> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.</strong><br>
|
2022-07-01 12:45:43 +00:00
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
if (empty($members) || empty($tournamentStartTime)): ?>
|
|
|
|
|
<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><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><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!
|
|
|
|
|
<?php
|
|
|
|
|
exit(); endif; ?>
|
|
|
|
|
<?php
|
|
|
|
|
if ((int)$tournamentStartTime === -1): ?>
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!
|
|
|
|
|
<?php
|
|
|
|
|
else: ?>
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <?= date('G:i', $tournamentStartTime) ?>
|
|
|
|
|
<?php
|
|
|
|
|
if (date('j', time()) !== date('j', $tournamentStartTime)): ?>
|
|
|
|
|
(<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!)
|
|
|
|
|
<?php
|
|
|
|
|
endif; ?>
|
|
|
|
|
<?php
|
|
|
|
|
endif; ?>
|
|
|
|
|
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<br>
|
2022-07-01 12:45:43 +00:00
|
|
|
|
<?= $user['login'] ?><br>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <?= implode(', ', $members) ?>
|
|
|
|
|
|
|
|
|
|
|