diff options
| author | ilotterytea <iltsu@alright.party> | 2025-03-17 02:26:25 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-03-17 02:26:25 +0500 |
| commit | e34bce13c5916d424743f2220cd454824a4292b6 (patch) | |
| tree | 1bbb987ece67de284d488db94df91c9f9fd713fc /public/index.php | |
| parent | 7ec95a660dfc40868dcda204f728d8961bc3e7c9 (diff) | |
upd: page design
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index 1e59c2d..3f3dd98 100644 --- a/public/index.php +++ b/public/index.php @@ -1,4 +1,45 @@ +<?php +include_once $_SERVER['DOCUMENT_ROOT'] . '/../config.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php'; + +$accepted_mime_types = []; + +foreach (FILE_ACCEPTED_MIME_TYPES as $k => $v) { + $m = []; + + foreach ($v as $z) { + array_push($m, "$k/$z"); + } + + array_push($accepted_mime_types, implode(', ', $m)); +} + +$accepted_mime_types = implode(', ', $accepted_mime_types); +?> <html> -<p>nhh</p> + +<head> + <title><?= INSTANCE_NAME ?></title> + <link rel="stylesheet" href="/static/style.css"> + <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon"> +</head> + +<body> + <main> + <?php html_big_navbar() ?> + + <section class="box column"> + <div class="tab"> + <p>File Upload</p> + </div> + <div class="content"> + <form action="/upload.php" method="post" enctype="multipart/form-data" column="column gap-8"> + <input type="file" name="file" required accept="<?= $accepted_mime_types ?>"> + <button type="submit">Upload</button> + </form> + </div> + </section> + </main> +</body> </html>
\ No newline at end of file |
