LuminaWebsite/includes
Maaxxs 52fea9f92d Karte: build a map from an image right on the page
Pick an image, press "Karte bauen", done - no FTP, no command line tool.
The panel sits on the setup page while no map exists and under the map as
"Karte neu bauen" afterwards.

The tiles are cut in the browser and only the finished 256px JPEGs are
uploaded. That is the point: on ordinary shared hosting a 50MB map image
runs into upload_max_filesize, cutting it server side runs into memory_limit
and max_execution_time, and GD is not installed everywhere. This way the
server needs none of it - it validates small JPEGs and stores them.

Uploads go into a side folder <key>__build that only replaces the live map
once every tile has arrived, so an abort - by button, by error or by closing
the browser - leaves the existing map untouched.

The server trusts nothing from the client: the key must match a strict
pattern, tile coordinates must lie inside 2^z on their level, and each file
is checked with getimagesize for an actual JPEG within a size limit before it
is stored.

Verified against tools/make_map_tiles.php on the same source image: same zoom
levels, same per-level tile counts (1/4/12/40), same tile names, same
manifest.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 14:57:11 +02:00
..
.htaccess Fix 500 error from unguarded RewriteEngine directive in root .htaccess 2026-09-18 06:27:09 +02:00
auth.php Replace Discord avatar sync with self-service profile picture upload 2026-09-19 07:34:47 +02:00
bootstrap.php Use real German umlauts instead of ASCII transliterations 2026-09-18 07:16:15 +02:00
db.php Use real German umlauts instead of ASCII transliterations 2026-09-18 07:16:15 +02:00
discord.php Replace Discord avatar sync with self-service profile picture upload 2026-09-19 07:34:47 +02:00
events_api.php Events: new tab for the bot's scheduled event reminders 2026-09-20 12:40:56 +02:00
footer.php Nav: group sidebar links, add mobile slide-out drawer 2026-09-20 01:37:12 +02:00
forbidden.php Use real German umlauts instead of ASCII transliterations 2026-09-18 07:16:15 +02:00
functions.php Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00
header.php Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00
map.php Karte: don't fail with HTTP 500 when the map tables are missing 2026-09-20 14:39:55 +02:00
map_build.php Karte: build a map from an image right on the page 2026-09-20 14:57:11 +02:00
permissions.php Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00
raids_api.php Reports: exclude roles from auto-mute; wire up new landscape backgrounds 2026-09-20 02:27:37 +02:00