diff options
Diffstat (limited to 'public/report')
| -rw-r--r-- | public/report/index.php | 8 | ||||
| -rw-r--r-- | public/report/list.php | 7 | ||||
| -rw-r--r-- | public/report/send.php | 5 |
3 files changed, 18 insertions, 2 deletions
diff --git a/public/report/index.php b/public/report/index.php index 179c2bd..aef571e 100644 --- a/public/report/index.php +++ b/public/report/index.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; } @@ -53,7 +58,8 @@ if ($contents == "") { <html> <head> - <title><?php echo $report == null ? "Send a message to MODS" : "A message to MODS" ?> - alright.party</title> + <title><?php echo ($report == null ? "Send a message to MODS" : "A message to MODS") . ' - ' . INSTANCE_NAME ?> + </title> <link rel="stylesheet" href="/static/style.css"> </head> 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> diff --git a/public/report/send.php b/public/report/send.php index e5a77be..ab136e1 100644 --- a/public/report/send.php +++ b/public/report/send.php @@ -4,6 +4,11 @@ include_once "../../src/config.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; } |
