You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
<?php
|
|
|
|
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access.');
|
|
|
|
if (version_compare(phpversion(), '5.3.3', '>=')) {
|
|
|
|
if (class_exists('UpdraftPlus_Addons_RemoteStorage_backblaze')) {
|
|
class UpdraftPlus_BackupModule_backblaze extends UpdraftPlus_Addons_RemoteStorage_backblaze {
|
|
public function __construct() {
|
|
parent::__construct('backblaze', 'Backblaze', true, true);
|
|
}
|
|
}
|
|
|
|
} else {
|
|
|
|
include_once(UPDRAFTPLUS_DIR.'/methods/addon-not-yet-present.php');
|
|
/**
|
|
* N.B. UpdraftPlus_BackupModule_AddonNotYetPresent extends UpdraftPlus_BackupModule
|
|
*/
|
|
class UpdraftPlus_BackupModule_backblaze extends UpdraftPlus_BackupModule_AddonNotYetPresent {
|
|
public function __construct() {
|
|
parent::__construct('backblaze', 'Backblaze', '5.3.3', 'backblaze.png');
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
include_once(UPDRAFTPLUS_DIR.'/methods/insufficient.php');
|
|
/**
|
|
* N.B. UpdraftPlus_BackupModule_insufficientphp extends UpdraftPlus_BackupModule
|
|
*/
|
|
class UpdraftPlus_BackupModule_backblaze extends UpdraftPlus_BackupModule_insufficientphp {
|
|
public function __construct() {
|
|
parent::__construct('backblaze', 'Backblaze', '5.3.3', 'backblaze.png');
|
|
}
|
|
}
|
|
|
|
}
|