<?php
session_start();
require_once 'includes/auth.php';

// Redirect to admin dashboard if logged in, else to login
if (isset($_SESSION['user_id'])) {
    redirect('admin_dashboard.php');
} else {
    redirect('login.php');
}
exit();
?>

