Download dynmap/web/gettiles.php from colaibu/fabric121: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/colaibu/fabric121/resolve/main/dynmap/web/gettiles.php
- Command line
-
hf download hf://colaibu/fabric121/dynmap/web/gettiles.php
-
curl -L -o gettiles.php https://huggingface.co/colaibu/fabric121/resolve/main/dynmap/web/gettiles.php
380 Bytes
| define('TILESPATH', 'tiles/'); | |
| $path = $_SERVER['PATH_INFO']; | |
| $fname = TILESPATH . $path; | |
| if (!file_exists($fname)) { | |
| $fname = "images/blank.png"; | |
| } | |
| $fp = fopen($fname, 'rb'); | |
| if (strstr($path, ".png")) { | |
| header("Content-Type: image/png"); | |
| } else { | |
| header("Content-Type: image/jpeg"); | |
| } | |
| header("Content-Length: " . filesize($fname)); | |
| fpassthru($fp); | |
| exit; | |