From 4571b24fce6d7bb2bdc338c207c5d640d333c005 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Tue, 5 Jul 2022 23:56:27 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=20=D0=BC=D0=B5=D1=85=D0=B0=D0=BD=D0=B8=D0=B7?= =?UTF-8?q?=D0=BC=20=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/sqldialects.xml | 3 + admin/profile.php | 32 ++++++-- admin/users.php | 2 +- core/SQL_DUMPS/files.sql | 10 +++ core/SQL_DUMPS/roles.sql | 50 +---------- core/SQL_DUMPS/threads.sql | 20 +++++ core/SQL_DUMPS/threads_history.sql | 18 ++++ core/SQL_DUMPS/user_roles.sql | 66 +-------------- core/SQL_DUMPS/users.sql | 38 +++++---- core/lib/Core/Helpers/Migration.class.php | 91 ++++++++++++++++++++ core/migrations/000000_base.sql | 11 +++ core/migrations/000001_core.sql | 96 ++++++++++++++++++++++ core/migrations/000002_users.sql | 29 +++++++ core/migrations/000003_roles.sql | 12 +++ core/migrations/000004_user_roles.sql | 9 ++ core/migrations/000005_files.sql | 7 ++ core/migrations/000006_threads.sql | 17 ++++ core/migrations/000007_threads_history.sql | 15 ++++ core/partizan.php | 80 ++++++++++++++++++ 19 files changed, 471 insertions(+), 135 deletions(-) create mode 100644 core/SQL_DUMPS/files.sql create mode 100644 core/SQL_DUMPS/threads.sql create mode 100644 core/SQL_DUMPS/threads_history.sql create mode 100644 core/lib/Core/Helpers/Migration.class.php create mode 100644 core/migrations/000000_base.sql create mode 100644 core/migrations/000001_core.sql create mode 100644 core/migrations/000002_users.sql create mode 100644 core/migrations/000003_roles.sql create mode 100644 core/migrations/000004_user_roles.sql create mode 100644 core/migrations/000005_files.sql create mode 100644 core/migrations/000006_threads.sql create mode 100644 core/migrations/000007_threads_history.sql create mode 100644 core/partizan.php diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml index 40faa6d..a311b0e 100644 --- a/.idea/sqldialects.xml +++ b/.idea/sqldialects.xml @@ -1,6 +1,9 @@ + + + \ No newline at end of file diff --git a/admin/profile.php b/admin/profile.php index 27578f5..b07dbe1 100644 --- a/admin/profile.php +++ b/admin/profile.php @@ -6,8 +6,14 @@ use Core\Models\File; use Core\Helpers\Thumbs; + global $USER; + if (isset($_REQUEST['userId']) && !empty($_REQUEST['userId'])) { + $objectUser = new User($_REQUEST['userId']); + } else { + $objectUser = $USER; + } ?>