except remember user, changed all cookies to sessions.
This commit is contained in:
@@ -18,7 +18,7 @@ function article_page_from_markdown($article_id)
|
||||
|
||||
<div class="row">
|
||||
<h1>' . $article['title'] . '</h1>
|
||||
' . (isset($_COOKIE['user_id']) && $_COOKIE['user_id'] == $article['author_id'] ? '<a href="articles.php?view=compose&article_id=' . $article_id . '"><i class="nf nf-fa-edit"></i></a>' : '') . '
|
||||
' . (isset($_SESSION['user_id']) && $_SESSION['user_id'] == $article['author_id'] ? '<a href="articles.php?view=compose&article_id=' . $article_id . '"><i class="nf nf-fa-edit"></i></a>' : '') . '
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col_right">
|
||||
|
||||
Reference in New Issue
Block a user