117 Commits

Author SHA1 Message Date
slawkens
dedb96ef4a Fix for CloudFlare IP detection
(cherry picked from commit b3b6d0ff5de763bd7ec8be73fc5ef8e03b8e4601)
2020-07-03 20:39:20 +02:00
slawkens
8de8ad13bf Fix message() function when executed in CLI 2020-06-01 08:39:13 +02: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
fcfad7cef9 Fix #108 2020-02-28 22:11:04 +01:00
slawkens
7424901aca Change tooltip css class to item_image (bootstrap conflict) 2020-02-28 21:50:21 +01:00
slawkens
8c680608ff Fix more PHP warnings and notices 2020-02-28 21:49:47 +01:00
slawkens
ad570688c9 Add cache/plugins to clearCache functions 2020-02-22 16:24:16 +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
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
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
d0d77b8775 Fix index.html deleting on cacheClear() 2020-02-15 02:40:16 +01:00
slawkens
13d0718780 RuntimeException instead of die() 2020-02-12 23:20:16 +01:00
slawkens
1ab32ca3ba New functions: getCustomPage() and getCustomPageInfo() 2020-02-11 01:00:42 +01:00
slawkens
08f011eb33 New configurable: smtp_debug 2020-02-03 20:48:11 +01:00
tobi132
fba9f66a1f Fix for othire not finding lookaddons column 2019-12-03 01:31:35 +01:00
tobi132
ed14f9ada0 Add optional $params param into log_append (will log arrays) 2019-10-17 12:07:08 +02:00
tobi132
9250f20559 Add get outfit to getTopPlayers (required very often) 2019-10-17 12:06:38 +02:00
tobi132
d8a70a3da6 Optimizations 2019-07-23 07:45:35 +02:00
tobi132
813de7eb3c Add configLua function 2019-07-23 07:45:21 +02:00
tobi132
410c15c997 Fixed getItemNameById function
Please reload your items in admin panel to make it work
2019-07-23 07:45:03 +02: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
slawkens
14cb37725e * new configurable: footer_show_load_time 2019-04-24 11:50:28 +02:00
slawkens
fc3bd432ef * simply ignore notice if key does not exist on config() 2019-04-24 11:23:18 +02:00
slawkens
7b1989cef2 * add clear_cache.php bin command 2019-04-23 23:50:54 +02:00
slawkens
3febb340d4 * removed duplicated jquery declarations
This fixes some stranges errors with javascript being triggered on website
for example: not working color changes on Menus page when clicking on Add New button
2019-04-13 04:04:25 +02:00
slawkens
6a167e99dc Add optional parameters to deleteDirectory function
($dir, $ignore = array(), $contentOnly = false)
2019-04-13 03:17:01 +02:00
Lee
d1e6061541 Admin panel fixes (#62)
* Admin Panel

* fixes

-Code Clean Up
-Remove dist folder and merged into tools.
2018-11-24 15:42:20 +01:00
Lee
6dab50cbd8 Admin Panel (#61)
Thank you Lee for this awesome, Bootstrap Admin Panel!
2018-11-22 07:12:14 +01:00
slawkens
2010094f83 * fixed multiple mail recipients when using admin mailer function
It resulted in mail being sent to all users multiple times..
2018-06-08 21:08:00 +02:00
slawkens
fb1b9fea09 * stop using global $cache variable, use Singleton pattern instead 2018-06-03 17:09:21 +02:00
slawkens
05e15ce9ad * replace deprecated HTML <font> tag with <span> 2018-06-01 13:35:27 +02:00
slawkens
68d74a490b * performance and optimisations fixes part 2, according to awesome PHPStorm Php Inspections plugin! 2018-05-29 21:16:48 +02:00
slawkens
bf361238cb * remove whitespaces 2018-05-29 21:06:15 +02:00
slawkens
4023fda5b6 * fixed _mail() function when $add_html_tags is disabled 2018-05-29 20:42:18 +02:00
slawkens
de36cfd2eb * add global helper config($key) function + twig binding 2018-05-29 20:29:18 +02:00
slawkens
b828b8e44a * do not display software version 2018-05-29 20:08:29 +02:00
slawkens1
515b42cd51 * support for some old servers, where arrays are used in config.lua 2018-04-16 20:31:23 +02:00
slawkens
eab416c0b4 * some optimizations & fixes according to awesome PHPStorm Php Inspections plugin! 2018-03-21 13:52:41 +01:00
slawkens1
04dca2f274 * new configurable: smtp_secure
* as described in #43 by miqueiaspenha
2018-01-29 23:11:17 +01:00
slawkens1
51acb739e9 * fixed #42
* changed mb_strtolower functions to strtolower() - was useless in this
case
* attemp to fix some bug with PHPMailer not finding its language file
2018-01-26 08:04:28 +01:00
slawkens1
16bcb70863 * new hooks: LOGIN, LOGIN_ATTEMPT, LOGOUT
* fixed bug with uninstalling some plugin dirs
* updated TODO
2018-01-14 08:59:37 +01:00
slawkens1
fc243466da * install: better error message on database failed connect
* changed <p> tag to <div> in notification messages
2018-01-13 21:18:21 +01:00
slawkens
a083dd048d * fixed PHP warning about country not existing on online and characteres pages 2018-01-08 11:47:41 +01:00
slawkens1
4102b44352 * important fix for servers with promotion column (#36)
* caused player.vocation to be resetted when saving player, for example:
on change name, accept invite to guild, leave guild
* fixed empty success message on leave guild
* (internal) using $player->getVocationName() where possible instead of
older method
* fixed some warning in guild show
2018-01-08 01:00:56 +01:00
slawkens1
087988dde3 * fixed getBoolean function when boolean is passed 2018-01-08 00:01:03 +01:00
slawkens1
1025fad0e6 * cache $db->hasTable and $db->hasColumn functions
* changed tableExist and fieldExist to $db->hasTable(table) +
$db->hasColumn(table, column)
* new configurable: database_log - can log database queries and show in
website source when logged as super admin
* removed debug_level configurable, enabled by default when logged on
super admin
* added OTS_Account:getCountry()
* added posibility to load OTS_Player partially, and without skills
* (internal) changed depracated $ots->createObject() functions with
their OTS_ equivalents
* (internal) removed unused code
2018-01-06 05:44:33 +01:00
slawkens1
01c0d021b2 * added player status to tibiacom top 5 highscores box
* fix when there are no changelogs or highscores yet
2018-01-03 21:27:47 +01:00
slawkens
53ab7af8dc * small fix regarding getTopPlayers function which was ignoring $limit variable 2018-01-02 10:23:04 +01:00
slawkens1
4535687b48 * automatically generate plain mail from html 2017-12-26 22:30:52 +01:00