2019-09-13 10:45:07 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
header('Content-Type: application/json');
|
2019-09-19 17:17:57 +02:00
|
|
|
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
$json_content = json_decode(file_get_contents(__DIR__.'/emails.json'), true)[0];
|
|
|
|
|
|
|
|
$topic = $_POST['topic'];
|
|
|
|
if (array_key_exists($topic, $json_content)) {
|
|
|
|
echo json_encode($json_content[$topic]);
|
|
|
|
}
|