File reordering in progress

This commit is contained in:
Michał 2022-09-07 09:41:18 +00:00
parent b227baf239
commit 274707c80b
7 changed files with 79 additions and 58 deletions

View file

@ -2,13 +2,13 @@
<html> <html>
<head> <head>
<?php include "../ui/header.php"; ?> <?php include "ui/header.php"; ?>
</head> </head>
<body> <body>
<?php <?php
include "../ui/required.php"; include "ui/required.php";
include "../ui/nav.php"; include "ui/nav.php";
?> ?>
<?php <?php
@ -38,10 +38,10 @@
<br> <br>
<h3 class='space-top'>Danger ahead</h3> <h3 class='space-top'>Danger ahead</h3>
<p>Resetting your password regularly is a good way of keeping your account safe</p> <p>Resetting your password regularly is a good way of keeping your account safe</p>
<a class='btn btn-bad' href='https://superdupersecteteuploadtest.fluffybean.gay/account/password-reset.php'><img class='svg' src='../assets/icons/password.svg'>Reset Password</a> <a class='btn btn-bad' href='password-reset.php'><img class='svg' src='assets/icons/password.svg'>Reset Password</a>
<br> <br>
<p>Don't leave! I'm with the science team!</p> <p>Don't leave! I'm with the science team!</p>
<a class='btn btn-bad' href='https://superdupersecteteuploadtest.fluffybean.gay/account/logout.php'><img class='svg' src='../assets/icons/sign-out.svg'>Logout</a> <a class='btn btn-bad' href='app/account/logout.php'><img class='svg' src='assets/icons/sign-out.svg'>Logout</a>
</div> </div>
<?php <?php
} else { } else {
@ -54,9 +54,9 @@
<input id="loginUsername" class="btn btn-neutral" type="text" name="username" placeholder="Username"> <input id="loginUsername" class="btn btn-neutral" type="text" name="username" placeholder="Username">
<input id="loginPassword" class="btn btn-neutral" type="password" name="password" placeholder="Password"> <input id="loginPassword" class="btn btn-neutral" type="password" name="password" placeholder="Password">
<br> <br>
<button id="loginSubmit" class="btn btn-good" type="submit" name="login"><img class="svg" src="../assets/icons/sign-in.svg">Login</button> <button id="loginSubmit" class="btn btn-good" type="submit" name="login"><img class="svg" src="assets/icons/sign-in.svg">Login</button>
</form> </form>
<button class='btn btn-neutral' onclick="signupShow()"><img class="svg" src="../assets/icons/sign-in.svg">Need an account?</button> <button class='btn btn-neutral' onclick="signupShow()"><img class="svg" src="assets/icons/sign-in.svg">Need an account?</button>
</div> </div>
<script> <script>
$("#loginForm").submit(function(event) { $("#loginForm").submit(function(event) {
@ -64,7 +64,7 @@
var username = $("#loginUsername").val(); var username = $("#loginUsername").val();
var password = $("#loginPassword").val(); var password = $("#loginPassword").val();
var submit = $("#loginSubmit").val(); var submit = $("#loginSubmit").val();
$("#sniffle").load("../app/account/account.php", { $("#sniffle").load("app/account/account.php", {
username: username, username: username,
password: password, password: password,
submit_login: submit submit_login: submit
@ -84,9 +84,9 @@
<br> <br>
<input id="signupToken" class="btn btn-neutral" type="text" name="token" placeholder="Invite Code"> <input id="signupToken" class="btn btn-neutral" type="text" name="token" placeholder="Invite Code">
<br> <br>
<button id="signupSubmit" class="btn btn-good" type="submit" name="signup"><img class="svg" src="../assets/icons/sign-in.svg">Sign Up</button> <button id="signupSubmit" class="btn btn-good" type="submit" name="signup"><img class="svg" src="assets/icons/sign-in.svg">Sign Up</button>
</form> </form>
<button class='btn btn-neutral' onclick="loginShow()"><img class="svg" src="../assets/icons/sign-in.svg">I already got an account!</button> <button class='btn btn-neutral' onclick="loginShow()"><img class="svg" src="assets/icons/sign-in.svg">I already got an account!</button>
</div> </div>
<script> <script>
$("#signupForm").submit(function(event) { $("#signupForm").submit(function(event) {
@ -96,7 +96,7 @@
var confirm_password = $("#signupPasswordConfirm").val(); var confirm_password = $("#signupPasswordConfirm").val();
var token = $("#signupToken").val(); var token = $("#signupToken").val();
var submit = $("#signupSubmit").val(); var submit = $("#signupSubmit").val();
$("#sniffle").load("../app/account/account.php", { $("#sniffle").load("app/account/account.php", {
username: username, username: username,
password: password, password: password,
confirm_password: confirm_password, confirm_password: confirm_password,
@ -120,7 +120,7 @@
} }
?> ?>
<?php include "../ui/footer.php"; ?> <?php include "ui/footer.php"; ?>
</body> </body>
</html> </html>

View file

@ -28,7 +28,7 @@ if (isset($_POST['submit_login'])) {
if (empty(trim($_POST["username"]))) { if (empty(trim($_POST["username"]))) {
?> ?>
<script> <script>
sniffleAdd('Who dis?', 'You must enter a username to login!', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Who dis?', 'You must enter a username to login!', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -40,7 +40,7 @@ if (isset($_POST['submit_login'])) {
if (empty(trim($_POST["password"]))) { if (empty(trim($_POST["password"]))) {
?> ?>
<script> <script>
sniffleAdd('Whats the magic word?', 'Pls enter the super duper secrete word(s) to login!', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Whats the magic word?', 'Pls enter the super duper secrete word(s) to login!', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -81,15 +81,15 @@ if (isset($_POST['submit_login'])) {
// let the user know // let the user know
?> ?>
<script> <script>
//sniffleAdd('O hi <?php echo $_SESSION["username"]; ?>', 'You are now logged in! You will be redirected in a few seconds', 'var(--green)', '../assets/icons/hand-waving.svg'); sniffleAdd('O hi <?php echo $_SESSION["username"]; ?>', 'You are now logged in! You will be redirected in a few seconds', 'var(--green)', 'assets/icons/hand-waving.svg');
//setTimeout(function(){window.location.href = "../index.php?login=success";}, 2000); setTimeout(function(){window.location.href = "index.php";}, 2000);
window.location.href = "../index.php?login=success"; //window.location.href = "../index.php?login=success";
</script> </script>
<?php <?php
} else { } else {
?> ?>
<script> <script>
sniffleAdd('Sus', 'Username or Password WRONG, please try again :3', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Sus', 'Username or Password WRONG, please try again :3', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
} }
@ -97,14 +97,14 @@ if (isset($_POST['submit_login'])) {
} else { } else {
?> ?>
<script> <script>
sniffleAdd('Sus', 'Username or Password WRONG, please try again :3', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Sus', 'Username or Password WRONG, please try again :3', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
} }
} else { } else {
?> ?>
<script> <script>
sniffleAdd('woops...', 'Sowwy, something went wrong on our end :c', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('woops...', 'Sowwy, something went wrong on our end :c', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
} }
@ -137,7 +137,7 @@ if (isset($_POST['submit_signup'])) {
// Username not entered // Username not entered
?> ?>
<script> <script>
sniffleAdd('Hmmm', 'You must enter a username!', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Hmmm', 'You must enter a username!', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -145,7 +145,7 @@ if (isset($_POST['submit_signup'])) {
// Username entered contains illegal characters // Username entered contains illegal characters
?> ?>
<script> <script>
sniffleAdd('Sussy Wussy', 'Very sus. Username can only contain letters, numbers, and underscores', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Sussy Wussy', 'Very sus. Username can only contain letters, numbers, and underscores', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -166,7 +166,7 @@ if (isset($_POST['submit_signup'])) {
// Username taken // Username taken
?> ?>
<script> <script>
sniffleAdd('A clone?', 'Sorry, but username was already taken by someone else', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('A clone?', 'Sorry, but username was already taken by someone else', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -176,7 +176,7 @@ if (isset($_POST['submit_signup'])) {
} else { } else {
?> ?>
<script> <script>
sniffleAdd('Reee', 'We had a problem on our end, sowwy', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Reee', 'We had a problem on our end, sowwy', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -191,7 +191,7 @@ if (isset($_POST['submit_signup'])) {
// No password entered // No password entered
?> ?>
<script> <script>
sniffleAdd('What', 'You must enter a password, dont want just anyone seeing your stuff uwu', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('What', 'You must enter a password, dont want just anyone seeing your stuff uwu', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -199,7 +199,7 @@ if (isset($_POST['submit_signup'])) {
// Password not long enough 👀 // Password not long enough 👀
?> ?>
<script> <script>
sniffleAdd('👀', 'Nice (Password) but its not long enough 👀', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('👀', 'Nice (Password) but its not long enough 👀', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -212,7 +212,7 @@ if (isset($_POST['submit_signup'])) {
// Did not confirm passowrd // Did not confirm passowrd
?> ?>
<script> <script>
sniffleAdd('Eh?', 'Confirm the password pls, its very important you remember what it issss', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Eh?', 'Confirm the password pls, its very important you remember what it issss', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -222,7 +222,7 @@ if (isset($_POST['submit_signup'])) {
// Password and re-entered Password does not match // Password and re-entered Password does not match
?> ?>
<script> <script>
sniffleAdd('Try again', 'Passwords need to be the same, smelly smelly', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Try again', 'Passwords need to be the same, smelly smelly', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -235,7 +235,7 @@ if (isset($_POST['submit_signup'])) {
if (empty($_POST['token'])) { if (empty($_POST['token'])) {
?> ?>
<script> <script>
sniffleAdd('smelly', 'Enter Invite Code ;3', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('smelly', 'Enter Invite Code ;3', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -256,7 +256,7 @@ if (isset($_POST['submit_signup'])) {
} else { } else {
?> ?>
<script> <script>
sniffleAdd('Argh', 'Your invite code/token did not check out, woopsie!', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Argh', 'Your invite code/token did not check out, woopsie!', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -264,7 +264,7 @@ if (isset($_POST['submit_signup'])) {
} else { } else {
?> ?>
<script> <script>
sniffleAdd('Woops', 'The server or website died inside and could not process your information, sowwy!', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Woops', 'The server or website died inside and could not process your information, sowwy!', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
$error = $error + 1; $error = $error + 1;
@ -320,7 +320,7 @@ if (isset($_POST['submit_signup'])) {
// Yupeee! Account was made // Yupeee! Account was made
?> ?>
<script> <script>
sniffleAdd('Success!', 'You account made for <?php echo $username; ?>!!!!! You must now login', 'var(--green)', '../assets/icons/hand-waving.svg'); sniffleAdd('Success!', 'You account made for <?php echo $username; ?>!!!!! You must now login', 'var(--green)', 'assets/icons/hand-waving.svg');
//setTimeout(function(){window.location.href = "../account/login.php";}, 2000); //setTimeout(function(){window.location.href = "../account/login.php";}, 2000);
loginShow(); loginShow();
</script> </script>
@ -328,7 +328,7 @@ if (isset($_POST['submit_signup'])) {
} else { } else {
?> ?>
<script> <script>
sniffleAdd('Bruh', 'Something went fuckywucky, please try later', 'var(--red)', '../assets/icons/cross.svg'); sniffleAdd('Bruh', 'Something went fuckywucky, please try later', 'var(--red)', 'assets/icons/cross.svg');
</script> </script>
<?php <?php
} }

View file

@ -9,6 +9,6 @@ $_SESSION = array();
session_destroy(); session_destroy();
// Redirect to login page // Redirect to login page
header("location: https://superdupersecteteuploadtest.fluffybean.gay"); header("location: ../../index.php");
exit; exit;
?>

View file

@ -1,13 +1,37 @@
<script> <script>
console.log("⣿⣿⣿⣿⣿⡿⠿⠻⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠻⠻⠟⠻⢿⣿⣿⣿⣿"); console.log("⣿⣿⣿⣿⣿⡿⠿⠻⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠻⠻⠟⠻⢿⣿⣿⣿⣿\n\
console.log("⣿⣿⡟⠁⢀⣠⣤⣤⣤⣤⣄⣀⣀⣀⣹⣿⣿⣷⣄⣀⣀⣀⣀⣤⣤⣤⣤⣀⠐⢽⣿⣿⣿"); ⣿⣿⡟⠁⢀⣠⣤⣤⣤⣤⣄⣀⣀⣀⣹⣿⣿⣷⣄⣀⣀⣀⣀⣤⣤⣤⣤⣀⠐⢽⣿⣿⣿\n\
console.log("⣿⣿⣿⣶⣿⡿⣛⡒⠒⠒⢒⠒⣲⠙⣿⣿⣿⣿⠟⣵⡒⢒⠒⠒⡀⣘⡻⣿⣿⣾⣿⣿⣿"); ⣿⣿⣿⣶⣿⡿⣛⡒⠒⠒⢒⠒⣲⠙⣿⣿⣿⣿⠟⣵⡒⢒⠒⠒⡀⣘⡻⣿⣿⣾⣿⣿⣿\n\
console.log("⣿⣿⣿⣿⣏⣞⡛⠃⠀⠀⠸⠷⢿⣧⣿⣿⣿⣿⣧⣿⣷⣛⣀⣀⣁⣛⣛⣮⣿⣿⣿⣿⣿"); ⣿⣿⣿⣿⣏⣞⡛⠃⠀⠀⠸⠷⢿⣧⣿⣿⣿⣿⣧⣿⣷⣛⣀⣀⣁⣛⣛⣮⣿⣿⣿⣿⣿\n\
console.log("⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿"); ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n\
console.log("⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿"); ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n\
console.log("⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢏⣾⣿⣿⣿⣿"); ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢏⣾⣿⣿⣿⣿\n\
console.log("⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢻⣿⠏⣼⣿⣿⣿⣿⣿"); ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢻⣿⠏⣼⣿⣿⣿⣿⣿\n\
console.log("⣿⣿⣿⣿⣿⣿⣿⣿⡿⢿⣿⣿⣿⣿⣿⣿⡿⠿⠿⠿⠟⢛⣉⣴⣿⡏⣸⣿⣿⣿⣿⣿⣿"); ⣿⣿⣿⣿⣿⣿⣿⣿⡿⢿⣿⣿⣿⣿⣿⣿⡿⠿⠿⠿⠟⢛⣉⣴⣿⡏⣸⣿⣿⣿⣿⣿⣿\n\
console.log("⣿⣿⣿⣿⣿⣿⣿⣿⣧⣠⣤⣤⣤⣤⣤⣤⣶⣶⣶⣶⣿⣿⣿⣿⣿⠃⣿⣿⣿⣿⣿⣿⣿"); ⣿⣿⣿⣿⣿⣿⣿⣿⣧⣠⣤⣤⣤⣤⣤⣤⣶⣶⣶⣶⣿⣿⣿⣿⣿⠃⣿⣿⣿⣿⣿⣿⣿\n\
console.log("⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣾⣿⣿⣿⣿⣿⣿⣿"); ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣾⣿⣿⣿⣿⣿⣿⣿");
console.log(". . /|/| . . . . . . .\n\
.. /0 0 \\ . . . . . ..\n\
(III% . \\________, . .\n\
.. .\\_, .%###%/ \\'\\,..\n\
. . . .||#####| |'\\ \\.\n\
.. . . ||. . .|/. .\\V.\n\
. . . .|| . . || . . .\n\
.. . . ||. . .||. . ..\n\
. . . .|| . . || . . .\n\
.. . . ||. . .||. . ..\n\
. . . .|| . . || . . .\n\
.. . . ||. . .||. . ..\n\
. . . .|| . . || . . .\n\
.. . . ||. . .||. . ..\n\
. . . .|| . . || . . .\n\
.. . . ||. . .||. . ..\n\
. . . .|| . . || . . .\n\
.. . . ||. . .||. . ..\n\
. . . .|| . . || . . .\n\
.. . . ||. . .||. . ..\n\
. . . .|| . . || . . .\n\
.. . . ||. . .||. . ..\n\
. . . cc/ . .cc/ . . .");
</script> </script>

View file

@ -15,9 +15,6 @@ include __DIR__."/ui/nav.php";
if (params.del == "true") { if (params.del == "true") {
sniffleAdd("Image Deleted", "Successfully deleted image: <?php echo $_GET['id']; ?>", "var(--green)", "<?php echo $root_dir ?>assets/icons/trash.svg"); sniffleAdd("Image Deleted", "Successfully deleted image: <?php echo $_GET['id']; ?>", "var(--green)", "<?php echo $root_dir ?>assets/icons/trash.svg");
} }
if (params.login == "success") {
sniffleAdd("Logged in", "O hi <?php echo $_SESSION['username']; ?>", "var(--green)", "<?php echo $root_dir ?>assets/icons/hand-waving.svg");
}
</script> </script>
<div class="info-text"> <div class="info-text">

View file

@ -2,18 +2,18 @@
<html> <html>
<head> <head>
<?php include "../ui/header.php"; ?> <?php include "ui/header.php"; ?>
</head> </head>
<body> <body>
<?php <?php
include "../ui/required.php"; include "ui/required.php";
include "../ui/nav.php"; include "ui/nav.php";
// Check if the user is logged in, otherwise redirect to login page // Check if the user is logged in, otherwise redirect to login page
if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) { if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) {
header("location: https://superdupersecteteuploadtest.fluffybean.gay/account/login.php"); header("location: account.php");
exit; exit;
} }
?> ?>
@ -26,7 +26,7 @@
<input id="newPassword" class="btn btn-neutral" type="password" name="new_password" placeholder="New Password"> <input id="newPassword" class="btn btn-neutral" type="password" name="new_password" placeholder="New Password">
<input id="confirmSassword" class="btn btn-neutral" type="password" name="confirm_password" placeholder="Confirm Password"> <input id="confirmSassword" class="btn btn-neutral" type="password" name="confirm_password" placeholder="Confirm Password">
<br> <br>
<button id="passwordSubmit" class="btn btn-bad" type="submit" name="reset"><img class="svg" src="../assets/icons/sign-in.svg">Reset</button> <button id="passwordSubmit" class="btn btn-bad" type="submit" name="reset"><img class="svg" src="assets/icons/sign-in.svg">Reset</button>
</form> </form>
</div> </div>
@ -36,7 +36,7 @@
var new_passowrd = $("#newPassword").val(); var new_passowrd = $("#newPassword").val();
var confirm_password = $("#confirmSassword").val(); var confirm_password = $("#confirmSassword").val();
var submit = $("#passwordSubmit").val(); var submit = $("#passwordSubmit").val();
$("#sniffle").load("../app/account/password_reset.php", { $("#sniffle").load("app/account/password_reset.php", {
new_passowrd: new_passowrd, new_passowrd: new_passowrd,
confirm_password: confirm_password, confirm_password: confirm_password,
submit: submit submit: submit
@ -44,7 +44,7 @@
}); });
</script> </script>
<?php include "../ui/footer.php"; ?> <?php include "ui/footer.php"; ?>
</body> </body>
</html> </html>

View file

@ -11,9 +11,9 @@
if (loggedin()) { if (loggedin()) {
echo "<a class='btn' href='".$root_dir."upload.php'><img class='svg' src='".$root_dir."assets/icons/upload.svg'><span class='nav-hide'>Upload</span></a>"; echo "<a class='btn' href='".$root_dir."upload.php'><img class='svg' src='".$root_dir."assets/icons/upload.svg'><span class='nav-hide'>Upload</span></a>";
echo "<hr>"; echo "<hr>";
echo "<a class='btn' href='".$root_dir."/account/account.php'><img class='svg' src='".$root_dir."assets/icons/user-circle.svg'><span class='nav-hide'>".substr($_SESSION["username"], 0, 15)."</span></a>"; echo "<a class='btn' href='".$root_dir."/account.php'><img class='svg' src='".$root_dir."assets/icons/user-circle.svg'><span class='nav-hide'>".substr($_SESSION["username"], 0, 15)."</span></a>";
} else { } else {
echo "<a class='btn' href='".$root_dir."/account/account.php'><img class='svg' src='".$root_dir."assets/icons/sign-in.svg'><span class='nav-hide'>Login</span></a>"; echo "<a class='btn' href='".$root_dir."/account.php'><img class='svg' src='".$root_dir."assets/icons/sign-in.svg'><span class='nav-hide'>Login</span></a>";
} }
?> ?>
</div> </div>