can update when not need

pull/17/head
qkqpttgf 2020-02-23 13:40:28 +08:00 committed by GitHub
parent 3c2ba3f279
commit 140b7a1e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 16 deletions

View File

@ -409,16 +409,17 @@ function_name:' . $_SERVER['function_name'] . '<br>
} }
$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>
if ($needUpdate) {
$html .= '<pre>' . $_SERVER['github_version'] . '</pre>
<form action="" method="post"> <form action="" method="post">
<input type="submit" name="updateProgram" value="'.getconstStr('updateProgram').'"> ';
</form>'; if ($needUpdate) {
$html .= '<pre>' . $_SERVER['github_version'] . '</pre>';
} else { } else {
$html .= getconstStr('NotNeedUpdate'); $html .= getconstStr('NotNeedUpdate');
} }
$html .= '<br> $html .= '
<input type="submit" name="updateProgram" value="'.getconstStr('updateProgram').'">
</form>
<table border=1 width=100%> <table border=1 width=100%>
<form name="common" action="" method="post"> <form name="common" action="" method="post">
<tr> <tr>