<?php
/**
 * Front-page entry — redirect to dashboard if logged in, otherwise to login.
 */
require_once __DIR__ . '/includes/config.php';
start_session();
redirect(is_logged_in() ? '/dashboard.php' : '/login.php');
