<?php
if (isset($_GET['token']) && isset($_GET['email'])) {
    $token = htmlspecialchars($_GET['token']);
    $email = htmlspecialchars($_GET['email']);
    // Redirect to landing page with token and email in URL
    header('Location: landing.php?token=' . urlencode($token) . '&email=' . urlencode($email));
    exit();
} else {
    // Invalid access, redirect to landing
    header('Location: landing.php');
    exit();
}
?>
