Commit Tidy allow public_cert to be null and move public_cert before notes

This commit is contained in:
johnnyq
2022-01-04 11:35:34 -05:00
parent c59e2e938c
commit 7112463e41
4 changed files with 21 additions and 22 deletions

View File

@@ -953,14 +953,13 @@ if(isset($_POST['add_company_settings'])){
<li>Acquire balance can be useful for customer's to get their balance by phone</li>
</ul>
<?php
// Check that there is access to write config.php
if (!file_put_contents("config.php", "Test")) {
echo "<div class=\"alert alert-danger\" role=\"alert\">Warning: config.php is not writable. Ensure Apache has write access. </div>";
}
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 "<div class='alert alert-danger'>Warning: config.php is not writable. Ensure the webserver user has write access.</div>";
}else{
// Else, able to write. Tidy up
unlink("config.php");
}
?>
<center><a href="?database" class="btn btn-primary">Setup <i class="fa fa-fw fa-arrow-alt-circle-right"></i></a></center>
</div>