diff --git a/setup.php b/setup.php index a9fbc2e5..b7d2cb78 100644 --- a/setup.php +++ b/setup.php @@ -329,6 +329,7 @@ $currencies_array = array( if(isset($_POST['add_database'])){ + // Check if database has been setup already. If it has, direct user to edit directly instead. if(file_exists('config.php')){ $_SESSION['alert_message'] = "Database already configured. Any further changes should be made by editing the config.php file."; header("Location: setup.php?user"); @@ -951,6 +952,16 @@ if(isset($_POST['add_company_settings'])){
  • Get List of Emails in CSV to export to a mailing list
  • Acquire balance can be useful for customer's to get their balance by phone
  • + Warning: config.php is not writable. Ensure Apache has write access. "; + } + else { + // Else, able to write. Tidy up + unlink("config.php"); + } + ?>
    Setup