= showinf_pers($user['id'], 1);
if (!empty($user['married'])) echo '';
if ($user['deal'] == 1) echo '💲';
for ($i = 0; $i < count($medals); $i++) {
switch ($medals[$i]) {
case "009":
echo ' ';
break;
case "beta_test":
echo ' ';
break;
}
}
if ($user['win'] >= 20000) echo '';
if ($user['win'] >= 50000) echo '';
if ($user['win'] >= 100000) echo '';
$medals = explode(";", $user['medals']);
?>
";
if ((int)$user['admin'] == 1) echo "";
?>
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('
1.2)) OR (!empty($own['admin']))) $okdop = 1;
if ($okld == 1) {
echo "
Личное дело
";
$ld = db::c()->query('SELECT * FROM `lichka` WHERE `pers` = ?i ORDER BY `id` ASC', $user['id'])->fetch_assoc();
while ($ld) {
$dat = date("d.m.Y H:i", $ld['date']);
echo "$dat {$ld['text']} ";
}
}
if ($okdop == 1) {
echo "
Возможные мульты
";
$iplog = db::c()->query('SELECT idperslater FROM delo_multi WHERE idpersnow = ?i GROUP BY idperslater ASC', $user['id'])->fetch_assoc();
while ($iplog) echo nick3($iplog['idperslater']) . " ";
echo "
Дополнительные сведения
";
if (!empty($user['id'])) echo "ID: " . $user['id'] . " ";
if (!empty($user['email'])) echo "E-mail: " . $user['email'] . " ";
if (!empty($user['borndate'])) echo "День рождения: " . $user['borndate'] . " ";
if (!empty($user['ip'])) echo "IP при регистрации: " . $user['ip'] . " ";
}
if ($own['admin'] == 1) {
if (!empty($user['exp'])) echo "Oпыт: " . $user['exp'] . " ";
if (!empty($user['stats'])) echo "Число неиспользованных UP-ов: " . $user['stats'] . " ";
if (!empty($user['money'])) echo "Кредитов: " . $user['money'] . " ";
if (!empty($user['room'])) echo "Комната: " . $user['room'] . " ";
if (!empty($user['reputation'])) echo "Всего Репутации: " . $user['reputation'] . " ";
if (!empty($user['doblest'])) echo "Репутации: " . $user['doblest'] . " ";
if ($user_bank = db::c()->query('SELECT `id`,`cr`,`ekr` FROM `bank` WHERE `owner` = ?i', $user['id'])->fetch_assoc()) {
echo "
Банк
";
echo "
№
Кредитов.
ЕвроКредитов.
";
while ($user_bank) {
echo "
" . $user_bank['id'] . "
" . $user_bank['cr'] . "
" . $user_bank['ekr'] . "
";
}
}
//TODO Вынести управляющие элементы во внешнюю админку, подальше от прецедентов. А то были случаи.
$del = filter_input(INPUT_POST,'del', FILTER_VALIDATE_INT);
if ($_POST['del']) {
$itemdel = db::c()->query('SELECT `type`,`dressed` FROM `inventory` WHERE `id`=?i', $del)->fetch_assoc();
if ($itemdel['dressed'] == 1) {
dropitem($itemdel['type']);
if ($itemdel['type'] == 5) {
dropitem(6);
dropitem(7);
}
}
db::c()->query('DELETE FROM `inventory` WHERE `id` = ?i', $del);
}
echo "
Вещи в инвентаре:
";
echo "
ID
Название
Количество
Картинка
×
";
$inv = db::c()->query('SELECT `id`,`name`,`koll`,`img` FROM `inventory` WHERE `owner` = ?i ORDER BY `id` DESC', $user['id'])->fetch_assoc();
while ($inv) {
echo "
";
}
echo "
";
if ($_POST['undress_char']) undressall($user['id']);
}
?>