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/-391d6e54/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/.cursor-server/data/User/History/-391d6e54/ZZJu.php
<?php
require_once 'config/database.php';

try {
    $pdo = getDBConnection();
    
    echo "<h2>๐Ÿ” Adagio for Strings Track Analysis</h2>\n";
    
    // Find the specific track
    $stmt = $pdo->prepare("
        SELECT 
            mt.id,
            mt.title,
            mt.audio_url,
            mt.video_url,
            mt.status,
            mt.is_vip_sample,
            mt.is_featured,
            mt.playlist_order,
            mt.created_at,
            u.name as artist_name,
            u.id as user_id
        FROM music_tracks mt
        JOIN users u ON mt.user_id = u.id
        WHERE mt.title LIKE '%Adagio%' OR mt.title LIKE '%adagio%'
        ORDER BY mt.created_at DESC
    ");
    $stmt->execute();
    $tracks = $stmt->fetchAll();
    
    if (empty($tracks)) {
        echo "โŒ No tracks found with 'Adagio' in the title\n";
    } else {
        echo "โœ… Found " . count($tracks) . " tracks with 'Adagio' in the title:\n\n";
        
        foreach ($tracks as $track) {
            echo "๐ŸŽต Track ID: {$track['id']}\n";
            echo "   Title: '{$track['title']}'\n";
            echo "   Artist: {$track['artist_name']}\n";
            echo "   Status: {$track['status']}\n";
            echo "   VIP Sample: " . ($track['is_vip_sample'] ? 'Yes' : 'No') . "\n";
            echo "   Featured: " . ($track['is_featured'] ? 'Yes' : 'No') . "\n";
            echo "   Playlist Order: {$track['playlist_order']}\n";
            echo "   Audio URL: " . (empty($track['audio_url']) ? 'NULL' : 'Present') . "\n";
            echo "   Created: {$track['created_at']}\n";
            echo "\n";
        }
    }
    
    // Check VIP tracks specifically
    echo "<h3>๐ŸŽต VIP Sample Tracks</h3>\n";
    $stmt = $pdo->prepare("
        SELECT 
            mt.id,
            mt.title,
            mt.audio_url,
            u.name as artist_name,
            mt.playlist_order
        FROM music_tracks mt
        JOIN users u ON mt.user_id = u.id
        WHERE mt.status = 'complete' 
        AND mt.audio_url IS NOT NULL 
        AND mt.is_vip_sample = 1
        ORDER BY mt.playlist_order ASC, mt.created_at DESC
        LIMIT 10
    ");
    $stmt->execute();
    $vip_tracks = $stmt->fetchAll();
    
    echo "Found " . count($vip_tracks) . " VIP sample tracks:\n";
    foreach ($vip_tracks as $track) {
        echo "- ID {$track['id']}: '{$track['title']}' by {$track['artist_name']} (Order: {$track['playlist_order']})\n";
    }
    
    // Test the VIP API endpoint
    echo "\n<h3>๐Ÿงช Testing VIP API Endpoint</h3>\n";
    $api_url = '/api/get_vip_sample_tracks.php?per_page=10';
    echo "Testing: $api_url\n";
    
    // Simulate the API call
    $stmt = $pdo->prepare("
        SELECT 
            mt.id,
            mt.title,
            mt.audio_url,
            mt.video_url,
            mt.prompt,
            mt.created_at,
            mt.playlist_order,
            u.name as artist_name,
            u.id as user_id,
            (SELECT COUNT(*) FROM track_plays WHERE track_id = mt.id) as play_count,
            (SELECT COUNT(*) FROM track_likes WHERE track_id = mt.id) as like_count
        FROM music_tracks mt
        JOIN users u ON mt.user_id = u.id
        WHERE mt.status = 'complete' 
        AND mt.audio_url IS NOT NULL 
        AND mt.is_vip_sample = 1
        ORDER BY mt.playlist_order ASC, mt.created_at DESC
        LIMIT 10
    ");
    $stmt->execute();
    $api_tracks = $stmt->fetchAll();
    
    echo "API would return " . count($api_tracks) . " tracks:\n";
    foreach ($api_tracks as $track) {
        echo "- ID {$track['id']}: '{$track['title']}' by {$track['artist_name']} (Order: {$track['playlist_order']})\n";
    }
    
} catch (Exception $e) {
    echo "โŒ Error: " . $e->getMessage() . "\n";
}
?> 

CasperSecurity Mini