webapi/mpt.php

11 lines
288 B
PHP
Raw Permalink Normal View History

2020-08-21 23:23:43 +02:00
<?php
2020-08-21 23:36:42 +02:00
include 'vars.php';
2020-08-21 23:23:43 +02:00
if ($_SERVER["PATH_INFO"] == "/latest") {
header('Content-Type: text/plain');
2020-08-21 23:36:42 +02:00
echo $mptlatest;
} elseif ($_SERVER["PATH_INFO"] == "/script") {
2020-08-21 23:44:14 +02:00
header('Content-Type: text/plain');
echo file_get_contents("https://data.tilera.xyz/file/mpt/mpt");
2020-08-21 23:23:43 +02:00
}