After installation, the folder ```install``` will be renamed to ```installed_$time```. This way, in case you forget to remove the folder, it will be harder to spot.
Typing something like ```dorf2.php?a=25&id=20000&c=d6F``` where ```id=``` is the position in the village will get you an error if the id is higher than 40 ( not including WW id=99). ```Unknown column 'f20000t' in 'field list'```
So I added this restriction when building. Although it fixes the problem, you can still build at WW position, bugging your building and not being able to use, or demolish it.
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
**Line 16:** If you type a number greater than your map size 2 errors will be displayed. This is fixed by comparing with WORLD_MAX global var
**Line 21:** If you type any coord where there is nothing, you will get an error. ```$database->getVillageType2``` already gives you the "oasistype"
Just a little detail. Since title says, thanks for installing TravianZ, it should also say "Thanks for installing TravianZ." and "My TravianZ homepage".