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 = '