pls work
This commit is contained in:
		@@ -12,7 +12,11 @@ if (!isset($_SESSION['user_id'])) {
 | 
			
		||||
    $result = mysqli_query($mysqli, $query);
 | 
			
		||||
    $user = mysqli_fetch_assoc($result);
 | 
			
		||||
 | 
			
		||||
    // Include the index page with user information
 | 
			
		||||
    include 'pages/index.html';
 | 
			
		||||
    // Include the appropriate HTML based on user's status
 | 
			
		||||
    if ($user['isAdmin'] == 1) {
 | 
			
		||||
        include 'pages/index_admin.html'; // Custom HTML for Admin
 | 
			
		||||
    } else {
 | 
			
		||||
        include 'pages/index_user.html'; // Custom HTML for regular user
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
?>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user