diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-10 21:27:08 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-10 21:27:08 +0500 |
| commit | 6ddfe7a27bc3cad94294642716ef58c158cad3e5 (patch) | |
| tree | 0fcd7b57024580d44456cba76bd40a4fd06d9ef7 /public/account/index.php | |
| parent | fb2fd0644c4f74e09a9fe6b8cc1af931c77b04df (diff) | |
feat: private profiles
Diffstat (limited to 'public/account/index.php')
| -rw-r--r-- | public/account/index.php | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/public/account/index.php b/public/account/index.php index e5a609b..2b3e820 100644 --- a/public/account/index.php +++ b/public/account/index.php @@ -202,16 +202,17 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") { <input type="password" name="password-new" id="form-password-new"> </div> <div> - <?php if (ACCOUNT_LOG_ACTIONS): ?> - <input type="checkbox" name="hide-actions" value="1" id="form-hide-actions" <?php - $stmt = $db->prepare("SELECT hide_actions FROM user_preferences WHERE id = ?"); - $stmt->execute([$_SESSION["user_id"]]); - if (intval($stmt->fetch()[0]) == 1) { - echo 'checked'; - } - ?>> - <label for="hide-actions" class="inline">Hide actions</label> - <?php endif; ?> + <input type="checkbox" name="make-private" value="1" id="form-make-private" <?php + $stmt = $db->prepare("SELECT private_profile FROM user_preferences WHERE id = ?"); + $stmt->execute([$_SESSION["user_id"]]); + if (intval($stmt->fetch()[0]) == 1) { + echo 'checked'; + } + ?>> + <label for="make-private" class="inline">Make profile private</label> + <p class="font-small">Enabling this feature will hide your authorship of uploaded emotes and + actions.</p> + </div> <div> <input type="checkbox" name="signout-everywhere" value="1" id="form-signout-everywhere"> |
