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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/soundstudiopro.com/private_html/verify_ajax_installation.php
<?php
// AJAX Navigation Installation Verification
// Checks if all components are properly installed and configured

echo "šŸ” AJAX Navigation Installation Verification\n";
echo "=" . str_repeat("=", 50) . "\n\n";

$checks = [];
$errors = [];

// Check core files
$coreFiles = [
    'js/ajax_navigation.js' => 'Main AJAX navigation engine',
    'ajax_load_page.php' => 'Content loader endpoint',
    'ajax_monitor.php' => 'Performance monitoring',
    'ajax_dashboard.php' => 'Admin dashboard',
    'test_ajax_navigation.php' => 'Testing interface'
];

echo "šŸ“ Checking Core Files:\n";
foreach ($coreFiles as $file => $description) {
    if (file_exists($file)) {
        echo "āœ… $file - $description\n";
        $checks['files'][] = $file;
    } else {
        echo "āŒ $file - MISSING\n";
        $errors[] = "Missing file: $file";
    }
}

// Check file permissions
echo "\nšŸ”’ Checking File Permissions:\n";
$permissionFiles = ['ajax_load_page.php', 'ajax_monitor.php', 'js/ajax_navigation.js'];
foreach ($permissionFiles as $file) {
    if (file_exists($file)) {
        $perms = substr(sprintf('%o', fileperms($file)), -4);
        if ($perms >= '0644') {
            echo "āœ… $file - Permissions: $perms\n";
        } else {
            echo "āš ļø $file - Permissions: $perms (may need adjustment)\n";
        }
    }
}

// Check PHP syntax
echo "\nšŸ”§ Checking PHP Syntax:\n";
$phpFiles = ['ajax_load_page.php', 'ajax_monitor.php', 'ajax_dashboard.php', 'test_ajax_navigation.php'];
foreach ($phpFiles as $file) {
    if (file_exists($file)) {
        $output = [];
        $returnCode = 0;
        exec("php -l $file 2>&1", $output, $returnCode);
        
        if ($returnCode === 0) {
            echo "āœ… $file - Syntax OK\n";
        } else {
            echo "āŒ $file - Syntax Error: " . implode(' ', $output) . "\n";
            $errors[] = "Syntax error in $file";
        }
    }
}

// Check database connection
echo "\nšŸ—„ļø Checking Database Connection:\n";
try {
    require_once 'config/database.php';
    echo "āœ… Database connection - OK\n";
} catch (Exception $e) {
    echo "āŒ Database connection - Error: " . $e->getMessage() . "\n";
    $errors[] = "Database connection failed";
}

// Check if header includes AJAX script
echo "\nšŸ“„ Checking Header Integration:\n";
if (file_exists('includes/header.php')) {
    $headerContent = file_get_contents('includes/header.php');
    if (strpos($headerContent, 'ajax_navigation.js') !== false) {
        echo "āœ… Header includes AJAX script\n";
    } else {
        echo "āŒ Header missing AJAX script include\n";
        $errors[] = "Header not updated with AJAX script";
    }
} else {
    echo "āŒ Header file not found\n";
    $errors[] = "Header file missing";
}

// Check modified files
echo "\nšŸ”„ Checking Modified Files:\n";
$modifiedFiles = ['community_fixed.php', 'includes/header.php'];
foreach ($modifiedFiles as $file) {
    if (file_exists($file)) {
        echo "āœ… $file - Present\n";
    } else {
        echo "āŒ $file - Missing\n";
        $errors[] = "Modified file missing: $file";
    }
}

// Check logs directory
echo "\nšŸ“Š Checking Logs Directory:\n";
if (is_dir('logs')) {
    echo "āœ… Logs directory exists\n";
    if (is_writable('logs')) {
        echo "āœ… Logs directory is writable\n";
    } else {
        echo "āš ļø Logs directory not writable\n";
    }
} else {
    echo "ā„¹ļø Logs directory will be created on first use\n";
}

// Test AJAX endpoint
echo "\n🌐 Testing AJAX Endpoint:\n";
if (function_exists('curl_init')) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, 'http://localhost/ajax_load_page.php?page=track&id=1');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_TIMEOUT, 5);
    curl_setopt($ch, CURLOPT_HEADER, false);
    
    $response = curl_exec($ch);
    $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    curl_close($ch);
    
    if ($httpCode === 200 || $httpCode === 404) {
        echo "āœ… AJAX endpoint responding (HTTP $httpCode)\n";
    } else {
        echo "āš ļø AJAX endpoint status: HTTP $httpCode\n";
    }
} else {
    echo "ā„¹ļø cURL not available for endpoint testing\n";
}

// Summary
echo "\n" . str_repeat("=", 60) . "\n";
echo "šŸ“‹ INSTALLATION SUMMARY:\n";
echo str_repeat("=", 60) . "\n";

if (empty($errors)) {
    echo "šŸŽ‰ SUCCESS: AJAX Navigation is properly installed!\n\n";
    echo "āœ… All core files present and configured\n";
    echo "āœ… PHP syntax checks passed\n";
    echo "āœ… Database connection working\n";
    echo "āœ… Header integration complete\n\n";
    
    echo "šŸš€ NEXT STEPS:\n";
    echo "1. Visit /test_ajax_navigation.php to test the system\n";
    echo "2. Navigate to /community_fixed.php and test navigation\n";
    echo "3. Monitor performance at /ajax_dashboard.php (admin)\n";
    echo "4. Check logs in /logs/ directory for analytics\n\n";
    
    echo "šŸŽµ Your global music player will now persist across all navigation!\n";
    
} else {
    echo "āš ļø ISSUES FOUND:\n";
    foreach ($errors as $error) {
        echo "āŒ $error\n";
    }
    echo "\nPlease fix these issues before using AJAX navigation.\n";
}

echo "\nšŸ“š Documentation: See AJAX_IMPLEMENTATION_GUIDE.md for details\n";
echo "šŸ”§ Support: Check browser console for navigation logs\n";
echo str_repeat("=", 60) . "\n";
?>

CasperSecurity Mini