Add files via upload

This commit is contained in:
qkqpttgf
2020-02-18 21:57:38 +08:00
committed by GitHub
parent e2946ad471
commit a81339b87f
4 changed files with 73 additions and 42 deletions
+15 -9
View File
@@ -175,7 +175,8 @@ function get_refresh_token()
$tmp['Onedrive_ver'] = $_POST['Onedrive_ver'];
if ($_POST['Onedrive_ver']=='MSC') {
$tmp['client_id'] = $_POST['client_id'];
$tmp['client_secret'] = $_POST['client_secret'];
$tmp['client_secret'] = equal_replace(base64_encode($_POST['client_secret']));
//$_POST['client_secret'];
}
$response = setConfig($tmp, $_COOKIE['disktag']);
$title = getconstStr('MayinEnv');
@@ -325,8 +326,9 @@ function EnvOpt($function_name, $needUpdate = 0)
global $constStr;
global $commonEnv;
global $innerEnv;
global $ShowedinnerEnv;
asort($commonEnv);
asort($innerEnv);
asort($ShowedinnerEnv);
$html = '<title>OneManager '.getconstStr('Setup').'</title>';
/*if ($_POST['updateProgram']==getconstStr('updateProgram')) {
$response = json_decode(updataProgram($function_name, $Region, $namespace), true)['Response'];
@@ -377,7 +379,7 @@ namespace:' . $namespace . '<br>
$preurl = path_format($_SERVER['PHP_SELF'] . '/');
}
$html .= '
<a href="'.$preurl.'">'.getconstStr('Back').'</a>&nbsp;&nbsp;&nbsp;
<a href="'.$preurl.'">'.getconstStr('Back').'</a>&nbsp;&nbsp;&nbsp;<a href="/'.$_SERVER['base_path'].'">'.getconstStr('Back').getconstStr('Home').'</a><br>
<a href="https://github.com/qkqpttgf/OneManager-php">Github</a><br>';
/*if ($needUpdate) {
$html .= '<pre>' . $_SERVER['github_version'] . '</pre>
@@ -387,7 +389,7 @@ namespace:' . $namespace . '<br>
} else {
$html .= getconstStr('NotNeedUpdate');
}*/
$html .= '
$html .= '<br>
<table border=1 width=100%>
<form name="common" action="" method="post">
<tr>
@@ -457,19 +459,23 @@ namespace:' . $namespace . '<br>
<input type="submit" name="submit1" value="Del disk">
</td>
</tr>
</form>
</form>';
if (getConfig('refresh_token', $disktag)!='') {
$html .= '
<form name="'.$disktag.'" action="" method="post">
<input type="hidden" name="disk" value="'.$disktag.'">';
foreach ($innerEnv as $key) {
$html .= '
foreach ($ShowedinnerEnv as $key) {
$html .= '
<tr>
<td><label>' . $key . '</label></td>
<td width=100%><input type="text" name="' . $key .'" value="' . getConfig($key, $disktag) . '" placeholder="' . getconstStr('EnvironmentsDescription')[$key] . '" style="width:100%"></td>
</tr>';
}
$html .= '
<tr><td><input type="submit" name="submit1" value="'.getconstStr('Setup').'"></td></tr>
</form>';
}
$html .= '
<tr><td><input type="submit" name="submit1" value="'.getconstStr('Setup').'"></td></tr>
</form>
</table><br>';
}
}