diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-09 18:00:11 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-09 18:00:11 +0500 |
| commit | 84458ca14672d25514970a7ab596cb2e4ff269d6 (patch) | |
| tree | d3c768f5379c806e6655543a15b820819f4843f1 /public/users.php | |
| parent | 655a39a31859f7d414a0eb055ee0771f09f25bc5 (diff) | |
feat: options to hide public lists of emotesets and users
Diffstat (limited to 'public/users.php')
| -rw-r--r-- | public/users.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/public/users.php b/public/users.php index ccdb193..5d1f125 100644 --- a/public/users.php +++ b/public/users.php @@ -16,6 +16,11 @@ $alias_id = $_GET["alias_id"] ?? ""; $db = new PDO(DB_URL, DB_USER, DB_PASS); if ($id == "" && $alias_id == "") { + if (!ACCOUNT_PUBLIC_LIST) { + generate_alert("/404.php", "The public list of accounts is disabled", 403); + exit; + } + $page = max(1, intval($_GET["p"] ?? "1")); $limit = 25; $offset = ($page - 1) * $limit; |
