addon-base-v2.php
6 years ago
addon-not-yet-present.php
6 years ago
azure.php
8 years ago
backblaze.php
8 years ago
backup-module.php
6 years ago
cloudfiles-new.php
6 years ago
cloudfiles.php
6 years ago
dreamobjects.php
7 years ago
dropbox.php
6 years ago
email.php
6 years ago
ftp.php
6 years ago
googlecloud.php
8 years ago
googledrive.php
6 years ago
insufficient.php
6 years ago
onedrive.php
8 years ago
openstack-base.php
6 years ago
openstack.php
8 years ago
openstack2.php
6 years ago
remotesend.php
6 years ago
s3.php
6 years ago
s3generic.php
7 years ago
sftp.php
8 years ago
template.php
6 years ago
updraftvault.php
6 years ago
webdav.php
8 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 | include_once(UPDRAFTPLUS_DIR.'/methods/addon-not-yet-present.php'); |
| 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 |