Update scf.php

pull/98/head
qkqpttgf 2020-03-02 17:27:30 +08:00 committed by GitHub
parent 5bb6668fbc
commit 6fa56b7525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -178,7 +178,7 @@ 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 . '<br><button onclick="location.href = location.href;">'.getconstStr('Reflesh').'</button><script>document.cookie=\'disktag=; path=/\';</script>', 'Error', 201);
return message('Do not input ' . $envs . '<br><button onclick="location.href = location.href;">'.getconstStr('Refresh').'</button><script>document.cookie=\'disktag=; path=/\';</script>', 'Error', 201);
}
$_SERVER['disktag'] = $_COOKIE['disktag'];
$tmp['disktag_add'] = $_POST['disktag_add'];
@ -197,7 +197,7 @@ function get_refresh_token()
function_name:' . $_SERVER['function_name'] . '<br>
Region:' . $_SERVER['Region'] . '<br>
namespace:' . $_SERVER['namespace'] . '<br>
<button onclick="location.href = location.href;">'.getconstStr('Reflesh').'</button>';
<button onclick="location.href = location.href;">'.getconstStr('Refresh').'</button>';
$title = 'Error';
}
return message($html, $title, 201);
@ -275,7 +275,7 @@ function install()
function_name:' . $_SERVER['function_name'] . '<br>
Region:' . $_SERVER['Region'] . '<br>
namespace:' . $_SERVER['namespace'] . '<br>
<button onclick="location.href = location.href;">'.getconstStr('Reflesh').'</button>';
<button onclick="location.href = location.href;">'.getconstStr('Refresh').'</button>';
$title = 'Error';
} else {
$trynum = 0;
@ -514,12 +514,12 @@ function EnvOpt($function_name, $needUpdate = 0)
function_name:' . $_SERVER['function_name'] . '<br>
Region:' . $_SERVER['Region'] . '<br>
namespace:' . $namespace . '<br>
<button onclick="location.href = location.href;">'.getconstStr('Reflesh').'</button>';
<button onclick="location.href = location.href;">'.getconstStr('Refresh').'</button>';
$title = 'Error';
} else {
WaitSCFStat();
$html .= getconstStr('UpdateSuccess') . '<br>
<button onclick="location.href = location.href;">'.getconstStr('Reflesh').'</button>';
<button onclick="location.href = location.href;">'.getconstStr('Refresh').'</button>';
$title = getconstStr('Setup');
}
return message($html, $title);
@ -548,7 +548,7 @@ namespace:' . $namespace . '<br>
function_name:' . $_SERVER['function_name'] . '<br>
Region:' . $_SERVER['Region'] . '<br>
namespace:' . $_SERVER['namespace'] . '<br>
<button onclick="location.href = location.href;">'.getconstStr('Reflesh').'</button>';
<button onclick="location.href = location.href;">'.getconstStr('Refresh').'</button>';
$title = 'Error';
} else {
WaitSCFStat();