<?php
/**
 * Authentication Check
 * Must be included at the top of all protected pages
 */

require_once __DIR__ . '/../config/config.php';

// If not logged in, redirect to login page
if (!isLoggedIn()) {
    redirect(SITE_URL . '/login.php');
}
