Перенос разрозненных файлов в фабрику. Утилизация неиспользуемых функций. #49

This commit is contained in:
2023-12-05 03:01:04 +02:00
committed by Ivor Barhansky
parent c51dbaeae3
commit 8be1c6cd7e
79 changed files with 12178 additions and 12956 deletions
+5 -5
View File
@@ -17,7 +17,7 @@ $u = User::start();
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<meta http-equiv=Cache-Control Content=no-cache>
<meta http-equiv=PRAGMA content=NO-CACHE>
@@ -26,7 +26,7 @@ $u = User::start();
</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>Просматривает персонаж: </strong><?= $u->getLogin() ?></center>
<center><strong>Просматривает персонаж: </strong><?= User::getLogin($u->info['id']) ?></center>
<hr>
<INPUT style="float:right" class="btn btn-success" TYPE=button value="Обновить" style='width: 100px'
onClick="location.href='monitoring'"></div>
@@ -43,7 +43,7 @@ while ($pl = mysql_fetch_array($sp)) {
//
$spu = mysql_query('SELECT `id` FROM `stats` WHERE `zv` = "' . $pl['id'] . '"');
while ($plu = mysql_fetch_array($spu)) {
$users .= $u->getLogin($plu['id']) . ',';
$users .= User::getLogin($plu['id']) . ',';
}
//
if ($users == '') {
@@ -95,7 +95,7 @@ while ($pl = mysql_fetch_array($sp)) {
if (!isset($usersa[$plu['team']])) {
$userst[] = $plu['team'];
}
$usersa[$plu['team']] .= $u->getLogin($plu['id']) . ',';
$usersa[$plu['team']] .= User::getLogin($plu['id']) . ',';
}
//
if (count($usersa) > 0) {
@@ -163,7 +163,7 @@ while ($pl = mysql_fetch_array($sp)) {
$users = '';
$spu = mysql_query('SELECT `id` FROM `users` WHERE `inTurnir` = "' . $pl['id'] . '"');
while ($plu = mysql_fetch_array($spu)) {
$users .= $u->getLogin($plu['id']) . ',';
$users .= User::getLogin($plu['id']) . ',';
}
$users = rtrim($users, ',');
$html .= ' <span title="[' . $pl['status'] . ']">Турнир Башни Смерти уже идет.</span>';