From 6b5c26b89728dd28a0bbcb71aae4b6a5ae12b5a9 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 27 Dec 2020 14:22:18 +0800 Subject: [PATCH] Modify tags, change sequence of disk --- common.php | 148 ++++++++++++++++++++++++++++++++--- conststr.php | 15 ++++ platform/AliyunFC.php | 26 +++--- platform/BaiduCFC.php | 24 ++++-- platform/Heroku.php | 16 +++- platform/HuaweiFG_env.php | 16 +++- platform/HuaweiFG_file.php | 16 +++- platform/Normal.php | 19 +++-- platform/TencentSCF_env.php | 24 ++++-- platform/TencentSCF_file.php | 16 +++- 10 files changed, 262 insertions(+), 58 deletions(-) diff --git a/common.php b/common.php index f9d8b9a..a10fcf5 100644 --- a/common.php +++ b/common.php @@ -1727,8 +1727,7 @@ function get_refresh_token() ', 'Error', 201); + } elseif (!(('a'<=$f && $f<='z') || ('A'<=$f && $f<='Z'))) { + return message('Please start with letters'); + } else { + $tmp[$k] = $v; + } + } + if ($k=='disktag_sort') { + $td = implode('|', json_decode($v)); + if (strlen($td)==strlen(getConfig('disktag'))) $tmp['disktag'] = $td; + else return message('Something wrong.'); + } if ($k == 'disk') $_SERVER['disk_oprating'] = $v; } /*if ($tmp['domain_path']!='') { @@ -1817,7 +1837,6 @@ function EnvOpt($needUpdate = 0) $html = api_error_msg($response); $title = 'Error'; } else { - //WaitSCFStat(); $html .= getconstStr('Success') . '!
'; $title = getconstStr('Setup'); @@ -1896,18 +1915,102 @@ function EnvOpt($needUpdate = 0)
'; - foreach (explode("|",getConfig('disktag')) as $disktag) { + $disktags = getConfig('disktag'); + if ($disktags!='') { + $html .= ' + + + + + + '; + $num = 0; + foreach (explode("|", $disktags) as $disktag) { + if ($disktag!='') { + $num++; + $html .= ' + '; + } + } + $html .= ' + + + +
' . $disktag . '
' . getconstStr('DragSort') . '
+
'; + } + foreach (explode("|", $disktags) as $disktag) { if ($disktag!='') { $html .= ' - - + - '; + '; if (getConfig('refresh_token', $disktag)!='') { $html .= ' @@ -1920,7 +2023,7 @@ function EnvOpt($needUpdate = 0) '; } $html .= ' - + '; } else { $html .= ' @@ -1968,6 +2071,27 @@ function EnvOpt($needUpdate = 0)
'.$disktag.': - - + + + + + + +
+ + + +