Version 2.0 - preys, bot updates, ui improvements

This commit is contained in:
OTCv8
2020-01-31 18:01:42 +01:00
parent 48d7eb810d
commit 6bc4188d7a
40 changed files with 737 additions and 72 deletions

View File

@@ -1,11 +1,14 @@
<?php
$data = file_get_contents("php://input");
//$data = json_decode($data);
if(empty($data)) {
return http_response_code(400);
}
$json = json_decode($data);
if(!$json) {
return http_response_code(400);
}
file_put_contents("feedback.txt", $data."\n\n\n", FILE_APPEND);
file_put_contents("feedback.txt", ($json->player->name) .": ". ($json->text) ."\n".$data."\n\n\n", FILE_APPEND);
echo "OK";
?>