diff options
Diffstat (limited to 'htdocs/tiles/index.php')
-rw-r--r-- | htdocs/tiles/index.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/htdocs/tiles/index.php b/htdocs/tiles/index.php deleted file mode 100644 index 7e0a89b..0000000 --- a/htdocs/tiles/index.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php - $x = intval($_GET['x']); - $y = intval($_GET['y']); - $z = intval($_GET['z']); - $id = preg_replace("/[^a-z0-9\-]/", "", $_GET['id']); - if (strlen($id) > 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); - } -?> |