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/index.php | |
| parent | 9a58eaae53bdd2a4fcdd66b1eb852c7db7970de9 (diff) | |
feat: display alert
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/public/index.php b/public/index.php index 7df2ce1..5640e9d 100644 --- a/public/index.php +++ b/public/index.php @@ -2,6 +2,7 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/../config.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/utils.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/alert.php'; session_start(); @@ -18,8 +19,6 @@ $file_id = null; if (strlen(substr($_SERVER['PHP_SELF'], strlen('/index.php'))) > 0) { $file_id = basename($_SERVER['PHP_SELF']); -} else if (isset($_SERVER['QUERY_STRING']) && !empty(trim($_SERVER['QUERY_STRING']))) { - $file_id = basename($_SERVER['QUERY_STRING']); } if (FILE_CATALOG_FANCY_VIEW && $file_id) { @@ -145,9 +144,11 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt'); </div> </div> + <?php display_alert() ?> + <section class="file-preview-wrapper"> <section class="box"> - <div class="tab row"> + <div class="tab row gap-8"> <div class="grow"> <?php if (isset($file['original_name'])): ?> <p><i><?= $file['original_name'] ?></i></p> @@ -197,6 +198,8 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt'); <noscript>No JavaScript Mode</noscript> <?php html_big_navbar() ?> + <?php display_alert() ?> + <section class="box"> <div class="tab"> <p>What is <?= INSTANCE_NAME ?>?</p> |
