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");
}