From 78d5b606a6d406331e6921a9f5babd3c3c7997a8 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 24 Feb 2020 20:20:07 +0800 Subject: [PATCH 01/11] Add files via upload --- theme/black.php | 1265 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1265 insertions(+) create mode 100644 theme/black.php diff --git a/theme/black.php b/theme/black.php new file mode 100644 index 0000000..2292087 --- /dev/null +++ b/theme/black.php @@ -0,0 +1,1265 @@ + + + + <?php echo $pretitle;?> - <?php echo $_SERVER['sitename'];?> + + + + + + + + + +
+ + + +
  • + +   + +
    + +
    + +

    + +

    +1) { ?> +
    +
    +
    +
    +'.$diskname.'  '; + } ?> +
    +
    +
    +
    + +
    +
    +
    + + + + + +

    +
    +
    + +
    +
    + + +
    +
    +' . $files['error']['message'] . '
    '; + $statusCode=404; + } else { + if (isset($files['file'])) { +?> +
    +
    + +   +
    +
    +document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" /> +'; + } elseif (in_array($ext, $exts['video'])) { + //echo ''; + $DPvideo=$files['@microsoft.graph.downloadUrl']; + echo '
    +'; + } elseif (in_array($ext, $exts['music'])) { + echo ' +'; + } elseif (in_array($ext, ['pdf'])) { + /*echo ' + +';*/ + $pdfurl = $files['@microsoft.graph.downloadUrl']; + echo '
    +'; + } elseif (in_array($ext, $exts['office'])) { + echo ' +'; + } elseif (in_array($ext, $exts['txt'])) { + $txtstr = htmlspecialchars(curl_request($files['@microsoft.graph.downloadUrl'])['body']); +?> +
    + +
    + +     + + + +'; ?> +
    + + +
    +'; + }*/ else { + echo ''.getconstStr('FileNotSupport').''; + } ?> +
    +
    + + + + + + + + + + + + + + +'; + foreach ($files['children'] as $file) { + // Files + if (isset($file['file'])) { + if ($_SERVER['admin'] or (substr($file['name'],0,1) !== '.' and $file['name'] !== getConfig('passfile') ) ) { + if (strtolower($file['name']) === 'head.md') $head = $file; + if (strtolower($file['name']) === 'readme.md') $readme = $file; + if (strtolower($file['name']) === 'index.html' && !$_SERVER['admin']) { + $html = curl_request(fetch_files(spurlencode(path_format($path . '/' .$file['name']),'/'))['@microsoft.graph.downloadUrl'])['body']; + return output($html,200); + } + $filenum++; ?> + + + + + + +
       
    + +
  • +
      +
    • +
    • +
    • +
    • +
    • +
    +
  •     + + + +
    + +
  • +
      +
    • +
    • +
    • +
    • +
    +
  •     + + + + + + + + + + + + + + + + + + + + + + + +
    +200) { + $pagenum = $files['folder']['page']; + $maxpage = ceil($files['folder']['childCount']/200); + $prepagenext = ' + + + + + + + + +
    '; + if ($pagenum!=1) { + $prepagenum = $pagenum-1; + $prepagenext .= ' + '.getconstStr('PrePage').''; + } + $prepagenext .= ' + '; + for ($page=1;$page<=$maxpage;$page++) { + if ($page == $pagenum) { + $prepagenext .= ' + ' . $page . ' '; + } else { + $prepagenext .= ' + ' . $page . ' '; + } + } + $prepagenext = substr($prepagenext,0,-1); + $prepagenext .= ' + '; + if ($pagenum!=$maxpage) { + $nextpagenum = $pagenum+1; + $prepagenext .= ' + '.getconstStr('NextPage').''; + } + $prepagenext .= ' +
    + '; + echo $prepagenext; + } + if ($_SERVER['admin']) { ?> +
    +
    + + +
    +
    + +
    + +
    +
    +
    +
    + + +
    +'; + } + if ($readme) { + echo ' +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +'; + } + } + } else { + echo ' +
    +
    +
    + + +
    +
    +
    '; + $statusCode = 401; + } + } ?> +
    +
    +
    + + + +
    + + + + + + +
    + + + +
    + + + + +
    + + + + + + + + + + \ No newline at end of file From 67d954c907afdfa0953129521815ed89d729b3bc Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 24 Feb 2020 21:37:48 +0800 Subject: [PATCH 02/11] not need check in basic set --- function/scf.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/function/scf.php b/function/scf.php index 2a54565..bce634b 100644 --- a/function/scf.php +++ b/function/scf.php @@ -418,9 +418,9 @@ function updateEnvironment($Envs, $function_name, $Region, $Namespace, $SecretId function SetbaseConfig($Envs, $function_name, $Region, $Namespace, $SecretId, $SecretKey) { echo json_encode($Envs,JSON_PRETTY_PRINT); - $trynum = 0; + /*$trynum = 0; while( json_decode(getfunctioninfo($_SERVER['function_name'], $_SERVER['Region'], $_SERVER['namespace'], $SecretId, $SecretKey),true)['Response']['Status']!='Active' ) echo ' -'.++$trynum; +'.++$trynum;*/ //json_decode($a,true)['Response']['Environment']['Variables'][0]['Key'] $tmp = json_decode(getfunctioninfo($function_name, $Region, $Namespace, $SecretId, $SecretKey),true)['Response']['Environment']['Variables']; foreach ($tmp as $tmp1) { From afabfbf0debf761c39d6261476903b2e3fdc3580 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 24 Feb 2020 22:51:20 +0800 Subject: [PATCH 03/11] fix bug:special tag --- function/scf.php | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/function/scf.php b/function/scf.php index bce634b..8a09b47 100644 --- a/function/scf.php +++ b/function/scf.php @@ -53,9 +53,9 @@ function GetPathSetting($event, $context) function getConfig($str, $disktag = '') { - global $innerEnv; + global $InnerEnv; if ($disktag=='') $disktag = $_SERVER['disktag']; - if (in_array($str, $innerEnv)) { + if (in_array($str, $InnerEnv)) { return json_decode(getenv($disktag), true)[$str]; } return getenv($str); @@ -63,7 +63,7 @@ function getConfig($str, $disktag = '') function setConfig($arr, $disktag = '') { - global $innerEnv; + global $InnerEnv; if ($disktag=='') $disktag = $_SERVER['disktag']; $disktags = explode("|",getConfig('disktag')); $diskconfig = json_decode(getenv($disktag), true); @@ -71,7 +71,7 @@ function setConfig($arr, $disktag = '') $indisk = 0; $oparetdisk = 0; foreach ($arr as $k => $v) { - if (in_array($k, $innerEnv)) { + if (in_array($k, $InnerEnv)) { $diskconfig[$k] = $v; $indisk = 1; } elseif ($k=='disktag_add') { @@ -111,6 +111,8 @@ function WaitSCFStat() function get_refresh_token() { global $constStr; + global $CommonEnv; + foreach ($CommonEnv as $env) $envs .= '\'' . $env . '\', '; $url = path_format($_SERVER['PHP_SELF'] . '/'); if ($_GET['authorization_code'] && isset($_GET['code'])) { $_SERVER['disktag'] = $_COOKIE['disktag']; @@ -169,6 +171,9 @@ function get_refresh_token() } if ($_GET['install0']) { if ($_POST['disktag_add']!='' && ($_POST['Onedrive_ver']=='MS' || $_POST['Onedrive_ver']=='CN' || $_POST['Onedrive_ver']=='MSC')) { + if (in_array($_COOKIE['disktag'], $CommonEnv)) { + return message('Do not input ' . $envs . '
    ', 'Error', 201); + } $_SERVER['disktag'] = $_COOKIE['disktag']; $tmp['disktag_add'] = $_POST['disktag_add']; $tmp['diskname'] = $_POST['diskname']; @@ -223,6 +228,11 @@ namespace:' . $_SERVER['namespace'] . '
    alert(\'Input Disk Tag\'); return false; } + envs = [' . $envs . ']; + if (envs.indexOf(t.disktag_add.value)>-1) { + alert(\'' . $envs . '\'); + return false; + } var reg = /^[a-zA-Z]([-_a-zA-Z0-9]{1,20})$/; if (!reg.test(t.disktag_add.value)) { alert(\''.getconstStr('TagFormatAlert').'\'); @@ -487,11 +497,10 @@ function updateProgram($function_name, $Region, $Namespace, $SecretId, $SecretKe function EnvOpt($function_name, $needUpdate = 0) { global $constStr; - global $commonEnv; - global $innerEnv; - global $ShowedinnerEnv; - asort($commonEnv); - asort($ShowedinnerEnv); + global $ShowedCommonEnv; + global $ShowedInnerEnv; + asort($ShowedCommonEnv); + asort($ShowedInnerEnv); $html = 'OneManager '.getconstStr('Setup').''; if ($_POST['updateProgram']==getconstStr('updateProgram')) { $response = json_decode(updateProgram($function_name, $_SERVER['Region'], $_SERVER['namespace'], getConfig('SecretId'), getConfig('SecretKey')), true)['Response']; @@ -514,7 +523,7 @@ namespace:' . $namespace . '
    if ($_POST['submit1']) { $_SERVER['disk_oprating'] = ''; foreach ($_POST as $k => $v) { - if (in_array($k, $commonEnv)||in_array($k, $innerEnv)||$k=='disktag_del' || $k=='disktag_add') { + if (in_array($k, $ShowedCommonEnv)||in_array($k, $ShowedInnerEnv)||$k=='disktag_del' || $k=='disktag_add') { $tmp[$k] = $v; } if ($k == 'disk') $_SERVER['disk_oprating'] = $v; @@ -568,7 +577,7 @@ namespace:' . $_SERVER['namespace'] . '
    '.getconstStr('PlatformConfig').' '; - foreach ($commonEnv as $key) { + foreach ($ShowedCommonEnv as $key) { if ($key=='language') { $html .= ' @@ -637,7 +646,7 @@ namespace:' . $_SERVER['namespace'] . '
    $html .= '
    '; - foreach ($ShowedinnerEnv as $key) { + foreach ($ShowedInnerEnv as $key) { $html .= ' From ff2e852f873bec2ce25bbfbbb8a3b6556c62561d Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 24 Feb 2020 22:52:11 +0800 Subject: [PATCH 04/11] fix bug: special tag --- function/normal.php | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/function/normal.php b/function/normal.php index 7d0bc0b..4e0f3de 100644 --- a/function/normal.php +++ b/function/normal.php @@ -38,14 +38,14 @@ function getGET() function getConfig($str, $disktag = '') { - global $innerEnv; + global $InnerEnv; //include 'config.php'; if ($disktag=='') $disktag = $_SERVER['disktag']; $s = file_get_contents('config.php'); $configs = substr($s, 18, -2); if ($configs!='') { $envs = json_decode($configs, true); - if (in_array($str, $innerEnv)) { + if (in_array($str, $InnerEnv)) { if (isset($envs[$disktag][$str])) return $envs[$disktag][$str]; } else if (isset($envs[$str])) return $envs[$str]; } @@ -54,7 +54,7 @@ function getConfig($str, $disktag = '') function setConfig($arr, $disktag = '') { - global $innerEnv; + global $InnerEnv; if ($disktag=='') $disktag = $_SERVER['disktag']; //include 'config.php'; $s = file_get_contents('config.php'); @@ -64,7 +64,7 @@ function setConfig($arr, $disktag = '') //$indisk = 0; $operatedisk = 0; foreach ($arr as $k => $v) { - if (in_array($k, $innerEnv)) { + if (in_array($k, $InnerEnv)) { $envs[$disktag][$k] = $v; /*$diskconfig[$k] = $v; $indisk = 1;*/ @@ -103,6 +103,8 @@ function setConfig($arr, $disktag = '') function get_refresh_token() { global $constStr; + global $CommonEnv; + foreach ($CommonEnv as $env) $envs .= '\'' . $env . '\', '; $url = path_format($_SERVER['PHP_SELF'] . '/'); if ($_GET['authorization_code'] && isset($_GET['code'])) { $_SERVER['disktag'] = $_COOKIE['disktag']; @@ -160,6 +162,9 @@ function get_refresh_token() } if ($_GET['install0']) { if ($_POST['disktag_add']!='' && ($_POST['Onedrive_ver']=='MS' || $_POST['Onedrive_ver']=='CN' || $_POST['Onedrive_ver']=='MSC')) { + if (in_array($_COOKIE['disktag'], $CommonEnv)) { + return message('Do not input ' . $envs . '
    ', 'Error', 201); + } $_SERVER['disktag'] = $_COOKIE['disktag']; $tmp['disktag_add'] = $_POST['disktag_add']; $tmp['diskname'] = $_POST['diskname']; @@ -211,6 +216,11 @@ Can not write config to file.
    alert(\'Input Disk Tag\'); return false; } + envs = [' . $envs . ']; + if (envs.indexOf(t.disktag_add.value)>-1) { + alert(\'' . $envs . '\'); + return false; + } var reg = /^[a-zA-Z]([-_a-zA-Z0-9]{1,20})$/; if (!reg.test(t.disktag_add.value)) { alert(\''.getconstStr('TagFormatAlert').'\'); @@ -313,11 +323,10 @@ function RewriteEngineOn() function EnvOpt($function_name, $needUpdate = 0) { global $constStr; - global $commonEnv; - global $innerEnv; - global $ShowedinnerEnv; - asort($commonEnv); - asort($ShowedinnerEnv); + global $ShowedCommonEnv; + global $ShowedInnerEnv; + asort($ShowedCommonEnv); + asort($ShowedInnerEnv); $html = 'OneManager '.getconstStr('Setup').''; /*if ($_POST['updateProgram']==getconstStr('updateProgram')) { $response = json_decode(updataProgram($function_name, $Region, $namespace), true)['Response']; @@ -339,7 +348,7 @@ namespace:' . $namespace . '
    if ($_POST['submit1']) { $_SERVER['disk_oprating'] = ''; foreach ($_POST as $k => $v) { - if (in_array($k, $commonEnv)||in_array($k, $innerEnv)||$k=='disktag_del' || $k=='disktag_add') { + if (in_array($k, $ShowedCommonEnv)||in_array($k, $ShowedInnerEnv)||$k=='disktag_del' || $k=='disktag_add') { $tmp[$k] = $v; } if ($k == 'disk') $_SERVER['disk_oprating'] = $v; @@ -384,7 +393,7 @@ namespace:' . $namespace . '
    '.getconstStr('PlatformConfig').' '; - foreach ($commonEnv as $key) { + foreach ($ShowedCommonEnv as $key) { if ($key=='language') { $html .= ' @@ -453,7 +462,7 @@ namespace:' . $namespace . '
    $html .= ' '; - foreach ($ShowedinnerEnv as $key) { + foreach ($ShowedInnerEnv as $key) { $html .= ' From d7dcc180a40557414cc0a3e4c90282967f153d14 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 24 Feb 2020 22:53:10 +0800 Subject: [PATCH 05/11] fix bug: special tag --- function/heroku.php | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/function/heroku.php b/function/heroku.php index e3b6771..7e1daa5 100644 --- a/function/heroku.php +++ b/function/heroku.php @@ -39,9 +39,9 @@ function getGET() function getConfig($str, $disktag = '') { - global $innerEnv; + global $InnerEnv; if ($disktag=='') $disktag = $_SERVER['disktag']; - if (in_array($str, $innerEnv)) { + if (in_array($str, $InnerEnv)) { return json_decode(getenv($disktag), true)[$str]; } return getenv($str); @@ -49,7 +49,7 @@ function getConfig($str, $disktag = '') function setConfig($arr, $disktag = '') { - global $innerEnv; + global $InnerEnv; if ($disktag=='') $disktag = $_SERVER['disktag']; $disktags = explode("|",getConfig('disktag')); $diskconfig = json_decode(getenv($disktag), true); @@ -57,7 +57,7 @@ function setConfig($arr, $disktag = '') $indisk = 0; $oparetdisk = 0; foreach ($arr as $k => $v) { - if (in_array($k, $innerEnv)) { + if (in_array($k, $InnerEnv)) { $diskconfig[$k] = $v; $indisk = 1; } elseif ($k=='disktag_add') { @@ -90,6 +90,8 @@ function setConfig($arr, $disktag = '') function get_refresh_token() { global $constStr; + global $CommonEnv; + foreach ($CommonEnv as $env) $envs .= '\'' . $env . '\', '; $url = path_format($_SERVER['PHP_SELF'] . '/'); if ($_GET['authorization_code'] && isset($_GET['code'])) { $_SERVER['disktag'] = $_COOKIE['disktag']; @@ -147,6 +149,9 @@ function get_refresh_token() } if ($_GET['install0']) { if ($_POST['disktag_add']!='' && ($_POST['Onedrive_ver']=='MS' || $_POST['Onedrive_ver']=='CN' || $_POST['Onedrive_ver']=='MSC')) { + if (in_array($_COOKIE['disktag'], $CommonEnv)) { + return message('Do not input ' . $envs . '
    ', 'Error', 201); + } $_SERVER['disktag'] = $_COOKIE['disktag']; $tmp['disktag_add'] = $_POST['disktag_add']; $tmp['diskname'] = $_POST['diskname']; @@ -199,6 +204,11 @@ function_name:' . $_SERVER['function_name'] . '
    alert(\'Input Disk Tag\'); return false; } + envs = [' . $envs . ']; + if (envs.indexOf(t.disktag_add.value)>-1) { + alert(\'' . $envs . '\'); + return false; + } var reg = /^[a-zA-Z]([-_a-zA-Z0-9]{1,20})$/; if (!reg.test(t.disktag_add.value)) { alert(\''.getconstStr('TagFormatAlert').'\'); @@ -345,11 +355,10 @@ function updateHerokuapp($function_name, $apikey) function EnvOpt($function_name, $needUpdate = 0) { global $constStr; - global $commonEnv; - global $innerEnv; - global $ShowedinnerEnv; - asort($commonEnv); - asort($ShowedinnerEnv); + global $ShowedCommonEnv; + global $ShowedInnerEnv; + asort($ShowedCommonEnv); + asort($ShowedInnerEnv); $html = 'OneManager '.getconstStr('Setup').''; if ($_POST['updateProgram']==getconstStr('updateProgram')) { $response = json_decode(updateHerokuapp(getConfig('function_name'), getConfig('APIKey'))['body'], true); @@ -374,10 +383,10 @@ function_name:' . $_SERVER['function_name'] . '
    } $_SERVER['disk_oprating'] = ''; foreach ($_POST as $k => $v) { - if (in_array($k, $commonEnv)) { + if (in_array($k, $ShowedCommonEnv)) { if (!(getConfig($k)==''&&$v=='')) $tmp[$k] = $v; } - if (in_array($k, $innerEnv)||$k=='disktag_del' || $k=='disktag_add') { + if (in_array($k, $ShowedInnerEnv)||$k=='disktag_del' || $k=='disktag_add') { $tmp[$k] = $v; } if ($k == 'disk') $_SERVER['disk_oprating'] = $v; @@ -425,7 +434,7 @@ function_name:' . $_SERVER['function_name'] . '
    '.getconstStr('PlatformConfig').' '; - foreach ($commonEnv as $key) { + foreach ($ShowedCommonEnv as $key) { if ($key=='language') { $html .= ' @@ -494,7 +503,7 @@ function_name:' . $_SERVER['function_name'] . '
    $html .= ' '; - foreach ($ShowedinnerEnv as $key) { + foreach ($ShowedInnerEnv as $key) { $html .= ' From 466fc1d5f24822d52493db57ada89f9254ddc066 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 24 Feb 2020 22:54:16 +0800 Subject: [PATCH 06/11] fix bug: special tag --- function/common.php | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/function/common.php b/function/common.php index 0c7d6f9..3c68e9e 100644 --- a/function/common.php +++ b/function/common.php @@ -1,6 +1,22 @@ Date: Tue, 25 Feb 2020 13:07:54 +0800 Subject: [PATCH 07/11] fix bug: reupload --- function/common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/function/common.php b/function/common.php index 3c68e9e..b14dbc4 100644 --- a/function/common.php +++ b/function/common.php @@ -433,8 +433,8 @@ function bigfileupload($path) //echo json_encode($getoldupinfo, JSON_PRETTY_PRINT); if (isset($getoldupinfo['file'])&&$getoldupinfo['size']<5120) { $getoldupinfo_j = curl_request($getoldupinfo['@microsoft.graph.downloadUrl']); - $getoldupinfo = json_decode($getoldupinfo_j , true); - if ( json_decode( curl_request($getoldupinfo['uploadUrl']), true)['@odata.context']!='' ) return output($getoldupinfo_j); + $getoldupinfo = json_decode($getoldupinfo_j['body'], true); + if ( json_decode( curl_request($getoldupinfo['uploadUrl'])['body'], true)['@odata.context']!='' ) return output($getoldupinfo_j['body'], $getoldupinfo_j['stat']); } if (!$_SERVER['admin']) $filename = spurlencode( $fileinfo['name'] ) . '.scfupload'; $response=MSAPI('createUploadSession',path_format($path1 . '/' . $filename),'{"item": { "@microsoft.graph.conflictBehavior": "fail" }}',$_SERVER['access_token']); From 2d8abdaed0324394ba4128c72e28edc1d31777a6 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 25 Feb 2020 13:12:53 +0800 Subject: [PATCH 08/11] Update version --- version | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/version b/version index 956463f..a813a8f 100644 --- a/version +++ b/version @@ -1,7 +1,10 @@ +20200225-1310.12 +Can update by one click any time. fix bugs: special tag, reupload. +可以不管版本直接一键更新(覆盖)了。修复可以使用特殊onedrive标签的bug,修复断网续传的问题。 + 20200222-2130.11 you can set background now. fix bug: 2nd disk upload. 可以设置背景图片了。第2个盘上传后链接不对。 - 20200222-1700.09 Can copy file and folder now. 可以复制文件跟目录了。 From 961d0852c9a89de9fec416ce2c7e940f1e2bdf2c Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 25 Feb 2020 14:28:54 +0800 Subject: [PATCH 09/11] Update scf.php --- function/scf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function/scf.php b/function/scf.php index 8a09b47..9c4c996 100644 --- a/function/scf.php +++ b/function/scf.php @@ -230,7 +230,7 @@ namespace:' . $_SERVER['namespace'] . '
    } envs = [' . $envs . ']; if (envs.indexOf(t.disktag_add.value)>-1) { - alert(\'' . $envs . '\'); + alert("Do not input ' . $envs . '"); return false; } var reg = /^[a-zA-Z]([-_a-zA-Z0-9]{1,20})$/; From 1d054407c27f81a8624ebf69ba0d9b10092c9d05 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 25 Feb 2020 14:30:44 +0800 Subject: [PATCH 10/11] Update heroku.php --- function/heroku.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function/heroku.php b/function/heroku.php index 7e1daa5..7957b8c 100644 --- a/function/heroku.php +++ b/function/heroku.php @@ -206,7 +206,7 @@ function_name:' . $_SERVER['function_name'] . '
    } envs = [' . $envs . ']; if (envs.indexOf(t.disktag_add.value)>-1) { - alert(\'' . $envs . '\'); + alert("Do not input ' . $envs . '"); return false; } var reg = /^[a-zA-Z]([-_a-zA-Z0-9]{1,20})$/; From d18fd7cfa869ee63be35cdb5bb7ff7105a04c5b2 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 25 Feb 2020 14:31:04 +0800 Subject: [PATCH 11/11] Update normal.php --- function/normal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function/normal.php b/function/normal.php index 4e0f3de..7821695 100644 --- a/function/normal.php +++ b/function/normal.php @@ -218,7 +218,7 @@ Can not write config to file.
    } envs = [' . $envs . ']; if (envs.indexOf(t.disktag_add.value)>-1) { - alert(\'' . $envs . '\'); + alert("Do not input ' . $envs . '"); return false; } var reg = /^[a-zA-Z]([-_a-zA-Z0-9]{1,20})$/;