🎉 Hello world

This commit is contained in:
2019-09-13 10:45:07 +02:00
commit ade7ab4dec
15 changed files with 8867 additions and 0 deletions

17
public/email.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
$slug = $_POST['slug'];
$emails_json = json_decode(file_get_contents(__DIR__.'/emails.json'), true);
$emails = [];
foreach ($emails_json as $email) {
$emails[$email['slug']] = $email;
}
if (!array_key_exists($slug, $emails)) {
header('HTTP/1.0 404 Not Found');
}
$email = $emails[$slug];
header('Content-Type: application/json');
die(json_encode($email));