diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-03 01:39:13 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-03 01:39:13 +0500 |
| commit | 64f0533dc1779e7cca5f2678f7ae560df8d922bb (patch) | |
| tree | be319637f1a6ae6839b3685d6348a528025a7248 /public/emotes/rate.php | |
| parent | 0c25e3dd54225b126ad8e48e10f4fbde8ce26ec5 (diff) | |
feat: config sample and more config options
Diffstat (limited to 'public/emotes/rate.php')
| -rw-r--r-- | public/emotes/rate.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/public/emotes/rate.php b/public/emotes/rate.php index bf26bcd..2f63d7c 100644 --- a/public/emotes/rate.php +++ b/public/emotes/rate.php @@ -4,6 +4,11 @@ include_once "../../src/utils.php"; include_once "../../src/config.php"; include_once "../../src/accounts.php"; +if (!RATING_ENABLE) { + generate_alert("/404.php", "Emote ratings are disabled", 403); + exit; +} + if (!authorize_user(true)) { exit; } |
