web/www/newsletter/subscriptions/success.php
2024-11-20 14:52:05 -06:00

30 lines
1,001 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?
// We use a 'succes' page and don't redirect directly to the vote ID resource, because
// we don't want to reveal the vote ID to the web browser. It should only be sent via email
// confirmation link.
use function \Safe\session_unset;
session_start();
$created = false;
if(isset($_SESSION['is-subscription-created'])){
$created = true;
session_unset();
}
if($created){
// HTTP 201 Created
http_response_code(Enums\HttpCode::Created->value);
}
?><?= Template::Header(['title' => 'Your subscription to the Standard Ebooks newsletter', 'highlight' => 'newsletter', 'description' => 'Your subscription to the Standard Ebooks newsletter.']) ?>
<main>
<section class="narrow">
<h1>Almost done!</h1>
<p>Please check your email inbox for a confirmation email containing a link to finalize your subscription to our newsletter.</p>
<p>Your subscription wont be activated until you click that link—this helps us prevent spam. Thank you!</p>
</section>
</main>
<?= Template::Footer() ?>