From 8518a0e493a9594bb1c6b7599c2027c70e82511c Mon Sep 17 00:00:00 2001 From: Simplas920 <65673359+Simplas920@users.noreply.github.com> Date: Thu, 21 May 2020 14:37:51 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=80=D1=84=D0=BE=D0=B3=D1=80=D0=B0?= =?UTF-8?q?=D1=84=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B0=D1=8F=20=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=B1=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- password.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/password.php b/password.php index 72d8ded..59a6d25 100755 --- a/password.php +++ b/password.php @@ -35,13 +35,13 @@ // Если пришли по ссылке из письма if ($c = $simpla->request->get('code')) { - // Код не совпадает - прекращяем работу + // Код не совпадает - прекращаем работу if (empty($_SESSION['admin_password_recovery_code']) || empty($c) || $_SESSION['admin_password_recovery_code'] !== $c) { header('Location:password.php'); exit(); } - // IP не совпадает - прекращяем работу + // IP не совпадает - прекращаем работу if (empty($_SESSION['admin_password_recovery_ip'])|| empty($_SERVER['REMOTE_ADDR']) || $_SESSION['admin_password_recovery_ip'] !== $_SERVER['REMOTE_ADDR']) { header('Location:password.php'); exit();