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/-62335d46/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/.cursor-server/data/User/History/-62335d46/q7Ix.php
<?php
/**
 * Quick Fix: Add #pageContainer to all pages for AJAX navigation
 * This script adds the required container structure to pages missing it
 */

$pages_to_fix = [
    'community_fixed.php',
    'studio.php', 
    'events.php',
    'artist_dashboard.php',
    'track.php'
];

echo "šŸ”§ Fixing page containers for AJAX navigation...\n\n";

foreach ($pages_to_fix as $page) {
    if (!file_exists($page)) {
        echo "āŒ $page - File not found\n";
        continue;
    }
    
    $content = file_get_contents($page);
    
    // Check if already has pageContainer
    if (strpos($content, 'id="pageContainer"') !== false) {
        echo "āœ… $page - Already has pageContainer\n";
        continue;
    }
    
    // Find header include
    if (strpos($content, "include 'includes/header.php';") !== false) {
        // Add pageContainer after header
        $content = str_replace(
            "include 'includes/header.php';",
            "include 'includes/header.php';\n\n// Add pageContainer for AJAX navigation\necho '<div class=\"container\" id=\"pageContainer\">';",
            $content
        );
        
        // Find footer include and add closing div before it
        if (strpos($content, "include 'includes/footer.php';") !== false) {
            $content = str_replace(
                "include 'includes/footer.php';",
                "    </div> <!-- Close pageContainer -->\n\n<?php include 'includes/footer.php'; ?>",
                $content
            );
        }
        
        // Save the file
        if (file_put_contents($page, $content)) {
            echo "āœ… $page - Fixed with pageContainer\n";
        } else {
            echo "āŒ $page - Failed to save\n";
        }
    } else {
        echo "āš ļø  $page - No header include found, manual fix needed\n";
    }
}

echo "\nšŸŽÆ Quick fix complete! Test AJAX navigation now.\n";
echo "Pages should now work properly with AJAX navigation.\n";
?>

CasperSecurity Mini