<?php
require_once 'config.php';

if (isLoggedIn()) {
    if (isAdmin()) {
        redirect('admin/dashboard.php');
    } elseif (isRepresentative()) {
        redirect('representative/dashboard.php');
    }
}

redirect('login.php');
?>
