mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-18 13:43:27 +02:00
Version 2.0 - preys, bot updates, ui improvements
This commit is contained in:
@@ -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";
|
||||
?>
|
Reference in New Issue
Block a user