Больше не пишем лог айпи адресов.
This commit is contained in:
parent
877163228c
commit
85f83a665a
@ -32,7 +32,7 @@ if ($username && $password) {
|
||||
setcookie("hashcode", md5($data['id'] . $data["pass"] . $data["login"]), time() + 43200, "/", GAMEDOMAIN);
|
||||
$_SESSION['sid'] = session_id();
|
||||
|
||||
$onl = db::c()->query('SELECT `id` FROM `online` WHERE `id` = "?s" LIMIT 1', $data['id'])->fetch_assoc();
|
||||
$onl = db::c()->query('SELECT `id` FROM `online` WHERE `id` = "?s"', $data['id'])->fetch_assoc();
|
||||
if (isset($onl['id'])) {
|
||||
db::c()->query('UPDATE `online` SET `date` = ?i WHERE `id` = "?s"', time(), $data['id']);
|
||||
} else {
|
||||
@ -42,10 +42,6 @@ if ($username && $password) {
|
||||
db::c()->query('UPDATE `users` SET `sid` = "?s", `enter_game` = ?i WHERE `id` = ?i LIMIT 1', session_id(), 1, $data['id']);
|
||||
$_SESSION['sid'] = session_id();
|
||||
|
||||
//TODO Лог IP адресов планировался удаляться из проекта.
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
db::c()->query('INSERT INTO `iplog` (`owner`, `ip`, `date`) VALUES (?i, "?s", ?i)', $data['id'], $ip, time());
|
||||
|
||||
$sms = db::c()->query('SELECT * FROM `telegraph` WHERE `receiver` = ?i', $data['id']);
|
||||
while ($res = $sms->fetch_assoc()) {
|
||||
db::c()->query('INSERT INTO `chat` (`touid`, `msg`, `type`) VALUES (?i, "?s", "?s")', $res['receiver'], $res['text'], 'sms');
|
||||
@ -68,6 +64,6 @@ if ($username && $password) {
|
||||
<?php if (!empty($error)): ?>
|
||||
<a href="/"> ← на главную</a>
|
||||
<h1><?php echo $error; ?></h1>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
</body>
|
||||
</html>
|
6
inf.php
6
inf.php
@ -84,7 +84,6 @@ if ((($own['align'] == 1) AND (!$user['admin'])) OR (!empty($own['admin']))) $sh
|
||||
|
||||
if ($showModeratorInfo == 1) {
|
||||
$ld = db::c()->query('SELECT * FROM `lichka` WHERE `pers` = ?i ORDER BY `id` ASC', $user['id']);
|
||||
$iplog = db::c()->query('SELECT idperslater FROM delo_multi WHERE idpersnow = ?i GROUP BY idperslater ASC', $user['id']);
|
||||
|
||||
echo "<H4>Личное дело</H4>";
|
||||
while ($row_ld = $ld->fetch_assoc()) {
|
||||
@ -92,11 +91,6 @@ if ($showModeratorInfo == 1) {
|
||||
echo "<code>$dat {$row_ld['text']} </code><br />";
|
||||
}
|
||||
|
||||
if ($iplog->getNumRows()) {
|
||||
echo "<H4>Возможные мульты</H4>";
|
||||
while ($row_iplog = $iplog->fetch_assoc()) echo nick::id($row_iplog['idperslater'])->full() . " ";
|
||||
}
|
||||
|
||||
echo "<H4>Дополнительные сведения</H4>";
|
||||
if (!empty($user['id'])) echo "ID: " . $user['id'] . "<br>";
|
||||
if (!empty($user['email'])) echo "E-mail: " . $user['email'] . "<br>";
|
||||
|
Loading…
Reference in New Issue
Block a user