From 85f83a665a354c7339f5d83c89000defcf80735f Mon Sep 17 00:00:00 2001 From: lopar Date: Tue, 23 Jun 2020 08:02:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=BE=D0=BB=D1=8C=D1=88=D0=B5=20=D0=BD?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B8=D1=88=D0=B5=D0=BC=20=D0=BB=D0=BE=D0=B3=20?= =?UTF-8?q?=D0=B0=D0=B9=D0=BF=D0=B8=20=D0=B0=D0=B4=D1=80=D0=B5=D1=81=D0=BE?= =?UTF-8?q?=D0=B2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- enter.php | 8 ++------ inf.php | 6 ------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/enter.php b/enter.php index 7e214c4..ab175f7 100644 --- a/enter.php +++ b/enter.php @@ -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) { ← на главную

- + \ No newline at end of file diff --git a/inf.php b/inf.php index 74d77db..c6addcb 100644 --- a/inf.php +++ b/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 "

Личное дело

"; while ($row_ld = $ld->fetch_assoc()) { @@ -92,11 +91,6 @@ if ($showModeratorInfo == 1) { echo "$dat {$row_ld['text']}
"; } - if ($iplog->getNumRows()) { - echo "

Возможные мульты

"; - while ($row_iplog = $iplog->fetch_assoc()) echo nick::id($row_iplog['idperslater'])->full() . " "; - } - echo "

Дополнительные сведения

"; if (!empty($user['id'])) echo "ID: " . $user['id'] . "
"; if (!empty($user['email'])) echo "E-mail: " . $user['email'] . "
";