diff options
| author | ilotterytea <iltsu@alright.party> | 2025-06-04 20:12:57 +0400 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-06-04 20:19:46 +0400 |
| commit | 28658d12a464777b50c789c2e9c3f86ce8f07da0 (patch) | |
| tree | f1249ca0feade00fa95f39ba195056623ae920b2 /public/index.php | |
| parent | 8245832be8470f20091eb71946fdeff3cab79aa7 (diff) | |
feat: report system
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index 09ab602..42f82e3 100644 --- a/public/index.php +++ b/public/index.php @@ -143,6 +143,11 @@ if (FILE_CATALOG_FANCY_VIEW && strlen(substr($_SERVER['PHP_SELF'], strlen('/inde <?php endif; ?> </div> <div class="grow row gap-8 justify-end align-center" id="file-tab-buttons"> + <?php if (FILE_REPORT): ?> + <a href="/report.php?f=<?= $file['id'] ?>.<?= $file['extension'] ?>"> + <button>Report</button> + </a> + <?php endif; ?> <a href="<?= $file['full_url'] ?>"> <button>Full size</button> </a> @@ -273,7 +278,7 @@ if (FILE_CATALOG_FANCY_VIEW && strlen(substr($_SERVER['PHP_SELF'], strlen('/inde <script> // adding deletion button const files = JSON.parse(localStorage.getItem('uploaded_files') ?? '[]'); - const file = files.find§((x) => x.id === '<?= $file['id'] ?>'); + const file = files.find((x) => x.id === '<?= $file['id'] ?>'); console.log(file); if (file && file.urls && file.urls.deletion_url) { const buttons = document.getElementById('file-tab-buttons'); |
