addon-base-v2.php
1 year ago
addon-not-yet-present.php
2 years ago
azure.php
3 years ago
backblaze.php
3 years ago
backup-module.php
1 year ago
cloudfiles-new.php
1 year ago
cloudfiles.php
1 year ago
dreamobjects.php
2 years ago
dropbox.php
1 year ago
email.php
1 year ago
ftp.php
1 year ago
googlecloud.php
3 years ago
googledrive.php
1 year ago
insufficient.php
1 year ago
onedrive.php
3 years ago
openstack-base.php
1 year ago
openstack.php
3 years ago
openstack2.php
1 year ago
pcloud.php
3 years ago
remotesend.php
1 year ago
s3.php
1 year ago
s3generic.php
2 years ago
sftp.php
3 years ago
template.php
1 year ago
updraftvault.php
1 year ago
webdav.php
3 years ago
sftp.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed.'); |
| 4 | |
| 5 | if (class_exists('UpdraftPlus_Addons_RemoteStorage_sftp')) { |
| 6 | |
| 7 | // Migrate options to standard-style - April 2017. This then enables them to get picked up by the multi-options settings translation code |
| 8 | if (!is_array(UpdraftPlus_Options::get_updraft_option('updraft_sftp')) && '' != UpdraftPlus_Options::get_updraft_option('updraft_sftp_settings', '')) { |
| 9 | $opts = UpdraftPlus_Options::get_updraft_option('updraft_sftp_settings'); |
| 10 | UpdraftPlus_Options::update_updraft_option('updraft_sftp', $opts); |
| 11 | UpdraftPlus_Options::delete_updraft_option('updraft_sftp_settings'); |
| 12 | } |
| 13 | |
| 14 | class UpdraftPlus_BackupModule_sftp extends UpdraftPlus_Addons_RemoteStorage_sftp { |
| 15 | public function __construct() { |
| 16 | parent::__construct('sftp', 'SFTP/SCP'); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | } else { |
| 21 | |
| 22 | updraft_try_include_file('methods/addon-not-yet-present.php', 'include_once'); |
| 23 | |
| 24 | /** |
| 25 | * N.B. UpdraftPlus_BackupModule_AddonNotYetPresent extends UpdraftPlus_BackupModule |
| 26 | */ |
| 27 | class UpdraftPlus_BackupModule_sftp extends UpdraftPlus_BackupModule_AddonNotYetPresent { |
| 28 | public function __construct() { |
| 29 | parent::__construct('sftp', 'SFTP/SCP'); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | } |
| 34 |