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/domains/soundstudiopro.com/private_html/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/soundstudiopro.com/private_html/utils/test_community_tracks.php
<?php
// Test community tracks for global player
require_once 'config/database.php';

echo "<h1>Community Tracks Test</h1>";

try {
    $pdo = getDBConnection();
    
    // Check for completed tracks
    $stmt = $pdo->prepare("
        SELECT t.*, u.username as artist_name 
        FROM tracks t 
        LEFT JOIN users u ON t.user_id = u.id 
        WHERE t.status = 'completed' 
        AND t.audio_url IS NOT NULL 
        AND t.audio_url != ''
        ORDER BY t.created_at DESC 
        LIMIT 5
    ");
    $stmt->execute();
    $tracks = $stmt->fetchAll(PDO::FETCH_ASSOC);
    
    echo "<h2>Found " . count($tracks) . " completed tracks:</h2>";
    
    if (count($tracks) > 0) {
        foreach ($tracks as $track) {
            echo "<div style='border: 1px solid #ccc; padding: 10px; margin: 10px 0;'>";
            echo "<strong>Title:</strong> " . htmlspecialchars($track['title']) . "<br>";
            echo "<strong>Artist:</strong> " . htmlspecialchars($track['artist_name'] ?? 'Unknown') . "<br>";
            echo "<strong>Audio URL:</strong> " . htmlspecialchars($track['audio_url']) . "<br>";
            echo "<strong>Status:</strong> " . htmlspecialchars($track['status']) . "<br>";
            echo "<strong>Created:</strong> " . htmlspecialchars($track['created_at']) . "<br>";
            echo "</div>";
        }
        
        // Test the first track
        $firstTrack = $tracks[0];
        echo "<h3>Testing first track playback:</h3>";
        echo "<audio controls>";
        echo "<source src='" . htmlspecialchars($firstTrack['audio_url']) . "' type='audio/mpeg'>";
        echo "Your browser does not support the audio element.";
        echo "</audio>";
        
    } else {
        echo "<p>No completed tracks found!</p>";
        
        // Check what tracks exist
        $stmt = $pdo->prepare("SELECT status, COUNT(*) as count FROM tracks GROUP BY status");
        $stmt->execute();
        $statusCounts = $stmt->fetchAll(PDO::FETCH_ASSOC);
        
        echo "<h3>Track status counts:</h3>";
        foreach ($statusCounts as $status) {
            echo "<p>" . htmlspecialchars($status['status']) . ": " . $status['count'] . "</p>";
        }
    }
    
} catch (Exception $e) {
    echo "<p>Error: " . htmlspecialchars($e->getMessage()) . "</p>";
}
?> 

CasperSecurity Mini