diff --git a/functions/account_functions.php b/functions/account_functions.php index accd32a..8749a3d 100644 --- a/functions/account_functions.php +++ b/functions/account_functions.php @@ -365,6 +365,36 @@ function update_username($user_id, $new_username, $verify_new_username) $stmt->execute(); } +function update_profile_picture_form() +{ + $form = ' +
+
Update Profile Picture
+ × +
+ + + + + + + + + No file selected. + + +
+ + + +
+ '; + + return $form; +} + +function update_profile_picture($user_id) {} + function request_role_change_form() { $conn = get_connection(); @@ -565,6 +595,7 @@ function user_view($user_id) + @@ -577,6 +608,7 @@ function user_view($user_id) + diff --git a/js/user_actions_modal.js b/js/user_actions_modal.js index a65a474..bd44e03 100644 --- a/js/user_actions_modal.js +++ b/js/user_actions_modal.js @@ -15,6 +15,9 @@ document.addEventListener('DOMContentLoaded', function() { case 'update_username_form_button': openModal('update_username_form'); break; + case 'update_profile_picture_form_button': + openModal('update_profile_picture_form'); + break; case 'request_role_form_button': openModal("request_role_change_form"); break; diff --git a/user.php b/user.php index cbb8e12..59f0083 100644 --- a/user.php +++ b/user.php @@ -60,6 +60,9 @@ if (isset($_POST['form_id'])) { $_POST['verify_new_username'] ); break; + case 'update_profile_picture_form': + update_profile_picture(); + break; case 'request_role_change_form': request_role_change( $_COOKIE['user_id'],