<?php
require_once 'config/init.php';

// Check if user is logged in
session_start();
if (!isset($_SESSION['user_id'])) {
    // User is not logged in, redirect to login page
    header('Location: login.php');
    exit;
}

// User is logged in, redirect to dashboard
header('Location: dashboard.php');
exit;
?>
