Commit Graph

305 Commits

Author SHA1 Message Date
Ferywir 6d57cd7fe1 feat(preferences): apply auto-completion (village name suggestions) [#198]
Honour the per-user auto-completion checkboxes on the rally point and the
marketplace, where the target village is typed by name (dname field):
  - v1: own villages
  - v2: villages in the surroundings of the active village
  - v3: villages of the player's alliance members

A new Database::getAutoCompleteVillages() builds the bounded, de-duplicated
name list from the enabled categories (system accounts excluded). A shared
Templates/villageAutocomplete.tpl renders a native <datalist> consumed by
the dname input via list="dnameSuggest"; nothing is emitted when every box
is unchecked, keeping the previous behaviour. Removes the "not coded yet"
tag from the auto-completion section in the preferences form.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 09:28:20 +02:00
Ferywir 20804d9182 feat: IP ban support (#185) (#188) 2026-06-09 15:15:27 +03:00
novgorodschi catalin e6b010e73a Fix #179
Fix #179
2026-06-05 14:00:58 +03:00
TravianZ Patcher 7a013c38e3 Fix install + admin bugs reported in issue #169
Addresses the five bugs found on master (6e139a1b) during a fresh
Docker install and admin testing:

1. Missing `details` column in gold_fin_log (HTTP 500 on finishing
   construction with gold, buying Gold Club, admin giving gold):
   - Add `details varchar(255)` to the gold_fin_log schema, matching
     every INSERT and the a2b2.php reader that already use it.
   - Fix the broken positional INSERT in Logging::goldFinLog() (it sent
     3 values for a 7-column table) which 500'd on the same gold path.

2. Admin "View Player Info" fatal error: `<? php` -> `<?php` in
   Admin/Templates/playerinfo.tpl.

3. "Reset Server" leaving the DB corrupted (Duplicate key name
   'idx_ft_bonus_xy'): move the croppers indexes inline into the
   CREATE TABLE IF NOT EXISTS so structure recreation is idempotent,
   and add `croppers` to the reset truncate list.

4. Install wizard crash on failed DB connection (mysqli_error(false)):
   use mysqli_connect_error() and show a friendly, actionable message
   (incl. the Docker "db" hostname hint).

5. PHP exposing errors/stack traces to end users: ship a production
   php.ini baseline + docker/php/zz-travianz.ini that turns off
   display_errors and logs to stderr instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 08:32:00 +02:00
novgorodschi catalin b495dcb559 Some fix
Some fix
2026-06-02 12:58:20 +03:00
novgorodschi catalin 31c475e644 Fix + Credits + Start Language Coding
Fix Artefacts + Credits + Start Language Coding
2026-05-27 12:26:24 +03:00
novgorodschi catalin a4e2c506a8 Redesign Admin Panel
Full frontend & backend redesign and refactor
2026-05-25 10:23:39 +03:00
novgorodschi catalin 05bfde9063 Remove some unused code and some fix
Remove some unused code and some fix
2026-05-21 13:12:21 +03:00
novgorodschi catalin e03b7c9037 Fix hero system after refactor
Fix hero system after refactor
2026-05-18 11:12:15 +03:00
novgorodschi catalin 1936e1f02c Disable generic cache
Disable generic cache
2026-05-18 10:43:14 +03:00
novgorodschi catalin ca4afdf7eb Revert "Undo"
This reverts commit 23d779dd9f.
2026-05-18 09:26:19 +03:00
novgorodschi catalin 23d779dd9f Undo
undo
2026-05-18 09:22:24 +03:00
novgorodschi catalin 55e6dd60b5 Refactor + BugFix
1. Fix a bug in Admin Panel that you can edit by yourself your rank, now you cannot edit your rank anymore.

2. Now Alliance Leader can edit his own Position

3. Fix negative value on Demolition Building, now in database at lvl is appear new level not -1

4. Refactor Ajax map, now all is alligned (Ajax folder and Map folder)

5. Fix bug from Palace (when change capital now Automation recount population automaticaly on old capital and new capital)
2026-05-18 09:18:35 +03:00
Catalin Novgorodschi 2bce101a27 Fix reinforcement
Fix reinforcement
2026-05-15 12:43:03 +03:00
Catalin Novgorodschi 51e7e95052 Fix for admin/mh vacation 2026-05-15 12:24:30 +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 e998dde06b Code requirements for vacation
Code requirements for vacation

Vacation function is fully functional
2026-04-27 13:26:39 +03:00
Catalin Novgorodschi c3049f7f1a Fix alliance Assign to position and Changepos
Code and Fix alliance Assign to position and Changepos
2026-04-22 12:24:26 +03:00
Catalin Novgorodschi ca541d2204 Fix alliance possition in overview
Fix alliance possition in overview
2026-04-22 10:15:49 +03:00
Catalin Novgorodschi 1045340581 Translate into english 2026-04-02 10:53:56 +03:00
Catalin Novgorodschi ebc77f7fbc Issue #77
Issue #77
2026-04-02 10:02:54 +03:00
Catalin Novgorodschi 602797a273 Merge pull request #150 from hdmaniak2/fix-quadrant-spawn
Fix: Restrict village spawn search to selected quadrant
2026-04-02 09:29:52 +03:00
hdmaniak 3e7222b5fc Fix: Restrict village spawn search to selected quadrant 2026-03-27 07:07:22 +01:00
Catalin Novgorodschi 20ab2acd79 Merge pull request #149 from hdmaniak2/fix-parallel-recall-units 2026-03-27 07:50:57 +02:00
hdmaniak 12de46015e Fix: Parallel troop recall race condition 2026-03-26 21:48:22 +01:00
hdmaniak 8c3a2138cc Fix marketplace race condition 2026-03-26 10:42:24 +01:00
hdmaniak2 9b03def903 Fix parallel training exploit (#145)
* Fix parallel building exploit via race condition

* Fix parallel research exploit via race condition

* Fix parallel training exploit

---------

Co-authored-by: hdmaniak <bombo15.forum@gmail.com>
Co-authored-by: Catalin Novgorodschi <1140613+Shadowss@users.noreply.github.com>
2026-03-25 08:22:39 +02:00
hdmaniak2 2e5f9f6169 Fix parallel research exploit (#143)
* Fix parallel building exploit via race condition

* Fix parallel research exploit via race condition

---------

Co-authored-by: hdmaniak <bombo15.forum@gmail.com>
Co-authored-by: Catalin Novgorodschi <1140613+Shadowss@users.noreply.github.com>
2026-03-24 14:25:46 +02:00
hdmaniak2 e83985e7f7 Fix parallel building exploit via race condition (#141)
Co-authored-by: hdmaniak <bombo15.forum@gmail.com>
2026-03-24 08:48:54 +02:00
Emerson Freitas a7bdac8392 fix: harden troop processing race conditions (#98) (#138) 2026-03-17 20:13:14 +02:00
levi a0ef06a35f chore: harden php8 compatibility, optimize installer/croppers, and refresh docs/admin ux 2026-03-14 16:50:27 -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 bb1ac523cc Merge branch 'master' of https://github.com/Shadowss/TravianZ 2026-02-11 15:17:21 +02:00
Catalin Novgorodschi 2a44e76414 vulnerability fixed and cleanup and refactor 2026-02-11 15:11:43 +02:00
lietuvis10 038465fe9a Update Database.php
Fixed chieftain training issue: when player reinforced their chiefs to other villages they could train more so no more unlimited chieftains :)
2025-12-14 15:27:46 +02:00
lietuvis10 bc296fb251 Update Database.php
Functions for automated Crop Finder population.
2025-10-27 17:15:43 +02:00
lietuvis10 432b92220f Update Database.php
fixed query.
2025-10-23 19:46:45 +03:00
Catalin Novgorodschi db3d9bfff1 Crop finder @lietuvis10
Fix crop_finder.php by @lietuvis10
2025-10-23 10:27:45 +03:00
Catalin Novgorodschi 59c1114b1c Change some text on license TravianZ 2025-02-11 11:22:22 +02:00
Catalin Novgorodschi ac6a99cb89 Update Database.php 2025-02-11 08:21:43 +02:00
221V adaec555db rewrite "please don't scream" sql 2025-02-03 19:47:39 +02:00
Catalin Novgorodschi 4471074fa3 Update Database.php 2024-10-31 11:35:54 +02:00
CarloFalco 27c0a2f10b Update Database.php
Fix issue "Building orders are canceled after the attack in WW village"
2024-07-13 17:19:46 +02:00
Catalin Novgorodschi 5da2154a77 Merge pull request #44 from osztenkurden/master
Fixes for multiple bugs
2024-05-15 12:54:45 +03:00
Hubert Walczak 3d95916c29 Fix for db throws and install process not going through 2023-07-09 12:03:56 +02:00
nixpc de804b9567 Whoops! 2023-07-06 23:14:27 +02:00
nixpc 1549f830aa Fix CVE-2023-36995 name change alliance 2023-07-06 23:13:22 +02:00
nixpc e39ca488a9 Fix CVE-2023-36995 2023-07-06 23:02:00 +02:00
Catalin Novgorodschi 3925a76e9b fix database 2022-02-21 09:15:37 +02:00