From 58435d3460144194bc48be22b24b5c2a4ce31e0b Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 6 May 2025 17:18:54 -0400 Subject: [PATCH] Add Next Button if Database is already configured --- setup.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/setup.php b/setup.php index 0b46651c..0f762c85 100644 --- a/setup.php +++ b/setup.php @@ -6,7 +6,6 @@ if (file_exists("config.php")) { } include "functions.php"; - include "includes/database_version.php"; @@ -855,10 +854,19 @@ if (isset($_POST['add_telemetry'])) {

Step 2 - Connect your Database

- - Database is already configured. Any further changes should be made by editing the config.php file, - or deleting it and refreshing this page. - + Database is already configured. Any further changes should be made by editing the config.php file.

"; + + if (@$mysqli) { + echo "Next Step (User Setup) "; + } else { + echo "
Database connection failed. Check config.php.
"; + } + + } else { + ?>
Database Connection Details