pls work
This commit is contained in:
@@ -3,17 +3,14 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Welcome</title>
|
||||
<link rel="stylesheet" href="../styles/style.css">
|
||||
<title>Welcome Admin</title>
|
||||
<link rel="stylesheet" href="../styles/pages/style.css">
|
||||
<link rel="stylesheet" href="../styles/global.css">
|
||||
</head>
|
||||
<body>
|
||||
<h2>Welcome</h2>
|
||||
<?php
|
||||
echo "Logged in as " . $user['username'];
|
||||
if ($user['isAdmin'] == 1) {
|
||||
echo " (Admin)";
|
||||
}
|
||||
echo "Logged in as Admin: " . $user['username'];
|
||||
?>
|
||||
|
||||
<!-- Display Gravatar image -->
|
26
pages/index_user.html
Normal file
26
pages/index_user.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Welcome User</title>
|
||||
<link rel="stylesheet" href="../styles/pages/style.css">
|
||||
<link rel="stylesheet" href="../styles/global.css">
|
||||
</head>
|
||||
<body>
|
||||
<h2>Welcome</h2>
|
||||
<?php
|
||||
echo "Logged in as: " . $user['username'];
|
||||
?>
|
||||
|
||||
<!-- 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>
|
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Login</title>
|
||||
<link rel="stylesheet" href="../styles/login.css">
|
||||
<link rel="stylesheet" href="../styles/pages/login.css">
|
||||
<link rel="stylesheet" href="../styles/global.css">
|
||||
</head>
|
||||
<body>
|
||||
|
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Register</title>
|
||||
<link rel="stylesheet" href="../styles/register.css">
|
||||
<link rel="stylesheet" href="../styles/pages/register.css">
|
||||
<link rel="stylesheet" href="../styles/global.css">
|
||||
</head>
|
||||
<body>
|
||||
|
Reference in New Issue
Block a user