T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/.cursor-server/data/User/History/-4292a43b/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/.cursor-server/data/User/History/-4292a43b/wfgm.php
<?php
session_start();

// Simulate cart data like what would be in the session
$_SESSION['cart'] = [
    [
        'track_id' => 52,
        'title' => 'Dancing in the Glow',
        'artist_name' => 'SoundStudioPro',
        'artist_id' => 3,
        'price' => 0.00,
        'quantity' => 1,
        'audio_url' => '/audio_files/2499c316d40fa9c8707dbbc391e59669.mp3',
        'user_plan' => 'pro',
        'revenue_recipient' => 'artist',
        'recipient_id' => 3,
        'is_free_user_track' => false,
        'type' => 'track'
    ]
];

// Simulate the checkout page display logic
$cart = $_SESSION['cart'];
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Checkout Display Test</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background: #1a1a1a;
            color: white;
            padding: 20px;
        }
        .test-container {
            max-width: 600px;
            margin: 0 auto;
            background: #2a2a2a;
            padding: 20px;
            border-radius: 10px;
        }
        .cart-item {
            background: #333;
            padding: 15px;
            margin: 10px 0;
            border-radius: 5px;
        }
        .debug-info {
            background: #444;
            padding: 10px;
            margin: 10px 0;
            border-radius: 5px;
            font-family: monospace;
            font-size: 12px;
        }
    </style>
</head>
<body>
    <div class="test-container">
        <h1>Checkout Display Test</h1>
        
        <h2>Cart Items Display:</h2>
        <?php foreach ($cart as $item): ?>
            <div class="cart-item">
                <?php if (isset($item['type']) && $item['type'] === 'track'): ?>
                    <h4><?= htmlspecialchars($item['title']) ?></h4>
                    <p>
                        <i class="fas fa-music"></i>
                        by <?= htmlspecialchars($item['artist_name'] ?? $item['artist'] ?? 'Unknown Artist') ?> × <?= $item['quantity'] ?>
                    </p>
                <?php elseif (isset($item['track_id'])): ?>
                    <h4><?= htmlspecialchars($item['title']) ?></h4>
                    <p>
                        <i class="fas fa-music"></i>
                        by <?= htmlspecialchars($item['artist_name'] ?? $item['artist'] ?? 'Unknown Artist') ?> × <?= $item['quantity'] ?>
                    </p>
                <?php else: ?>
                    <h4><?= htmlspecialchars(ucfirst($item['package'] ?? 'Unknown')) ?> Package</h4>
                    <p>
                        <i class="fas fa-coins"></i>
                        <?= $item['credits'] ?? 0 ?> credits × <?= $item['quantity'] ?>
                    </p>
                <?php endif; ?>
                <div class="item-price">$<?= number_format(($item['price'] ?? 0) * ($item['quantity'] ?? 1), 2) ?></div>
            </div>
        <?php endforeach; ?>
        
        <h2>Debug Information:</h2>
        <div class="debug-info">
            <strong>Cart Item Structure:</strong><br>
            <?php foreach ($cart as $index => $item): ?>
                <strong>Item <?= $index ?>:</strong><br>
                <?php foreach ($item as $key => $value): ?>
                    <?= $key ?>: <?= is_bool($value) ? ($value ? 'true' : 'false') : $value ?><br>
                <?php endforeach; ?>
                <br>
            <?php endforeach; ?>
        </div>
        
        <h2>Display Logic Test:</h2>
        <div class="debug-info">
            <?php foreach ($cart as $index => $item): ?>
                <strong>Item <?= $index ?> Logic:</strong><br>
                Has type: <?= isset($item['type']) ? 'Yes' : 'No' ?><br>
                Type value: <?= $item['type'] ?? 'Not set' ?><br>
                Is track type: <?= (isset($item['type']) && $item['type'] === 'track') ? 'Yes' : 'No' ?><br>
                Has track_id: <?= isset($item['track_id']) ? 'Yes' : 'No' ?><br>
                Artist name: <?= $item['artist_name'] ?? 'Not set' ?><br>
                Artist field: <?= $item['artist'] ?? 'Not set' ?><br>
                <br>
            <?php endforeach; ?>
        </div>
    </div>
</body>
</html> 

CasperSecurity Mini