Commit Graph

245 Commits

Author SHA1 Message Date
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
490b9bc901 Merge pull request 'dev-remove-deprecated' (#65) from dev-remove-deprecated into dev
Reviewed-on: #65
2023-12-01 21:31:55 +00:00
f761c22950 Убрал вызов User->timeOut. 2023-12-01 23:27:45 +02:00
4c6a5d055b Убрал вызов User->addDelo. 2023-12-01 23:05:11 +02:00
ad80a30a5f Убрал вызов User->addItem. 2023-12-01 21:27:28 +02:00
44856fa9c1 Merge pull request 'Вызов логина персонажа по единому стандарту.' (#64) from dev-patch1 into dev
Убирает проблемы с двумя склонностями в логине. #49
Reviewed-on: #64
2023-11-30 22:58:04 +00:00
5f25fcd7e5 Вызов логина персонажа по единому стандарту. 2023-12-01 00:51:17 +02:00
774bc82556 PHPDoc 2023-11-10 17:53:17 +02:00
cf614b5fd2 Полностью похоронили mysql_*. 2023-11-10 17:52:38 +02:00
ea46cd7f35 encode 2023-11-09 19:27:55 +02:00
fc17eada24 refactor 2023-11-09 19:24:47 +02:00
1645f58a63 refactor and custom user entities 2023-11-06 02:40:12 +02:00
ce2691971b refactor and errors 2023-11-05 05:17:31 +02:00
3e753c8b93 refactor and errors 2023-11-05 04:46:07 +02:00
def933dca4 refactor 2023-11-02 15:59:07 +02:00
a14232a899 refactor 2023-10-16 16:12:16 +03:00
2abd435798 Проверка на модераторство прямиком из класса User. 2023-10-16 13:58:02 +03:00
4113c4a1da refactor php8 to use native str_starts_with(); 2023-10-16 13:52:58 +03:00
53f0e1108f refactor 2023-10-13 18:04:13 +03:00
bdbb359e20 refactor #php8 2023-10-13 18:02:45 +03:00
e0b08e0b1a Обновления запросов для пещер. 2023-09-30 23:18:09 +03:00
707d6c5c99 Оптимизация. 2023-09-30 23:17:25 +03:00
82e48d473b Статика в отдельный репозиторий. 2023-09-30 18:18:58 +03:00
7535cc657a Ремонт входа ботов в бой. 2023-09-30 17:53:26 +03:00
eb971fbc65 Пещеры заселились живностью. 2023-09-30 04:31:32 +03:00