This repository has been archived on 2020-10-10. You can view files and clone it, but cannot push or open issues or pull requests.
webapi/mpt.php

11 lines
288 B
PHP

<?php
include 'vars.php';
if ($_SERVER["PATH_INFO"] == "/latest") {
header('Content-Type: text/plain');
echo $mptlatest;
} elseif ($_SERVER["PATH_INFO"] == "/script") {
header('Content-Type: text/plain');
echo file_get_contents("https://data.tilera.xyz/file/mpt/mpt");
}