<?php
session_start();
$_SESSION['admin_logged_in'] = true;

// Set REQUEST_METHOD and POST before including the file
$_SERVER['REQUEST_METHOD'] = 'POST';
$_POST['action'] = 'load_products';

// Capture all output
ob_start();

// Try to include admin_seo_manager
try {
    include 'admin_seo_manager.php';
} catch (Throwable $e) {
    // If it throws, we already got the response via exit()
}

$output = ob_get_clean();

// Output what we got
header('Content-Type: text/plain');
echo "Length: " . strlen($output) . " bytes\n";
echo "First 2000 chars:\n";
echo substr($output, 0, 2000);
echo "\n\n... [output continues] ...";
?>
