diff options
Diffstat (limited to 'sounds/upload.php')
| -rw-r--r-- | sounds/upload.php | 45 |
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 |
