Changes in html and Login/Register php
This commit is contained in:
		@@ -0,0 +1,28 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <title>Welcome</title>
 | 
			
		||||
    <link rel="stylesheet" href="../styles/pages/index.css">
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
    <h2>Welcome</h2>
 | 
			
		||||
    <?php
 | 
			
		||||
    echo "Logged in as " . $user['username'];
 | 
			
		||||
    if ($user['isAdmin'] == 1) {
 | 
			
		||||
        echo " (Admin)";
 | 
			
		||||
    }
 | 
			
		||||
    ?>
 | 
			
		||||
 | 
			
		||||
    <!-- 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>
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,16 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <title>Login</title>
 | 
			
		||||
    <link rel="stylesheet" href="../styles/pages/login.css">
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
    <h2>Login</h2>
 | 
			
		||||
    <form action="../login.php" method="post">
 | 
			
		||||
        <!-- Add your login form fields here (e.g., username, password) -->
 | 
			
		||||
        <input type="submit" value="Login">
 | 
			
		||||
    </form>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,16 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <title>Register</title>
 | 
			
		||||
    <link rel="stylesheet" href="../styles/pages/register.css">
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
    <h2>Register</h2>
 | 
			
		||||
    <form action="../register.php" method="post">
 | 
			
		||||
        <!-- Add your registration form fields here (e.g., username, email, password) -->
 | 
			
		||||
        <input type="submit" value="Register">
 | 
			
		||||
    </form>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user