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/-54040e48/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/.cursor-server/data/User/History/-54040e48/4UPQ.php
<?php
require_once 'config/database.php';

$pdo = getDBConnection();
$artist_id = 4;

echo "<h1>🔍 Artist Profile Debug - User ID: $artist_id</h1>";

// Get artist info
$stmt = $pdo->prepare("SELECT * FROM users WHERE id = ?");
$stmt->execute([$artist_id]);
$artist = $stmt->fetch();

echo "<h2>Artist Info:</h2>";
echo "<pre>";
print_r($artist);
echo "</pre>";

// Get artist's tracks (same query as artist_profile.php)
$stmt = $pdo->prepare("
    SELECT * FROM music_tracks 
    WHERE user_id = ? AND status = 'complete' AND audio_url IS NOT NULL
    ORDER BY created_at DESC
");
$stmt->execute([$artist_id]);
$tracks = $stmt->fetchAll();

echo "<h2>Tracks Query Results:</h2>";
echo "<p>Query: <code>SELECT * FROM music_tracks WHERE user_id = $artist_id AND status = 'complete' AND audio_url IS NOT NULL ORDER BY created_at DESC</code></p>";
echo "<p>Found " . count($tracks) . " tracks</p>";

if (empty($tracks)) {
    echo "<p style='color: red;'>❌ No tracks found!</p>";
    
    // Check what tracks this user actually has
    $stmt = $pdo->prepare("SELECT * FROM music_tracks WHERE user_id = ?");
    $stmt->execute([$artist_id]);
    $all_tracks = $stmt->fetchAll();
    
    echo "<h3>All tracks for this user:</h3>";
    foreach ($all_tracks as $track) {
        $status_ok = $track['status'] === 'complete' ? '✅' : '❌';
        $audio_ok = !empty($track['audio_url']) ? '✅' : '❌';
        echo "<p>ID: {$track['id']} | Title: {$track['title']} | Status: {$track['status']} $status_ok | Audio: " . ($track['audio_url'] ? 'Yes' : 'No') . " $audio_ok</p>";
    }
} else {
    echo "<h3>Found tracks:</h3>";
    foreach ($tracks as $track) {
        echo "<p>ID: {$track['id']} | Title: {$track['title']} | Status: {$track['status']} | Audio: " . ($track['audio_url'] ? 'Yes' : 'No') . "</p>";
    }
}

echo "<p><a href='/artist_profile.php?id=$artist_id'>View Artist Profile</a></p>";
?> 

CasperSecurity Mini