class-wpvivid-amazons3-plus.php
3 years ago
class-wpvivid-base-dropbox.php
3 years ago
class-wpvivid-base-s3.php
5 years ago
class-wpvivid-dropbox.php
3 years ago
class-wpvivid-extend-sftp.php
7 years ago
class-wpvivid-ftpclass.php
3 years ago
class-wpvivid-google-drive.php
3 years ago
class-wpvivid-one-drive.php
3 years ago
class-wpvivid-remote-default.php
6 years ago
class-wpvivid-remote.php
7 years ago
class-wpvivid-s3.php
5 years ago
class-wpvivid-s3compat.php
3 years ago
class-wpvivid-send-to-site.php
6 years ago
class-wpvivid-sftpclass.php
3 years ago
client_secrets.json
7 years ago
class-wpvivid-remote-default.php
42 lines
| 1 | <?php |
| 2 | if (!defined('WPVIVID_PLUGIN_DIR')){ |
| 3 | die; |
| 4 | } |
| 5 | |
| 6 | if(!defined('WPVIVID_UPLOAD_SUCCESS')) |
| 7 | { |
| 8 | define('WPVIVID_UPLOAD_SUCCESS',1); |
| 9 | } |
| 10 | |
| 11 | if(!defined('WPVIVID_UPLOAD_FAILED')) |
| 12 | { |
| 13 | define('WPVIVID_UPLOAD_FAILED',2); |
| 14 | } |
| 15 | |
| 16 | if(!defined('WPVIVID_UPLOAD_UNDO')) |
| 17 | { |
| 18 | define('WPVIVID_UPLOAD_UNDO',0); |
| 19 | } |
| 20 | |
| 21 | require_once WPVIVID_PLUGIN_DIR .'/includes/customclass/class-wpvivid-remote.php'; |
| 22 | class WPvivid_Remote_Defult extends WPvivid_Remote{ |
| 23 | public function test_connect() |
| 24 | { |
| 25 | return array('result' => WPVIVID_FAILED,'error'=> 'Type incorrect.'); |
| 26 | } |
| 27 | |
| 28 | public function upload($task_id, $files, $callback = '') |
| 29 | { |
| 30 | return array('result' => WPVIVID_FAILED,'error'=> 'Type incorrect.'); |
| 31 | } |
| 32 | |
| 33 | public function download( $file, $local_path, $callback = '') |
| 34 | { |
| 35 | return array('result' => WPVIVID_FAILED,'error'=> 'Type incorrect.'); |
| 36 | } |
| 37 | |
| 38 | public function cleanup($files) |
| 39 | { |
| 40 | return array('result' => WPVIVID_FAILED,'error'=> 'Type incorrect.'); |
| 41 | } |
| 42 | } |