From efdbaf9cfa9a7ed0727966833f16363e9dca3a48 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 20 Jul 2021 18:19:09 +0100 Subject: [PATCH] [Install] Check if database.php exists and if it does exit install process. --- install/index.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install/index.php b/install/index.php index cffbe8bc..e88b9a4d 100644 --- a/install/index.php +++ b/install/index.php @@ -3,6 +3,13 @@ $db_config_path = '../application/config/'; +$db_file_path = $db_config_path."database.php"; + +if (file_exists($db_file_path)) { + echo "Cloudlog is already installed, please delete the /install folder."; + exit; +} + // Only load the classes in case the user submitted the form if($_POST) {