Ёбанный вечный цикл!!!

This commit is contained in:
lopar 2018-02-16 02:17:47 +02:00
parent 6622cc2073
commit 3657a803a0

37
inf.php
View File

@ -76,7 +76,6 @@ if (empty($user['id'])) {
$effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i ', $user['id'], 5)->fetch_assoc(); $effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i ', $user['id'], 5)->fetch_assoc();
if ($effect['time'] AND ($own['admin'] != 1 OR ((int)$own['align']) != 1)) die('<h3>Персонаж обезличен!</h3>'); if ($effect['time'] AND ($own['admin'] != 1 OR ((int)$own['align']) != 1)) die('<h3>Персонаж обезличен!</h3>');
if (!empty($user['realname'])) echo "Имя: " . $user['realname'] . "<br>"; if (!empty($user['realname'])) echo "Имя: " . $user['realname'] . "<br>";
if (!empty($user['city'])) echo "Город: " . $user['city'] . "<br>";
if (!empty($user['lozung'])) echo "Лозунг: " . $user['lozung'] . "<br>"; if (!empty($user['lozung'])) echo "Лозунг: " . $user['lozung'] . "<br>";
?> ?>
<p style="font-family: Consolas,monospace;"><?= nl2br($user['info']); ?></p><hr> <p style="font-family: Consolas,monospace;"><?= nl2br($user['info']); ?></p><hr>
@ -170,17 +169,17 @@ if ((((int)$own['align'] == 1) AND (!$user['admin']) AND ($own['align'] > 1.2))
if ($okld == 1) { if ($okld == 1) {
echo "<H4>Личное дело</H4>"; echo "<H4>Личное дело</H4>";
$ld = db::c()->query('SELECT * FROM `lichka` WHERE `pers` = ?i ORDER BY `id` ASC', $user['id'])->fetch_assoc(); $ld = db::c()->query('SELECT * FROM `lichka` WHERE `pers` = ?i ORDER BY `id` ASC', $user['id']);
while ($ld) { while ($row_ld = $ld->fetch_assoc()) {
$dat = date("d.m.Y H:i", $ld['date']); $dat = date("d.m.Y H:i", $row_ld['date']);
echo "<code>$dat {$ld['text']} </code><br />"; echo "<code>$dat {$row_ld['text']} </code><br />";
} }
} }
if ($okdop == 1) { if ($okdop == 1) {
echo "<H4>Возможные мульты</H4>"; echo "<H4>Возможные мульты</H4>";
$iplog = db::c()->query('SELECT idperslater FROM delo_multi WHERE idpersnow = ?i GROUP BY idperslater ASC', $user['id'])->fetch_assoc(); $iplog = db::c()->query('SELECT idperslater FROM delo_multi WHERE idpersnow = ?i GROUP BY idperslater ASC', $user['id'])-;
while ($iplog) echo nick3($iplog['idperslater']) . " "; while ($row_iplog = $iplog->fetch_assoc()) echo nick3($row_iplog['idperslater']) . " ";
echo "<H4>Дополнительные сведения</H4>"; echo "<H4>Дополнительные сведения</H4>";
@ -199,7 +198,7 @@ if ($own['admin'] == 1) {
if (!empty($user['reputation'])) echo "Всего Репутации: " . $user['reputation'] . "<br>"; if (!empty($user['reputation'])) echo "Всего Репутации: " . $user['reputation'] . "<br>";
if (!empty($user['doblest'])) echo "Репутации: " . $user['doblest'] . "<br>"; if (!empty($user['doblest'])) echo "Репутации: " . $user['doblest'] . "<br>";
if ($user_bank = db::c()->query('SELECT `id`,`cr`,`ekr` FROM `bank` WHERE `owner` = ?i', $user['id'])->fetch_assoc()) { if ($user_bank = db::c()->query('SELECT `id`,`cr`,`ekr` FROM `bank` WHERE `owner` = ?i', $user['id'])) {
echo "<H4>Банк</H4>"; echo "<H4>Банк</H4>";
echo " echo "
<table class='adm'> <table class='adm'>
@ -209,12 +208,12 @@ if ($own['admin'] == 1) {
<th>ЕвроКредитов.</th> <th>ЕвроКредитов.</th>
</tr> </tr>
"; ";
while ($user_bank) { while ($row_user_bank = $user_bank->fetch_assoc()) {
echo " echo "
<tr> <tr>
<th>" . $user_bank['id'] . "</th> <th>" . $row_user_bank['id'] . "</th>
<td>" . $user_bank['cr'] . "</td> <td>" . $row_user_bank['cr'] . "</td>
<td>" . $user_bank['ekr'] . "</td> <td>" . $row_user_bank['ekr'] . "</td>
</tr> </tr>
</table><br>"; </table><br>";
} }
@ -244,16 +243,16 @@ if ($own['admin'] == 1) {
<th>×</th> <th>×</th>
</tr> </tr>
"; ";
$inv = db::c()->query('SELECT `id`,`name`,`koll`,`img` FROM `inventory` WHERE `owner` = ?i ORDER BY `id` DESC', $user['id'])->fetch_assoc(); $inv = db::c()->query('SELECT `id`,`name`,`koll`,`img` FROM `inventory` WHERE `owner` = ?i ORDER BY `id` DESC', $user['id']);
while ($inv) { while ($row_inv = $inv->fetch_assoc()) {
echo " echo "
<form method='post'> <form method='post'>
<tr> <tr>
<td>{$inv['id']}</td> <td>{$row_inv['id']}</td>
<td>{$inv['name']}</td> <td>{$row_inv['name']}</td>
<td>{$inv['koll']}</td> <td>{$row_inv['koll']}</td>
<td><img src='i/sh/{$inv['img']}'></td> <td><img src='i/sh/{$row_inv['img']}'></td>
<td><input name='del' type='hidden' value='{$inv['id']}'> <td><input name='del' type='hidden' value='{$row_inv['id']}'>
<input name='ok' type='submit' value='Удалить'></td> <input name='ok' type='submit' value='Удалить'></td>
</tr> </tr>
</form> </form>