mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -04:00
30 lines
1,001 B
PHP
30 lines
1,001 B
PHP
<?
|
||
// 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 won’t be activated until you click that link—this helps us prevent spam. Thank you!</p>
|
||
</section>
|
||
</main>
|
||
<?= Template::Footer() ?>
|