changes
This commit is contained in:
		@@ -4,7 +4,7 @@ require_once 'config.php';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// Check if user is logged in
 | 
					// Check if user is logged in
 | 
				
			||||||
if (!isset($_SESSION['user_id'])) {
 | 
					if (!isset($_SESSION['user_id'])) {
 | 
				
			||||||
    include 'pages/login.html';
 | 
					    include 'login.php';
 | 
				
			||||||
} else {
 | 
					} else {
 | 
				
			||||||
    // Fetch user details
 | 
					    // Fetch user details
 | 
				
			||||||
    $user_id = $_SESSION['user_id'];
 | 
					    $user_id = $_SESSION['user_id'];
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,4 +28,5 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
 | 
				
			|||||||
    // Close the statement
 | 
					    // Close the statement
 | 
				
			||||||
    $stmt->close();
 | 
					    $stmt->close();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					include "pages/login.html";
 | 
				
			||||||
?>
 | 
					?>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,8 +12,7 @@
 | 
				
			|||||||
    <form action="../login.php" method="post">
 | 
					    <form action="../login.php" method="post">
 | 
				
			||||||
        <input type="email" name="email" id="email-field" placeholder="E-Mail" required>
 | 
					        <input type="email" name="email" id="email-field" placeholder="E-Mail" required>
 | 
				
			||||||
        <input type="password" name="password" id="password-field" pattern=".{3,32}" placeholder="Password" required>
 | 
					        <input type="password" name="password" id="password-field" pattern=".{3,32}" placeholder="Password" required>
 | 
				
			||||||
        <input type="submit" value="Login">
 | 
					        <input type="submit" name="login" value="Login">
 | 
				
			||||||
        <button onclick="window.location.href='https://watch.twip-network.org/pages/register.html'">Register</button>    
 | 
					 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
@@ -58,4 +58,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					include "pages/register.html";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
?>
 | 
					?>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user