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

echo "<h2>Test Redirect</h2>";
echo "isLoggedIn: " . (isLoggedIn() ? 'true' : 'false') . "<br>";
echo "isAdmin: " . (isAdmin() ? 'true' : 'false') . "<br>";
echo "isPenguji: " . (isPenguji() ? 'true' : 'false') . "<br>";

echo "<h3>Session Data:</h3>";
echo "<pre>";
print_r($_SESSION);
echo "</pre>";

echo "<h3>Links:</h3>";
echo "<a href='admin/dashboard.php'>Admin Dashboard</a><br>";
echo "<a href='penguji/dashboard_penguji.php'>Penguji Dashboard</a><br>";
echo "<a href='logout.php'>Logout</a>";
?>