dev-moderation #66

Merged
lopar merged 29 commits from dev-moderation into dev 2023-12-09 14:14:38 +00:00

29 Commits

Author SHA1 Message Date
38c0e292ac Refactor autoload path creation in autoload.php
In this commit, code in autoload.php has been refactored to improve readability by using DIRECTORY_SEPARATOR for creating file paths. This ensures cross-platform compatibility. Additionally, added 'function' directory to class autoload procedure to facilitate future function based autoloads.
2023-12-09 15:51:08 +02:00
a9265dc4d8 Refactor code to improve maintainability and readability
This commit introduces changes aimed at enhancing code maintainability and readability. The most significant was moving code responsible for various future checks into a separate file to reduce clutter. Additionally, the code has been cleaned up, removing excessive spacing and redundancies.
2023-12-09 15:47:09 +02:00
6b0bbcd7ee Refactor and optimize main.php script
The code cleanup included removing unnecessary lines and optimizing existing code snippets for better performance and readability. The script now uses a more efficient method of item generation and item pickup. The image loading process was revamped to provide a more efficient and user-friendly experience. Lastly, the HTML was reformatted into HEREDOC syntax for better readability.
2023-12-08 19:32:22 +02:00
dac8ffef5d Refactor _mod.php by stripping out conditional moderator statements. The update centralizes authorization checks for various moderation actions such as blocking users and appointing new moderators. It also optimizes several lines in the code by suppressing unnecessary components. The old method of using 'admin' has been replaced by an object-oriented 'm' class to streamline and improve code maintenance. 2023-12-08 18:56:26 +02:00
8c4778c093 Remove conditional moderator check in _mod.php 2023-12-08 18:15:50 +02:00
1cf5f5b2a0 Cleaned up the code in main.php and _mod.php to simplify the handling of user roles and permissions. The previous alignment-based role assignments have been streamlined into a single "moderation" action. 2023-12-08 18:14:29 +02:00
9912955775 Refactor code and move admin user registration into separate class.
The new class, named UserRegistrationList, aims to handle user registrations specifically for administrators. Some superfluous code has been removed for better readability and efficiency, and replaced with simplified CSS styles and SQL queries. The use of Core\Db and Moderation\UserRegistrationList has been introduced to improve the structure and organization of the code.
2023-12-08 17:56:55 +02:00
cda265c799 Регистрации персонажей только для администраторов в отдельный класс. 2023-12-08 17:55:40 +02:00
99341cfd07 Перенос разрозненных файлов в фабрику. Утилизация неиспользуемых функций. #49
Переводы и добавление в ЛД надо писать заново потому что вот зачем ОКАЗЫВАЕТСЯ были нужны сокращения, которые удалялись из логов последние два года - для сортитровки выдачи вот в этом файле. :(
2023-12-08 15:20:27 +02:00
580de8ea3f Перенос разрозненных файлов в фабрику. Утилизация неиспользуемых функций. #49 2023-12-08 13:39:20 +02:00
7a5fd62f1e Перенос разрозненных файлов в фабрику. Утилизация неиспользуемых функций. #49 2023-12-05 03:01:04 +02:00
98f4cbcef3 Будущие проверки переводов отдельным файлом. 2023-12-02 03:06:29 +02:00
7faf7132a5 Временная реализация снятия молчанок. 2023-12-02 03:00:05 +02:00
ded2949067 Выпуск из тюрьмы 2023-12-02 02:37:58 +02:00
009d3487b9 Разблокировка 2023-12-02 02:31:27 +02:00
9985d2f20c Убраны mysql_query. 2023-12-02 02:23:36 +02:00
b69f57a73a Удалены проверки на чистоту. 2023-12-02 02:18:44 +02:00
93eb62ca15 Невидимка 2023-12-02 02:12:34 +02:00
26c3d2abdd Чатомолчанка. 2023-12-02 02:09:46 +02:00
00c0641591 Хаос повержен! :D 2023-12-02 01:55:59 +02:00
cc6b7e6c98 Ненужная переменная. 2023-12-02 01:50:52 +02:00
6bc3b5bc29 Обезлик. 2023-12-02 01:47:21 +02:00
6c6a0b1038 Блокировка. 2023-12-02 01:34:49 +02:00
916f985c60 Тюрьма. 2023-12-02 01:27:42 +02:00
4e7890511c Снятие обезличивания. 2023-12-02 00:47:20 +02:00
eb279a8eff Пишем действия в дело. Тип 10 взят наугад. 2023-12-02 00:28:59 +02:00
c487c8b465 Merge branch 'dev' into dev-moderation 2023-12-01 23:37:51 +02:00
80fb8fe835 Процесс работы над #49. Все заранее оговоренные модераторские функции в одном флаконе. (фикс кодировок) 2023-06-12 02:32:14 +03:00
e77fbaca4f Процесс работы над #49. Все заранее оговоренные модераторские функции в одном флаконе. 2023-06-12 02:30:50 +03:00