diff options
author | lolcat <will@lolcat.ca> | 2023-11-07 08:04:56 -0500 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2023-11-07 08:04:56 -0500 |
commit | 785452873f0ee0a27fc157b482b7551560f0282d (patch) | |
tree | 4c70e240031ed3868425ca683c83ebfd378a9159 /ami4get.php | |
parent | 64b090ee058953aed2246967332c7f0b6623cd8f (diff) |
fix typo
Diffstat (limited to 'ami4get.php')
-rw-r--r-- | ami4get.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ami4get.php b/ami4get.php new file mode 100644 index 0000000..f2d48bf --- /dev/null +++ b/ami4get.php @@ -0,0 +1,27 @@ +<?php + +header("Content-Type: application/json"); +header("Access-Control-Allow-Origin: *"); + +include "data/config.php"; + +$bot_requests = apcu_fetch("captcha"); +$real_requests = apcu_fetch("real_requests"); + +echo json_encode( + [ + "status" => "ok", + "service" => "4get", + "server" => [ + "name" => config::SERVER_NAME, + "description" => config::SERVER_LONG_DESCRIPTION, + "bot_protection" => config::BOT_PROTECTION, + "real_requests" => $real_requests === false ? 0 : $real_requests, + "bot_requests" => $bot_requests === false ? 0 : $bot_requests, + "api_enabled" => config::API_ENABLED, + "alt_addresses" => config::ALT_ADDRESSES, + "version" => config::VERSION + ], + "instances" => config::INSTANCES + ] +); |