From 105dc4d3da821219d8d2a01b17833ead0c7c107f Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 25 Apr 2020 15:56:50 +0200 Subject: Add tile ID conversion php file --- htdocs/tiles/index.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/htdocs/tiles/index.php b/htdocs/tiles/index.php index 62a2de0..7e0a89b 100644 --- a/htdocs/tiles/index.php +++ b/htdocs/tiles/index.php @@ -1,3 +1,14 @@ 30) die(); + $hdr = "Location: /maps.linux-forks.de/tiles/$id/$z/" . str_pad($y * (2**$z) + $x, 5, "0", STR_PAD_LEFT) . ".png"; + if (isset($_GET["debug"])) { + echo $hdr; + } else { + header($hdr); + } ?> -- cgit v1.2.3