Add check to make sure audit log location is writeable

Some cleanups
This commit is contained in:
Andy Dixon
2024-10-09 21:06:37 +01:00
parent e5ff977ca4
commit 03161dbeaa
5 changed files with 43 additions and 27 deletions
+6 -1
View File
@@ -36,7 +36,12 @@ require_once "init.php";
</ul>
</div>
<div class="loggedInDetails">
Logged in as: <?php echo $_SESSION["core"]->getLoggedinUser(); ?>
Logged in as: <?php echo $_SESSION["core"]->getLoggedinUser(); ?><br />
<?php
if ( ! is_writable("logs/")) {
echo "<span style='redText'>Make /cms/logs/ writeable!</span>";
}
?>
</div>
</div>
<iframe id="frameContainer" src="welcome.html" class="frame"></iframe>