slawkens
fa6b6aa153
Display more info when error parsing config.lua value
2025-04-04 20:07:42 +02:00
slawkens
c2f55791c0
Nothing important, just better code style
2025-03-03 20:07:59 +01:00
slawkens
887b5068ad
Fix house links
2025-02-15 12:15:35 +01:00
slawkens
4c5cc8b573
Change monster link to $_GET ?name=
2025-02-15 12:03:44 +01:00
slawkens
b46ddb43d0
Twig session(key) function + reworked session functions to accept multi-array like in Laravel
...
Important: getSession returns NULL now instead of false if session value not found
2025-02-02 16:16:59 +01:00
slawkens
ea51ad27c3
Fix online status + vocation for TFS 0.x
2025-02-01 00:35:22 +01:00
slawkens
cbe0d187b4
Formatting and types hint
2025-01-20 16:31:54 +01:00
slawkens
dc2b5afd99
functions_custom.php are not optional
2025-01-17 17:12:21 +01:00
slawkens
b02c7f4239
Fix note message
2025-01-14 19:29:47 +01:00
slawkens
3b5be1a8db
Add player->outfit_url attribute
2025-01-09 22:41:34 +01:00
slawkens
c769962e39
Refactor getTopPlayers function
...
* Option to getTopPlayers by balance
* use Cache::remember
2025-01-09 22:40:57 +01:00
slawkens
8e501c0e9c
Shorten code with Cache::remember
2025-01-09 15:50:33 +01:00
slawkens
8e0978c1ed
Adjustments regarding accounts.id in admin panel -> Accounts editor
...
getAccountIdentityColumn() function
2024-12-19 22:32:05 +01:00
slawkens
84d37c5a8f
Allow OTS_Player to be passed as object to getPlayerLink
2024-11-17 18:07:10 +01:00
slawkens
35e28350bd
Change spaces to tabs
2024-08-26 15:19:17 +02:00
slawkens
39e682dfd2
htmlspecialchars seems to be better here (?)
2024-05-16 18:58:54 +02:00
slawkens
6807339056
Colored (online/offline) player links
2024-04-01 23:33:00 +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
fdd3bfd105
Fix config_lua reloading, cache clear problem
2024-02-17 16:43:21 +01:00
slawkens
ccfd2b4f55
Rename creatures to monsters
2024-02-03 20:54:09 +01:00
slawkens
13a2570ad0
Remove old approach of showing errors to users in database pages
...
Currently handled by config.env
2024-01-30 23:04:53 +01:00
slawkens
e961f2efcf
fix: missing semicolon
2024-01-30 23:02:26 +01:00
slawkens
54609bf90e
phpstan adjustments
2024-01-30 23:01:18 +01:00
slawkens
6494bd2c0c
Add optional $return = false parameter to the csrf function
2024-01-30 22:40:40 +01:00
slawkens
25c0bac7a3
Cache clear hook
2024-01-27 20:30:15 +01:00
slawkens
87df817eae
Another way to clear database cache
2024-01-27 19:27:25 +01:00
slawkens
f7f46bae00
OK so that was that
2024-01-27 18:58:19 +01:00
slawkens
6d23b285c1
Fixes for PHP 8.3
2024-01-27 17:27:05 +01:00
slawkens
d71bab648d
Change hidden to hide (Eloquent blocked keyword)
2024-01-27 16:54:48 +01:00
slawkens
41022727bd
Fixes to csrf protection
2024-01-27 15:35:24 +01:00
slawkens
f0eb113bc2
Refactor clearCache function
2024-01-27 09:02:38 +01:00
slawkens
2262c4e882
Clear additional keys on cache clear
2024-01-27 08:18:50 +01:00
slawkens
1a6fb8bee2
Refactoring classes into src/ folder, so they will be auto-loaded by composer
2024-01-27 00:36:49 +01:00
slawkens
f719c02050
Feature: auto-load themes (previously templates) from plugins/*/themes/*
2024-01-25 23:06:10 +01:00
slawkens
b1224d9d1a
clearRouteCache on database pages change
2023-11-25 13:37:24 +01:00
slawkens
f008591580
Make links in settings desc clickable
2023-11-11 21:16:34 +01:00
slawkens
556ef47d59
Towns & NPCs & Items should be persistent
2023-11-11 12:04:21 +01:00
slawkens
d582120fac
Squashed commit of the following:
...
commit 94a61f32ae20d6b772ac90ef68ff983e1a082422
Merge: 57772569 8227303b
Author: slawkens <slawkens@gmail.com>
Date: Sat Nov 11 11:11:13 2023 +0100
Merge branch 'develop' into feature/debug-bar
commit 577725690d177c6bb3af440e51b27a81b1723818
Author: slawkens <slawkens@gmail.com>
Date: Mon Aug 21 11:08:12 2023 +0200
Add option to enable debugbar, even if dev mode is disabled
commit c227fd4e9655f2dd7c1de0955f99e607c6881cbf
Merge: 9fef84bf a692607c
Author: slawkens <slawkens@gmail.com>
Date: Mon Aug 21 10:20:04 2023 +0200
Merge branch 'develop' into feature/debug-bar
commit 9fef84bffe63eb7bf0fcf68811873393164cb543
Author: slawkens <slawkens@gmail.com>
Date: Fri Aug 11 06:39:50 2023 +0200
Fix debugBar mysql logs (Thanks @gpedro)
commit dedd54286f6f086cb78287a5c1cd0f8cc9155984
Author: slawkens <slawkens@gmail.com>
Date: Thu Aug 10 13:21:36 2023 +0200
Log PDO queries, as stated in docs, but doesn't work yet (don't know the reason)
commit 7403a24030d75e525467dcaad937a4b14fd4ffae
Author: slawkens <slawkens@gmail.com>
Date: Thu Aug 10 13:21:20 2023 +0200
Use dev-master, cause of some bugs appearing
commit cc7aec8e28c8839b2640ca9a7f62a1b4464fdbb3
Author: slawkens <slawkens@gmail.com>
Date: Thu Aug 10 13:05:02 2023 +0200
Init debugBar
2023-11-11 11:26:38 +01:00
Slawomir Boczek
790d85a88a
CSRF Protection ( #235 )
...
* Fix alert class name
* feature: csrf protection
* Cosmetics
* Fix token generate
* Admin Panel: changelogs csrf protection
* news/id route
* Refactor admin newses + add csrf
* Use admin.links instead
* Admin panel: Pages csrf
* Menus: better csrf + add success message on reset colors
* Plugins csrf
* Move definitions
* add info function, same as note($message)
* Update mailer.php
* Fix new page/news links
* clear_cache & maintenance csrf
* Formatting
* Fix news type
* Fix changelog link
* Add new changelog link
* More info to confirm dialog
* This is always true
2023-11-11 10:57:57 +01:00
slawkens
3b9feaf3bd
My fault
2023-09-26 22:03:30 +02:00
slawkens
21bff97137
Add additional cache keys to clear function
2023-09-26 21:52:05 +02:00
slawkens
89c2e84bff
Fix alert class name
2023-09-16 09:24:10 +02:00
slawkens
f76615e59b
Fix getGuildLogoById
2023-09-16 05:54:41 +02:00
slawkens
0746708743
Reviewed some settings again, fixing many glitches
2023-08-24 17:20:32 +02:00
Gabriel Pedro
a692607c5e
feat: replace POT Query Builder to Eloquent ORM ( #230 )
...
* wip
* wip
* wip
* wip
* wip
* fix: reusing pdo connection from pot
* wip
* wip
* wip
* wip
* move files
In future, all classes will be in src/ folder
* Replace namespace name, for future
* Remove duplicated exception
* Fix towns from db
* Fix spells page
* Add default FAQ question + FAQ model
* feat: reset colors in menus
* Add confirm + save button at the top (menus)
* Do not insert duplicated FAQ on install
* Refactor install menus
* Fix changelogs showing
* Fix menu update, only with specified template name
* Fix account create -> missing compat
* Fix bans_per_page
* banned_by is player_id. type = 2 is namelock in tfs 0.3
* Add getPlayerNameById, fix getPlayerNameByAccount
* Change link name
* Order by lastlogin
* fix: query optimize
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Refactor notepad.php, class was useless
* This is showing error, if the updated rows = 0
* Fix success & error class (bootstrap)
* Uncomment require migrate.php
* Some distro have owner_id
* Update Player.php
---------
Co-authored-by: slawkens <slawkens@gmail.com>
2023-08-21 10:16:58 +02:00
slawkens
14c8160020
Merge branch '0.9' into develop
2023-08-15 22:06:18 +02:00
slawkens
370cc554ad
Fix success & error class (bootstrap)
2023-08-15 22:04:43 +02:00
slawkens
2991696a60
typo
2023-08-12 13:34:53 +02:00
slawkens
a1ecdd228d
Fixes in getPlayerNameByAccountId + add getPlayerNameById
2023-08-12 13:34:25 +02:00
slawkens
16ebc1f577
Update functions.php
2023-08-10 13:05:17 +02:00