<?php
session_start();

// Set admin session so authentication passes
$_SESSION['admin_logged_in'] = true;

// Test multiple AJAX endpoints
$_SERVER['REQUEST_METHOD'] = 'POST';

$tests = [
    'load_products' => 'Products',
    'load_blogs' => 'Blogs',
    'load_categories' => 'Categories'
];

foreach ($tests as $action => $name) {
    $_POST['action'] = $action;
    ob_start();
    include 'admin_seo_manager.php';
    $output = ob_get_clean();
    
    echo "\n\n========== $name ($action) ==========\n";
    echo substr($output, 0, 500);
    echo "\n...\n";
}
?>
