<?php
// Simple script to check if fee password is set in the database
require_once 'config/database.php';

try {
    // Check if settings table exists and has fee_password
    $stmt = $pdo->prepare("SELECT setting_value FROM settings WHERE setting_key = ? LIMIT 1");
    $stmt->execute(['fee_password']);
    $result = $stmt->fetch();
    
    if ($result) {
        echo "Fee password is SET in the database.\n";
        echo "Hash: " . substr($result['setting_value'], 0, 20) . "...\n";
    } else {
        echo "Fee password is NOT SET in the database.\n";
        echo "You need to set it in Admin Settings -> Fee Password section.\n";
    }
} catch (Exception $e) {
    echo "Error checking database: " . $e->getMessage() . "\n";
}
?>