<?php
require_once __DIR__ . '/includes/functions.php';
if (!current_user()) {
    header('Location: ' . base_url('login.php'));
    exit;
}
header('Location: ' . base_url(current_user()['role'] === 'admin' ? 'admin/dashboard.php' : 'employee/dashboard.php'));
exit;
