From 84b37f6ab2d81c52c088cebe6d6b6fd131958942 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Wed, 17 Jul 2024 05:00:53 +0300 Subject: [PATCH] endmoderation setting --- app/Services/Date.php | 3 +- views/components/AdminSidebar.php | 82 +---- views/components/LoadHead.php | 2 +- views/pages/Admin/General.php | 37 +++ views/pages/Admin/Index.php | 487 +---------------------------- views/pages/Admin/Photo.php | 75 +++++ views/pages/Admin/UserEdit.php | 49 +++ views/pages/Profile/LK/History.php | 10 +- 8 files changed, 175 insertions(+), 570 deletions(-) create mode 100644 views/pages/Admin/Photo.php create mode 100644 views/pages/Admin/UserEdit.php diff --git a/app/Services/Date.php b/app/Services/Date.php index 830158a..89c03b9 100644 --- a/app/Services/Date.php +++ b/app/Services/Date.php @@ -7,7 +7,7 @@ class Date { $currentTime = time(); $dateDiff = $currentTime - $date; - + if ($date != null) { if ($dateDiff <= 1) { return "только что"; } elseif ($dateDiff <= 60) { @@ -22,6 +22,7 @@ class Date return self::formatDate($date); } } + } private static function getAgoSuffix($value) { diff --git a/views/components/AdminSidebar.php b/views/components/AdminSidebar.php index dadd239..a70fa73 100644 --- a/views/components/AdminSidebar.php +++ b/views/components/AdminSidebar.php @@ -19,94 +19,16 @@ use \App\Core\Page; - Общая информация + Пользователи
  • - Фотография + Фотографии
  • -
  • -
    - - - - - - - - - - - - - Аккаунт -
  • -
  • -
    - - - - - - - - Приватность -
  • -
  • -
    - - - - - - - - Уведомления -
  • -
  • -
    - - - - - - Сессии -
  • - -
  • -
    - - - - - Чёрный список -
  • - - - - \ No newline at end of file diff --git a/views/components/LoadHead.php b/views/components/LoadHead.php index 0bd3d58..71413a7 100644 --- a/views/components/LoadHead.php +++ b/views/components/LoadHead.php @@ -60,7 +60,7 @@ } .progress-bard { - background-color: var(--theme-bg-color); + background-color: #fff; width: 0%; display: block; height: inherit; diff --git a/views/pages/Admin/General.php b/views/pages/Admin/General.php index e69de29..66a0890 100644 --- a/views/pages/Admin/General.php +++ b/views/pages/Admin/General.php @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + content('premoderation') === true) { + $prem = 'Да'; + } else { + $prem = 'Нет'; + } + echo ' + + + + + + + '; + } + ?> + +
    IDНикнеймПочтаПрямая загрузка
    '.$u['id'].''.$u['username'].''.$u['email'].''.$prem.'
    \ No newline at end of file diff --git a/views/pages/Admin/Index.php b/views/pages/Admin/Index.php index d86021a..213cc2c 100644 --- a/views/pages/Admin/Index.php +++ b/views/pages/Admin/Index.php @@ -79,492 +79,7 @@ use App\Services\{Router, Auth};
    - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - - - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf - dfgfgdfggdfdgf -
    + diff --git a/views/pages/Admin/Photo.php b/views/pages/Admin/Photo.php new file mode 100644 index 0000000..da25ff9 --- /dev/null +++ b/views/pages/Admin/Photo.php @@ -0,0 +1,75 @@ + + + + + +

    Журнал

    + + +
    +
    Требуют рассмотрения
    +
    Принято
    +
    Принято условно
    +
    Принято как временное
    +
    Задержано до исправления замечаний
    +
    Не подходит для сайта
    +
    Удалено
    +


    +
    + + + + + + + + + + + + + + + '; + } + ?> + + + +
    ИзображениеИнформацияПокинуло очередь
    + + + + + +

    '.htmlspecialchars($p['place']).'

    +

    '.Date::zmdate($p['posted_at']).'
    Автор: '.htmlspecialchars($author->i('username')).'

    + +
    + '.Date::zmdate($p['timeupload']).'
    Оценка
    И+ К+
    + +
    +

    + + + + + + \ No newline at end of file diff --git a/views/pages/Admin/UserEdit.php b/views/pages/Admin/UserEdit.php new file mode 100644 index 0000000..ed0025d --- /dev/null +++ b/views/pages/Admin/UserEdit.php @@ -0,0 +1,49 @@ +i('id') === null) { + die('Пользователь не найден'); +} + +?> +
    + +

    i('username')?>

    +

    Был в сети: i('online')) ?> i('online')) { ?>(online)

    +

    Ссылка на профиль: https:///author/

    +
    + +

    Настройки

    + + + +
    Прямая загрузка
    + +
    Статус аккаунта
    + +
    Фотомодератор
    + + +
    +
    + +

    Операции

    + + + + +
    + +
    + +
    \ No newline at end of file diff --git a/views/pages/Profile/LK/History.php b/views/pages/Profile/LK/History.php index 0815780..2767f1a 100644 --- a/views/pages/Profile/LK/History.php +++ b/views/pages/Profile/LK/History.php @@ -68,8 +68,14 @@ use \App\Models\User; - - '.Date::zmdate($p['timeupload']).'
    Оценка
    И+ К+
    + '; + if ($p['endmoderation'] === -1) { + $endm = 'На модерации'; + } else { + $endm = Date::zmdate($p['endmoderation']).'
    Оценка
    И+ К+
    '; + } + echo ' + '.$endm.' ';