partially implemented todo tracker

This commit is contained in:
2025-04-20 17:05:41 -06:00
parent 9e47110758
commit ab30859446
29 changed files with 546 additions and 157 deletions
+5 -5
View File
@@ -12,12 +12,12 @@ function user_view($user_id)
$view = '
<div class="user_view">
<div class="row">
<div class="row">
<div class="row_space_between">
<div class="row_space_between">
<h1>' . $user['username'] . '</h1>
';
if ($_SESSION['user_id'] != $user_id && !$following) {
if ($_SESSION['user_id'] != $user_id && isset($following) && !$following) {
$view .= '
<div class="dropdown">
<span>Follow</span>
@@ -31,7 +31,7 @@ function user_view($user_id)
</div>
</div>
';
} else if ($following) {
} else if (isset($following) && $following) {
$view .= '
<div class="margin_right">
<form method="post">
@@ -55,7 +55,7 @@ function user_view($user_id)
// TODO: Allow user to update profile picture.
// <button id="update_profile_picture_form_button" class="modal_button underline">Update Profile Picture</button>
// <div id="update_profile_picture_form" class="modal_form">' . update_profile_picture_form() . '</div>
if ((isset($_SESSION['user_id']) && $_SESSION['user_id'] == $user_id) || (isset($_SESSION['role_id']) && $_SESSION['role_id'] <= 2)) {
if ((isset($_SESSION['user_id']) && $_SESSION['user_id'] == $user_id) || (isset($_SESSION['role_id']) && $_SESSION['role_id'] <= admin)) {
$view .= '
<h3>User Actions</h3>
<div class="user_actions">