slawkens
15d381adfd
Fixed account getPremDays() function for latest TFS
...
This fixes account management + signature
2021-02-15 20:57:24 +01:00
Lee
23b44d6c8a
#142 Guildnick fix
...
Fixes the Guildnick not showing in the guild pages.
2021-02-14 12:50:10 +00:00
slawkens
5a8bcec014
Fix installer choosing name, when config.php is not loaded yet
...
It has been almost 1 month there, seems no one is using develop branch ;)
2021-02-13 21:44:49 +01:00
slawkens
855e9aa3b9
Fix: do not count deleted characters
...
On create new character page
2021-01-20 19:46:07 +01:00
slawkens
a271edec47
Forgot this..
2021-01-20 18:03:30 +01:00
slawkens
81b293a5a6
Fixes to character name validation
...
Admin should be able to create any name
Also fixes to config.character_name_min_length being ignored
2021-01-20 18:02:07 +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
slawkens
a8a36c73e6
Fix notice about premend
2020-12-30 00:27:42 +01:00
slawkens
1ada2317fd
Add support for accounts.premium_ends_at (Latest tfs 1.x)
2020-12-30 00:10:49 +01:00
slawkens
40722c8c30
Password can now contain any characters
...
Also added limit of 29 characters (client limitation)
2020-12-30 00:10:11 +01:00
Lee
8e6bc73ca6
Creature page overhaul
...
Updates the creature pages to show more information.
You will need to reload your creatures.
-modifies database with migration 31
-small customisations are allowed via config file.
-functions added, getMonsterLink, getItemRarity, getCreatureImgPath, left, right,
-added functions to twig.
-view elements, immunities, summons, voices, loot, pushables, canpush, canwalk, runonhealth,hostile,attackable,rewardboss,defense,armor
-filter bosses
-show list as picture preview or names list
2020-12-28 16:37:03 +00:00
slawkens
95c2adc02e
Remove twig, phpmailer & semver
2020-10-27 07:35:00 +01:00
slawkens
41e24ca535
Remove .gz extension if found in map file
2020-10-27 07:25:38 +01:00
slawkens
1a36aa8904
[WIP] New GoogleReCAPTCHA code
...
Support for v3
v2-invisible doesn't work yet
2020-10-15 19:55:12 +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
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
a52396008d
Automatically load towns from .OTBM file
...
Takes up to 10 seconds for otservbr on my PC
Taken from old Smart AAC - class SpawnsReader.php
2020-10-09 00:12:07 +02:00
slawkens
40b151b4c5
Remove whitespaces
2020-10-07 23:36:21 +02:00
slawkens
1992410a7b
This info is useless
2020-10-07 23:36:10 +02:00
slawkens
f85361dbc5
Some optimisations in Plugins::installMenus
2020-09-25 07:49:26 +02:00
slawkens
cb6509d09d
Cache for 365 days if $ttl not set
2020-09-25 07:26:30 +02:00
slawkens
f09c129c6d
Remove duplicated line (in $db->select)
...
Caused some errors when using $db->select function (news editing for example)
2020-09-17 23:17:59 +02:00
slawkens
60eac97945
Fix creating very uncommon (bugged) account names
...
(cherry picked from commit 0326657d60c3f44bbd64d5cb22d4cbc5499dea88)
2020-07-07 01:23:53 +02:00
slawkens
ee49efd215
This is better way of doing the check for blank & color
2020-06-26 23:47:14 +02:00
slawkens
3368fbd058
New config: account_mail_block_plus_sign
...
Block emails with '+' signs like test+box@gmail.com (help protect against spamming accounts)
2020-06-06 19:37:05 +02:00
slawkens
2458393d22
Add Plugins::installMenus function
2020-06-06 17:33:34 +02:00
slawkens
1c6b241239
Add $limit parameter to $db->select method
2020-06-06 17:13:55 +02:00
slawkens
54dfb642b1
Fix #123 Guild Invite not working on otservbr-global
2020-06-03 21:38:17 +02:00
slawkens
40626d0f42
Revert some change I did
...
Causing "'" and "-" being accepted as first character in player name
2020-06-03 21:22:14 +02:00
slawkens
d148b71f0f
Fixes in create new character nick
...
+ fixed config.character_name_min/max_length being ignored in change_name.php
2020-05-09 14:07:53 +02:00
Lee
4e68838172
CreateChar Fix
...
-checks if name has double space on create character (#121 )
2020-05-07 19:09:56 +01:00
Lee
d281fc588b
Fixes
...
-As requested the datatables and bootstrap files have been moved into the tools folder
-Fixed spells and creatures datatable.
-Double space in name fix.
2020-05-07 01:36:56 +01:00
slawkens
87e54ac14f
Fix news not updating after adding in admin panel
2020-03-26 02:45:34 +01:00
slawkens
e7fa5eb38a
Log query time in database_log
2020-03-26 02:03:32 +01:00
slawkens
ab94d0e752
Fix OTS_House houseid parameter
2020-03-17 22:41:37 +01:00
slawkens
c991e085d4
Add $_SERVER['REQUEST_URI'] to database.log
2020-03-14 13:52:01 +01:00
slawkens
9c143a3461
Fix reloading creatures
2020-03-10 00:27:46 +01:00
slawkens
8c680608ff
Fix more PHP warnings and notices
2020-02-28 21:49:47 +01:00
slawkens
959788cee8
Cache database tables & columns for 1 hour
2020-02-27 23:10:15 +01:00
slawkens
7b75a61cdb
Support for Nostalrius
...
https://github.com/TwistedScorpio/Nostalrius
2020-02-27 22:18:39 +01:00
slawkens
0c9219f885
Fixed CHANGELOG.md loading in Admin Panel
2020-02-25 10:33:57 +01:00
slawkens
25ab4e187c
Fixed some weird behaviour with installation of plugins
2020-02-25 10:12:07 +01:00
slawkens
e11d70de46
Log database queries into database.log when enabled
...
Instead of showing in page sources (it was impractical)
2020-02-15 23:18:10 +01:00
slawkens
518ae4d97a
* don't install plugin when requirements are not satisfied
2020-02-15 22:41:52 +01:00
slawkens
51b848c43e
Add RuntimeException if xml, pdo or zip PHP extension is missing
...
For a better User Experience ;)
2020-02-15 17:17:28 +01:00
slawkens
8021308822
Update Twig from 1.35.0 to 1.42.4 (PHP 5.5 is now required!)
...
This fixes some errors on PHP 7.4 and contains even more fixes
Also bumped PHP version to 5.5 as Twig requires it.
2020-02-15 05:41:38 +01:00
slawkens
d9e449b6cf
Forgot to remove this in last commit
2020-02-15 05:37:09 +01:00
slawkens
2dbf189f43
Use $db->exec where appropriate
...
May bring some performance boost (little, but still)
2020-02-15 03:15:53 +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
13d0718780
RuntimeException instead of die()
2020-02-12 23:20:16 +01:00