Update common.php

pull/73/head
qkqpttgf 2020-06-02 18:34:22 +08:00 committed by GitHub
parent 3fb1193aa0
commit 0274794888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -1541,11 +1541,10 @@ function EnvOpt($needUpdate = 0)
}*/ }*/
$response = setConfigResponse( setConfig($tmp, $_SERVER['disk_oprating']) ); $response = setConfigResponse( setConfig($tmp, $_SERVER['disk_oprating']) );
if (api_error($response)) { if (api_error($response)) {
$html = api_error_msg($response); $html = api_error_msg($response);
$title = 'Error'; $title = 'Error';
} else { } else {
//WaitSCFStat(); //WaitSCFStat();
//sleep(3);
$html .= getconstStr('Success') . '!<br> $html .= getconstStr('Success') . '!<br>
<button onclick="location.href = location.href;">'.getconstStr('Refresh').'</button>'; <button onclick="location.href = location.href;">'.getconstStr('Refresh').'</button>';
$title = getconstStr('Setup'); $title = getconstStr('Setup');
@ -1655,7 +1654,7 @@ function EnvOpt($needUpdate = 0)
} }
$html .= ' $html .= '
<a href="?AddDisk">'.getconstStr('AddDisk').'</a><br><br>'; <a href="?AddDisk">'.getconstStr('AddDisk').'</a><br><br>';
if (!((isset($_SERVER['USER'])&&$_SERVER['USER']==='qcloud')||(isset($_SERVER['HEROKU_APP_DIR'])&&$_SERVER['HEROKU_APP_DIR']==='/app'))) { if (!( (isset($_SERVER['USER'])&&$_SERVER['USER']==='qcloud') || (isset($_SERVER['HEROKU_APP_DIR'])&&$_SERVER['HEROKU_APP_DIR']==='/app') || (isset($_SERVER['FC_SERVER_PATH'])&&$_SERVER['FC_SERVER_PATH']==='/var/fc/runtime/php7.2') )) {
$html .= ' $html .= '
'.getconstStr('VPSnotupdate').'<br>'; '.getconstStr('VPSnotupdate').'<br>';
} else { } else {