1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access.');
if (version_compare(phpversion(), '5.3.3', '>=')) {
if (class_exists('UpdraftPlus_Addons_RemoteStorage_onedrive')) {
class UpdraftPlus_BackupModule_onedrive extends UpdraftPlus_Addons_RemoteStorage_onedrive { public function __construct() { parent::__construct('onedrive', 'Microsoft OneDrive', '5.3.3', 'onedrive.png'); } } } else { include_once(UPDRAFTPLUS_DIR.'/methods/addon-not-yet-present.php'); /** * N.B. UpdraftPlus_BackupModule_AddonNotYetPresent extends UpdraftPlus_BackupModule */ class UpdraftPlus_BackupModule_onedrive extends UpdraftPlus_BackupModule_AddonNotYetPresent { public function __construct() { parent::__construct('onedrive', 'Microsoft OneDrive', '5.3.3', 'onedrive.png'); } } } } else { include_once(UPDRAFTPLUS_DIR.'/methods/insufficient.php'); class UpdraftPlus_BackupModule_onedrive extends UpdraftPlus_BackupModule_insufficientphp { public function __construct() { parent::__construct('onedrive', 'Microsoft OneDrive', '5.3.3', 'onedrive.png'); } } }
|