From 7112463e41464cea2941ff47d83545a8625b4474 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 4 Jan 2022 11:35:34 -0500 Subject: [PATCH] Commit Tidy allow public_cert to be null and move public_cert before notes --- add_certificate_modal.php | 12 ++++++------ db.sql | 4 ++-- edit_certificate_modal.php | 12 ++++++------ setup.php | 15 +++++++-------- 4 files changed, 21 insertions(+), 22 deletions(-) diff --git a/add_certificate_modal.php b/add_certificate_modal.php index 6bf683c4..fa1582e1 100644 --- a/add_certificate_modal.php +++ b/add_certificate_modal.php @@ -51,15 +51,15 @@ -
+
-
- -
- +
+ +
+
-
+
-
+
-
- -
- +
+ +
+
-
+
"; - } - else { - // Else, able to write. Tidy up - unlink("config.php"); - } + // Check that there is access to write config.php + if(!file_put_contents("config.php", "Test")){ + echo "
Warning: config.php is not writable. Ensure the webserver user has write access.
"; + }else{ + // Else, able to write. Tidy up + unlink("config.php"); + } ?>
Setup