Commit Graph

43 Commits

Author SHA1 Message Date
novgorodschi catalin e1dd434f5b Fix Statistiken & Credits
Fix Statistiken & Credits
2026-06-26 12:42:16 +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
Catalin Novgorodschi 3607a566f9 Add notice
Add notice
2026-04-28 10:19:50 +03:00
Vladyslav b9ceb86392 Some improvements and changes
+Added the ability to change the position of Direct links
+Added the ability to Enable (Disable) veteran medals
2018-08-31 17:15:53 +03: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 f0b9f32826 General fixes
+Moved "isWinner()" method from Automation.php to Session.php, it's now
triggered when activating plus function or entering in
plus1.php/build.php
+General clean-up and better indentation
+The tournament square bonus is now displayed correctly
2018-05-22 00:33:09 +02:00
iopietro 0322a0ae49 General fixes
+Fixed a bug that permitted to see troops movement with a 0 level rally
point
+Fixed a bug that permitted to send attacks, enforcements, etc. with a 0
level rally point
+Fixed a bug that counted the moral bonus for attacks against WW
villages
+Fixed a bug that didn't permit to finish all buildings/researches, etc.
without a plus account
+Recoded part of Natars timer for being more generic
+Natars/Artifacts spawn, WW villages spawn, WW building plans spawn are
now based on the start date of the server and not on the installation
date
+Better indentation of some code
2018-05-18 15:46:15 +02:00
iopietro f7e05c9802 Optimizations
-Removed the "sort_type" 6 from the movement table, looted resources
will now be saved in the "sort_type" 4 returing attack.
This reduces a lot the spam in the tables "send" and "movement" of the
database
-Removed some useless methods in Database.php and Message.php
+Optimized report loading, own report will be loaded only once (and not
twice at random) and allied reports aren't loaded anymore
+Minor improovements and better indentation
2018-05-05 17:54:34 +02:00
iopietro cf74514451 General fixes
+Fixed an exploit that permitted to starts other players' farm lists
+Fixed an exploit that permitted to save our raids to other players'
farm lists
+Fixed an exploit that permitted to edit other players' farm lists
+Fixed a rounding upkeep bug
+Moved the whole startRaid.tpl to a new method in Units.php
+A lot of clean-up
+Improoved indentation
+In the raid list, the "carry" image will now show to the left of an
attack
+Fixed a bug that displayed the wrong loot to returning troops released
by traps
+General minor bug fixing and improovements
-Deleted a lot of redundant code
2018-05-04 22:12:18 +02:00
iopietro 49bc3c5073 General fixes
+Fixed a bug in the farm list that permitted to attack the same village
troops were sent
+Fixed a bug that permitted to delete others raid lists
+Fixed a bug that permitted to view broken reports
+Fixed a bug that permitted to insert 0 troops in the raid list
+Fixed the broken graphic of the raid/farm list
+Fixed a bug that didn't permit to send more than 2 raids at a time (in
the raid list)
+General improovements and bug fixing
+Some clean-up
2018-05-03 23:07:11 +02:00
iopietro 44fc912616 Fixed a building bug
+Fixed a bug that permitted to build two buildings or two resources
field concurrently, without a plus account, as a Roman
+Some clean-up
2018-05-01 19:05:17 +02:00
iopietro 5270b1ca30 Fixed bugs in trade routes
+Trade routes can't be hacked anymore
+Fixed a bug that permitted to choose any village when adding a trade
route
+Fixed a bug that permitted to choose a time greater than 23 and less
than 0
+Fixed a bug that permitted to choose a number of repetitions greater
than 3 and less than 1
+Fixed a bug that permitted to edit other players trade route
+Fixed a bug that permitted to create a trading route with the same
village you were in
+Fixed some minor bugs
+Reworked the post/get request system, it's buch better now
2018-04-17 22:54:07 +02:00
iopietro 9e44c1cd6d Some replacements
+Replaced all $GLOBALS['link'] with $database->dblink
-Removed Templates/links.tpl from build.php (it's already in
Templates/menu.tpl)
2018-04-08 19:55:28 +02:00
Pietro a9c8fc6b48 Fixed a building bug
You can no longer access to inexistent building ids
2018-04-03 14:40:23 +02:00
Martin Ambrus 317e92f2f4 fix: enable scrolling in reports to see all attack / spy results data 2017-12-26 18:30:57 +01:00
Martin Ambrus 818701c63a fix: Internet Explorer redirects to homepage instead of page reload
#403
2017-12-04 11:25:33 +01:00
Martin Ambrus 2f9d134ec9 feat: indicator for fields under construction
Also, all line separators are now Linux-style :-P

Closes #321
2017-11-22 15:32:35 +01:00
Martin Ambrus d17d1f9b32 refactor: last round of database values caching
#313
2017-11-17 19:40:34 +01:00
Martin Ambrus 6b63b0bc63 fix: manual description scrolls when space is too short 2017-11-08 11:12:01 +01:00
Martin Ambrus 4de3f8e26b fix: new JS needs new cachebusting suffix 2017-11-06 20:12:52 +01:00
Martin Ambrus a822504706 fix: counting queries optimization
Closes #300
2017-11-04 15:41:35 +01:00
Martin Ambrus d78f4ecd2d fix: undefined indexes 2017-11-02 00:58:36 +01:00
Martin Ambrus f5c3e029b5 feat: access log config setting and a real get-post-cookie logger
This is a very naive and primitive logger of user requests to the game.
To be used on systems where access to webserver's log data is not
available (especially if the webserver doesn't store POST data as well).
2017-10-28 18:59:16 +02:00
Martin Ambrus b906e94dcc fix: large map vertical position fix 2017-10-28 00:38:28 +02:00
Martin Ambrus 93fbba445e fix: big map not centered on screen in high resolutions
Closes #239
2017-10-26 21:07:27 +02:00
Martin Ambrus 30d3b9c4fa refactor: OOP code movements started :) 2017-10-25 13:38:38 +02:00
Martin Ambrus dd90648b09 fix: immediate finish of all building progress redirects correctly 2017-10-22 13:21:36 +02:00
Martin Ambrus 7270a69a63 fix: all location headers need to have exit after them! 2017-10-22 13:00:54 +02:00
Martin Ambrus 9391553dcb feat: front-end page names 2017-10-20 18:17:42 +02:00
Martin Ambrus 4c2c769a44 chore: ToDo and formatting 2017-10-18 12:43:37 +02:00
Martin Ambrus d76669cb42 fix: last batch of manual INT typecastings 2017-10-18 01:11:25 +02:00
Martin Ambrus fb8a7fcd74 fix: "generated in" fix for Rally Point 2017-10-17 16:18:15 +02:00
Martin Ambrus 2b12f16b3d fix: more sql injection escapes... 2017-10-17 16:13:06 +02:00
Martin Ambrus ac5d3538f8 fix: mysqli_error needs MySQLi connection as parameter 2017-10-17 13:05:13 +02:00
Martin Ambrus 68619ac892 fix: big map centered on page + closeable
This commit also updates the hardcoded cache booster ID, as CSS+JS 
changed to accomplish the map fix.
2017-09-11 21:11:44 +02:00
Martin Ambrus 1c51f2eec0 chore: HTML fixes from Eclipse 2017-08-28 17:31:55 +02:00
Martin Ambrus 9261a4a4b2 Merge branch 'master' of https://github.com/evader1337/TravianZ into evader1337-master
# Conflicts:
#	GameEngine/Database/db_MYSQL.php
#	Templates/Build/avaliable.tpl
#	Templates/Message/inbox.tpl
2017-08-28 14:18:24 +02:00
TPLinux b3e059aa4a Change redirection after attack to rally point
Now if you inside rally point and attack done ... the redirection replaced to Rally point not to dorf1.php
2017-06-30 04:02:11 +00:00
evader1337 2d26af7c46 Trying to fix this monstrosity #2 2016-09-13 18:54:25 +02:00
cosme12 fea300d397 Update build.php 2015-04-07 21:18:53 -03:00
cosme12 3cec6b5fb9 Building bugs
This bug is a little hard to meet but It's still there. I found it by trying to use NPC merchant while not having a marketplace. It will show an error. The bug happens everytime you type ```build.php?id=5&t=2``` . The problem here is ```t=``` or ```s=```, both are used as tabs in certain buildings, but when it has only 1 page it crash.
For example: market has " Send Resources | Buy | Offer | NPC trading " while clay pit has none. So adding the t= variable to the clay pit would make it display an error.
This is probably not the best way to fix it but it works. Now, there is still another problem, marketplace has 4 tabs, so adding ```&t=5``` will bug it.
It would be better if you can test it again, just in case I broke something :P
2015-04-07 15:47:38 -03:00
Shadowss bea9d93ebb Update build.php 2013-11-01 09:34:27 +02:00
yi12345 98e94af807 finish hero_full.php 2013-06-16 10:38:34 +03:00