mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
improve install & update
This commit is contained in:
@@ -15,6 +15,7 @@ if (!$install->canAccessStep($currentStep)) {
|
||||
$install->gotoStep(1);
|
||||
}
|
||||
$error = $copy = '';
|
||||
$pass = true;
|
||||
|
||||
//step 1
|
||||
if ($currentStep == 1) {
|
||||
@@ -60,7 +61,6 @@ if ($currentStep == 2) {
|
||||
}
|
||||
|
||||
if ($currentStep == 3) {
|
||||
$pass = true;
|
||||
$shouldCreateTable = $install->listShouldCreateTable();
|
||||
while ($isPost) {
|
||||
try {
|
||||
@@ -136,7 +136,6 @@ if ($currentStep == 5) {
|
||||
$error = $exception->getMessage();
|
||||
}
|
||||
}
|
||||
$pass = true;
|
||||
$userFormControls = [
|
||||
['label' => '用户名', 'name' => 'username', 'value' => $_POST['username'] ?? ''],
|
||||
['label' => '邮箱', 'name' => 'email', 'value' => $_POST['email'] ?? ''],
|
||||
|
||||
Reference in New Issue
Block a user