subj
This commit is contained in:
parent
2403e4a57b
commit
6a463392d8
File diff suppressed because one or more lines are too long
105
inf.php
105
inf.php
@ -5,26 +5,22 @@ include("functions.php");
|
|||||||
|
|
||||||
$login = urldecode(filter_input(INPUT_SERVER, 'QUERY_STRING'));
|
$login = urldecode(filter_input(INPUT_SERVER, 'QUERY_STRING'));
|
||||||
$uid = isset($_SESSION['uid']) ? $_SESSION['uid'] : NULL;
|
$uid = isset($_SESSION['uid']) ? $_SESSION['uid'] : NULL;
|
||||||
$user = db::c()->query('SELECT `id`,`login`,`married`,`win`,`medals`,borndate,`align`,`admin`,`realname`,`info`,`prof1`,`prof2`,`email`,`ip`,`exp`,`stats`,`money`,`room`,`doblest`
|
$user = db::c()->query('SELECT `id`,`login`,`married`,`win`,borndate,`align`,`admin`,`realname`,`info`,`prof1`,`prof2`,`email`,`ip`,`exp`,`stats`,`money`,`room`,`doblest`
|
||||||
FROM `users`
|
FROM `users`
|
||||||
WHERE `login` = "?s"', $login)->fetch_assoc();
|
WHERE `login` = "?s" OR `id` = "?s"', $login, $login)->fetch_assoc();
|
||||||
$own = db::c()->query('SELECT `align`,`admin` FROM `users` WHERE `id` = "?s"', $uid)->fetch_assoc();
|
$own = db::c()->query('SELECT `align`,`admin` FROM `users` WHERE `id` = "?s"', $uid)->fetch_assoc();
|
||||||
|
|
||||||
if (empty($user['id'])) {
|
$presents = db::c()->query('SELECT `img`,`present` FROM `inventory` WHERE `owner` = ?i',$user['id']);
|
||||||
?>
|
|
||||||
|
if (empty($user['id'])): ?>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head><meta charset="utf-8"><title>Ошибка</title></head>
|
||||||
<meta charset=utf-8"/>
|
|
||||||
<title>Ошибка</title></head>
|
|
||||||
<body style="color: #666; background-color: #d5d5d5; text-align: center; font-family: Consolas,monospace;">
|
<body style="color: #666; background-color: #d5d5d5; text-align: center; font-family: Consolas,monospace;">
|
||||||
Ошибка: персонаж<?= ($login ? " <em>" . $login . "</em>" : ""); ?> не найден...
|
Ошибка: персонаж<?= ($login ? " <em>" . $login . "</em>" : ""); ?> не найден...
|
||||||
<p><a style="color: #99f" href="javascript:window.history.go(-1);">←назад</a></p>
|
<p><a style="color: #99f" href="javascript:window.history.go(-1);">←назад</a></p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<?
|
<? exit(); endif; ?>
|
||||||
exit();
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
@ -33,43 +29,22 @@ if (empty($user['id'])) {
|
|||||||
<link href="css/main.css" rel="stylesheet">
|
<link href="css/main.css" rel="stylesheet">
|
||||||
<link href="css/tooltip.css" rel="stylesheet">
|
<link href="css/tooltip.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<BODY bgColor=#e2e0e0 onload="<?=topsethp()?>">
|
<BODY onload="<?= topsethp() ?>">
|
||||||
<TABLE cellPadding=0 cellSpacing=0 width=100% border=0>
|
<table width=100%>
|
||||||
<TBODY>
|
<tr>
|
||||||
<TR>
|
<td style="width: 250px; vertical-align: top;">
|
||||||
<TD align=left vAlign=top width="250">
|
|
||||||
<?= showinf_pers($user['id'], 1);
|
<?= showinf_pers($user['id'], 1);
|
||||||
|
|
||||||
if (!empty($user['married'])) echo '<a href="inf.php?login='.$user['married'].'" target=_blank><img src="i/married.gif" class="tooltip" title="В браке с '.$user['married'].'"></a>';
|
if (!empty($user['married']))
|
||||||
$medals = explode(";", $user['medals']);
|
echo '<br><a href="inf.php?' . $user['married'] . '" target=_blank><img src="i/married.gif" class="tooltip" title="В браке с ' . $user['married'] . '"></a>';
|
||||||
for ($i = 0; $i < count($medals); $i++) {
|
|
||||||
switch ($medals[$i]) {
|
|
||||||
case "009":
|
|
||||||
echo ' <img src="i/009.gif" title="Последний победитель Башни Смерти!" width=30> ';
|
|
||||||
break;
|
|
||||||
case "beta_test":
|
|
||||||
echo ' <img src="i/Beta_test.gif" title="За помощь в бета-тесте" width=32 height=50> ';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($user['win'] >= 20000) echo '<img src="i/016.gif" title="20000 Побед!">';
|
|
||||||
if ($user['win'] >= 50000) echo '<img src="i/015.gif" title="50000 Побед!">';
|
|
||||||
if ($user['win'] >= 100000) echo '<img src="i/014.gif" title="100000 Побед!">';
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</TD>
|
|
||||||
<td valign="top" width="100">
|
|
||||||
<div style="margin: auto; width: 100px; text-align: center;">
|
|
||||||
<img align="right" src="i/<?=star_sign(substr($user['borndate'], 3, 2), substr($user['borndate'], 0, 2));?>.gif" width="100"/>
|
|
||||||
<?php
|
|
||||||
if ((int)$user['align'] == 1) echo "<img src='/i/znaki/inf_pal.png'>";
|
|
||||||
if ((int)$user['admin'] == 1) echo "<img src='/i/znaki/ud.png'>";
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</TR>
|
<td style="vertical-align: top; width: 100px; text-align: center;">
|
||||||
</TBODY>
|
<img src="i/<?= star_sign(substr($user['borndate'], 3, 2), substr($user['borndate'], 0, 2)); ?>.gif"
|
||||||
</TABLE>
|
width="100"/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
<hr>
|
<hr>
|
||||||
<!-- Нижняя часть -->
|
<!-- Нижняя часть -->
|
||||||
<?php
|
<?php
|
||||||
@ -77,11 +52,17 @@ $effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `t
|
|||||||
if ($effect['time'] AND ($own['admin'] != 1)) die('<h3>Персонаж обезличен!</h3>');
|
if ($effect['time'] AND ($own['admin'] != 1)) die('<h3>Персонаж обезличен!</h3>');
|
||||||
if (!empty($user['realname'])) echo "Имя: " . $user['realname'] . "<br>";
|
if (!empty($user['realname'])) echo "Имя: " . $user['realname'] . "<br>";
|
||||||
?>
|
?>
|
||||||
<p style="font-family: Consolas,monospace;"><?=nl2br($user['info'])?></p><hr>
|
<p style="font-family: Consolas,monospace;"><?= nl2br($user['info']) ?></p>
|
||||||
|
<hr>
|
||||||
<div id="Content">
|
<div id="Content">
|
||||||
<fieldset><legend>Подарки</legend>
|
<fieldset>
|
||||||
|
|
||||||
|
<legend>Подарки</legend>
|
||||||
🎁 Граждане-товарищи, подарков пока не завезли. Работаем над функционалом.
|
🎁 Граждане-товарищи, подарков пока не завезли. Работаем над функционалом.
|
||||||
<!-- --><?php
|
<?php
|
||||||
|
if ($presents->getNumRows())
|
||||||
|
while ($row = $presents->fetch_assoc())
|
||||||
|
echo "<img src=i/sh/{$presents['img']} class='tooltip' title='Подарок от {$presents['present']}'>";
|
||||||
// while ($row = mysql_fetch_array($data)) {
|
// while ($row = mysql_fetch_array($data)) {
|
||||||
// $why_gift = mysql_fetch_assoc(mysql_query("SELECT `id` FROM `users` WHERE `login` = '" . mysql_real_escape_string($row['present']) . "' LIMIT 1"));
|
// $why_gift = mysql_fetch_assoc(mysql_query("SELECT `id` FROM `users` WHERE `login` = '" . mysql_real_escape_string($row['present']) . "' LIMIT 1"));
|
||||||
// echo '<a href="inf.php?' . $why_gift['id'] . '"><img src="i/sh/' . $row['img'] . '" class=\'tooltip\' border="0" title="<b>' . $row['name'] . '</b><br />Подарил: <b>' . $row['present'] . '</b><br /><b class=\'txt\'>' . $row['letter'] . '</b>" /></a> ';
|
// echo '<a href="inf.php?' . $why_gift['id'] . '"><img src="i/sh/' . $row['img'] . '" class=\'tooltip\' border="0" title="<b>' . $row['name'] . '</b><br />Подарил: <b>' . $row['present'] . '</b><br /><b class=\'txt\'>' . $row['letter'] . '</b>" /></a> ';
|
||||||
@ -146,7 +127,8 @@ if (!empty($user['realname'])) echo "Имя: " . $user['realname'] . "<br>";
|
|||||||
//
|
//
|
||||||
// ?>
|
// ?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset style="width: 250px; height: 75px;"><legend>Лицензии</legend>
|
<fieldset>
|
||||||
|
<legend>Лицензии</legend>
|
||||||
<?php
|
<?php
|
||||||
if ($user['prof2'] == 21) echo ' <img src="i/prof21.png" class="tooltip" title="<b>Лицензия наемника</b>" /> ';
|
if ($user['prof2'] == 21) echo ' <img src="i/prof21.png" class="tooltip" title="<b>Лицензия наемника</b>" /> ';
|
||||||
if ($user['prof2'] == 22) echo ' <img src="i/prof22.png" class="tooltip" title="<b>Лицензия лекаря</b>" /> ';
|
if ($user['prof2'] == 22) echo ' <img src="i/prof22.png" class="tooltip" title="<b>Лицензия лекаря</b>" /> ';
|
||||||
@ -176,9 +158,11 @@ if ($okld == 1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($okdop == 1) {
|
if ($okdop == 1) {
|
||||||
echo "<H4>Возможные мульты</H4>";
|
|
||||||
$iplog = db::c()->query('SELECT idperslater FROM delo_multi WHERE idpersnow = ?i GROUP BY idperslater ASC', $user['id']);
|
$iplog = db::c()->query('SELECT idperslater FROM delo_multi WHERE idpersnow = ?i GROUP BY idperslater ASC', $user['id']);
|
||||||
|
if ($iplog->getNumRows()) {
|
||||||
|
echo "<H4>Возможные мульты</H4>";
|
||||||
while ($row_iplog = $iplog->fetch_assoc()) echo nick::id($row_iplog['idperslater'])->full() . " ";
|
while ($row_iplog = $iplog->fetch_assoc()) echo nick::id($row_iplog['idperslater'])->full() . " ";
|
||||||
|
}
|
||||||
|
|
||||||
echo "<H4>Дополнительные сведения</H4>";
|
echo "<H4>Дополнительные сведения</H4>";
|
||||||
|
|
||||||
@ -198,24 +182,9 @@ if ($own['admin'] == 1) {
|
|||||||
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 `id` = ?i', $user['id'])) {
|
if ($user_bank = db::c()->query('SELECT `id`,`cr`,`ekr` FROM `bank` WHERE `id` = ?i', $user['id'])) {
|
||||||
echo "<H4>Банк</H4>";
|
echo "<H4>Банковские счета</H4>";
|
||||||
echo "
|
while ($row_user_bank = $user_bank->fetch_assoc())
|
||||||
<table class='adm'>
|
echo "№" . $row_user_bank['id'] . ": " . $row_user_bank['cr'] . " кр; " . $row_user_bank['ekr'] . " екр.";
|
||||||
<TR>
|
|
||||||
<th>№</th>
|
|
||||||
<th>Кредитов.</th>
|
|
||||||
<th>ЕвроКредитов.</th>
|
|
||||||
</tr>
|
|
||||||
";
|
|
||||||
while ($row_user_bank = $user_bank->fetch_assoc()) {
|
|
||||||
echo "
|
|
||||||
<tr>
|
|
||||||
<td>" . $row_user_bank['id'] . "</td>
|
|
||||||
<td>" . $row_user_bank['cr'] . "</td>
|
|
||||||
<td>" . $row_user_bank['ekr'] . "</td>
|
|
||||||
</tr>";
|
|
||||||
}
|
|
||||||
echo "</table><br>";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO Вынести управляющие элементы во внешнюю админку, подальше от прецедентов. А то были случаи.
|
//TODO Вынести управляющие элементы во внешнюю админку, подальше от прецедентов. А то были случаи.
|
||||||
@ -244,7 +213,6 @@ if ($own['admin'] == 1) {
|
|||||||
$inv = db::c()->query('SELECT `id`,`name`,`koll`,`img` FROM `inventory` WHERE `owner` = ?i ORDER BY `id` DESC', $user['id']);
|
$inv = db::c()->query('SELECT `id`,`name`,`koll`,`img` FROM `inventory` WHERE `owner` = ?i ORDER BY `id` DESC', $user['id']);
|
||||||
while ($row_inv = $inv->fetch_assoc()) {
|
while ($row_inv = $inv->fetch_assoc()) {
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$row_inv['id']}</td>
|
<td>{$row_inv['id']}</td>
|
||||||
<td>{$row_inv['name']}</td>
|
<td>{$row_inv['name']}</td>
|
||||||
@ -253,7 +221,6 @@ if ($own['admin'] == 1) {
|
|||||||
<td><form method='post'><input name='del' type='hidden' value='{$row_inv['id']}'>
|
<td><form method='post'><input name='del' type='hidden' value='{$row_inv['id']}'>
|
||||||
<input name='ok' type='submit' value='Удалить'></form></td>
|
<input name='ok' type='submit' value='Удалить'></form></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
echo "<th colspan='6'><form method='post'><input name='undress_char' type='submit' value='Стриптиз'></form></th></table>";
|
echo "<th colspan='6'><form method='post'><input name='undress_char' type='submit' value='Стриптиз'></form></th></table>";
|
||||||
|
10
main.php
10
main.php
@ -1898,14 +1898,11 @@ if (input::get('edit')) {
|
|||||||
} else err('Ошибка: запрещённые символы!');
|
} else err('Ошибка: запрещённые символы!');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!in_array(input::get('mZeAjax'), array('mZeInventory', 'mZeFilter'))):
|
if (!in_array(input::get('mZeAjax'), array('mZeInventory', 'mZeFilter'))): ?>
|
||||||
?>
|
|
||||||
<HTML>
|
<HTML>
|
||||||
<HEAD>
|
<HEAD>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<link rel="stylesheet" href="css/main.css">
|
<link rel="stylesheet" href="css/main.css">
|
||||||
<link rel="stylesheet" href="css/newstyle18.css"
|
|
||||||
">
|
|
||||||
<link rel="stylesheet" href="css/tooltip.css"/>
|
<link rel="stylesheet" href="css/tooltip.css"/>
|
||||||
<link rel="stylesheet" href="css/bkstyle.css?101"/>
|
<link rel="stylesheet" href="css/bkstyle.css?101"/>
|
||||||
<link rel="stylesheet" href="css/mi.css"/>
|
<link rel="stylesheet" href="css/mi.css"/>
|
||||||
@ -2024,10 +2021,10 @@ if (input::get('edit')) {
|
|||||||
<table border=0 width=100% cellspacing="0" cellpadding="0">
|
<table border=0 width=100% cellspacing="0" cellpadding="0">
|
||||||
<TR>
|
<TR>
|
||||||
<td valign=top align=left width=250><? showpersinv($user['id']) ?>
|
<td valign=top align=left width=250><? showpersinv($user['id']) ?>
|
||||||
<center>
|
<div align="center">
|
||||||
<a href='main.php?edit=1&undress=all'>Снять все</a><BR>
|
<a href='main.php?edit=1&undress=all'>Снять все</a><BR>
|
||||||
<a href="javascript: void(0);" onclick="saveComplect(); return false;">Запомнить комплект</a><br/>
|
<a href="javascript: void(0);" onclick="saveComplect(); return false;">Запомнить комплект</a><br/>
|
||||||
</center>
|
</div>
|
||||||
<BR>
|
<BR>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
@ -2897,7 +2894,6 @@ if ($user['room'] == 666) {
|
|||||||
<HTML>
|
<HTML>
|
||||||
<HEAD>
|
<HEAD>
|
||||||
<link rel="stylesheet" href="css/main.css">
|
<link rel="stylesheet" href="css/main.css">
|
||||||
<link rel="stylesheet" href="css/newstyle18.css">
|
|
||||||
<link rel="stylesheet" href="css/btn.css">
|
<link rel="stylesheet" href="css/btn.css">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<link rel="stylesheet" href="css/tooltip.css">
|
<link rel="stylesheet" href="css/tooltip.css">
|
||||||
|
Loading…
Reference in New Issue
Block a user