36637-vm/index.php
2025-12-04 03:23:32 +00:00

14 lines
273 B
PHP

<?php
session_start();
// If the agent is logged in, redirect to their dashboard.
if (isset($_SESSION['agent_id'])) {
header("Location: dashboard.php");
exit;
} else {
// If not logged in, show the login page.
header("Location: login.php");
exit;
}
?>