From 8ff3f04c0ba38eb002c5c4a22fafc969b3810a15 Mon Sep 17 00:00:00 2001 From: Jens <34610614+AGuyNamedJens@users.noreply.github.com> Date: Wed, 5 Apr 2023 14:13:52 +0200 Subject: [PATCH 1/2] Move .env.example to functions.php --- public/install/index.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/public/install/index.php b/public/install/index.php index 027ae3d1..b682a51a 100644 --- a/public/install/index.php +++ b/public/install/index.php @@ -53,9 +53,6 @@ $cardheader = '
'; if (!isset($_GET['step'])) { - if (!file_exists('../../.env')) { - echo run_console('cp .env.example .env'); - } echo $cardheader; ?>

This installer will lead you through the most crucial Steps of Controlpanel.gg`s setup

From 482c613ca6b90d64e1d53ba8395b7da28995d790 Mon Sep 17 00:00:00 2001 From: Jens <34610614+AGuyNamedJens@users.noreply.github.com> Date: Wed, 5 Apr 2023 14:14:55 +0200 Subject: [PATCH 2/2] Move .env.example to functions.php --- public/install/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/install/functions.php b/public/install/functions.php index 6ad3beca..5846ad78 100644 --- a/public/install/functions.php +++ b/public/install/functions.php @@ -9,6 +9,10 @@ use Monolog\Formatter\LineFormatter; use Monolog\Handler\StreamHandler; use Monolog\Logger; +if (!file_exists('../../.env')) { + echo run_console('cp .env.example .env'); +} + (new DotEnv(dirname(__FILE__, 3) . '/.env'))->load(); $required_extensions = ['openssl', 'gd', 'mysql', 'PDO', 'mbstring', 'tokenizer', 'bcmath', 'xml', 'curl', 'zip', 'intl'];