slawkens
0da524fefe
Fix plugin install:install command
2025-06-23 00:21:41 +02:00
Slawomir Boczek
0ea247ce7e
Feature/plugins versions check ( #310 )
...
* Check plugins versions from plugins.my-aac.org/api
* Improve plugin update check messaging
Updated the success message when checking for plugin updates to clarify the source. Added an informational message when outdated plugins are found to improve user feedback.
* Use configurable API URI for plugin updates
Replaces hardcoded plugin API URI with a configurable value from config, defaulting to the official API. Also fixes a typo in the success message.
2025-06-19 16:46:22 +02:00
slawkens
e6100a1b72
New hook: HOOK_GUILDS_AFTER_MANAGE_BUTTON
2025-06-14 10:36:38 +02:00
slawkens
c074a48f24
New hook: HOOK_ACCOUNT_MANAGE_AFTER_CHARACTERS
2025-06-14 00:44:00 +02:00
slawkens
207d6bc691
feat: AutoLoad plugins init.php, by default disabled
2025-06-03 08:52:33 +02:00
slawkens
8fdea94376
Add globals into $hooks->executeFIlter
2025-06-03 08:39:48 +02:00
slawkens
c961a1ebf8
Two new hooks for pages loaded from database (custom pages)
...
HOOK_BEFORE_PAGE_CUSTOM,
HOOK_AFTER_PAGE_CUSTOM
2025-06-03 06:21:44 +02:00
slawkens
52109f5cca
Another solution
2025-05-28 14:13:04 +02:00
slawkens
4b7b121550
Try fix workflow
2025-05-28 14:08:50 +02:00
slawkens
6eda38603c
Protect against csrf in more places (accounts & guilds pages)
2025-05-24 09:52:56 +02:00
slawkens
4d8f5f31ae
Update Plugins.php
2025-05-23 09:04:48 +02:00
slawkens
7d213f479a
feat: autoload install.php
2025-05-23 08:50:38 +02:00
slawkens
e574943707
feat: autoload settings.php
2025-05-23 08:39:09 +02:00
slawkens
3befde2a1e
Do not return -1 in case of freePremium, makes things harder
2025-05-14 09:18:55 +02:00
slawkens
da15105118
Fix typo, @gpedro I hate you! :PPP
2025-05-12 17:36:34 +02:00
slawkens
620a47da72
Update Hooks.php
2025-05-08 20:05:27 +02:00
slawkens
9b75011224
New filter: HOOK_FILTER_ROUTES
2025-05-08 20:05:18 +02:00
slawkens
5b4b7b8a97
triggerFilter -> pass by reference (faster x5)
2025-05-08 20:05:08 +02:00
Slawomir Boczek
99997eb57d
Feature/twig hooks filters ( #258 )
...
* feat: Hooks filters
* Cleanup
2025-05-08 20:04:54 +02:00
slawkens
67ab425bb9
Add float & double types to the Settings
2025-05-04 09:14:30 +02:00
slawkens
d47195a787
Do not autoload sub-folders if autoload pages is disabled
2025-04-22 13:30:11 +02:00
slawkens
d0d0af289d
Refactor code + use clearCache() instead
2025-04-20 21:32:46 +02:00
slawkens
1d0c173e7d
Clear cache on plugin enable/disable, fixes some issues with plugin pages
2025-04-20 21:30:59 +02:00
slawkens
ceaa0639e6
feat: admin-pages (can add admin pages through plugins)
...
Also possibility to overwrite default myaac admin pages
2025-04-18 13:57:53 +02:00
slawkens
e6f05a2731
Plugin name is required, version is optional
2025-04-06 16:41:28 +02:00
slawkens
6c568fd36a
Fix uninstall plugin when plugin is disabled
2025-04-04 21:08:49 +02:00
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