未验证 提交 140b7a1e 编写于 作者: Q qkqpttgf 提交者: GitHub

can update when not need

上级 3c2ba3f2
...@@ -408,18 +408,19 @@ function_name:' . $_SERVER['function_name'] . '<br> ...@@ -408,18 +408,19 @@ function_name:' . $_SERVER['function_name'] . '<br>
$preurl = path_format($_SERVER['PHP_SELF'] . '/'); $preurl = path_format($_SERVER['PHP_SELF'] . '/');
} }
$html .= ' $html .= '
<a href="'.$preurl.'">'.getconstStr('Back').'</a>&nbsp;&nbsp;&nbsp;<a href="'.$_SERVER['base_path'].'">'.getconstStr('Back').getconstStr('Home').'</a><br> <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>'; <a href="https://github.com/qkqpttgf/OneManager-php">Github</a><br>
<form action="" method="post">
';
if ($needUpdate) { if ($needUpdate) {
$html .= '<pre>' . $_SERVER['github_version'] . '</pre> $html .= '<pre>' . $_SERVER['github_version'] . '</pre>';
<form action="" method="post">
<input type="submit" name="updateProgram" value="'.getconstStr('updateProgram').'">
</form>';
} else { } else {
$html .= getconstStr('NotNeedUpdate'); $html .= getconstStr('NotNeedUpdate');
} }
$html .= '<br> $html .= '
<table border=1 width=100%> <input type="submit" name="updateProgram" value="'.getconstStr('updateProgram').'">
</form>
<table border=1 width=100%>
<form name="common" action="" method="post"> <form name="common" action="" method="post">
<tr> <tr>
<td colspan="2">'.getconstStr('PlatformConfig').'</td> <td colspan="2">'.getconstStr('PlatformConfig').'</td>
...@@ -476,22 +477,22 @@ function_name:' . $_SERVER['function_name'] . '<br> ...@@ -476,22 +477,22 @@ function_name:' . $_SERVER['function_name'] . '<br>
$html .= ' $html .= '
<tr><td><input type="submit" name="submit1" value="'.getconstStr('Setup').'"></td></tr> <tr><td><input type="submit" name="submit1" value="'.getconstStr('Setup').'"></td></tr>
</form> </form>
</table><br>'; </table><br>';
foreach (explode("|",getConfig('disktag')) as $disktag) { foreach (explode("|",getConfig('disktag')) as $disktag) {
if ($disktag!='') { if ($disktag!='') {
$html .= ' $html .= '
<table border=1 width=100%> <table border=1 width=100%>
<form action="" method="post"> <form action="" method="post">
<tr> <tr>
<td colspan="2">'.$disktag.': <td colspan="2">'.$disktag.':
<input type="hidden" name="disktag_del" value="'.$disktag.'"> <input type="hidden" name="disktag_del" value="'.$disktag.'">
<input type="submit" name="submit1" value="'.getconstStr('DelDisk').'"> <input type="submit" name="submit1" value="'.getconstStr('DelDisk').'">
</td> </td>
</tr> </tr>
</form>'; </form>';
if (getConfig('refresh_token', $disktag)!='') { if (getConfig('refresh_token', $disktag)!='') {
$html .= ' $html .= '
<form name="'.$disktag.'" action="" method="post"> <form name="'.$disktag.'" action="" method="post">
<input type="hidden" name="disk" value="'.$disktag.'">'; <input type="hidden" name="disk" value="'.$disktag.'">';
foreach ($ShowedinnerEnv as $key) { foreach ($ShowedinnerEnv as $key) {
$html .= ' $html .= '
...@@ -502,13 +503,13 @@ function_name:' . $_SERVER['function_name'] . '<br> ...@@ -502,13 +503,13 @@ function_name:' . $_SERVER['function_name'] . '<br>
} }
$html .= ' $html .= '
<tr><td><input type="submit" name="submit1" value="'.getconstStr('Setup').'"></td></tr> <tr><td><input type="submit" name="submit1" value="'.getconstStr('Setup').'"></td></tr>
</form>'; </form>';
} }
$html .= ' $html .= '
</table><br>'; </table><br>';
} }
} }
$html .= ' $html .= '
<a href="?AddDisk">'.getconstStr('AddDisk').'</a>'; <a href="?AddDisk">'.getconstStr('AddDisk').'</a>';
return message($html, getconstStr('Setup')); return message($html, getconstStr('Setup'));
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册