GRAYBYTE WORDPRESS FILE MANAGER4128

Server IP : 162.213.255.40 / Your IP : 216.73.216.114
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/updraft/plugins-old/updraftplus/methods/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/updraft/plugins-old/updraftplus/methods//template.php
<?php
/**
 * This is a bare-bones to get you started with developing an access method. The methods provided below are all ones you will want to use (though note that the provided email.php method is an
 * example of truly bare-bones for a method that cannot delete or download and has no configuration).
 *
 * Read the existing methods for help. There is no hard-and-fast need to put all your code in this file; it is just for increasing convenience and maintainability; there are no bonus points for 100% elegance. If you need access to some part of WordPress that you can only reach through the main plugin file (updraftplus.php), then go right ahead and patch that.
 *
 * Some handy tips:
 * - Search-and-replace "template" for the name of your access method
 * - You can also add the methods config_print_javascript_onready and credentials_test if you like
 * - Name your file accordingly (it is now template.php)
 * - Add the method to the array $backup_methods in updraftplus.php when ready
 * - Use the constant UPDRAFTPLUS_DIR to reach Updraft's plugin directory
 * - Call $updraftplus->log("my log message") to log things, which greatly helps debugging
 * - UpdraftPlus is licenced under the GPLv3 or later. In order to combine your backup method with UpdraftPlus, you will need to licence to anyone and everyone that you distribute it to in a compatible way.
 */
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_template extends UpdraftPlus_BackupModule {

	/**
	 * backup method: takes an array, and shovels them off to the cloud storage
	 *
	 * @param  Array $backup_array Array of files (basenames) to sent to remote storage
	 * @return Mixed - (boolean)false to indicate failure; otherwise, something to be passed back when deleting files
	 */
	public function backup($backup_array) {// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- This is a template file and can be ignored

		global $updraftplus;// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- This is a template file and can be ignored

		// foreach ($backup_array as $file) {

		// Do our uploading stuff...

		// If successful, then you must do this:
		// $updraftplus->uploaded_file($file);

		// }

	}

	/**
	 * This function lists the files found in the configured storage location
	 *
	 * @param  String $match a substring to require (tested via strpos() !== false)
	 *
	 * @return Array - each file is represented by an array with entries 'name' and (optional) 'size'
	 */
	public function listfiles($match = 'backup_') {// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- This is a template file and can be ignored
		// This function needs to return an array of arrays. The keys for the sub-arrays are name (a path-less filename, i.e. a basename), (optional)size, and should be a list of matching files from the storage backend. A WP_Error object can also be returned; and the error code should be no_settings if that is relevant.
		return array();
	}

	/**
	 * delete method: takes an array of file names (base name) or a single string, and removes them from the cloud storage
	 *
	 * @param string $files    The specific files
	 * @param mixed  $data     Anything passed back from self::backup()
	 * @param array  $sizeinfo Size information
	 * @return Boolean - whether the operation succeeded or not
	 */
	public function delete($files, $data = false, $sizeinfo = array()) {// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- This is a template file and can be ignored

		global $updraftplus;// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- This is a template file and can be ignored

		if (is_string($files)) $files = array($files);

	}

	/**
	 * 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 The specific file to be downloaded from the Cloud Storage
	 *
	 * @return Boolean - success or failure state
	 */
	public function download($file) {// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- This is a template file and can be ignored

		global $updraftplus;// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- This is a template file and can be ignored

	}

	public function get_supported_features() {
		// This options format is handled via only accessing options via $this->get_options()
		return array('multi_options', 'config_templates');
	}

	/**
	 * Get the configuration template, in Handlebars format.
	 * Note that logging is not available from this context; it will do nothing.
	 *
	 * @return String - the template, ready for substitutions to be carried out
	 */
	public function get_configuration_template() {

		ob_start();
	
		$classes = $this->get_css_classes();
	
		?>
			<tr class="updraftplusmethod <?php echo $classes;?>">
				<th>My Method:</th>
				<td>
					
				</td>
			</tr>

		<?php

		return ob_get_clean();
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:27
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:27
hellrfbn / hellrfbn
0644
addon-not-yet-present.php
6.144 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
azure.php
1.149 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
backblaze.php
1.171 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
backup-module.php
31.805 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
cloudfiles-new.php
15.363 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
cloudfiles.php
22.519 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
dreamobjects.php
10.946 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
dropbox.php
44.263 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
email.php
5.791 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
ftp.php
18.738 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
googlecloud.php
1.176 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
googledrive.php
69.054 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
insufficient.php
4.932 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
onedrive.php
1.106 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
openstack-base.php
23.223 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
openstack.php
0.565 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
openstack2.php
12.383 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
pcloud.php
0.709 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
s3.php
64.858 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
s3generic.php
15.659 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
sftp.php
1.16 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
template.php
5.157 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
updraftvault.php
53.246 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644
webdav.php
1.096 KB
May 06 2024 14:41:06
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF