Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Commit a4df26c

Browse files
authored
Update sidebar.php
1 parent 15cbe8b commit a4df26c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

admin/sidebar.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
<?php
2+
// If adminEnabled is false, redirect to home page
3+
// This is here because every admin page has the sidebar
4+
if ($configs["adminEnabled" === false){
5+
header("Location: ../index.php");
6+
}
7+
?>
18
<div class="admin-sidebar">
29
<h1><a href="/"><?php echo $configs["sitename"] ?></a></h1>
310
<a href="index.php">Message logs</a><br>
411
<a href="logs.php">View logs</a>
5-
</div>
12+
</div>

0 commit comments

Comments
 (0)