<?php
session_start();
header('Location: ' . (empty($_SESSION['authenticated']) ? 'login.php' : 'dashboard.php'));
exit;
