From 826e9eb6613a5c088e28b257a05046e54657d025 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 26 Jan 2019 09:34:00 -0800 Subject: [PATCH] remove old api file --- CHANGELOG.md | 2 ++ db/api-more.php | 47 ----------------------------------------------- 2 files changed, 2 insertions(+), 47 deletions(-) delete mode 100644 db/api-more.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f7f2a5..90afac2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,10 @@ The format is based on [Keep a Changelog] and this project adheres to [Semantic ## [Unreleased] ### Added +- osada version check ### Changed ### Deprecated +- api-more.php calls. old droid app been dead for years ### Removed ### Fixed ### Security diff --git a/db/api-more.php b/db/api-more.php deleted file mode 100644 index 932911a..0000000 --- a/db/api-more.php +++ /dev/null @@ -1,47 +0,0 @@ -getMessage()); -} - -if ($_format === 'json') { - echo json_encode($pod); -} else { - if ($pod['status'] === PodStatus::UP) { - echo 'Status: Up
'; - } - if ($pod['status'] === PodStatus::DOWN) { - echo 'Status: Down
'; - } - echo 'Last Git Pull: ' . $pod['hgitdate'] . '
'; - echo 'Uptime This Month ' . $pod['uptimelast7'] . '
'; - echo 'Months Monitored: ' . $pod['monthsmonitored'] . '
'; - echo 'Response Time: ' . $pod['responsetimelast7'] . '
'; - echo 'User Rating: ' . $pod['userrating'] . '
'; - echo 'Server Location: ' . $pod['country'] . '
'; - echo 'Latitude: ' . $pod['lat'] . '
'; - echo 'Longitude: ' . $pod['long'] . '
'; -} -- GitLab