slawkens
eca896954c
Every setting needs to have default
2023-08-04 15:47:32 +02:00
slawkens
0f9b217567
Fix default value displaying
2023-07-22 15:01:00 +02:00
slawkens
20dd49b1c5
Add new possibility: to deny saving setting if condition is not met
2023-07-22 14:37:57 +02:00
slawkens
a2fcb21b4f
Improve character npc name check
2023-07-22 11:35:05 +02:00
slawkens
b05780529a
fixes
2023-07-22 11:17:58 +02:00
slawkens
da19a34335
New create character checks configurable: block monsters & spells names
2023-07-22 11:10:07 +02:00
slawkens
ea21e27cdc
Fix for install warning - min/max length
2023-07-22 11:03:59 +02:00
slawkens
aad175548a
create character name config moved to settings
2023-07-22 10:57:42 +02:00
slawkens
191137282b
Create character blocked words (by @gpedro), just moved to settings
2023-07-22 10:33:20 +02:00
slawkens
f35aba10ed
Merge branch 'develop' into feature/settings
2023-07-22 09:58:38 +02:00
Gabriel Pedro
3c3ddc4578
feat: custom words blocked ( #190 )
...
* Update config.php
* Update validator.php
* Update config.php
2023-07-22 09:54:03 +02:00
slawkens
1543dd864e
Save config.php in Settings
...
Egg and hen problem solved :)
* Test database connection on save settings -> prevents from making website unusable if connection is wrong
* Test server_path -> same
There is no config.php anymore, just config.local.php, which can be edited manually and also from admin panel
2023-07-21 11:38:52 +02:00
slawkens
399f263b42
Rename variable
2023-07-21 06:05:33 +02:00
slawkens
978090c8ae
More config to settings: account_types, genders, highscores, admin
2023-07-20 20:24:07 +02:00
slawkens
ac3a6c36d5
Remove whitespaces
2023-07-20 18:13:06 +02:00
slawkens
a8a2c72381
Move status config to settings
2023-07-20 18:12:22 +02:00
slawkens
55a5ccdd1e
Move forum config to settings
2023-07-20 16:36:59 +02:00
slawkens
afa1adb90b
Add settings.callbacks.get
2023-07-13 16:47:09 +02:00
slawkens
e83880653a
Extract Settings:save function
2023-07-13 15:29:19 +02:00
slawkens
4af944a00b
Change variable name
2023-07-13 15:20:13 +02:00
slawkens
c7c8ff266b
Hide section title on show_if
2023-07-13 12:10:07 +02:00
slawkens
c886384f2c
Merge branch 'develop' into feature/settings
2023-07-08 19:16:22 +02:00
slawkens
24ff5684cd
More changes to deleted characters (Account, guilds)
...
Account: Cannot change name, comment, gender
+ Cannot be deleted if owns a guild
Guilds: Cannot create, cannot be invited, cannot accept invite, cannot be passed leadership to
2023-06-30 17:27:31 +02:00
slawkens
aab62fb724
Important fix: Not allow create char if limit is exceeded (by @anyeor )
...
Could have been used to spam database, now it doesn't ignore deleted characters
He is not my brother :P Just same last name
2023-06-30 17:25:32 +02:00
SRNT-GG
76bfab1303
WIP - Removing unneccessary closing tags to prevent potential issues. ( #223 )
...
* Part 1
Removing closing tags when no HTML or other output comes after the last PHP codeblock.
* Further removals
* nothing
---------
Co-authored-by: slawkens <slawkens@gmail.com>
2023-06-15 21:06:22 +02:00
slawkens
cd22f8def5
Use Whoops only if installed, otherwise use myaac exception handler
2023-06-02 15:20:07 +02:00
slawkens
7c2c88f780
Add Whoops exception handler (nicer debug info in dev mode)
...
On production = no errors
2023-05-29 08:55:26 +02:00
slawkens
2f8ee7a7eb
Add new function: only_if, to hide fields when they are not enabled [WIP]
...
Not fully finished yet
2023-05-17 06:07:52 +02:00
slawkens
7aff4557a6
Lets call it settings.name instead
2023-05-16 14:17:21 +02:00
slawkens
52dc459704
Better boolean detection
2023-05-16 12:46:45 +02:00
slawkens
dc3477d68d
Nothing important
2023-05-16 12:46:02 +02:00
slawkens
24ab125d28
Add Settings menu, including all plugins with settings
...
One change included in previous commit, due to missclick
2023-05-16 11:44:13 +02:00
slawkens
939508e799
Re-enable plugin if disabled and already installed
2023-05-16 11:41:44 +02:00
slawkens
433ccff851
Add min, max, step to number field option
2023-05-16 11:37:38 +02:00
slawkens
7929967ddc
[WIP] More work on settings
...
Move more config to settings (mainly mail_* + some other)
Remove mail_admin, wasnt used anywhere
Add return type to some functions
Add Twig settings(key) function
Possibility to save setting to db
2023-05-15 23:14:13 +02:00
slawkens
449fc2c1cf
Fix path
2023-05-15 17:05:30 +02:00
slawkens
1fa6788310
[WIP] Some work on settings
...
Add hidden settings
New method: parse, to parse settings from array
Move base html to twig template
Remove vocation loading from .xml, instead use predefined voc names
2023-05-15 00:22:27 +02:00
slawkens
034c369ddb
Update plugins.php
2023-05-09 21:54:00 +02:00
slawkens
40c00a1434
Merge branch 'develop' into feature/settings
2023-05-08 13:05:22 +02:00
Matheus Collier
fd419076c2
[UPDATE] Adding monster looks to db ( #220 )
...
* [UPDATE] Adding monster looks to db
* small adjustments
add into schema.sql + change position in table
* add DEFAULT = ''
---------
Co-authored-by: slawkens <slawkens@gmail.com>
2023-03-31 09:04:13 +02:00
slawkens
7569536d56
Fix when server uses another items serializer
2023-03-26 00:27:16 +01:00
slawkens
9d78a3b5cf
more php 8.x compatibility
2023-02-18 21:22:54 +01:00
slawkens
e17cd78153
fix player save on tfs 1.5 with new ipv6
2023-02-18 20:57:44 +01:00
slawkens
0002543cca
feature: Cache::remember($key, $ttl, $callback) + example usage
2023-02-18 08:53:42 +01:00
slawkens
6625768228
Remove accounts.blocked
2023-02-18 07:14:51 +01:00
slawkens
a98cb66c53
feature: visitors counter shows now user browser, and also if its bot
2023-02-17 18:41:25 +01:00
slawkens
6785ecad1d
Ignore case on plugin route method
2023-02-17 17:54:38 +01:00
slawkens
c7ec1f44e9
Option to enable/disable plugin by renaming file + cleanup
...
new function: getAllPluginsJson
removeComments removed - json doesnt allow for comments anyway
2023-02-16 06:57:46 +01:00
slawkens
8985917a96
Fixes to account number
2023-02-14 18:28:31 +01:00
slawkens
07486762dc
Add categories in tabs, move more settings, revert back getPluginSettings
...
Categories and sections are now not numbered
Remove example settings plugin
2023-02-14 16:03:22 +01:00