* skip premdays and lastdays calculation when premdays = 65535 (gratis premium in TFS)
* TFS consider 65535 as gratis premium account and PHP_INT_MAX does not assume this value
* adds condition of premdays=65535 and standardize the label "gratis premium account" with tibia client
* adjust the label "days" when there is only one day of premium account
* adjusted premium account status
* Some small adjustment
* Sorry, typo.
Co-authored-by: slawkens <slawkens@gmail.com>
(cherry picked from commit 9d7854dda62468e420c26a6e531bacf47351f499)
-Admin menu updates
-Moved getchangelogtype/where to functions file and added to twig
-Added changelog editor to admin panel and updated changelog page
-Renamed the changelog md reader to clmd and edited the version file.
I noticed if the datatables files wasn't cached some pages that didn't use it would take slightly longer to load whilst it downloaded it.
This will only write the js and css files onto the page if $use_datatable = true; is set on the page.
See accounts/news/players pages for examples.
It wasn't a massive performance loss for the user but not needed if those pages are hardly ever used.
- Updated Admin Panel to Bootstrap 4.
- Code cleanup
- Rewrote menu generation code
- Added top 10 coins, top 10 premium points, last 10 logins to modules page.
- Added full account list to Account editor
- Added load outfits from XML to player editor and lists all enabled outfits in editor (will default to textbox if array of outfits do not exist)
- Added tabs to account editor - account, characters,store history, bans(this is based off the bans.php page so will not work on TFS 0.2/1.0)
- Updated datepickers to display the actual date rather than unix time.
- Added last 10 posts to player editor
Fix when there is no account name, just accoun tid
Fix when group and secret column does not exist
Fix save premium days on TFS 1.2
Remove lastlogin - should not be possible to change