Plugin Directory


Ignore:
Timestamp:
10/06/2025 03:23:19 PM (4 months ago)
Author:
DavidAnderson
Message:

Release version 1.25.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • updraftplus/trunk/methods/s3generic.php

    r3341192 r3373797  
    188188    public function get_template_properties() {
    189189        global $updraftplus, $updraftplus_admin;
     190
     191        $simplexmlelement_existence_label = '';
     192        if (!apply_filters('updraftplus_s3generic_simplexmlelement_exists', class_exists('SimpleXMLElement'))) {
     193            $simplexmlelement_existence_label = wp_kses(
     194                $updraftplus_admin->show_double_warning(
     195                    '<strong>'.__('Warning', 'updraftplus').':</strong> '.
     196                    /* translators: %s: Required module name */
     197                    sprintf(__('Your web server\'s PHP installation does not include a required module (%s).', 'updraftplus'), 'SimpleXMLElement').' '.
     198                    __("Please contact your web hosting provider's support.", 'updraftplus').' '.
     199                    /* translators: 1: Module name, 2: Required module name */
     200                    sprintf(__('UpdraftPlus\'s %1$s module <strong>requires</strong> %2$s.', 'updraftplus'), $updraftplus->backup_methods[$this->get_id()], 'SimpleXMLElement').' '.
     201                    __('Please do not file any support requests; there is no alternative.', 'updraftplus'),
     202                    $this->get_id(),
     203                    false
     204                ),
     205                $this->allowed_html_for_content_sanitisation()
     206            );
     207        }
     208
     209        $xmlwriter_existence_label = '';
     210        if (!apply_filters('updraftplus_s3generic_xmlwriter_exists', 'UpdraftPlus_S3_Compat' != $this->indicate_s3_class() || !class_exists('XMLWriter'))) {
     211            $xmlwriter_existence_label = wp_kses(
     212                $updraftplus_admin->show_double_warning(
     213                    '<strong>'.__('Warning', 'updraftplus').':</strong> '.
     214                    /* translators: %s: Required module name */
     215                    sprintf(__("Your web server's PHP installation does not include a required module (%s).", 'updraftplus'), 'XMLWriter').' '.
     216                    __("Please contact your web hosting provider's support and ask for them to enable it.", 'updraftplus'),
     217                    $this->get_id(),
     218                    false
     219                ),
     220                $this->allowed_html_for_content_sanitisation()
     221            );
     222        }
     223
    190224        $properties = array(
    191225            'pre_template_opening_html' => wp_kses('<p>'.__('Examples of S3-compatible storage providers:', 'updraftplus').' <a href="https://teamupdraft.com/documentation/updraftplus/topics/general/faqs/how-do-i-use-updraftplus-with-digitalocean-spaces/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=digitalocean-spaces&utm_creative_format=text" target="_blank">DigitalOcean Spaces</a>, <a href="https://www.linode.com/products/object-storage/" target="_blank">Linode Object Storage</a>, <a href="https://www.cloudian.com" target="_blank">Cloudian</a>, <a href="https://www.mh.connectria.com/rp/order/cloud_storage_index" target="_blank">Connectria</a>, <a href="https://www.constant.com/cloud/storage/" target="_blank">Constant</a>, <a href="https://www.eucalyptus.cloud/" target="_blank">Eucalyptus</a>, <a href="http://cloud.nifty.com/storage/" target="_blank">Nifty</a>, <a href="http://www.ntt.com/business/services/cloud/iaas/cloudn.html" target="_blank">Cloudn</a>, <a href="https://mega.io/objectstorage" target="_blank">MEGA S4</a>, <a href="https://app.idrivee2.com/partner/updraftwps" target="_blank">IDrive e2</a>'.__('... and many more!', 'updraftplus').'</p>', $this->allowed_html_for_content_sanitisation()),
    192             'xmlwriter_existence_label' => !apply_filters('updraftplus_s3generic_xmlwriter_exists', 'UpdraftPlus_S3_Compat' != $this->indicate_s3_class() || !class_exists('XMLWriter')) ? wp_kses($updraftplus_admin->show_double_warning('<strong>'.__('Warning', 'updraftplus').':</strong> '.sprintf(__("Your web server's PHP installation does not include a required module (%s).", 'updraftplus'), 'XMLWriter').' '.__("Please contact your web hosting provider's support and ask for them to enable it.", 'updraftplus'), $this->get_id(), false), $this->allowed_html_for_content_sanitisation()) : '',
    193             'simplexmlelement_existence_label' => !apply_filters('updraftplus_s3generic_simplexmlelement_exists', class_exists('SimpleXMLElement')) ? wp_kses($updraftplus_admin->show_double_warning('<strong>'.__('Warning', 'updraftplus').':</strong> '.sprintf(__("Your web server's PHP installation does not include a required module (%s).", 'updraftplus'), 'SimpleXMLElement').' '.__("Please contact your web hosting provider's support.", 'updraftplus').' '.sprintf(__("UpdraftPlus's %s module <strong>requires</strong> %s.", 'updraftplus'), $updraftplus->backup_methods[$this->get_id()], 'SimpleXMLElement').' '.__('Please do not file any support requests; there is no alternative.', 'updraftplus'), $this->get_id(), false), $this->allowed_html_for_content_sanitisation()) : '',
     226            'xmlwriter_existence_label' => $xmlwriter_existence_label,
     227            'simplexmlelement_existence_label' => $simplexmlelement_existence_label,
    194228            'curl_existence_label' => wp_kses($updraftplus_admin->curl_check($updraftplus->backup_methods[$this->get_id()], true, $this->get_id().' hide-in-udc', false), $this->allowed_html_for_content_sanitisation()),
    195229            'ssl_certificates_errors_link_text' => wp_kses('<a href="'.apply_filters("updraftplus_com_link", "https://teamupdraft.com/documentation/updraftplus/topics/backing-up/troubleshooting/i-get-ssl-certificate-errors-when-backing-up-and-or-restoring/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=s3-ssl-certificates&utm_creative_format=text").'" target="_blank">'.__('If you see errors about SSL certificates, then please go here for help.', 'updraftplus').'</a>', $this->allowed_html_for_content_sanitisation()),
     230            /* translators: %s: Cloud storage provider */
    196231            'input_access_key_label' => sprintf(__('%s access key', 'updraftplus'), 'S3'),
     232            /* translators: %s: Cloud storage provider */
    197233            'input_secret_key_label' => sprintf(__('%s secret key', 'updraftplus'), 'S3'),
    198234            'input_secret_key_type' => apply_filters('updraftplus_admin_secret_field_type', 'password'),
     235            /* translators: %s: Cloud storage provider */
    199236            'input_location_label' => sprintf(__('%s location', 'updraftplus'), 'S3'),
    200237            'input_location_title' => __('Enter only a bucket name or a bucket and path.', 'updraftplus').' '.__('Examples: mybucket, mybucket/mypath', 'updraftplus'),
     238            /* translators: %s: Cloud storage provider */
    201239            'input_endpoint_label' => sprintf(__('%s end-point', 'updraftplus'), 'S3'),
    202240            'input_bucket_access_style_label' => __('Bucket access style', 'updraftplus'),
     
    212250                'v2' => __('SigV2', 'updraftplus'),
    213251            ),
     252            /* translators: %s: Backup method */
    214253            'input_test_label' => sprintf(__('Test %s Settings', 'updraftplus'), $updraftplus->backup_methods[$this->get_id()]),
    215254        );
Note: See TracChangeset for help on using the changeset viewer.