mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
exam support valid multiple
This commit is contained in:
@@ -154,6 +154,7 @@ if ($currentStep == 4) {
|
||||
$symbolicLinks = $settingTableRows['symbolic_links'];
|
||||
$tableRows = $settingTableRows['table_rows'];
|
||||
$pass = $settingTableRows['pass'];
|
||||
$mysqlInfo = $update->getMysqlVersionInfo();
|
||||
while ($isPost) {
|
||||
set_time_limit(300);
|
||||
try {
|
||||
@@ -172,7 +173,7 @@ if ($currentStep == 4) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($error)) {
|
||||
if (!empty($error) || (isset($mysqlInfo) && !$mysqlInfo['match'])) {
|
||||
$pass = false;
|
||||
}
|
||||
?>
|
||||
@@ -218,6 +219,9 @@ if (!empty($error)) {
|
||||
echo '<div class="text-blue-500 pt-10">';
|
||||
echo sprintf('This step will merge <code>%s</code> to <code>%s</code>, then insert into database.', $tableRows[1]['label'], $tableRows[0]['label']);
|
||||
echo '</div>';
|
||||
if (!$mysqlInfo['match']) {
|
||||
echo sprintf('<div class="text-red-700 pt-10">MySQL version: %s is too low, please use the newest version of 5.7 or above.</div>', $mysqlInfo['version']);
|
||||
}
|
||||
} elseif ($currentStep > $maxStep) {
|
||||
echo '<div class="text-green-900 text-6xl p-10">Congratulations, everything is ready!</div>';
|
||||
echo '<div class="mb-6">For questions, consult the upgrade log at: <code>' . $update->getLogFile() . '</code></div>';
|
||||
|
||||
Reference in New Issue
Block a user