<?php
require_once '../includes/db.php';

// Check publish servers configuration
try {
    $stmt = $pdo->query("SELECT * FROM publish_servers LIMIT 1");
    $server = $stmt->fetch(PDO::FETCH_ASSOC);
    
    if ($server) {
        echo "Server configuration:\n";
        echo "Name: " . $server['name'] . "\n";
        echo "Data types: " . $server['data_types'] . "\n";
        echo "Data types decoded: " . print_r(json_decode($server['data_types'], true), true) . "\n";
    } else {
        echo "No servers configured\n";
    }
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
?>
