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