added profile and settings

This commit is contained in:
Richard Mikloš 2024-01-26 18:08:30 +01:00
parent 85380e0c73
commit 18f39fe3fb
3 changed files with 4 additions and 0 deletions

@ -95,6 +95,7 @@ if (isset($_SESSION['user_id'])) {
$gravatarUrl = "https://www.gravatar.com/avatar/$hash?s=100"; $gravatarUrl = "https://www.gravatar.com/avatar/$hash?s=100";
$gravatarTag = "<img src='$gravatarUrl' alt='Gravatar Profile Picture'>"; $gravatarTag = "<img src='$gravatarUrl' alt='Gravatar Profile Picture'>";
$page_data = str_replace('<template name="gravatar image">', $gravatarTag, $page_data); $page_data = str_replace('<template name="gravatar image">', $gravatarTag, $page_data);
$page_data = str_replace('<template name="gravatar link">', $gravatarUrl, $page_data);
$page_data = str_replace('<template name="username">', $_SESSION['user_username'], $page_data); $page_data = str_replace('<template name="username">', $_SESSION['user_username'], $page_data);
} }

3
pages/user/profile.html Normal file

@ -0,0 +1,3 @@
<header class="container">
<a href='<template name="gravatar link">' class="pfp"><template name="gravatar image"></a>
</header>

0
pages/user/settings.html Normal file