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

try {
    // Set the watermark image path
    $watermarkImagePath = 'assets/images/watermark.jpg';
    
    // Update the watermark settings
    set_setting($pdo, 'watermark_image_paths', $watermarkImagePath);
    
    echo "Watermark settings updated successfully!\n";
    echo "Watermark image path set to: " . $watermarkImagePath . "\n";
    
    // Verify the update
    $updatedPath = get_setting($pdo, 'watermark_image_paths');
    echo "Verified setting: " . $updatedPath . "\n";
    
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
?>