From 00866d0c656a12d8b7b98ecf77af8e44430df83d Mon Sep 17 00:00:00 2001 From: Jannik Date: Wed, 19 Aug 2020 11:33:26 +0300 Subject: [PATCH] =?UTF-8?q?errorhandling=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 8 ++++++++ install.php | 4 ++-- required/footer.php | 9 --------- settings.php | 4 ++-- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/index.php b/index.php index 7b4b9ad..ea3a77f 100644 --- a/index.php +++ b/index.php @@ -17,6 +17,14 @@ if (session_status() == PHP_SESSION_NONE) { } require 'settings.php'; require 'modal.php'; + + + + + + + + ?>
diff --git a/install.php b/install.php index d732d40..e3724ef 100644 --- a/install.php +++ b/install.php @@ -88,8 +88,8 @@ if(isset($_POST['dbConfigBtn'])) $conn = new mysqli($servername, $username, $password,$db); // Check connection if ($conn->connect_error) { - die("Connection failed: " . $conn->connect_error); - } + header("location:install.php"); + } ?>'; fwrite($settingsfile, $txt); diff --git a/required/footer.php b/required/footer.php index 72e0de2..a0e6b25 100644 --- a/required/footer.php +++ b/required/footer.php @@ -13,14 +13,5 @@ - \ No newline at end of file diff --git a/settings.php b/settings.php index 2da9e66..1580e48 100644 --- a/settings.php +++ b/settings.php @@ -9,7 +9,7 @@ $conn = new mysqli($servername, $username, $password,$db); // Check connection if ($conn->connect_error) { - die("Connection failed: " . $conn->connect_error); - } + header("location:install.php"); + } ?> \ No newline at end of file