19 lines
435 B
PHP
Executable File
19 lines
435 B
PHP
Executable File
<?php
|
|
include("../../../mysqlverbinden.php");
|
|
include("../secret.php");
|
|
include("../../vendor/autoload.php");
|
|
|
|
include("../check.php");
|
|
include("../../formulare/get_results_lib.php");
|
|
|
|
$payload=getUserInfo();
|
|
|
|
$username=$payload->username;
|
|
$id=$payload->id;
|
|
|
|
if(!isset($_GET["formular"])) die("GET formular fehlt");
|
|
$formular=$_GET["formular"];
|
|
|
|
|
|
echo json_encode(get_results($formular),JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);
|