<?php
/**
 * Default Options: Maintenance Module
 *
 * Contains default settings for updates, database cleanup, and general maintenance.
 *
 * @package UltimateSecurity
 * @since 2.0.0
 */

return [
    'updates' => [
        'plugin_updates' => 'manual_updates',
        'theme_updates' => 'manual_updates',
        'core_updates' => '',
        'disable_translation_updates' => '0',
        'vcs_updates' => '0',
        'admin_update_nags' => '0',
        'email_notifications' => '0',
        'email_address' => '',
        'notification_type' => '',
        'core_notifications' => '0',
        'plugins_functionality_enable' => '0',
        'plugins_functionalities' => [],
        'themes_functionality_enable' => '0',
        'themes_functionalities' => [],
        'update_schedule_enabled' => '0',
        'update_schedule_start' => '02',
        'update_schedule_end' => '04',
        'auto_update_delay_days' => '0',
        'maintenance_mode_during_updates' => '0',
        'notification_frequency' => 'daily',
        'show_backup_reminder' => '1',
        'update_days_enabled' => '0',
        'update_days' => ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'],
        'freeze_periods' => [],
    ],

    'login' => [
        'settings' => [
            'visible_roles' => [],
            'default_role' => 'administrator',
            'default_redirect_to' => 'wp-admin',
            'default_expiry_time' => '+1 week',
        ],
        'active_logins' => [
            'enable' => '0',
            'max_session' => 2,
        ],
    ],

    'more' => [
        'extra' => [
            'enable_delete_plugin_data' => '0',
        ],
        'database_cleanup' => [
            'enabled' => '0',
            'archive_enabled' => '0',
            'retention_policies' => [], // Will be populated at runtime
        ],
    ],

    'cleanup' => [
        'retention_days' => 30,
        'auto_cleanup_enabled' => '0',
        'cleanup_url_guard_logs' => '1',
        'cleanup_testmode_logs' => '1',
        'cleanup_audit_logs' => '1',
    ],

    'compatibility' => [
        'auto_detect_plugins' => '1',
        'skip_rate_limit_for_woocommerce' => '1',
        'skip_rate_limit_for_page_builders' => '1',
        'skip_rate_limit_for_forms' => '1',
        'skip_captcha_on_cf7' => '0',
        'skip_captcha_on_wpforms' => '0',
        'skip_captcha_on_gravity_forms' => '0',
        'disable_when_wordfence' => [
            'firewall' => '0',
            '2fa' => '0',
            'captcha' => '0',
            'login_limit' => '0',
        ],
        'allow_iframe_for_builders' => '1',
        'skip_heartbeat_limit_for_editors' => '1',
        'auto_purge_cache_on_settings' => '1',
        'extend_nonce_life_for_cache' => '1',
        'exclude_security_urls_from_sitemap' => '1',
        'noindex_security_pages' => '1',
        'enable_flavor_compatibility' => '1',
    ],
];
