Zugriff verweigert

'); } $form_data = json_decode(file_get_contents($form_file), true); if ($token !== $form_data['admin_token']) { die('

Ungültiges Token

'); } $questions_map = []; foreach ($form_data['questions'] as $q) { // Keep it short for the table headers $questions_map[$q['id']] = mb_strimwidth($q['label'], 0, 30, "..."); } // Read answers $answers_dir = __DIR__ . '/data/answers'; $submissions = []; if (is_dir($answers_dir)) { $files = glob("{$answers_dir}/{$form_id}_*.json"); foreach ($files as $f) { $data = json_decode(file_get_contents($f), true); if ($data) { $submissions[] = $data; } } } // Sort by submitted_at descending usort($submissions, function($a, $b) { return strtotime($b['submitted_at']) - strtotime($a['submitted_at']); }); $total_responses = count($submissions); ?> Admin - <?= htmlspecialchars($form_data['title']) ?>
Gesamte Antworten
Öffentlicher Link (Antworten)
answer.php?id=
0): ?>
Datum Antwortender

Noch keine Antworten.

Teilen Sie den öffentlichen Link, um Daten zu sammeln.