From eb439b278ca10f028bf92d453cd72e57ffd94ef7 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Mon, 13 Mar 2023 17:46:54 +0300 Subject: [PATCH] =?UTF-8?q?=D1=91=D0=B1=D0=B0=D0=BD=D1=8B=D0=B9=20=D0=B2?= =?UTF-8?q?=20=D1=80=D0=BE=D1=82=20=D0=B0=20=D1=84=D0=B0=D0=B9=D0=BB=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B1=D1=8B=D0=BB=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/Models/Entities/User.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Web/Models/Entities/User.php b/Web/Models/Entities/User.php index ace69699..ed1e3e60 100644 --- a/Web/Models/Entities/User.php +++ b/Web/Models/Entities/User.php @@ -1009,6 +1009,15 @@ class User extends RowModel return true; } + function updOnline(string $platform): bool + { + $this->setOnline(time()); + $this->setClient_name($platform); + $this->save(); + + return true; + } + function changeEmail(string $email): void { DatabaseConnection::i()->getContext()->table("ChandlerUsers")