From 11e87f9ea84d3783d76b2a56b7023cbe205dcaa1 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 18 Jan 2021 15:59:39 +0800 Subject: [PATCH] copy disk, change onedrive/sharepoint. --- common.php | 30 ++++++++++++++++++++---------- conststr.php | 8 ++++++++ disk/Onedrive.php | 16 +++++++--------- platform/AliyunFC.php | 5 +++++ platform/BaiduCFC.php | 5 +++++ platform/Heroku.php | 5 +++++ platform/HuaweiFG_env.php | 5 +++++ platform/HuaweiFG_file.php | 5 +++++ platform/Normal.php | 5 +++++ platform/TencentSCF_env.php | 5 +++++ platform/TencentSCF_file.php | 5 +++++ 11 files changed, 75 insertions(+), 19 deletions(-) diff --git a/common.php b/common.php index 7290ad0..d78518e 100644 --- a/common.php +++ b/common.php @@ -40,21 +40,22 @@ $EnvConfigs = [ 'Driver' => 0b100, 'client_id' => 0b100, 'client_secret' => 0b101, - 'diskname' => 0b111, - 'domain_path' => 0b111, - 'downloadencrypt' => 0b110, - 'guestup_path' => 0b111, 'sharepointSite' => 0b101, 'shareurl' => 0b101, //'sharecookie' => 0b101, 'shareapiurl' => 0b101, 'siteid' => 0b100, - 'domainforproxy' => 0b111, - 'public_path' => 0b111, 'refresh_token' => 0b100, 'token_expires' => 0b100, 'default_drive_id' => 0b100, 'default_sbox_drive_id'=> 0b100, + + 'diskname' => 0b111, + 'domain_path' => 0b111, + 'downloadencrypt' => 0b110, + 'guestup_path' => 0b111, + 'domainforproxy' => 0b111, + 'public_path' => 0b111, ]; $timezones = array( @@ -1078,7 +1079,7 @@ function EnvOpt($needUpdate = 0) if (isset($_POST['submit1'])) { $_SERVER['disk_oprating'] = ''; foreach ($_POST as $k => $v) { - if (isShowedEnv($k) || $k=='disktag_del' || $k=='disktag_add' || $k=='disktag_rename') { + if (isShowedEnv($k) || $k=='disktag_del' || $k=='disktag_add' || $k=='disktag_rename' || $k=='disktag_copy') { $tmp[$k] = $v; } if ($k=='disktag_newname') { @@ -1275,7 +1276,7 @@ function EnvOpt($needUpdate = 0) '; @@ -1371,13 +1376,18 @@ function EnvOpt($needUpdate = 0) - + ', 'Error', 201); + return message('Do not input ' . $envs . '
', 'Error', 201); } elseif (!(('a'<=$f && $f<='z') || ('A'<=$f && $f<='Z'))) { return message('Please start with letters
-
+
@@ -1286,12 +1287,16 @@ function EnvOpt($needUpdate = 0) +
+ + +
Driver ' . getConfig('Driver', $disktag); - if (baseclassofdrive($disk_tmp)=='Onedrive') $html .= ' Change Driver type' . getconstStr(' ') . ''; + if ($diskok && baseclassofdrive($disk_tmp)=='Onedrive') $html .= ' ' . getconstStr('ChangeOnedrivetype') . ''; $html .= '