From 03e18ca3987c7429007ca6a6df9cd9e42bcbcc6e Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Wed, 20 Mar 2019 10:29:13 +0530 Subject: [PATCH] changes & fixes in installer --- public/installer/Admin.php | 20 +- public/installer/Classes/Permission.php | 112 --------- public/installer/Environment.php | 148 ++++++----- public/installer/Finish.php | 17 +- public/installer/Migration.php | 25 +- public/installer/Seeder.php | 2 +- public/installer/Views/permission.blade.php | 61 ----- public/installer/Views/requirements.blade.php | 25 +- public/installer/Views/welcome.blade.php | 14 +- public/installer/index.php | 229 ++++++++++-------- 10 files changed, 227 insertions(+), 426 deletions(-) delete mode 100755 public/installer/Classes/Permission.php delete mode 100755 public/installer/Views/permission.blade.php diff --git a/public/installer/Admin.php b/public/installer/Admin.php index 8234dc7eb..9c279dfd1 100755 --- a/public/installer/Admin.php +++ b/public/installer/Admin.php @@ -1,18 +1,9 @@ - - - Bagisto Installer - - - - -
-
- +

Admin Details

@@ -49,10 +40,6 @@
-
@@ -63,7 +50,6 @@ $.validate({}); - - - -
-
- +

Environment Configuration

-
-
-
+ +
+
+
+
+
+ +
-
-
- - -
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ +
-
- -
- back -
+
+
+ +
+ back
- +
+
- -
@@ -128,10 +114,12 @@ }; + var target = window.location.href.concat('/EnvConfig.php'); + // process the form $.ajax({ type : 'POST', - url : 'EnvConfig.php', + url : target, data : formData, dataType : 'json', encode : true diff --git a/public/installer/Finish.php b/public/installer/Finish.php index 6f3a72dbd..7ccf136ed 100755 --- a/public/installer/Finish.php +++ b/public/installer/Finish.php @@ -1,16 +1,9 @@ - - - Bagisto Installer - - -
-
- +

Finish Installment

@@ -23,10 +16,6 @@
-
@@ -37,8 +26,8 @@ function finish() { lastIndex = window.location.href.lastIndexOf("/"); - secondlast = window.location.href.slice(0,lastIndex).lastIndexOf("/"); - next = window.location.href.slice(0,secondlast); + secondlast = window.location.href.slice(0, lastIndex).lastIndexOf("/"); + next = window.location.href.slice(0, secondlast); next = next.concat('/admin/login'); window.location.href = next; } diff --git a/public/installer/Migration.php b/public/installer/Migration.php index e9fae10f4..e3d346063 100755 --- a/public/installer/Migration.php +++ b/public/installer/Migration.php @@ -1,10 +1,4 @@ - - - Bagisto Installer - - -