Update scf.php
parent
5bb6668fbc
commit
6fa56b7525
|
@ -178,7 +178,7 @@ function get_refresh_token()
|
||||||
if ($_GET['install0']) {
|
if ($_GET['install0']) {
|
||||||
if ($_POST['disktag_add']!='' && ($_POST['Onedrive_ver']=='MS' || $_POST['Onedrive_ver']=='CN' || $_POST['Onedrive_ver']=='MSC')) {
|
if ($_POST['disktag_add']!='' && ($_POST['Onedrive_ver']=='MS' || $_POST['Onedrive_ver']=='CN' || $_POST['Onedrive_ver']=='MSC')) {
|
||||||
if (in_array($_COOKIE['disktag'], $CommonEnv)) {
|
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'];
|
$_SERVER['disktag'] = $_COOKIE['disktag'];
|
||||||
$tmp['disktag_add'] = $_POST['disktag_add'];
|
$tmp['disktag_add'] = $_POST['disktag_add'];
|
||||||
|
@ -197,7 +197,7 @@ function get_refresh_token()
|
||||||
function_name:' . $_SERVER['function_name'] . '<br>
|
function_name:' . $_SERVER['function_name'] . '<br>
|
||||||
Region:' . $_SERVER['Region'] . '<br>
|
Region:' . $_SERVER['Region'] . '<br>
|
||||||
namespace:' . $_SERVER['namespace'] . '<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';
|
$title = 'Error';
|
||||||
}
|
}
|
||||||
return message($html, $title, 201);
|
return message($html, $title, 201);
|
||||||
|
@ -275,7 +275,7 @@ function install()
|
||||||
function_name:' . $_SERVER['function_name'] . '<br>
|
function_name:' . $_SERVER['function_name'] . '<br>
|
||||||
Region:' . $_SERVER['Region'] . '<br>
|
Region:' . $_SERVER['Region'] . '<br>
|
||||||
namespace:' . $_SERVER['namespace'] . '<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';
|
$title = 'Error';
|
||||||
} else {
|
} else {
|
||||||
$trynum = 0;
|
$trynum = 0;
|
||||||
|
@ -514,12 +514,12 @@ function EnvOpt($function_name, $needUpdate = 0)
|
||||||
function_name:' . $_SERVER['function_name'] . '<br>
|
function_name:' . $_SERVER['function_name'] . '<br>
|
||||||
Region:' . $_SERVER['Region'] . '<br>
|
Region:' . $_SERVER['Region'] . '<br>
|
||||||
namespace:' . $namespace . '<br>
|
namespace:' . $namespace . '<br>
|
||||||
<button onclick="location.href = location.href;">'.getconstStr('Reflesh').'</button>';
|
<button onclick="location.href = location.href;">'.getconstStr('Refresh').'</button>';
|
||||||
$title = 'Error';
|
$title = 'Error';
|
||||||
} else {
|
} else {
|
||||||
WaitSCFStat();
|
WaitSCFStat();
|
||||||
$html .= getconstStr('UpdateSuccess') . '<br>
|
$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');
|
$title = getconstStr('Setup');
|
||||||
}
|
}
|
||||||
return message($html, $title);
|
return message($html, $title);
|
||||||
|
@ -548,7 +548,7 @@ namespace:' . $namespace . '<br>
|
||||||
function_name:' . $_SERVER['function_name'] . '<br>
|
function_name:' . $_SERVER['function_name'] . '<br>
|
||||||
Region:' . $_SERVER['Region'] . '<br>
|
Region:' . $_SERVER['Region'] . '<br>
|
||||||
namespace:' . $_SERVER['namespace'] . '<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';
|
$title = 'Error';
|
||||||
} else {
|
} else {
|
||||||
WaitSCFStat();
|
WaitSCFStat();
|
||||||
|
|
Loading…
Reference in New Issue