<?php
require_once 'config/database.php';

echo "Current Zashof Settings:\n";
echo "======================\n";

try {
    $stmt = $pdo->query("SELECT setting_key, setting_value FROM settings WHERE setting_key LIKE 'zashof_%'");
    while ($row = $stmt->fetch()) {
        // For API key, show only first and last few characters
        $display_value = $row['setting_value'];
        if ($row['setting_key'] === 'zashof_api_key' && strlen($row['setting_value']) > 20) {
            $display_value = substr($row['setting_value'], 0, 10) . '...' . substr($row['setting_value'], -10);
        }
        
        echo $row['setting_key'] . ": " . $display_value . "\n";
    }
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
?>