summaryrefslogtreecommitdiff
path: root/sounds/upload.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-10-26 04:09:50 +0500
committerilotterytea <iltsu@alright.party>2025-10-26 04:09:50 +0500
commit6a848158b079af271363392c36921c6e623046a3 (patch)
treed5e6345d7d5c929583c7a522a9635b174671c373 /sounds/upload.php
parentafcc61d3e035e9343a16abf58eb8bcfc5b563925 (diff)
feat: design (it doesn't look the same as tinyemotes)
Diffstat (limited to 'sounds/upload.php')
-rw-r--r--sounds/upload.php45
1 files changed, 30 insertions, 15 deletions
diff --git a/sounds/upload.php b/sounds/upload.php
index eecf9c5..155bd42 100644
--- a/sounds/upload.php
+++ b/sounds/upload.php
@@ -1,6 +1,7 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/config.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/sounds.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/partials.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$db = new PDO(DB_URL, DB_USER, DB_PASS);
@@ -59,23 +60,37 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
</head>
<body>
- <form action="/sounds/upload.php" method="post" enctype="multipart/form-data">
- <div class="column gap-8">
- <label for="file"><b>Sound<span class="red">*</span></b></label>
- <input type="file" name="file" id="file" required>
- </div>
- <div class="column gap-8">
- <label for="name"><b>Sound name<span class="red">*</span></b></label>
- <input type="text" name="name" id="name" required>
- </div>
+ <?php html_header(); ?>
- <div class="row gap-8">
- <label for="tos">Do you accept <a href="/tos.php">the rules</a>?<span class="red">*</span></label>
- <input type="checkbox" name="tos" id="tos" value="1">
- </div>
+ <main>
+ <div class="row">
+ <div class="box">
+ <div class="tab">
+ <p>Upload a new sound</p>
+ </div>
+ <div class="content">
+ <form action="/sounds/upload.php" method="post" enctype="multipart/form-data">
+ <div class="column gap-8">
+ <label for="file"><b>Sound<span class="red">*</span></b></label>
+ <input type="file" name="file" id="file" required>
+ </div>
+ <div class="column gap-8">
+ <label for="name"><b>Sound name<span class="red">*</span></b></label>
+ <input type="text" name="name" id="name" required>
+ </div>
- <button type="submit">Upload</button>
- </form>
+ <div class="row gap-8">
+ <label for="tos">Do you accept <a href="/tos.php">the rules</a>?<span
+ class="red">*</span></label>
+ <input type="checkbox" name="tos" id="tos" value="1">
+ </div>
+
+ <button type="submit">Upload</button>
+ </form>
+ </div>
+ </div>
+ </div>
+ </main>
</body>
</html> \ No newline at end of file