From 80a7b436ad71629419a0efb2f982d5d37a759e07 Mon Sep 17 00:00:00 2001 From: 1Day Date: Wed, 12 Jan 2022 07:57:59 +0100 Subject: [PATCH] fix artisan commands ran through web installer --- public/install/index.php | 88 +++++++++++++++---------------------- public/install/install.lock | 1 + 2 files changed, 37 insertions(+), 52 deletions(-) create mode 100644 public/install/install.lock diff --git a/public/install/index.php b/public/install/index.php index d215cbd9..64f0a38a 100644 --- a/public/install/index.php +++ b/public/install/index.php @@ -43,13 +43,20 @@ if (file_exists("install.lock")) { - -
+
- Controlpanel.GG + Controlpanel.GG
+
'; -
+ +if (!isset($_GET['step'])) { + + + echo $cardheader; + ?> @@ -64,8 +71,8 @@ if (file_exists("install.lock")) { echo $ext . ", "; } ?> (try to install anyway)

-

"> Zip - version:

+

"> Git version:

@@ -83,15 +90,8 @@ if (file_exists("install.lock")) { - -
-
- Controlpanel.GG -
- -
" . $_GET['message'] . "

"; @@ -166,15 +166,8 @@ if (isset($_GET['step']) && $_GET['step'] == 2) { if (isset($_GET['step']) && $_GET['step'] == 3) { - + echo $cardheader; ?> - -
-
- Controlpanel.GG -
- -
" . $_GET['message'] . "

"; @@ -216,15 +209,8 @@ if (isset($_GET['step']) && $_GET['step'] == 3) { - -
-
- Controlpanel.GG -
- -
&1"; + $resp = shell_exec($cmd); shell_exec('php artisan migrate --seed --force'); } - + echo $cardheader; ?> -
-
- Controlpanel.GG -
- -
- + + + "; + print_r($resp); + echo "
"; + } + ?> + + " . $_GET['message'] . "

"; } @@ -364,14 +358,8 @@ if (isset($_GET['step']) && $_GET['step'] == 5) { } if (isset($_GET['step']) && $_GET['step'] == 6) { + echo $cardheader; ?> - -
-
- Controlpanel.GG -
- -
- -