# Секретыный раздел
$okld = 0;
$okdop = 0;
# Если я любой паладин, и смотрю не админа, или я сам админ.
if ((((int)$own['align'] == 1) AND (!$user['admin'])) OR (!empty($own['admin']))) $okld = 1;
# Если я любой паладин выше 1.2, и смотрю не админа, или я сам админ.
if ((((int)$own['align'] == 1) AND (!$user['admin']) AND ($own['align'] > 1.2)) OR (!empty($own['admin']))) $okdop = 1;
if ($okld == 1) {
echo "
Личное дело
";
$ldd = mysql_query("SELECT * FROM `lichka` WHERE `pers` = '" . $user['id'] . "' ORDER BY `id` ASC");
while ($ld = mysql_fetch_array($ldd)) {
$dat = date("d.m.Y H:i", $ld['date']);
$text = $ld['text'];
echo "$dat $text ";
}
}
if ($okdop == 1) {
echo "
Возможные мульты
";
$lplist = mysql_query("SELECT idperslater FROM delo_multi WHERE idpersnow = {$user['id']} GROUP BY idperslater ASC;");
while ($iplog = mysql_fetch_array($lplist)) {
echo nick3($iplog['idperslater']) . " ";
}
echo "
Дополнительные сведения
";
if (!empty($user['id'])) echo "ID: " . $user['id'] . " ";
if (!empty($user['borndate'])) echo "День рождения: " . $user['borndate'] . " ";
if (!empty($user['ip'])) echo "IP при регистрации: " . $user['ip'] . " ";
#
$data = mysql_query("SELECT `id`, `ip`, `login`, `status`, `level`, `room`, `align`, (select `id` from `online` WHERE `date` >= " . (time() - 60) . " AND `id` = users.`id`) as `online` FROM users WHERE refer='$user[id]' ORDER BY level DESC");
$i = 0;
while ($row = mysql_fetch_array($data)) {
$i++;
if ($i == 1) echo "
Список рефералов:
";
if ($row['online'] > 0) {
echo '';
nick2($row['id']);
if ($row['id'] == $user['deal']) echo ' - ' . $row['status'] . '';
$rrm = $rooms[$row['room']];
echo ' - ', $rrm, ' ';
}
if ($row['online'] < 1) {
echo '';
nick2($row['id']);
if ($row['id'] == $user['deal']) echo ' - ', $row['status'], '';
echo ' - нет в игре';
}
echo ' - IP:' . $row['ip'] . ' ';
}
echo "";
}
if ($own['admin'] == 1) {
if (!empty($user['email'])) echo "E-mail: " . $user['email'] . " ";
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_s = mysql_query("SELECT * FROM `bank` WHERE `owner` = '{$user['id']}';")) {
echo "
Банк
";
echo "
№
Кредитов.
ЕвроКредитов.
Репутации.
";
while ($user_bank = mysql_fetch_assoc($user_bank_s)) {
echo "
" . $user_bank['id'] . "
" . $user_bank['cr'] . "
" . $user_bank['ekr'] . "
" . $user_bank['reputation'] . "
";
}
}
$own = mysql_fetch_array(mysql_query("SELECT `id`,`align`,`login` FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;"));
if ($_POST['del']) {
$invs = mysql_query("SELECT * FROM `inventory` WHERE `id`='" . $_POST['del'] . "'");
$bbc = mysql_fetch_array($invs);
if ($bbc['dressed'] == 1) {
dropitem($bbc['type']);
if ($bbc['type'] == 5) {
dropitem(6);
dropitem(7);
}
}
mysql_query("DELETE FROM `inventory` WHERE `id` = '{$_POST['del']}' LIMIT 1;");
}
$invv = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '{$user['id']}' ORDER by `id` DESC;");
echo "