add initial project files including JSON data, PHP scripts, and HTML structure

This commit is contained in:
ItsTheSky
2026-02-13 12:13:24 +01:00
commit dffb6cf98f
15 changed files with 3235 additions and 0 deletions

17
abandons.php Normal file
View File

@ -0,0 +1,17 @@
<?php
$headers = getallheaders();
if ($headers['Content-Type'] == 'application/json') {
$abandonsJSON = file_get_contents('php://input');
$_POST = ["ok"];
json_decode($abandonsJSON);
if (json_last_error() == JSON_ERROR_NONE) {
file_put_contents('abandons.json', $abandonsJSON);
echo "Enregistrement réussi";
} else {
echo "Erreur JSON";
exit;
}
}
echo file_get_contents('abandons.json');