97 Commits

Author SHA1 Message Date
Znote
4b0db861d5 Fix #429 Various warnings
Rewrote other characters on this account list in characterprofile
Added hash_equal() backport for low PHP versions
Fixed some warnings
2020-07-08 00:35:45 +02:00
Evil Puncker
0fae6d6e5f
Tabs instead of spaces (#416)
* Tabs instead of spaces
2020-06-02 17:50:52 +02:00
Znote
5a80034915 Toggle guild nick feature in config.php
Fix #407
TFS 1.3 has a potential unresolved crash bug related to guild nicks.
You can check out the details here: https://github.com/otland/forgottenserver/issues/2561#issuecomment-633101435
2020-06-01 23:32:09 +02:00
Evil Puncker
b99cf6fd3e
Removed duplicated entry on function user_create_character (#413)
* Removed duplicated entry on function user_create_character
2020-06-01 22:35:36 +02:00
Evil Puncker
bb60bfbf83
Removed bomberman highscore function (#400)
It doesn't seems to be used anywhere
2020-05-19 23:01:41 +02:00
Znote
d5749700fc Fix #386 - Warnings in support list. 2020-03-22 20:29:55 +01:00
Znote
94223f5ac0 Outfit display support on low protocol < 7.8 2020-02-23 21:54:12 +01:00
Znote
6e9cfef9ff Fix #70 TFS 1.0 Set position 2019-11-14 23:17:57 +01:00
Znote
e96cf7f2b7 Fix #363 Guild leaders can no longer leave their guild
Unless they decide to properly disband it first.
2019-11-11 06:16:44 +01:00
Znote
00a97d43e4 Allow users to verify their email in myaccount.php
Even if they arent forced to verify email during registration.
If they change their email in the settings later, the verification is lost.
Todo: Add a reward for first-time verification.
2019-10-22 02:05:14 +02:00
Znote
44dd48b17e Fix "Cannot redeclare PHPMailerAutoload()"
When sending multiple emails in bulk.
2019-10-19 03:24:57 +02:00
divinity76
c5323dbc78 admin.php protection against XSS and CSRF (#367)
admin.php protection against XSS and CSRF
see https://github.com/Znote/ZnoteAAC/issues/361 for more info
2019-08-27 00:25:51 +02:00
divinity76
01c5da322a html-encode dynamic values in buypoints.php (#364)
* add html encoding function

* html-encode dynamic values

important if the values contain special characters like '&<>"

(for example if $config['site_title'] is `AT&T` or `<AWESOMESERVER>`, the old code would generate invalid html, but this updated code will generate valid html.)
2019-08-26 02:11:02 +02:00
Znote
ce3fcf3b51 Fixed OTHIRE forum accountAccess check 2019-04-12 02:32:07 +02:00
Znote
e64032e630 Fixed OTHIRE account registration bug 2019-04-04 00:49:32 +02:00
Znote
a76e468645 Retrieve descriptive vocation name if id is not configured. 2019-04-03 22:46:24 +02:00
Znote
44839d9cdb Fix #303 SQL error when joining a guild when your already in another guild 2019-03-17 19:07:45 +01:00
Znote
32bbecd266 Fix ##295 Rounding discount in buypoints 2019-03-17 14:53:11 +01:00
Rodrigo Paixão
bbd0455463 Admin Page - Compatibility OTHire (#342)
-- Fix for Admin Page in OTHire
2019-03-12 15:35:02 +01:00
Kristoffer Eklund
5dbee1cd46 PHPMailer 6.0 support (#340)
* PHPMailer 6.0 support

* dont require the PHPMailer files until sendMail is called

* cs fixes
2019-03-08 21:20:38 +01:00
Znote
594e2c015f Market: Display error message instead of crashing if fail to load items.xml file. 2019-02-05 00:44:47 +01:00
Alvaro Carvajal
f79a48fc06 Update itemlistparser (#336)
* Improve itemlistparser. Remove ugly cache file

* Convert item id to int, remove items variable
2019-01-10 22:56:05 +01:00
Rodrigo Paixão
01422f4815 Fix highscores (OTHire compatibility) (#331)
- Fixed showing outfit in highscores.
2018-12-14 13:10:19 +01:00
Rodrigo Paixão
2817010781 Compatibility with OTHire (#330)
* Preparing compatibility to OTHire

* Still working on compatibility to OTHire

* More compatibility

* More compatibility

Not tested yet

* Some fixes

- Fixed Account Creation.
- Fixed a problem that you can't load the website, that include that you can now recover your account number.

* More fixes

- Fixed character creation.
- Fixed login problem.
- Fixed displaying account number in My Account.
- Fixed displaying if you have premium days or not in My Account.

* More fixes

- Handle Kills/Deaths as TFS_03

* More fixes

- Fixed showing outfits in character profile
- Fixed displaying player houses in character profile
- Fixed displaying guilds

* Update init.php
2018-12-03 07:58:29 +01:00
slawkens
0478566020 Refactor Google ReCaptcha code (#325)
Removed duplicated code (store it in function/general.php)

Captcha doesn't need cURL (made it configurable and optional)
2018-06-04 12:41:49 +02:00
Znote
0b442e9095 Remade serverinfo.php. Loads stages.xml, imports config.lua from textarea instead of requiring access to OT directory. Gives much more server information. 2017-02-16 04:38:02 +01:00
Znote
a682fef4ae TFS 0.3 flags highscores fix.
Also added missing function for spells parser.
2017-02-11 03:38:10 +01:00
Znote
8cbcd26747 Fix merge conflict. 2017-01-30 23:01:18 +01:00
Znote
3d82fcecf1 Display outfit images in highscores, online list, character profile.
Fix #252
2017-01-30 22:54:33 +01:00
Znote
a5ba62a51e Display outfits on highscores, onlinelist, character profile.
Fix #252
2017-01-30 22:36:39 +01:00
Znote
2fad7a3efb Improved flags system & reduce query usage in online list
Using http://flag.znote.eu as an external image server for flags.
Online list is now stored in a 30 seconds quick cache.
Reduced query usage in online list to 1 instead of 1 + players online amounts of queries.
2017-01-26 22:09:53 +01:00
Znote
d5cabac14a Disable 2FA through Email Fix #249
And fixed an issue with email activation link when registering an account.
2017-01-21 23:08:46 +01:00
Znote
6c036b0a1b Log IP performance issue workaround.
1000 latest records should suffice for the system to function properly.
An OT server had issues when ip logger saved over 250 000 IPs (probably some sort of ddos attack), which got loaded into memory in each page render.
2017-01-07 03:37:23 +01:00
Znote
ce043006ed market.php Performance improvement. Smarter queries and array referencing. Fix #264 2017-01-06 00:02:24 +01:00
Znote
098efa6591 Greatly reducing the amounts of SQL queries used on guilds page. 2017-01-04 22:11:59 +01:00
Znote
43ae67f74e Gallery image system now works again. Fix #263
Changed the gallery image host from imgland.net to http://www.freeimagehosting.net/ (which uses imgur.com)
2017-01-01 04:14:35 +01:00
Znote
deddeb462c Fixed highscores being broken when cache system is enabled.
Highscore cache data now stores vocation group store data, and flag value if enabled in config.php
No extra queries are being made after the scores have been loaded from cache.
2016-12-31 04:05:15 +01:00
Stefan A. Brannfjell
0c20be5c7e Update users.php : Character skills bug fix TFS_03
Fix character skills bug on otx 2.x (and probably TFS 0.3 as well). 
https://otland.net/threads/you-do-not-have-enough-skill-on-cast-spell.248101/
2016-12-27 23:33:57 +01:00
Znote
366542d249 Better character creation. Configurable vocation skills and will calculate HP/MP/CAP for each vocation at their configured starting level. 2016-12-04 01:44:44 +01:00
Znote
c3c236e13e TFS 1.2+ Two-Factor Authentication system.
RFC6238 Implementation of the OTP algorythm, tested with the app "Authy" from the iOS iPhone app store.
2016-11-13 05:34:14 +01:00
Znote
0dc15ea95b Using a config variable to define protocol and domain name instead of $_SERVER as it seems inconsistent. fix #182 and #225 2016-10-24 01:51:52 +02:00
Znote
21e0de50b4 Fix #245 2016-10-24 01:21:55 +02:00
Pwntus
eb90646ab6 Fixed tiny bug. 2016-05-21 09:02:09 +02:00
Pwntus
38221b34c8 Added option to sort by vocation to highscore page. 2016-05-21 08:34:27 +02:00
Stefan A. Brannfjell
5f03d514e7 Merge pull request #240 from gpedro/feat/config-lua-parser
feat: getConfigLua added into engine/general
2016-05-17 02:15:34 +02:00
Gabriel Pedro
1cc404faaa feat: getConfigLua added into engine/general 2016-05-14 14:47:40 -04:00
Gabriel Pedro
4e18cb3c66 resolves #214 2016-05-11 18:32:51 -04:00
Gabriel Pedro
ae28021d86 resolves #71 2016-05-02 12:47:30 -04:00
Tandloze
f749d5f0f9 Flags for Znote 1.5 reworked
Reworked flags for Znote 1.5 by not altering the tfs tables
2015-08-13 17:13:35 +02:00
Kristoffer Eklund
75833e7fbe Recode validate_name() function 2015-06-20 18:35:12 +02:00