mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
add .env.example
This commit is contained in:
@@ -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
|
||||||
+1
-1
@@ -3,7 +3,7 @@ if(!defined('IN_TRACKER')) {
|
|||||||
die('Hacking attempt!');
|
die('Hacking attempt!');
|
||||||
}
|
}
|
||||||
if (!file_exists($rootpath . '.env')) {
|
if (!file_exists($rootpath . '.env')) {
|
||||||
header('Location: ' . getBaseUrl() . '/install/install.php');
|
header('Location: ' . getBaseUrl() . 'install/install.php');
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ class Install
|
|||||||
$steps = '<div class="flex mt-10 step text-center">';
|
$steps = '<div class="flex mt-10 step text-center">';
|
||||||
$currentStep = $this->currentStep();
|
$currentStep = $this->currentStep();
|
||||||
foreach ($this->steps as $key => $value) {
|
foreach ($this->steps as $key => $value) {
|
||||||
$steps .= sprintf('<div class="flex-1 %s">', $currentStep > $key + 1 ? 'done' : ($currentStep < $key + 1 ? 'none' : ''));
|
$steps .= sprintf('<div class="flex-1 %s">', $currentStep > $key + 1 ? 'text-green-500' : ($currentStep < $key + 1 ? 'text-gray-500' : ''));
|
||||||
$steps .= sprintf('<div>第%s步</div>', $key + 1);
|
$steps .= sprintf('<div>第%s步</div>', $key + 1);
|
||||||
$steps .= sprintf('<div>%s</div>', $value);
|
$steps .= sprintf('<div>%s</div>', $value);
|
||||||
$steps .= '</div>';
|
$steps .= '</div>';
|
||||||
|
|||||||
@@ -234,15 +234,7 @@ if ($currentStep == 5) {
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
|
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
|
||||||
<title>Update NexusPHP | step <?php echo $currentStep?></title>
|
<title>Install NexusPHP | step <?php echo $currentStep?></title>
|
||||||
<style type="text/css">
|
|
||||||
.step .none {
|
|
||||||
color: #aaa;
|
|
||||||
}
|
|
||||||
.step .done {
|
|
||||||
color: #67c23a;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container mx-auto">
|
<div class="container mx-auto">
|
||||||
|
|||||||
Reference in New Issue
Block a user