This commit is contained in:
2024-01-20 18:00:30 +01:00
parent 3a579fc476
commit ab876ee883
8 changed files with 37 additions and 10 deletions

View File

@@ -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
}
}
?>