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/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/soundstudiopro.com/private_html/includes/shared_layout.php
<?php
// Shared Layout System for SoundStudioPro
// This file contains the common header, navigation, and footer used across all pages

function renderHeader($pageTitle = 'SoundStudioPro', $activePage = '') {
    global $user_name, $credits;
    
    $credits = $credits ?? 5;
    $user_name = $user_name ?? 'User';
    
    return '
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>' . htmlspecialchars($pageTitle) . '</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
        <style>
            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }

            body {
                font-family: \'Segoe UI\', Tahoma, Geneva, Verdana, sans-serif;
                background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
                color: white;
                min-height: 100vh;
                overflow-x: hidden;
            }

            /* Header Styles */
            .header {
                background: rgba(0, 0, 0, 0.8);
                backdrop-filter: blur(20px);
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                padding: 1rem 2rem;
                position: sticky;
                top: 0;
                z-index: 100;
            }

            .nav-container {
                display: flex;
                justify-content: space-between;
                align-items: center;
                max-width: 1400px;
                margin: 0 auto;
            }

            .logo {
                display: flex;
                align-items: center;
                gap: 1rem;
                font-size: 2.4rem;
                font-weight: bold;
                color: #667eea;
                text-decoration: none;
            }

            .logo i {
                font-size: 3rem;
            }

            .nav-links {
                display: flex;
                align-items: center;
                gap: 2rem;
            }

            .nav-link {
                color: #a0aec0;
                text-decoration: none;
                font-size: 1.6rem;
                transition: color 0.3s ease;
                padding: 0.8rem 1.6rem;
                border-radius: 8px;
            }

            .nav-link:hover, .nav-link.active {
                color: #667eea;
                background: rgba(102, 126, 234, 0.1);
            }

            .refresh-btn {
                background: linear-gradient(135deg, #667eea, #764ba2);
                color: white;
                border: none;
                padding: 0.8rem 1.6rem;
                border-radius: 8px;
                cursor: pointer;
                font-size: 1.4rem;
                display: flex;
                align-items: center;
                gap: 0.8rem;
                transition: transform 0.3s ease;
            }

            .refresh-btn:hover {
                transform: translateY(-2px);
            }

            .user-actions {
                display: flex;
                align-items: center;
                gap: 1rem;
            }

            .credits-btn {
                background: linear-gradient(135deg, #667eea, #764ba2);
                color: white;
                border: none;
                padding: 0.8rem 1.6rem;
                border-radius: 8px;
                font-size: 1.4rem;
                display: flex;
                align-items: center;
                gap: 0.8rem;
            }

            .logout-btn {
                background: rgba(255, 255, 255, 0.1);
                color: white;
                border: 1px solid rgba(255, 255, 255, 0.2);
                padding: 0.8rem 1.6rem;
                border-radius: 8px;
                text-decoration: none;
                font-size: 1.4rem;
                display: flex;
                align-items: center;
                gap: 0.8rem;
                transition: all 0.3s ease;
            }

            .logout-btn:hover {
                background: rgba(255, 255, 255, 0.15);
            }

            /* Main Content Container */
            .main-container {
                max-width: 1400px;
                margin: 0 auto;
                padding: 2rem;
            }

            /* Page Title Styles */
            .page-title {
                font-size: 4.8rem;
                font-weight: bold;
                margin-bottom: 1rem;
                text-align: center;
            }

            .page-subtitle {
                font-size: 2rem;
                color: #a0aec0;
                text-align: center;
                margin-bottom: 4rem;
            }

            /* Button Styles */
            .btn {
                display: inline-flex;
                align-items: center;
                gap: 0.8rem;
                padding: 1rem 2rem;
                border: none;
                border-radius: 8px;
                font-size: 1.4rem;
                font-weight: bold;
                text-decoration: none;
                cursor: pointer;
                transition: all 0.3s ease;
            }

            .btn-primary {
                background: linear-gradient(135deg, #667eea, #764ba2);
                color: white;
            }

            .btn-secondary {
                background: rgba(255, 255, 255, 0.1);
                color: white;
                border: 1px solid rgba(255, 255, 255, 0.2);
            }

            .btn-danger {
                background: #f56565;
                color: white;
            }

            .btn:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            }

            /* Card Styles */
            .card {
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
                border: 1px solid rgba(255, 255, 255, 0.1);
                border-radius: 16px;
                padding: 2rem;
                transition: all 0.3s ease;
            }

            .card:hover {
                transform: translateY(-5px);
                border-color: rgba(102, 126, 234, 0.3);
                box-shadow: 0 20px 60px rgba(102, 126, 234, 0.1);
            }

            /* Grid Layout */
            .grid {
                display: grid;
                gap: 2rem;
            }

            .grid-2 {
                grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            }

            .grid-3 {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            }

            .grid-4 {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            }

            /* Responsive Design */
            @media (max-width: 768px) {
                .nav-container {
                    flex-direction: column;
                    gap: 1rem;
                }

                .nav-links {
                    flex-wrap: wrap;
                    justify-content: center;
                }

                .page-title {
                    font-size: 3.2rem;
                }

                .main-container {
                    padding: 1rem;
                }
            }
        </style>
    </head>
    <body>
        <!-- Header -->
        <header class="header">
            <div class="nav-container">
                <a href="/" class="logo">
                    <i class="fas fa-music"></i>
                    <span>SoundStudio</span>
                </a>
                
                <nav class="nav-links">
                    <a href="/dashboard.php" class="nav-link' . ($activePage === 'dashboard' ? ' active' : '') . '">Dashboard</a>
                    <a href="/#create" class="nav-link' . ($activePage === 'create' ? ' active' : '') . '">Create Music</a>
                    <a href="/library.php" class="nav-link' . ($activePage === 'library' ? ' active' : '') . '">My Library</a>
                    <a href="/player.php" class="nav-link' . ($activePage === 'player' ? ' active' : '') . '">SoundStudioProPlayer</a>
                    <a href="/bands.php" class="nav-link' . ($activePage === 'bands' ? ' active' : '') . '">Bands Directory</a>
                    <a href="/community.php" class="nav-link' . ($activePage === 'community' ? ' active' : '') . '">Music Feed</a>
                </nav>
                
                <div class="user-actions">
                    <button class="credits-btn">
                        <i class="fas fa-coins"></i>
                        ' . $credits . ' Credits
                    </button>
                    <button onclick="handleLogout()" class="logout-btn">
                        <i class="fas fa-sign-out-alt"></i>
                        Logout
                    </button>
                </div>
            </div>
        </header>

        <!-- Main Content Container -->
        <div class="main-container">';
}

function renderFooter() {
    return '
        </div> <!-- End main-container -->
        
        <script>
            // Shared JavaScript functions
            function showNotification(message, type = "info") {
                const notification = document.createElement("div");
                notification.style.cssText = `
                    position: fixed;
                    top: 20px;
                    right: 20px;
                    background: linear-gradient(135deg, #667eea, #764ba2);
                    color: white;
                    padding: 1rem 2rem;
                    border-radius: 8px;
                    z-index: 10000;
                    font-size: 1.4rem;
                    animation: slideIn 0.3s ease;
                    max-width: 300px;
                    word-wrap: break-word;
                `;
                notification.textContent = message;
                document.body.appendChild(notification);
                
                setTimeout(() => {
                    notification.remove();
                }, 3000);
            }

            // Add CSS animation
            const style = document.createElement("style");
            style.textContent = `
                @keyframes slideIn {
                    from { transform: translateX(100%); opacity: 0; }
                    to { transform: translateX(0); opacity: 1; }
                }
            `;
            document.head.appendChild(style);
        </script>
    </body>
    </html>';
}

// Helper function to get navigation items
function getNavigationItems() {
    return [
        ['url' => '/dashboard.php', 'title' => 'Dashboard', 'icon' => 'fas fa-tachometer-alt'],
        ['url' => '/#create', 'title' => 'Create Music', 'icon' => 'fas fa-plus'],
        ['url' => '/library.php', 'title' => 'My Library', 'icon' => 'fas fa-music'],
        ['url' => '/player.php', 'title' => 'SoundStudioProPlayer', 'icon' => 'fas fa-play'],
        ['url' => '/bands.php', 'title' => 'Bands Directory', 'icon' => 'fas fa-users'],
        ['url' => '/community.php', 'title' => 'Music Feed', 'icon' => 'fas fa-music']
    ];
}
?> 

CasperSecurity Mini