v0.1.0 completed. only the owner can create new articles, users can modify their password, username, email, or delete their account, there's auth and permissions preventing accessing other user's information, and more. onto the road to v0.2.0

This commit is contained in:
Joshua Ashton
2025-03-25 19:42:40 -06:00
parent 0a27cd1f5c
commit 9a45075010
12 changed files with 515 additions and 25 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ function article_card($article_id)
$tags_html .= '</div>';
}
$author_query = 'SELECT username, profile_picture FROM user WHERE user_id = ' . $article['author_id'] . ';';
$author_query = 'SELECT user_id, username, profile_picture FROM user WHERE user_id = ' . $article['author_id'] . ';';
$author = query_one_result($author_query);
$card = '
@@ -87,7 +87,7 @@ function article_card($article_id)
<h4>' . $article['title'] . '</h4>
<div class="card_info_box">
<div class="col-right">
<small>Written by: ' . $author['username'] . '</small>
<a href="user.php?action=view&user_id=' . $author['user_id'] . '">Written by: ' . $author['username'] . '</a>
<small>Published: ' . $article['published_at'] . '</small>
</div>
<div class="card_pic_box">