Commit Graph

33 Commits

Author SHA1 Message Date
novgorodschi catalin c250a19f5a Fix #250
Fix #250
2026-06-22 12:34:31 +03:00
Ferywir 1b978470c6 fix(session): refresh the 30s user-cache after a player's own changes (#239) 2026-06-18 14:59:44 +03:00
Ferywir 2cdeea463e fix(preferences): restore saving of custom direct links [#204] (#213) 2026-06-14 06:30:36 +03:00
Ferywir 9d88727aff fix(preferences): refresh session cache so saved prefs show immediately [#198]
userinfo is served from a 30s session cache (Session::PopulateVar), so a
freshly saved preference (e.g. the large-map checkbox) only reflected after
the cache expired or a re-login — the box appeared unchanged on OK.

Invalidate the per-user session cache after saving so the redirected page
reloads the values from the DB right away.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 18:41:04 +03:00
Ferywir c2d8e74859 fix(preferences): persist all preference fields on save [#198]
The ft=p2 handler (Profile::updatePreferences) only saved the language
column, so the large-map checkbox — and v1-v6 / timezone / tformat — never
persisted: the box reverted to unchecked on OK. The full save block in
preference.tpl was dead code (the handler header()+exit before it runs).

Persist the whole preferences form in the handler (checkboxes as 0/1,
timezone/tformat as validated ints) so the Large map preference actually
sticks. The other fields are stored now and applied in-game in later
steps of #198.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 18:41:04 +03:00
Ferywir 5d366284e6 l10n: full interface translation (FR/RO/IT/ZH) + EN fallback hardening (#186) 2026-06-09 10:28:59 +03:00
novgorodschi catalin 2b6277af06 Another correction for language
Another correction for language
2026-06-04 14:14:17 +03:00
novgorodschi catalin 1d1f1dc72a Fix + Redesign
Fix some error programing code and redesign special medals, tribe medals, mh medals, taskmaster medals, natars medals, nature medals, protection medals, etc. Add some language code in Profile.php and preference.tpl. Change some description in struct database for Nature and Taskmaster
2026-05-28 12:25:28 +03:00
Catalin Novgorodschi 850a46ae2d Some fixes & improovements
1. Fix ban access, 2. Fix profile ('"") , 3. Add on vacation Admin/MH and exclude rat from reinforcement.
2026-05-15 12:13:01 +03:00
Catalin Novgorodschi 3804498ad9 Incremental Refactor Automation & Database (cache)
Incremental Refactor Automation (starvation split in more methods) & Database (cache & checkAllianceEmbassiesStatus refactor), Fix a bug in Alliance.php (now you cannot kick alliance leader)
2026-05-14 15:05:32 +03:00
Catalin Novgorodschi a3cf00c0f9 Incremental Refactor Market/Message/Profile
Incremental Refactor Market/Message/Profile
2026-05-13 12:20:10 +03:00
Catalin Novgorodschi cfe816b78d Update Profile.php 2026-04-27 16:23:16 +03:00
Catalin Novgorodschi e998dde06b Code requirements for vacation
Code requirements for vacation

Vacation function is fully functional
2026-04-27 13:26:39 +03:00
Catalin Novgorodschi 260896570e Revert "vulnerability fixed and cleanup and refactor"
This reverts commit 2a44e76414.
2026-02-11 15:22:16 +02:00
Catalin Novgorodschi 2a44e76414 vulnerability fixed and cleanup and refactor 2026-02-11 15:11:43 +02:00
Catalin Novgorodschi 59c1114b1c Change some text on license TravianZ 2025-02-11 11:22:22 +02:00
iopietro 79eb6a73d6 General fixes
+Removed almost all "BANNED" controls to template and .php UI files. The
control will be done only once and in the Session class
2018-06-11 02:22:22 +02:00
iopietro a4a623bbfa General fixes
+Fixed a bug that calculated a wrong returning time if the attacker had
the tournament square in the village
2018-05-22 19:58:53 +02:00
iopietro c340eb267e General fixes
+Special chars can now be used in villages name
+Some clean-up
2018-05-22 19:16:35 +02:00
iopietro 0132af4611 Fixed a lot bugs/security exploits
Profiles can't be hacked anymore, added some security control and
removed those malicious "hidden uid"
Errors now are now shown correctly while editing the profile
The level of the research you're doing in the Blacksmith/Armoury is now
displayed in the research queue
Hugely fixed the battle system, a big thanks to kirilloid for helping me
by providing his formulas :)!
Some general clean-up and bug fixing of little errors
Added some string constants to the language file (en.php)
2018-04-07 22:16:28 +02:00
Martin Ambrus 8c9cbfee82 fix: possibility to edit somebody else's profile 2017-11-25 12:24:51 +01:00
Martin Ambrus d138bb4ef7 fix: village renaming doesn't work 2017-11-16 21:58:32 +01:00
Martin Ambrus dab768f662 refactor: 1st round of database values caching 2017-11-15 16:01:00 +01:00
Martin Ambrus 4bef1eb402 fix: cannot delete account via profile Account page
Closes #312
2017-11-08 10:48:10 +01:00
Martin Ambrus 7270a69a63 fix: all location headers need to have exit after them! 2017-10-22 13:00:54 +02:00
Martin Ambrus f4021d1452 feat: MD5 passwords exchanged for bcrypt ones 2017-10-20 12:31:27 +02:00
Martin Ambrus ac5d3538f8 fix: mysqli_error needs MySQLi connection as parameter 2017-10-17 13:05:13 +02:00
evader1337 2d26af7c46 Trying to fix this monstrosity #2 2016-09-13 18:54:25 +02:00
uroskn 1afde368d3 GameEngine and install folders have 777 already set by default 2016-07-02 21:39:28 +02:00
Shadow e641d9e9d4 vacation mode but i will disable it just implemented but will be disabled 2014-03-12 08:40:59 +02:00
Shadow 841632b3fc Update Profile.php 2014-02-26 07:32:05 +02:00
Shadowss 7be2d7d6ec fix profile 2013-11-01 09:33:06 +02:00
yi12345 98e94af807 finish hero_full.php 2013-06-16 10:38:34 +03:00