From 8c3b73ca9eb7419e2c36e67141e01f16241978ac Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 3 Sep 2023 21:18:58 +0200 Subject: [PATCH] Add account logs to admin panel accounts editor --- admin/pages/accounts.php | 31 +++++++++++++++++++++++++++++ system/src/Models/AccountAction.php | 14 +++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 system/src/Models/AccountAction.php diff --git a/admin/pages/accounts.php b/admin/pages/accounts.php index 66a60558..f3022e9c 100644 --- a/admin/pages/accounts.php +++ b/admin/pages/accounts.php @@ -266,6 +266,9 @@ else if (isset($_REQUEST['search'])) { + @@ -423,6 +426,34 @@ else if (isset($_REQUEST['search'])) { Cancel +
+
+ + + + + + + + + + + getId())->orderByDesc('date')->get(); + foreach ($accountActions as $i => $log): + $log->ip = ($log->ip != 0 ? long2ip($log->ip) : inet_ntop($log->ipv6)); + ?> + + + + + + + + +
#DateActionIP
date); ?>action; ?>ip; ?>
+
+