main php ups
This commit is contained in:
12
inf.php
12
inf.php
@@ -60,15 +60,15 @@ if (!empty($user['realname'])) echo "Имя: " . $user['realname'] . "<br>";
|
||||
<p style="font-family: Consolas,monospace;"><?= nl2br($user['info']) ?></p>
|
||||
<hr>
|
||||
<div id="Content">
|
||||
<fieldset>
|
||||
<div>
|
||||
<legend>Подарки</legend>
|
||||
<?php
|
||||
if ($presents->getNumRows())
|
||||
while ($row = $presents->fetch_assoc())
|
||||
echo "<img src=i/sh/{$row['img']} class='tooltip' title='Подарок от {$row['present']}'>";
|
||||
?>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
</div>
|
||||
<div>
|
||||
<legend>Лицензии</legend>
|
||||
<?php
|
||||
if ($user['prof2'] == 21) echo ' <img src="i/prof21.png" class="tooltip" title="<b>Лицензия наемника</b>" /> ';
|
||||
@@ -76,7 +76,7 @@ if (!empty($user['realname'])) echo "Имя: " . $user['realname'] . "<br>";
|
||||
if ($user['prof1'] == 1) echo ' <img src="i/prof1.png" class="tooltip" title="<b>Лицензия кузнеца</b>" /> ';
|
||||
if ($user['prof1'] == 2) echo ' <img src="i/prof1.png" class="tooltip" title="<b>Лицензия наставника</b>" /> ';
|
||||
?>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
@@ -129,8 +129,8 @@ if ($own['admin'] == 1) {
|
||||
}
|
||||
|
||||
//TODO Вынести управляющие элементы во внешнюю админку, подальше от прецедентов. А то были случаи.
|
||||
if (isset($_POST['del'])) {
|
||||
$itemdel = db::c()->query('SELECT `type`,`dressed` FROM `inventory` WHERE `id`=?i', $del)->fetch_assoc();
|
||||
if (input::post('del')) {
|
||||
$itemdel = db::c()->query('SELECT `type`,`dressed` FROM `inventory` WHERE `id`=?i', input::post('del'))->fetch_assoc();
|
||||
if ($itemdel['dressed'] == 1) {
|
||||
dropitem($itemdel['type']);
|
||||
if ($itemdel['type'] == 5) {
|
||||
|
||||
Reference in New Issue
Block a user