can update when not need
parent
3c2ba3f279
commit
140b7a1e98
|
@ -408,18 +408,19 @@ function_name:' . $_SERVER['function_name'] . '<br>
|
|||
$preurl = path_format($_SERVER['PHP_SELF'] . '/');
|
||||
}
|
||||
$html .= '
|
||||
<a href="'.$preurl.'">'.getconstStr('Back').'</a> <a href="'.$_SERVER['base_path'].'">'.getconstStr('Back').getconstStr('Home').'</a><br>
|
||||
<a href="https://github.com/qkqpttgf/OneManager-php">Github</a><br>';
|
||||
<a href="'.$preurl.'">'.getconstStr('Back').'</a> <a href="'.$_SERVER['base_path'].'">'.getconstStr('Back').getconstStr('Home').'</a><br>
|
||||
<a href="https://github.com/qkqpttgf/OneManager-php">Github</a><br>
|
||||
<form action="" method="post">
|
||||
';
|
||||
if ($needUpdate) {
|
||||
$html .= '<pre>' . $_SERVER['github_version'] . '</pre>
|
||||
<form action="" method="post">
|
||||
<input type="submit" name="updateProgram" value="'.getconstStr('updateProgram').'">
|
||||
</form>';
|
||||
$html .= '<pre>' . $_SERVER['github_version'] . '</pre>';
|
||||
} else {
|
||||
$html .= getconstStr('NotNeedUpdate');
|
||||
}
|
||||
$html .= '<br>
|
||||
<table border=1 width=100%>
|
||||
$html .= '
|
||||
<input type="submit" name="updateProgram" value="'.getconstStr('updateProgram').'">
|
||||
</form>
|
||||
<table border=1 width=100%>
|
||||
<form name="common" action="" method="post">
|
||||
<tr>
|
||||
<td colspan="2">'.getconstStr('PlatformConfig').'</td>
|
||||
|
@ -476,11 +477,11 @@ function_name:' . $_SERVER['function_name'] . '<br>
|
|||
$html .= '
|
||||
<tr><td><input type="submit" name="submit1" value="'.getconstStr('Setup').'"></td></tr>
|
||||
</form>
|
||||
</table><br>';
|
||||
</table><br>';
|
||||
foreach (explode("|",getConfig('disktag')) as $disktag) {
|
||||
if ($disktag!='') {
|
||||
$html .= '
|
||||
<table border=1 width=100%>
|
||||
<table border=1 width=100%>
|
||||
<form action="" method="post">
|
||||
<tr>
|
||||
<td colspan="2">'.$disktag.':
|
||||
|
@ -505,10 +506,10 @@ function_name:' . $_SERVER['function_name'] . '<br>
|
|||
</form>';
|
||||
}
|
||||
$html .= '
|
||||
</table><br>';
|
||||
</table><br>';
|
||||
}
|
||||
}
|
||||
$html .= '
|
||||
<a href="?AddDisk">'.getconstStr('AddDisk').'</a>';
|
||||
<a href="?AddDisk">'.getconstStr('AddDisk').'</a>';
|
||||
return message($html, getconstStr('Setup'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue