From 274707c80b58d2f03738e1e8071ec0a4c368ed77 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Wed, 7 Sep 2022 09:41:18 +0000 Subject: [PATCH] File reordering in progress --- account/account.php => account.php | 24 +++++----- app/account/account.php | 42 ++++++++--------- {account => app/account}/logout.php | 4 +- app/server/secrete.php | 46 ++++++++++++++----- index.php | 3 -- .../password-reset.php => password-reset.php | 14 +++--- ui/nav.php | 4 +- 7 files changed, 79 insertions(+), 58 deletions(-) rename account/account.php => account.php (80%) rename {account => app/account}/logout.php (71%) rename account/password-reset.php => password-reset.php (74%) diff --git a/account/account.php b/account.php similarity index 80% rename from account/account.php rename to account.php index b8df11b..0e7be57 100644 --- a/account/account.php +++ b/account.php @@ -2,13 +2,13 @@ - +

Danger ahead

Resetting your password regularly is a good way of keeping your account safe

- Reset Password + Reset Password

Don't leave! I'm with the science team!

- Logout + Logout
- + - + @@ -328,7 +328,7 @@ if (isset($_POST['submit_signup'])) { } else { ?> + diff --git a/app/server/secrete.php b/app/server/secrete.php index d190cb1..06c036b 100644 --- a/app/server/secrete.php +++ b/app/server/secrete.php @@ -1,13 +1,37 @@ \ No newline at end of file diff --git a/index.php b/index.php index e97bc1c..0b0e949 100644 --- a/index.php +++ b/index.php @@ -15,9 +15,6 @@ include __DIR__."/ui/nav.php"; if (params.del == "true") { sniffleAdd("Image Deleted", "Successfully deleted image: ", "var(--green)", "assets/icons/trash.svg"); } - if (params.login == "success") { - sniffleAdd("Logged in", "O hi ", "var(--green)", "assets/icons/hand-waving.svg"); - }
diff --git a/account/password-reset.php b/password-reset.php similarity index 74% rename from account/password-reset.php rename to password-reset.php index 9fb6af8..961d629 100644 --- a/account/password-reset.php +++ b/password-reset.php @@ -2,18 +2,18 @@ - + @@ -26,7 +26,7 @@
- +
@@ -36,7 +36,7 @@ var new_passowrd = $("#newPassword").val(); var confirm_password = $("#confirmSassword").val(); var submit = $("#passwordSubmit").val(); - $("#sniffle").load("../app/account/password_reset.php", { + $("#sniffle").load("app/account/password_reset.php", { new_passowrd: new_passowrd, confirm_password: confirm_password, submit: submit @@ -44,7 +44,7 @@ }); - + \ No newline at end of file diff --git a/ui/nav.php b/ui/nav.php index ec8b258..4a7745c 100644 --- a/ui/nav.php +++ b/ui/nav.php @@ -11,9 +11,9 @@ if (loggedin()) { echo "Upload"; echo "
"; - echo "".substr($_SESSION["username"], 0, 15).""; + echo "".substr($_SESSION["username"], 0, 15).""; } else { - echo "Login"; + echo "Login"; } ?>