| Name | Size | Mode | Actions |
|---|---|---|---|
| addon-not-yet-present.php | 6198 | 0644 | editdlrm |
| azure.php | 1177 | 0644 | editdlrm |
| backblaze.php | 1199 | 0644 | editdlrm |
| backup-module.php | 31771 | 0644 | editdlrm |
| cloudfiles-new.php | 15586 | 0644 | editdlrm |
| cloudfiles.php | 22984 | 0644 | editdlrm |
| dreamobjects.php | 11084 | 0644 | editdlrm |
| dropbox.php | 44441 | 0644 | editdlrm |
| email.php | 5905 | 0644 | editdlrm |
| ftp.php | 19188 | 0644 | editdlrm |
| googlecloud.php | 1204 | 0644 | editdlrm |
| googledrive.php | 68348 | 0644 | editdlrm |
| insufficient.php | 5050 | 0644 | editdlrm |
| onedrive.php | 1133 | 0644 | editdlrm |
| openstack-base.php | 23730 | 0644 | editdlrm |
| openstack.php | 579 | 0644 | editdlrm |
| openstack2.php | 12605 | 0644 | editdlrm |
| pcloud.php | 726 | 0644 | editdlrm |
| s3.php | 65953 | 0644 | editdlrm |
| s3generic.php | 11886 | 0644 | editdlrm |
| sftp.php | 1188 | 0644 | editdlrm |
| template.php | 5281 | 0644 | editdlrm |
| updraftvault.php | 50820 | 0644 | editdlrm |
| webdav.php | 1122 | 0644 | editdlrm |
/home/techb158/balacoffee.com/wp-content/plugins/updraftplus/methods/s3generic.php (11886B)
{{{ssl_certificates_errors_link_text}}}
'.__('Examples of S3-compatible storage providers:', 'updraftplus').' DigitalOcean Spaces, Linode Object Storage, Cloudian, Connectria, Constant, Eucalyptus, Nifty, Cloudn'.__('... and many more!', 'updraftplus').'
', $this->allowed_html_for_content_sanitisation()), '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(''.__('Warning', 'updraftplus').': '.sprintf(__("Your web server's PHP installation does not include a required module (%s). Please contact your web hosting provider's support and ask for them to enable it.", 'updraftplus'), 'XMLWriter'), $this->get_id(), false), $this->allowed_html_for_content_sanitisation()) : '', 'simplexmlelement_existence_label' => !apply_filters('updraftplus_s3generic_simplexmlelement_exists', class_exists('SimpleXMLElement')) ? wp_kses($updraftplus_admin->show_double_warning(''.__('Warning', 'updraftplus').': '.sprintf(__("Your web server's PHP installation does not include a required module (%s). Please contact your web hosting provider's support.", 'updraftplus'), 'SimpleXMLElement').' '.sprintf(__("UpdraftPlus's %s module requires %s. Please do not file any support requests; there is no alternative.", 'updraftplus'), $updraftplus->backup_methods[$this->get_id()], 'SimpleXMLElement'), $this->get_id(), false), $this->allowed_html_for_content_sanitisation()) : '', '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()), 'ssl_certificates_errors_link_text' => wp_kses(''.__('If you see errors about SSL certificates, then please go here for help.', 'updraftplus').'', $this->allowed_html_for_content_sanitisation()), 'input_access_key_label' => sprintf(__('%s access key', 'updraftplus'), 'S3'), 'input_secret_key_label' => sprintf(__('%s secret key', 'updraftplus'), 'S3'), 'input_secret_key_type' => apply_filters('updraftplus_admin_secret_field_type', 'password'), 'input_location_label' => sprintf(__('%s location', 'updraftplus'), 'S3'), 'input_location_title' => __('Enter only a bucket name or a bucket and path. Examples: mybucket, mybucket/mypath', 'updraftplus'), 'input_endpoint_label' => sprintf(__('%s end-point', 'updraftplus'), 'S3'), 'input_bucket_access_style_label' => __('Bucket access style', 'updraftplus'), 'input_bucket_access_style_readmore' => wp_kses(''.__('(Read more)', 'updraftplus').'', $this->allowed_html_for_content_sanitisation()), 'input_bucket_access_style_option_labels' => array( 'path_style' => __('Path style', 'updraftplus'), 'virtual_host_style' => __('Virtual-host style', 'updraftplus'), ), 'input_test_label' => sprintf(__('Test %s Settings', 'updraftplus'), $updraftplus->backup_methods[$this->get_id()]), ); return wp_parse_args($properties, $this->get_persistent_variables_and_methods()); } /** * Use DNS bucket name if the remote storage is found to be using s3generic and its bucket access style is set to virtual-host * * @param Object $storage - S3 Name * @param String $bucket - storage path * @param Array $config - configuration - may not be complete at this stage, so be careful about which properties are used * * * @return Boolean true if currently processing s3generic remote storage that uses virtual-host style, false otherwise */ protected function maybe_use_dns_bucket_name($storage, $bucket, $config) { if ((!empty($config['endpoint']) && preg_match('/\.(aliyuncs|r2\.cloudflarestorage)\.com$/i', $config['endpoint'])) || (!empty($config['bucket_access_style']) && 'virtual_host_style' === $config['bucket_access_style'])) { // due to the recent merge of S3-generic bucket access style on March 2021, if virtual-host bucket access style is selected, connecting to an amazonaws bucket location where the user doesn't have an access to it will throw an S3 InvalidRequest exception. It requires the signature to be set to version 4 // Cloudflare R2 supports V4 only if (preg_match('/\.(amazonaws|r2\.cloudflarestorage)\.com$/i', $config['endpoint'])) { $this->use_v4 = true; if (is_callable(array($storage, 'setSignatureVersion'))) $storage->setSignatureVersion('v4'); } return $this->use_dns_bucket_name($storage, ''); } else { return false; } } }