17 lines
443 B
PHP
Executable File
17 lines
443 B
PHP
Executable File
<?php
|
|
header("Access-Control-Allow-Origin: *");
|
|
|
|
include("../../mysqlverbinden.php");
|
|
include("./get_results_lib.php");
|
|
|
|
if(!isset($_GET["id"])) die("GET id fehlt");
|
|
$formularid=$_GET["id"];
|
|
|
|
if(!mysqli_execute_query($db_id,"SELECT `public` FROM `formulare` WHERE `id`=?;",[$formularid])->fetch_assoc()["public"]){
|
|
die('{"error":"not_public"}');
|
|
}
|
|
|
|
|
|
echo json_encode(get_results($formularid),JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
|
|
|