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); + } ?>