diff --git a/website/public/external/nietslecht_button.png b/website/public/external/nietslecht_button.png index 74b6baa..f335511 100644 Binary files a/website/public/external/nietslecht_button.png and b/website/public/external/nietslecht_button.png differ diff --git a/website/public/settings.php b/website/public/settings.php index 06d17c0..b473f99 100644 --- a/website/public/settings.php +++ b/website/public/settings.php @@ -2,7 +2,7 @@
@@ -12,8 +12,6 @@ prepare(" + SELECT + `profilepicture` + FROM + `user` + WHERE + `userID` = :userID + "); + $stmt->bindParam(":userID", $_SESSION["userID"]); + $stmt->execute(); + $old_avatar = $stmt->fetch()["profilepicture"]; + unlink("/var/www/html/public/uploads/" . $old_avatar); +} function setProfilePictureToDatabase($url) { $stmt = $GLOBALS["db"]->prepare(" diff --git a/website/views/login_head.php b/website/views/login_head.php index 836a9cc..26d439e 100644 --- a/website/views/login_head.php +++ b/website/views/login_head.php @@ -7,6 +7,6 @@ - - + +