diff options
| author | ilotterytea <iltsu@alright.party> | 2025-06-08 02:15:49 +0400 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-06-08 02:15:49 +0400 |
| commit | 738bc1f237923806902fa2755b85566a4a845717 (patch) | |
| tree | 6d0762995522e42bdc6103ade1bc1f9ee07860e9 /public/mod.php | |
| parent | 9a58eaae53bdd2a4fcdd66b1eb852c7db7970de9 (diff) | |
feat: display alert
Diffstat (limited to 'public/mod.php')
| -rw-r--r-- | public/mod.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/mod.php b/public/mod.php index d0ec00c..38e259e 100644 --- a/public/mod.php +++ b/public/mod.php @@ -2,6 +2,7 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/utils.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/../config.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/alert.php'; session_start(); @@ -85,6 +86,7 @@ if (isset($_SESSION['is_moderator'])) { <body> <main> <?php html_mini_navbar() ?> + <?php display_alert() ?> <?php if (isset($_SESSION['is_moderator'])): ?> <?php if (!empty($files)): ?> <section class="column gap-8"> @@ -114,7 +116,7 @@ if (isset($_SESSION['is_moderator'])) { <?= format_timestamp(time() - filemtime(sprintf('%s/%s', FILE_UPLOAD_DIRECTORY, $f['name']))) ?> </td> <td> - <a href="/delete.php?f=<?= $f['name'] ?>"> + <a href="/delete.php?f=<?= $f['name'] ?>&r=/mod.php"> <button> <img src="/static/img/icons/delete.png" alt="Delete"> </button> |
