From aea65632852b0b01a3e96f0a8962f22fc1385f4f Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Mon, 10 Dec 2018 18:20:34 +0200 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=88=D0=B8=D0=B1=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=B2=20=D1=80=D0=B0=D1=81=D1=81=D1=87=D1=91=D1=82=D0=B0=D1=85?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=B2=D1=82=D1=80=D0=B0=D1=88=D0=BD=D0=B5=D0=B3?= =?UTF-8?q?=D0=BE=20=D1=87=D0=B8=D1=81=D0=BB=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rememberpassword.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rememberpassword.php b/rememberpassword.php index c82ec92..bcd6129 100644 --- a/rememberpassword.php +++ b/rememberpassword.php @@ -25,7 +25,7 @@ $login = filter_input(INPUT_POST, 'loginid', FILTER_SANITIZE_SPECIAL_CHARS); if ($login) { $sql = db::c()->query('SELECT `login`, `email` FROM `users` WHERE `login` = "?s"', $login)->fetch_assoc(); $newpass = random_password(); - $lasttime = date('Y-m-d', strtotime($Date . ' + 1 days')); + $lasttime = date('Y-m-d', strtotime('+1days')); $ip = $_SERVER['REMOTE_ADDR']; if ($sql['login'] && db::c()->query('INSERT INTO `confirmpasswd` (`login`, `passwd`, `date`, `ip`, `active`) VALUES ("?s", "?s", "?s", "?s", "?s")', $sql['login'], $newpass, $lasttime, $ip)) {