summaryrefslogtreecommitdiff
path: root/public/report/list.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/report/list.php')
-rw-r--r--public/report/list.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/public/report/list.php b/public/report/list.php
index 087eb55..34ddceb 100644
--- a/public/report/list.php
+++ b/public/report/list.php
@@ -5,6 +5,11 @@ include_once "../../src/partials.php";
include_once "../../src/utils.php";
include_once "../../src/alert.php";
+if (!REPORTS_ENABLE) {
+ generate_alert("/404.php", "Reports are disabled", 403);
+ exit;
+}
+
if (!authorize_user(true)) {
exit;
}
@@ -25,7 +30,7 @@ $reports = $stmt->fetchAll(PDO::FETCH_ASSOC);
<html>
<head>
- <title>Report list - alright.party</title>
+ <title>Report list - <?php echo INSTANCE_NAME ?></title>
<link rel="stylesheet" href="/static/style.css">
</head>