<?php

$urlWedding = "https://nelliejohan.lerpard.se/share/ECZT8LkjTsuKr-GhoTr7gybdNWLTTQHFEYfdu7p3ZSyMMXZk9AcDUrXQbKtRHWEEmMo";
$urlBeforeWedding = "https://nelliejohan.lerpard.se/share/ceh8tX0tWWJFRkUccwi_nPFxxAXuo3f_qN8dbonvQNPVg5IYPAq8Pl_GrTXy7Y_JVaU";

if ($_REQUEST["p"] == "Delat-Album-Nellie-Johan-TAB5kdp_tdv@umg") {
    header('Location: '.$urlWedding);
    echo "Omdirigerar dig till bilderna...";
    exit;
}
if ($_REQUEST["p"] == "Infor-Brollop-Album-Nellie-Johan-K91kd__01A-Kp") {
    header('Location: '.$urlBeforeWedding);
    echo "Omdirigerar dig till bilderna...";
    exit;
}

?>
<!DOCTYPE html>
<html lang="sv">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Felsida</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .container {
            text-align: center;
            padding: 40px;
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
        h1 {
            color: #ff4d4d;
            font-size: 36px;
        }
        p {
            color: #555555;
            font-size: 18px;
        }
        .btn {
            display: inline-block;
            margin-top: 20px;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-size: 16px;
        }
        .btn:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Du har nog hamnat fel</h1>
        <p>Kontrollera din länk och försök igen.</p>
        <a href="/" class="btn">Tillbaka till startsidan</a>
    </div>
</body>
</html>
