150 Commits

Author SHA1 Message Date
slawkens
f9302d4f9d Require Parsedown class through composer 2021-05-01 08:54:46 +02:00
czbadaro
ea035136e1 Gratis premium account (#156)
* 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)
2021-04-23 01:14:32 +02:00
slawkens
8b41e144f8 Open/Closed Website Status now changes dynamically 2021-01-18 02:17:39 +01:00
slawkens
a41f653e05 Move Admin module statistics to Twig 2021-01-18 02:00:46 +01:00
slawkens
b399bee3ac Cancel button should return to menus main screen 2021-01-18 01:47:56 +01:00
slawkens
8f88c82a13 Add "table-responsive d-md-table" class
Makes tables in admin panel responsive
2021-01-18 01:47:11 +01:00
slawkens
1fa4b1e660 Remove some useless maxlength attribute 2021-01-04 22:06:50 +01:00
slawkens
04a36b1d11 Rename to Recovery Key 2021-01-04 22:06:26 +01:00
slawkens
611d6f505d Add option to send mail to account with Mailer
"Send Mail" link next to Email input in account editor
2021-01-04 21:34:52 +01:00
slawkens
02d6ab5fe7 Add lastCheck full date to Server Status panel 2021-01-04 16:32:25 +01:00
Lee
bb3602073c AdminPanel updates - changelog
-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.
2021-01-04 12:23:36 +00:00
Lee
30cdb1ba73 Dashboard modules updated
More flexibility and additions on the dashboard modules.

-Statistics: Accounts, Players, Monsters, Guilds, Houses
-Website Status: Maintenance
-Server Status: name, client, map, monsters loaded, MOTD,

default:
'admin_panel_modules' => 'statistics,web_status,server_status,lastlogin,created,points,coins,balance',
2020-11-07 14:36:12 +00:00
Lee
9bc63bb55c Datatables update
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.
2020-11-07 13:53:11 +00:00
slawkens
65b4b2d183 Rename file to admin.data.html.twig 2020-10-09 23:38:33 +02:00
slawkens
94b145b215 New class: DataLoader (loads data from server)
Also combined some code responsible for loading server data
2020-10-09 23:37:24 +02:00
slawkens
b5736ad559 Rename items.php to server data.php 2020-10-09 22:29:19 +02:00
slawkens
ab3912b378 Save towns as plain PHP File in cache folder
+ Also load them on install + on reload items
= better performance when in dev mode
2020-10-09 22:27:48 +02:00
slawkens
3090989dea Fixed accounts editor for OTServ, which dont have accounts.group_id 2020-10-09 00:37:28 +02:00
slawkens
92314b8dac Fix some PhpStorm editor error message 2020-10-09 00:36:47 +02:00
Lee
e2ab301340 Update version.php
- removed extra line that is added when using a newer version than official release.
2020-05-25 23:33:06 +01:00
slawkens
af85a8b711 Display "Unknown Town" when town not found 2020-05-25 00:15:30 +02:00
slawkens
b3556c008e Add note which template menus are being edited 2020-05-24 19:34:48 +02:00
slawkens
e84933cf26 Ignore index.html in logs viewer 2020-05-10 11:45:04 +02:00
Lee
d7333b3f21 Update accounts.php
Fix for accounts.php type not found.
2020-04-06 15:08:52 +01:00
Lee
375bd58a0c Admin Update
-Account limit fix
-Player editor full player table.
2020-04-02 20:54:20 +01:00
Lee
cddd915adf Admin fixes
-login/logout error fix
-debugging code removed
2020-04-02 18:44:15 +01:00
Lee
a0afeb2a7a Update accounts.php
-Bans table error
-Fix for #114
2020-04-02 14:52:38 +01:00
Lee
eaa11c68f3 Admin Panel Updates
- 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
2020-03-31 02:03:16 +01:00
slawkens
044271ad00 Change button look 2020-02-25 21:35:09 +01:00
slawkens
4468f3dd37 Add some notice 2020-02-25 20:36:04 +01:00
slawkens
0c9219f885 Fixed CHANGELOG.md loading in Admin Panel 2020-02-25 10:33:57 +01:00
slawkens
9b3dbdc54f Save mailer error messages to file (always)
Filename: mailer-error.log
This will help debugging mail sending for new users
2020-02-15 23:57:15 +01:00
slawkens
518ae4d97a * don't install plugin when requirements are not satisfied 2020-02-15 22:41:52 +01:00
slawkens
82e64559a8 Cache newses for 1 hour
+ Merge News classes into one and move to separate file
2020-02-15 02:47:53 +01:00
slawkens
b61c6151eb This was wrong, Mr. @whiteblxk
As its not accounts table but players :)
2020-02-12 23:45:43 +01:00
slawkens
f475c671f7 Add enable_tinymce option to Pages editor 2020-02-11 01:02:46 +01:00
slawkens
8345b839e7 Add info if PHP is enabled on the admin pages 2020-02-11 00:37:42 +01:00
slawkens
c7f2cab56a Remove useless .htaccess 2020-01-15 20:57:31 +01:00
slawkens
2bd372dbaa Add index.html to prevent autoindex
This fixes #101
2020-01-15 20:55:57 +01:00
slawkens
e08557e5ae Remove myaac_hooks table, load info directly from .json files and cache them 2020-01-13 20:19:34 +01:00
tobi132
bb60d17ccc Forgot about look_addons 2019-12-09 20:52:00 +01:00
tobi132
1aa8062310 Interactive player outfit chooser 2019-12-09 20:20:22 +01:00
tobi132
711027e450 Move Admin Logs and Reports into Twig 2019-12-09 19:57:42 +01:00
tobi132
ca4f786aa8 Update copyright year 2019-12-02 19:34:44 +01:00
Evil Puncker
af1a6cf5ff Updated copyright year and SSL link
Updated year to 2019 and made all my-aac.org links go to SSL by default
2019-07-17 20:22:07 -03:00
tobi132
6a81794bba Add load time into items & weapons loading admin page 2019-07-16 08:44:21 +02:00
slawkens
e3af63bd93 * moved admin_panel_modules to config.php 2019-05-30 14:54:46 +02:00
slawkens
933b25194c * cache hooks and template menus 2019-05-25 00:18:30 +02:00
slawkens
7b1989cef2 * add clear_cache.php bin command 2019-04-23 23:50:54 +02:00
slawkens
5ad82a305e * fix othire compatibility
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
2019-04-15 23:24:44 +02:00