-
Profile Picture
+ ?>
+
";
+ echo "

";
+
+ $pfp_colour = $make_stuff->get_image_colour("usr/images/pfp/".$profile_info['pfp_path']);
+ if (empty($pfp_colour)) $pfp_colour = "var(--bg-3)";
+ ?>
+
+ ";
+ echo "

";
}
?>
-
+
+ is_admin($conn, $_SESSION['id'])) echo "Admin";
+ ?>
+
+
+
Member since: format('d/m/Y T'); ?>
-
-
Go to profile
+
+
+
+
Profile
+
Profile Picture
+
+
@@ -517,9 +551,19 @@
$("#sanityCheck").html(response);
thisButton.innerHTML = "Run check";
document.getElementById('sanityCheck').style.cssText = "transform: scale(1);opacity: 1;";
+ },
+ error: function(error) {
+ $("#sanityCheck").html(`
\
+ Critical \
+ An error occured when proccessing your request, sowwy :c\
+
\
+ Response: ${error.status} - ${error.statusText}\
+
`);
+ thisButton.innerHTML = "Run check";
+ document.getElementById('sanityCheck').style.cssText = "transform: scale(1);opacity: 1;";
}
});
- }, 1000);
+ }, 621);
}
diff --git a/app/account/account.php b/app/account/account.php
index fb10677..a0b6e4f 100644
--- a/app/account/account.php
+++ b/app/account/account.php
@@ -499,16 +499,21 @@ if (isset($_POST['password_reset_submit'])) {
if (mysqli_stmt_execute($stmt)) {
// Password updated!!!! Now goodbye
if ($user_id == $_SESSION["id"]) {
+ mysqli_query($conn,"INSERT INTO logs (ipaddress, action) VALUES('$user_ip','".$_SESSION['username']." has reset their password')");
+
// Check if password reset was done by user
session_destroy();
?>
get_user_info($conn, $user_id);
+
+ mysqli_query($conn,"INSERT INTO logs (ipaddress, action) VALUES('$user_ip','".$_SESSION['username']." has reset ".$user_reset_info['username']." password')");
?>
diff --git a/password-reset.php b/password-reset.php
index 824d073..9057a2a 100644
--- a/password-reset.php
+++ b/password-reset.php
@@ -26,8 +26,8 @@
After reset, you will be kicked out to login again