198 Commits

Author SHA1 Message Date
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
slawkens
259cda150d Fix some 7.4 notices about OTS_Account bans
Example: Notice: Trying to access array offset on value of type bool in C:\UniServerZ\www\system\libs\pot\OTS_Account.php on line 784
2020-02-10 23:51:15 +01:00
slawkens
4f413eec12 Update PHPMailerAutoload.php 2020-02-10 10:24:23 +01:00
slawkens
441bfe74c1 Fix "Deprecated: __autoload() is deprecated"
Deprecated: __autoload() is deprecated, use spl_autoload_register() i
2020-02-10 10:22:55 +01:00
slawkens
1ba2381437 Remove useless config variable 2020-02-07 01:06:19 +01:00
slawkens
c821f76f0f Forgot to remove this part
Also added delete hooks and template_menus from cache when uninstalling plugin
2020-02-03 23:30:57 +01:00
slawkens
fbca43b239 Nothing important, remove whitespaces.. 2020-01-22 00:34:10 +01:00
slawkens
a03a8bf0d5 Fix #51 2020-01-22 00:33:50 +01:00
slawkens
c7f2cab56a Remove useless .htaccess 2020-01-15 20:57:31 +01:00
slawkens
0f55211dc9 Nothing important: remove whitespaces... 2020-01-13 20:20:27 +01:00
slawkens
dbf09ef361 tableExist is deprecated 2020-01-13 20:20:08 +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
ba1d52d6dd Add hint @var OTS_MonstersList 2019-12-03 05:10:47 +01:00
tobi132
6b931de37d Update OTS_Base_List.php 2019-12-03 03:10:53 +01:00
tobi132
1e2267bd31 Create character directly on create account page 2019-12-02 23:10:32 +01:00
tobi132
72d7dae7fa Remove whitespaces 2019-12-02 21:11:14 +01:00