can update when not need

This commit is contained in:
qkqpttgf
2020-02-23 13:40:28 +08:00
committed by GitHub
parent 3c2ba3f279
commit 140b7a1e98
+7 -6
View File
@@ -409,16 +409,17 @@ function_name:' . $_SERVER['function_name'] . '<br>
}
$html .= '
<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>
<a href="https://github.com/qkqpttgf/OneManager-php">Github</a><br>
<form action="" method="post">
<input type="submit" name="updateProgram" value="'.getconstStr('updateProgram').'">
</form>';
';
if ($needUpdate) {
$html .= '<pre>' . $_SERVER['github_version'] . '</pre>';
} else {
$html .= getconstStr('NotNeedUpdate');
}
$html .= '<br>
$html .= '
<input type="submit" name="updateProgram" value="'.getconstStr('updateProgram').'">
</form>
<table border=1 width=100%>
<form name="common" action="" method="post">
<tr>