22 lines
362 B
PHP
Executable File
22 lines
362 B
PHP
Executable File
<?php
|
|
include("../../../mysqlverbinden.php");
|
|
include("../secret.php");
|
|
include("../../vendor/autoload.php");
|
|
|
|
include("../check.php");
|
|
|
|
$payload=getUserInfo();
|
|
|
|
$username=$payload->username;
|
|
$id=$payload->id;
|
|
|
|
$rawBody = file_get_contents('php://input');
|
|
|
|
$data = json_decode($rawBody, true);
|
|
|
|
if($data===null) die("Kein Body übertragen");
|
|
|
|
|
|
var_dump($data);
|
|
|