diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..bdbdebb7 --- /dev/null +++ b/.env.example @@ -0,0 +1,9 @@ +MYSQL_HOST=127.0.0.1 +MYSQL_PORT=3306 +MYSQL_USERNAME= +MYSQL_PASSWORD= +MYSQL_DATABASE=nexusphp + +REDIS_HOST=127.0.0.1 +REDIS_PORT=6379 +REDIS_DATABASE=0 \ No newline at end of file diff --git a/include/core.php b/include/core.php index c2d15b36..6e3d1964 100644 --- a/include/core.php +++ b/include/core.php @@ -3,7 +3,7 @@ if(!defined('IN_TRACKER')) { die('Hacking attempt!'); } if (!file_exists($rootpath . '.env')) { - header('Location: ' . getBaseUrl() . '/install/install.php'); + header('Location: ' . getBaseUrl() . 'install/install.php'); exit(0); } error_reporting(E_ALL); diff --git a/nexus/Install/Install.php b/nexus/Install/Install.php index 8da24146..4edf059e 100644 --- a/nexus/Install/Install.php +++ b/nexus/Install/Install.php @@ -281,7 +281,7 @@ class Install $steps = '
'; $currentStep = $this->currentStep(); foreach ($this->steps as $key => $value) { - $steps .= sprintf('
', $currentStep > $key + 1 ? 'done' : ($currentStep < $key + 1 ? 'none' : '')); + $steps .= sprintf('
', $currentStep > $key + 1 ? 'text-green-500' : ($currentStep < $key + 1 ? 'text-gray-500' : '')); $steps .= sprintf('
第%s步
', $key + 1); $steps .= sprintf('
%s
', $value); $steps .= '
'; diff --git a/public/install/install.php b/public/install/install.php index 2e65fcb1..201a0374 100644 --- a/public/install/install.php +++ b/public/install/install.php @@ -234,15 +234,7 @@ if ($currentStep == 5) { - Update NexusPHP | step <?php echo $currentStep?> - + Install NexusPHP | step <?php echo $currentStep?>