diff --git a/public/installer/index.php b/public/installer/index.php index c95fcd3ff..d6f907276 100755 --- a/public/installer/index.php +++ b/public/installer/index.php @@ -1,150 +1,139 @@ + - - - - Bagisto Installer + + + - - + Bagisto Installer - - - - - - - + - - + + + - - + + + + + - -
-
- -
+ + + + +
+
+
+
- connect_error) { - // retrieving admin entry - $prefix = $databaseData['DB_PREFIX'].'admins'; - $sql = "SELECT id, name FROM $prefix"; - $result = $conn->query($sql); + if (! $conn->connect_error) { + // retrieving admin entry + $prefix = $dbPrefix . 'admins'; + $sql = "SELECT id, name FROM $prefix"; + $result = $conn->query($sql); - if ($result) { - $installed = true; - } - } - - $conn->close(); - } else { + if ($result) { $installed = true; } } - if (!$installed) { + $conn->close(); + } else { + $installed = true; + } + } - // including classes - include __DIR__ . '/Classes/Requirement.php'; + if (! $installed) { + // including classes + include __DIR__ . '/Classes/Requirement.php'; - // including php files - include __DIR__ . '/Views/environment.blade.php'; - include __DIR__ . '/Views/migration.blade.php'; - include __DIR__ . '/Views/admin.blade.php'; - include __DIR__ . '/Views/email.blade.php'; - include __DIR__ . '/Views/finish.blade.php'; + // including php files + include __DIR__ . '/Views/environment.blade.php'; + include __DIR__ . '/Views/migration.blade.php'; + include __DIR__ . '/Views/admin.blade.php'; + include __DIR__ . '/Views/email.blade.php'; + include __DIR__ . '/Views/finish.blade.php'; - // object creation - $requirement = new Requirement(); - echo $requirement->render(); - } else { - // getting url - $actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; + // object creation + $requirement = new Requirement(); + echo $requirement->render(); + } else { + // getting url + $actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; - $url = explode("/", $actual_link); - array_pop($url); - array_pop($url); - $url = implode("/", $url); - $url = $url . '/404'; + $url = explode("/", $actual_link); + array_pop($url); + array_pop($url); + $url = implode("/", $url); + $url = $url . '/404'; - // redirecting to 404 error page - header("Location: $url"); - } - ?> + // redirecting to 404 error page + header("Location: $url"); + } + ?> -
- Bagisto a community project by Webkul -
+
+ Bagisto a community project by Webkul +
- - - - + + + + + \ No newline at end of file