<?php
// Redirect to login if not authenticated, otherwise redirect to dashboard
require_once 'auth_check.php';

// If we reach here, user is authenticated, redirect to dashboard
header('Location: index.php');
exit;
?>
