[Install] Check if database.php exists and if it does exit install process.

This commit is contained in:
Peter Goodhall
2021-07-20 18:19:09 +01:00
parent e63f3c8c6f
commit efdbaf9cfa

View File

@@ -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) {