55 lines
2.7 KiB
PHP
55 lines
2.7 KiB
PHP
<?php
|
||
declare(strict_types=1);
|
||
session_start();
|
||
|
||
$projectName = $_SERVER['PROJECT_NAME'] ?? 'Northline Studio';
|
||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Thanks for requesting a quote. Your request has been received.';
|
||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
||
$leadId = isset($_GET['id']) ? (int)$_GET['id'] : 0;
|
||
$sessionLeadId = (int)($_SESSION['last_lead_id'] ?? 0);
|
||
$mailStatus = (string)($_SESSION['last_mail_status'] ?? 'not_configured');
|
||
function h(?string $value): string { return htmlspecialchars((string)$value, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); }
|
||
?>
|
||
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>Quote Request Received | <?= h($projectName) ?></title>
|
||
<?php if ($projectDescription): ?>
|
||
<meta name="description" content="<?= h($projectDescription) ?>">
|
||
<meta property="og:description" content="<?= h($projectDescription) ?>">
|
||
<meta property="twitter:description" content="<?= h($projectDescription) ?>">
|
||
<?php endif; ?>
|
||
<?php if ($projectImageUrl): ?>
|
||
<meta property="og:image" content="<?= h($projectImageUrl) ?>">
|
||
<meta property="twitter:image" content="<?= h($projectImageUrl) ?>">
|
||
<?php endif; ?>
|
||
<meta name="robots" content="noindex, nofollow">
|
||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||
<link rel="stylesheet" href="assets/css/custom.css?v=2026052901">
|
||
</head>
|
||
<body>
|
||
<main class="admin-shell d-flex align-items-center">
|
||
<div class="container py-5">
|
||
<div class="row justify-content-center">
|
||
<div class="col-lg-7">
|
||
<section class="admin-card p-4 p-md-5 text-center">
|
||
<p class="eyebrow">Request received</p>
|
||
<h1 class="h2">Thanks — your quote request is in the dashboard.</h1>
|
||
<p class="text-secondary mt-3">We’ll review the details and follow up with next steps. Your reference is <strong>#<?= h((string)($leadId ?: $sessionLeadId)) ?></strong>.</p>
|
||
<?php if ($mailStatus !== 'sent'): ?>
|
||
<div class="notice-box mt-3 text-start">Testing notice: the request was saved, but email delivery depends on MAIL_TO and SMTP settings. Flatlogic does not guarantee usage of the default mail server; configure your own SMTP in environment variables for production.</div>
|
||
<?php endif; ?>
|
||
<div class="d-flex flex-column flex-sm-row justify-content-center gap-2 mt-4">
|
||
<a class="btn btn-dark" href="/">Back to homepage</a>
|
||
<a class="btn btn-outline-dark" href="admin.php">Open admin dashboard</a>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</main>
|
||
</body>
|
||
</html>
|