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/-6b758f5e/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/.cursor-server/data/User/History/-6b758f5e/39BJ.php
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Community - SoundStudioPro</title>
    <meta name="description" content="Discover amazing AI-generated music from the SoundStudioPro community">
    
    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
    
    <!-- Icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <!-- Mobile CSS -->
    <link rel="stylesheet" href="/assets/css/mobile.css">
    
    <style>
        /* Reset & Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            font-size: 62.5%;
            scroll-behavior: smooth;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #ffffff;
            background: #0a0a0a;
            min-height: 100vh;
            overflow-x: hidden;
            padding-top: 100px;
        }
        
        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: #1a202c;
        }
        
        ::-webkit-scrollbar-thumb {
            background: #667eea;
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: #5a67d8;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }
        
        .header {
            background: rgba(26, 32, 44, 0.95);
            backdrop-filter: blur(10px);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 1rem 0;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }
        
        .logo {
            font-size: 2.4rem;
            font-weight: 700;
            color: #667eea;
            text-decoration: none;
        }
        
        .nav {
            display: flex;
            gap: 3rem;
        }
        
        .nav a {
            color: #ffffff;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }
        
        .nav a:hover {
            color: #667eea;
        }
        
        .main-content {
            padding: 4rem 0;
        }
        
        .page-title {
            font-size: 4.8rem;
            font-weight: 800;
            text-align: center;
            margin-bottom: 2rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .tracks-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 4rem;
        }
        
        .track-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 2rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .track-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
        }
        
        .track-title {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #ffffff;
        }
        
        .track-artist {
            font-size: 1.4rem;
            color: #a0aec0;
            margin-bottom: 1.5rem;
        }
        
        .play-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s ease;
            width: 100%;
        }
        
        .play-btn:hover {
            transform: scale(1.05);
        }
        
        .debug-info {
            background: rgba(255,255,255,0.1);
            padding: 2rem;
            border-radius: 8px;
            margin: 2rem 0;
            font-family: monospace;
            white-space: pre-wrap;
        }
    </style>
</head>
<body>
    <!-- Header -->
    <header class="header">
        <div class="header-content">
            <a href="/" class="logo">SoundStudioPro</a>
            <nav class="nav">
                <a href="/">Home</a>
                <a href="/community_clean.php">Community</a>
                <a href="/login.php">Login</a>
            </nav>
        </div>
    </header>

    <!-- Main Content -->
    <main class="main-content">
        <div class="container">
            <h1 class="page-title">🎵 Community Music</h1>
            
            <div class="debug-info">
                <h3>🔧 Debug Info:</h3>
                <div id="debugInfo">Loading...</div>
            </div>
            
            <div class="tracks-grid" id="tracksGrid">
                <!-- Tracks will be loaded here -->
            </div>
        </div>
    </main>

    <script>
        // Debug function
        function checkGlobalPlayer() {
            console.log('🎵 Checking global player...');
            
            const info = {
                'enhancedGlobalPlayer exists': !!window.enhancedGlobalPlayer,
                'globalPlayerReady': !!window.globalPlayerReady,
                'playTrack function': !!(window.enhancedGlobalPlayer && window.enhancedGlobalPlayer.playTrack),
                'showPlayer function': !!(window.enhancedGlobalPlayer && window.enhancedGlobalPlayer.showPlayer),
                'loadPlaylist function': !!(window.enhancedGlobalPlayer && window.enhancedGlobalPlayer.loadPlaylist),
                'waitForGlobalPlayer function': !!window.waitForGlobalPlayer,
                'Player element exists': !!document.getElementById('enhancedGlobalPlayer'),
                'Audio element exists': !!document.getElementById('globalAudioElement')
            };
            
            const debugDiv = document.getElementById('debugInfo');
            debugDiv.innerHTML = Object.entries(info)
                .map(([key, value]) => `${key}: ${value ? '✅' : '❌'}`)
                .join('\n');
            
            console.log('🎵 Player status:', info);
            
            if (window.enhancedGlobalPlayer) {
                console.log('🎵 Available functions:', Object.keys(window.enhancedGlobalPlayer));
            }
        }

        // Play track function
        function playTrack(audioUrl, title, artist, trackId) {
            console.log('🎵 Community playTrack called:', { audioUrl, title, artist, trackId });
            
            if (window.enhancedGlobalPlayer && typeof window.enhancedGlobalPlayer.playTrack === 'function') {
                console.log('🎵 Using enhancedGlobalPlayer');
                try {
                    window.enhancedGlobalPlayer.playTrack(audioUrl, title, artist, trackId);
                } catch (error) {
                    console.error('🎵 Error calling playTrack:', error);
                    alert('Error playing track. Please try again.');
                }
            } else if (typeof window.waitForGlobalPlayer === 'function') {
                console.log('🎵 Waiting for global player to be ready...');
                window.waitForGlobalPlayer(() => {
                    console.log('🎵 Global player ready, playing track');
                    try {
                        window.enhancedGlobalPlayer.playTrack(audioUrl, title, artist, trackId);
                    } catch (error) {
                        console.error('🎵 Error calling playTrack after wait:', error);
                        alert('Error playing track. Please try again.');
                    }
                });
            } else {
                console.error('🎵 Global player not available');
                alert('Music player not ready. Please refresh the page and try again.');
            }
        }

        // Load sample tracks
        function loadSampleTracks() {
            const tracks = [
                {
                    id: 1,
                    title: "Boundaries in Bloom",
                    artist: "Charles D",
                    audioUrl: "https://apiboxfiles.erweima.ai/MjE4OGJiZWMtNDRkMi00OTYwLTkyZGYtNWExMjQ1OTlkMGQx.mp3"
                },
                {
                    id: 2,
                    title: "Digital Dreams",
                    artist: "AI Composer",
                    audioUrl: "https://soundstudiopro.com/assets/audio/sample-track.mp3"
                },
                {
                    id: 3,
                    title: "Neon Nights",
                    artist: "SoundStudioPro",
                    audioUrl: "https://soundstudiopro.com/assets/audio/sample-track.mp3"
                }
            ];
            
            const tracksGrid = document.getElementById('tracksGrid');
            tracksGrid.innerHTML = tracks.map(track => `
                <div class="track-card">
                    <h3 class="track-title">${track.title}</h3>
                    <p class="track-artist">by ${track.artist}</p>
                    <button class="play-btn" onclick="playTrack('${track.audioUrl}', '${track.title}', '${track.artist}', ${track.id})">
                        🎵 Play Track
                    </button>
                </div>
            `).join('');
        }

        // Initialize page
        document.addEventListener('DOMContentLoaded', function() {
            console.log('🎵 Clean community page loaded');
            loadSampleTracks();
            checkGlobalPlayer();
            
            // Check for global player
            setTimeout(() => {
                if (window.enhancedGlobalPlayer && typeof window.enhancedGlobalPlayer.showPlayer === 'function') {
                    console.log('✅ Global player ready on clean community page');
                    try {
                        window.enhancedGlobalPlayer.showPlayer();
                        if (window.enhancedGlobalPlayer.loadPlaylist) {
                            window.enhancedGlobalPlayer.loadPlaylist('community', false);
                        }
                    } catch (error) {
                        console.error('🎵 Error calling global player functions:', error);
                    }
                } else {
                    console.log('🎵 Global player not yet available on clean page');
                }
            }, 2000);
        });

        // Monitor for global player
        let checkCount = 0;
        const maxChecks = 20;
        const checkInterval = setInterval(() => {
            checkCount++;
            console.log(`🎵 Check ${checkCount}: Global player status`);
            
            if (window.enhancedGlobalPlayer) {
                console.log('✅ Global player detected!');
                clearInterval(checkInterval);
                checkGlobalPlayer();
            } else if (checkCount >= maxChecks) {
                console.error('❌ Global player not detected after maximum checks');
                clearInterval(checkInterval);
                checkGlobalPlayer();
            }
        }, 500);
    </script>

    <!-- Include global player -->
    <?php include 'global_player.php'; ?>
</body>
</html> 

CasperSecurity Mini