403)); } if (isset($_POST['dwarpal_headers_settings']) && check_admin_referer('dwarpal_headers_settings')) { update_option('dwarpal_security_headers_enabled', isset($_POST['dwarpal_security_headers_enabled']) ? 1 : 0); update_option('dwarpal_header_x_frame_options', isset($_POST['dwarpal_header_x_frame_options']) ? 1 : 0); update_option('dwarpal_header_x_content_type', isset($_POST['dwarpal_header_x_content_type']) ? 1 : 0); update_option('dwarpal_header_x_xss_protection', isset($_POST['dwarpal_header_x_xss_protection']) ? 1 : 0); update_option('dwarpal_header_referrer_policy', isset($_POST['dwarpal_header_referrer_policy']) ? 1 : 0); update_option('dwarpal_header_hsts', isset($_POST['dwarpal_header_hsts']) ? 1 : 0); echo '
' . esc_html__('Settings saved.', 'dwarpal') . '