slawkens
d25c71857f
Do not require init.php in cache:clear command
2025-03-30 07:10:05 +02:00
slawkens
1a5771ad51
Fix migrate:run command
2025-03-16 20:33:53 +01:00
slawkens
4b6024dc45
Save settings in a transaction
2025-02-02 22:36:18 +01:00
slawkens
4fda4f643b
feat: Settings: password input with hide/show options
2025-02-02 21:55:16 +01:00
slawkens
19686725dc
Add HOOK_INIT, executed just after $hooks are loaded
2025-02-02 16:17:49 +01:00
slawkens
ea51ad27c3
Fix online status + vocation for TFS 0.x
2025-02-01 00:35:22 +01:00
slawkens
0904b1bb87
Fix phpstan
2025-01-13 22:23:43 +01:00
slawkens
175c2a1f89
Fix PhpStan
2025-01-09 22:52:30 +01:00
slawkens
3b5be1a8db
Add player->outfit_url attribute
2025-01-09 22:41:34 +01:00
slawkens
99262c3ebd
Fix DataLoader Towns cache
2025-01-07 15:03:39 +01:00
Slawomir Boczek
3f6ff3a332
Feature migrations up/down ( #270 )
...
* Migrations up down
* Add forum model
* Syntactic sugar for db structure changes
* Refactor migrations with $up & $down
* Fix migrations upgrade and downgrade
+ Add option to disable auto migrate
* Add migrate:to command
Usage: php aac migrate:to x (x - database version)
* Show error when mail is not enabled
* Fixes regarding to init.php
* Add migrate command to manually upgrade db, incase auto migrate is disabled
* Fixed rest of the migrations
* Limit max version of database
* Don't allow minus number
* Option to clear specified plugin settings by name
* Version is required
* Fix PHPStan errors
* Unset $up after migration, to prevent executing same migration twice
* Add database version to output
* This is not needed
* Update 5.php
* Set database_auto_migrate on install
* Set blank & color only if current db version supports it
* Fix duplicate function declaration
2024-11-22 15:29:23 +01:00
slawkens
afb055f2dc
More obvious name for parameter in -> installMenus
2024-11-19 14:21:15 +01:00
slawkens
8055785c81
Fix installMenus function
2024-11-19 07:48:52 +01:00
slawkens
64e4c08950
MyAAC\Cache
2024-11-19 07:19:43 +01:00
slawkens
12d8faa3ed
Do not clear menus by default
2024-11-19 07:05:27 +01:00
slawkens
a2fadc5945
Fixes to installMenus function
2024-11-18 23:48:03 +01:00
slawkens
36bd3eb846
New hooks for news management
...
Can be used for example as discord hooks
2024-11-12 22:01:00 +01:00
slawkens
941846605c
Prefer get_browser_real_ip() over REMOTE_ADDR
2024-11-12 20:59:51 +01:00
slawkens
7e67e11e16
More understandable argument name
2024-11-10 20:25:42 +01:00
slawkens
011a85d8ae
new hook: HOOK_ADMIN_NEWS_ADD
2024-11-10 20:25:17 +01:00
slawkens
c980a09146
Rewrite towns loading code, removed OTBM loader (was too slow)
...
By default load from towns table in db
2024-11-07 19:07:15 +01:00
slawkens
c49c9d99a9
Fix PHP Fatal error
2024-10-27 20:40:48 +01:00
slawkens
c6cc84a668
Fix RateLimit when cache is disabled
2024-09-19 21:25:54 +02:00
slawkens
95a7c23a70
Use PHP 8 functions
2024-09-14 11:48:56 +02:00
slawkens
a7fe400614
Use Validator::characterName
2024-09-14 11:48:43 +02:00
slawkens
93641fc68a
New hooks in account manage + create
2024-09-08 15:03:18 +02:00
slawkens
d99b22f98b
Fix attempts counting
2024-08-26 15:19:37 +02:00
slawkens
35e28350bd
Change spaces to tabs
2024-08-26 15:19:17 +02:00
Gabriel Pedro
327dcb5f87
feat: ratelimit ( #267 )
...
* feat: rate limit settings
* fix: section label
* fix: real ip
* fix: real ip
2024-08-26 14:53:09 +02:00
Jonatas
760c3ab017
Highscore frags fixed for TFS 0.3 ( #263 )
2024-08-16 18:19:44 +02:00
slawkens
1843728930
Rename to playerSample
2024-07-23 08:07:59 +02:00
slawkens
5f63c3b227
Invalidate cached setting
2024-07-09 23:33:00 +02:00
slawkens
33a47137c9
Fix hooks priority default
2024-06-29 15:09:44 +02:00
slawkens
dc17b701da
feat: Hooks priority
2024-06-29 14:05:06 +02:00
slawkens
a8d255c04b
feat: Plugins pages: subSubFolders
2024-06-14 08:07:52 +02:00
slawkens
c7a6a539a9
Another approach to fix duplicates - priorities
...
Priority description: (lower number - higher priority)
1-99 Highest priority - overrides everything, even pages from database, use with caption
100 - default for pages in database
101-999 - recommended range for plugins
1000 - default value for plugins if no other specified
1001 - 9999 - no usage currently
10000 - default myaac routes
2024-06-13 21:35:47 +02:00
slawkens
c1d4b4f80c
Make autoload of pages, commands and themes configurable
...
Not everyone might want them to autoload
2024-06-13 14:36:18 +02:00
slawkens
d9c1b2507c
Create guild_rank entries, in case MySQL trigger not loaded
2024-06-13 12:51:29 +02:00
slawkens
4c0739d3e9
Fixed fastRoute duplicate errors
2024-06-13 11:29:06 +02:00
slawkens
9ea2a5067f
Order towns by id
2024-06-05 15:10:55 +02:00
slawkens
45dda5e834
Add HOOK_ACCOUNT_CREATE_CHARACTER_* hooks
2024-05-31 22:59:52 +02:00
slawkens
d3f03fa735
Better place for INSTALL_FINISH hook
2024-05-31 19:21:37 +02:00
slawkens
8ef3d06f1e
Fix duplicated routes
2024-05-31 17:22:39 +02:00
slawkens
08ac8ebade
Add HOOK_INSTALL_FINISH
2024-05-30 11:31:41 +02:00
slawkens
968899ef77
Pass $playerSample as parameter to hook
2024-05-30 10:09:31 +02:00
slawkens
a4d11c1a12
Rename variables
2024-04-16 10:45:34 +02:00
slawkens
127e03081c
Support for subfolders in plugins/pages
2024-04-15 21:21:16 +02:00
slawkens
1186f94e21
Add Twig TypeCastingExtension
2024-04-08 10:08:48 +02:00
Slawomir Boczek
fe7ad61abe
phpstan support ( #250 )
...
* phpstan v1 + workflow
* Fix intend
* More fixes
* Update phpstan.neon
* phpstan level 2
* Move errors ignoring into phpstan.neon
* phpstan level 3
* Don't ignore templates folder
* Something from level 4
* Update phpstan.neon
2024-02-18 14:59:25 +01:00
slawkens
647eae08b4
Display error message if config.local.php is not writable
2024-02-04 10:10:04 +01:00