diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-14 23:52:11 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-14 23:52:11 +0500 |
| commit | 3f5765a05536a5b1e524bb4f4ffd290ff23a24af (patch) | |
| tree | 4f079b946129dff78a3c7299293672d6f87f04eb /public/emotes/index.php | |
| parent | 44334d654977ed4ecd601c7a47127f91dea1517d (diff) | |
feat: emote deletion
Diffstat (limited to 'public/emotes/index.php')
| -rw-r--r-- | public/emotes/index.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/public/emotes/index.php b/public/emotes/index.php index 68ae983..afa24ad 100644 --- a/public/emotes/index.php +++ b/public/emotes/index.php @@ -292,6 +292,25 @@ if (CLIENT_REQUIRES_JSON) { ; } ?> + + <?php if ($emote->get_uploaded_by() === $_SESSION["user_id"]): ?> + <form action="/emotes/delete.php" method="post"> + <input type="text" name="id" value="<?php echo $emote->get_id() ?>" + style="display: none;"> + <button type="submit" class="transparent"> + <img src="/static/img/icons/bin.png" alt="Delete emote" title="Delete emote"> + </button> + </form> + <form action="/emotes/delete.php" method="post"> + <input type="text" name="id" value="<?php echo $emote->get_id() ?>" + style="display: none;"> + <input type="text" name="unlink" value="1" style="display:none"> + <button type="submit" class="transparent"> + <img src="/static/img/icons/link_break.png" alt="Remove your authorship" + title="Remove your authorship"> + </button> + </form> + <?php endif; ?> </div> <div class="items row right full"> <?php |
