From 086f685780c9b38059131c4fb30bbf79a1b46ad2 Mon Sep 17 00:00:00 2001 From: AGuyNamedJens Date: Thu, 30 Mar 2023 01:10:55 +0200 Subject: [PATCH] (refactor) Refactor index.php --- public/install/index.php | 606 ++++++++++++++++++++------------------- 1 file changed, 305 insertions(+), 301 deletions(-) diff --git a/public/install/index.php b/public/install/index.php index b002282b..2651531b 100644 --- a/public/install/index.php +++ b/public/install/index.php @@ -52,8 +52,8 @@ $cardheader = '
'; -if (! isset($_GET['step'])) { - if (! file_exists('../../.env')) { +if (!isset($_GET['step'])) { + if (!file_exists('../../.env')) { echo run_console('cp .env.example .env'); } echo $cardheader; ?> @@ -71,11 +71,11 @@ if (! isset($_GET['step'])) {

Missing php-extentions:

+ echo count(checkExtensions()) == 0 ? '' : '(Proceed anyway)'; ?>