watch.twip-network.org/pages/index_user.html

27 lines
704 B
HTML
Raw Normal View History

2024-01-20 16:35:03 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-01-20 18:00:30 +01:00
<title>Welcome User</title>
<link rel="stylesheet" href="../styles/pages/style.css">
2024-01-20 17:53:54 +01:00
<link rel="stylesheet" href="../styles/global.css">
2024-01-20 16:35:03 +01:00
</head>
<body>
<h2>Welcome</h2>
<?php
2024-01-20 18:00:30 +01:00
echo "Logged in as: " . $user['username'];
2024-01-20 16:35:03 +01:00
?>
<!-- Display Gravatar image -->
<?php
$email = $user['email'];
$hash = md5(strtolower(trim($email)));
$gravatarUrl = "https://www.gravatar.com/avatar/$hash?s=100";
echo "<img src='$gravatarUrl' alt='Gravatar Profile Picture'>";
?>
<a href="logout.php">Logout</a>
</body>
</html>