<?php
require_once __DIR__ . '/config/paths.php';
require_once __DIR__ . '/includes/helpers.php';

session_start();

if (isset($_SESSION['user_id'])) {
    header('Location: ' . url('dashboard'));
} else {
    header('Location: ' . url('login'));
}
exit();
?>
